返回 AiToEarn
index.ts
1 import { Account, AccountSchema } from './account.schema'
2 import { ChannelAccountDataSnapshot, ChannelAccountDataSnapshotSchema } from './channel-account-data-snapshot.schema'
3 import { ChannelAuthIdentity, ChannelAuthIdentitySchema } from './channel-auth-identity.schema'
4 import { ChannelWorkDataSnapshot, ChannelWorkDataSnapshotSchema } from './channel-work-data-snapshot.schema'
5 import { EngagementSubTask, EngagementSubTaskSchema, EngagementTask, EngagementTaskSchema } from './engagement-task.schema'
6 import { InteractionRecord, InteractionRecordSchema } from './interaction-record.schema'
7 import { OAuth2Credential, OAuth2CredentialSchema } from './oauth2-credential.schema'
8 import { ReplyCommentRecord, ReplyCommentRecordSchema } from './reply-comment-record.schema'
9
10 export * from './account.schema'
11 export * from './channel-account-data-snapshot.schema'
12 export * from './channel-auth-identity.schema'
13 export * from './channel-work-data-snapshot.schema'
14 export * from './engagement-task.schema'
15 export * from './interaction-record.schema'
16 export * from './oauth2-credential.schema'
17 export * from './reply-comment-record.schema'
18
19 export const schemas = [
20 { name: Account.name, schema: AccountSchema },
21 { name: ChannelAccountDataSnapshot.name, schema: ChannelAccountDataSnapshotSchema },
22 { name: ChannelAuthIdentity.name, schema: ChannelAuthIdentitySchema },
23 { name: ChannelWorkDataSnapshot.name, schema: ChannelWorkDataSnapshotSchema },
24 { name: EngagementTask.name, schema: EngagementTaskSchema },
25 { name: EngagementSubTask.name, schema: EngagementSubTaskSchema },
26 { name: InteractionRecord.name, schema: InteractionRecordSchema },
27 { name: OAuth2Credential.name, schema: OAuth2CredentialSchema },
28 { name: ReplyCommentRecord.name, schema: ReplyCommentRecordSchema },
29 ] as const
30
30 lines TYPESCRIPT