@marcoappio/marco-config 4.0.9 → 4.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/appwrite/appwrite.d.ts +1215 -1017
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +11 -375
  4. package/dist/appwrite/appwrite.test.js +75 -1
  5. package/dist/appwrite/commands.d.ts +167 -124
  6. package/dist/appwrite/commands.d.ts.map +1 -1
  7. package/dist/appwrite/commands.js +70 -68
  8. package/dist/appwrite/commands.test.js +30 -17
  9. package/dist/appwrite/functions.d.ts +122 -122
  10. package/dist/appwrite/index.d.ts +2 -2
  11. package/dist/appwrite/index.d.ts.map +1 -1
  12. package/dist/appwrite/index.js +2 -2
  13. package/dist/appwrite/tableContract/identity.d.ts +442 -0
  14. package/dist/appwrite/tableContract/identity.d.ts.map +1 -0
  15. package/dist/appwrite/tableContract/identity.js +158 -0
  16. package/dist/appwrite/tableContract/index.d.ts +2194 -0
  17. package/dist/appwrite/tableContract/index.d.ts.map +1 -0
  18. package/dist/appwrite/tableContract/index.js +77 -0
  19. package/dist/appwrite/tableContract/index.test.d.ts +2 -0
  20. package/dist/appwrite/tableContract/index.test.d.ts.map +1 -0
  21. package/dist/appwrite/tableContract/index.test.js +48 -0
  22. package/dist/appwrite/tableContract/mailbox.d.ts +622 -0
  23. package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -0
  24. package/dist/appwrite/tableContract/mailbox.js +191 -0
  25. package/dist/appwrite/tableContract/operational.d.ts +522 -0
  26. package/dist/appwrite/tableContract/operational.d.ts.map +1 -0
  27. package/dist/appwrite/tableContract/operational.js +191 -0
  28. package/dist/appwrite/tableContract/shared.d.ts +145 -0
  29. package/dist/appwrite/tableContract/shared.d.ts.map +1 -0
  30. package/dist/appwrite/tableContract/shared.js +89 -0
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ import * as v from 'valibot';
2
+ /* oxlint-disable eslint/sort-keys */
3
+ import { accountProviders, appwriteColumnDefinitions, appwriteIds, appwriteRelationship, appwriteRelationshipIdSchema, commandStates, defineAppwriteTable, identifierSchema, jobStates, labelSpecialUses, mailboxSortKeySchema, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, nonNegativeIntegerSchema, positiveIntegerSchema, pollShardStates, timestampSchema, } from './shared';
4
+ const { bigint, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
5
+ export const mailboxSyncCandidatesTable = defineAppwriteTable({
6
+ fields: {
7
+ userId: identifier(identifierSchema),
8
+ accountId: identifier(identifierSchema),
9
+ generation: integer(nonNegativeIntegerSchema),
10
+ lane: enumValue(v.picklist(mailboxSyncLanes), mailboxSyncLanes),
11
+ labelId: identifier(identifierSchema),
12
+ mailboxPath: stringColumn(identifierSchema),
13
+ mailboxPriority: integer(nonNegativeIntegerSchema),
14
+ mailboxSortKey: stringColumn(mailboxSortKeySchema, true, 257),
15
+ providerId: stringColumn(identifierSchema),
16
+ receivedAt: dateTime(timestampSchema),
17
+ specialUse: enumValue(v.nullable(v.picklist(labelSpecialUses)), labelSpecialUses, false),
18
+ uid: bigint(positiveIntegerSchema),
19
+ uidValidity: bigint(positiveIntegerSchema),
20
+ account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
21
+ label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
22
+ },
23
+ id: appwriteIds.tables.mailboxSyncCandidates,
24
+ indexes: [
25
+ { attributes: ['lane'], name: 'lane', type: 'key' },
26
+ {
27
+ attributes: ['accountId', 'lane', 'generation', 'mailboxPriority', 'receivedAt', 'labelId', 'uid', 'uidValidity'],
28
+ name: 'account_lane_generation_order',
29
+ type: 'key',
30
+ },
31
+ ],
32
+ key: 'mailboxSyncCandidates',
33
+ name: 'Mailbox sync candidates',
34
+ });
35
+ export const mailboxSyncLanesTable = defineAppwriteTable({
36
+ fields: {
37
+ userId: identifier(identifierSchema),
38
+ accountId: identifier(identifierSchema),
39
+ commandId: identifier(identifierSchema),
40
+ cursor: text(v.nullable(v.string()), false),
41
+ generation: integer(nonNegativeIntegerSchema),
42
+ lane: enumValue(v.picklist(mailboxSyncLanes), mailboxSyncLanes),
43
+ state: enumValue(v.picklist(mailboxSyncLaneStates), mailboxSyncLaneStates),
44
+ errorCode: identifier(v.nullable(identifierSchema), false),
45
+ account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
46
+ },
47
+ id: appwriteIds.tables.mailboxSyncLanes,
48
+ indexes: [
49
+ { attributes: ['accountId', 'lane'], name: 'account_lane_unique', type: 'unique' },
50
+ { attributes: ['lane', 'state'], name: 'lane_state', type: 'key' },
51
+ ],
52
+ key: 'mailboxSyncLanes',
53
+ name: 'Mailbox sync lanes',
54
+ wirePermissions: 'empty',
55
+ });
56
+ export const pollShardCoordinatorsTable = defineAppwriteTable({
57
+ fields: {
58
+ accountCursor: stringColumn(v.nullable(identifierSchema), false),
59
+ },
60
+ id: appwriteIds.tables.pollShardCoordinators,
61
+ indexes: [],
62
+ key: 'pollShardCoordinators',
63
+ name: 'Poll shard coordinators',
64
+ wirePermissions: 'empty',
65
+ });
66
+ export const mailboxSyncStatesTable = defineAppwriteTable({
67
+ fields: {
68
+ userId: stringColumn(identifierSchema),
69
+ accountId: stringColumn(identifierSchema),
70
+ provider: enumValue(v.picklist(accountProviders), accountProviders),
71
+ providerCursor: text(v.nullable(v.string()), false),
72
+ uidValidity: stringColumn(v.nullable(v.string()), false),
73
+ state: enumValue(v.picklist(mailboxSyncProvisionedStates), mailboxSyncProvisionedStates),
74
+ nextPollAt: dateTime(v.nullable(timestampSchema), false),
75
+ lastEventAt: dateTime(v.nullable(timestampSchema), false),
76
+ lastSyncAt: dateTime(v.nullable(timestampSchema), false),
77
+ materialisationLeaseId: identifier(v.nullable(identifierSchema), false),
78
+ materialisationLeaseExpiresAt: dateTime(v.nullable(timestampSchema), false),
79
+ errorCode: stringColumn(v.nullable(identifierSchema), false),
80
+ },
81
+ id: appwriteIds.tables.mailboxSyncStates,
82
+ indexes: [
83
+ { attributes: ['state', 'nextPollAt'], name: 'state_next_poll', type: 'key' },
84
+ { attributes: ['accountId'], name: 'account_unique', type: 'unique' },
85
+ ],
86
+ key: 'mailboxSyncStates',
87
+ name: 'Mailbox sync states',
88
+ });
89
+ export const commandsTable = defineAppwriteTable({
90
+ fields: {
91
+ userId: stringColumn(identifierSchema),
92
+ accountId: stringColumn(v.nullable(identifierSchema), false),
93
+ draftId: identifier(v.nullable(identifierSchema), false),
94
+ kind: stringColumn(identifierSchema),
95
+ payload: longText(v.string()),
96
+ payloadHash: stringColumn(identifierSchema),
97
+ state: enumValue(v.picklist(commandStates), commandStates),
98
+ attempts: integer(nonNegativeIntegerSchema),
99
+ canonicalRevision: integer(v.nullable(nonNegativeIntegerSchema), false),
100
+ errorCode: stringColumn(v.nullable(identifierSchema), false),
101
+ submittedAt: dateTime(timestampSchema),
102
+ account: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'accounts', 'manyToOne', 'setNull'),
103
+ profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
104
+ },
105
+ id: appwriteIds.tables.commands,
106
+ indexes: [
107
+ { attributes: ['userId'], name: 'user', type: 'key' },
108
+ { attributes: ['userId', 'submittedAt'], name: 'user_submitted', type: 'key' },
109
+ { attributes: ['accountId', 'state'], name: 'account_state', type: 'key' },
110
+ { attributes: ['draftId', 'canonicalRevision'], name: 'draft_sequence', type: 'key' },
111
+ { attributes: ['state', 'submittedAt'], name: 'state_submitted', type: 'key' },
112
+ ],
113
+ key: 'commands',
114
+ name: 'Commands',
115
+ });
116
+ export const jobsTable = defineAppwriteTable({
117
+ fields: {
118
+ commandId: stringColumn(identifierSchema),
119
+ userId: stringColumn(identifierSchema),
120
+ accountId: stringColumn(v.nullable(identifierSchema), false),
121
+ kind: stringColumn(identifierSchema),
122
+ payload: longText(v.string()),
123
+ dedupeKey: stringColumn(identifierSchema),
124
+ state: enumValue(v.picklist(jobStates), jobStates),
125
+ attempts: integer(nonNegativeIntegerSchema),
126
+ maxAttempts: integer(nonNegativeIntegerSchema),
127
+ nextRunAt: dateTime(timestampSchema),
128
+ leaseId: stringColumn(v.nullable(identifierSchema), false),
129
+ leaseExpiresAt: dateTime(v.nullable(timestampSchema), false),
130
+ errorCode: stringColumn(v.nullable(identifierSchema), false),
131
+ },
132
+ id: appwriteIds.tables.jobs,
133
+ indexes: [
134
+ { attributes: ['state', 'nextRunAt'], name: 'state_next_run', type: 'key' },
135
+ { attributes: ['leaseExpiresAt'], name: 'lease_expiry', type: 'key' },
136
+ { attributes: ['state', 'leaseExpiresAt'], name: 'state_lease_expiry', type: 'key' },
137
+ { attributes: ['userId', 'state', 'leaseExpiresAt'], name: 'user_state_lease_expiry', type: 'key' },
138
+ { attributes: ['state', 'leaseExpiresAt', 'leaseId', 'attempts'], name: 'recovery_fence', type: 'key' },
139
+ { attributes: ['commandId'], name: 'command', type: 'key' },
140
+ { attributes: ['dedupeKey'], name: 'dedupe_key_unique', type: 'unique' },
141
+ { attributes: ['userId'], name: 'user', type: 'key' },
142
+ ],
143
+ key: 'jobs',
144
+ name: 'Jobs',
145
+ });
146
+ export const pollShardsTable = defineAppwriteTable({
147
+ fields: {
148
+ accountIds: stringArray(v.pipe(v.array(identifierSchema), v.maxLength(10)), true, 36),
149
+ generation: integer(nonNegativeIntegerSchema),
150
+ state: enumValue(v.picklist(pollShardStates), pollShardStates),
151
+ leaseId: identifier(v.nullable(identifierSchema), false),
152
+ leaseExpiresAt: dateTime(v.nullable(timestampSchema), false),
153
+ lastStartedAt: dateTime(v.nullable(timestampSchema), false),
154
+ nextStartAt: dateTime(timestampSchema),
155
+ pollingSnapshot: longText(v.string()),
156
+ scheduledExecutionId: identifier(v.nullable(identifierSchema), false),
157
+ errorCode: identifier(v.nullable(identifierSchema), false),
158
+ },
159
+ id: appwriteIds.tables.pollShards,
160
+ indexes: [
161
+ { attributes: ['state', 'nextStartAt'], name: 'state_next_start', type: 'key' },
162
+ { attributes: ['leaseExpiresAt'], name: 'lease_expiry', type: 'key' },
163
+ ],
164
+ key: 'pollShards',
165
+ name: 'Poll shards',
166
+ wirePermissions: 'empty',
167
+ });
168
+ export const pushNotificationTokensTable = defineAppwriteTable({
169
+ fields: {
170
+ userId: stringColumn(identifierSchema),
171
+ token: stringColumn(identifierSchema),
172
+ profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
173
+ },
174
+ id: appwriteIds.tables.pushNotificationTokens,
175
+ indexes: [
176
+ { attributes: ['userId'], name: 'user', type: 'key' },
177
+ { attributes: ['token'], name: 'token_unique', type: 'unique' },
178
+ ],
179
+ key: 'pushNotificationTokens',
180
+ name: 'Push notification tokens',
181
+ });
182
+ export const operationalTableInputs = {
183
+ commands: commandsTable,
184
+ jobs: jobsTable,
185
+ mailboxSyncCandidates: mailboxSyncCandidatesTable,
186
+ mailboxSyncLanes: mailboxSyncLanesTable,
187
+ mailboxSyncStates: mailboxSyncStatesTable,
188
+ pollShardCoordinators: pollShardCoordinatorsTable,
189
+ pollShards: pollShardsTable,
190
+ pushNotificationTokens: pushNotificationTokensTable,
191
+ };
@@ -0,0 +1,145 @@
1
+ import type { ReadonlyDeep } from 'type-fest';
2
+ import * as v from 'valibot';
3
+ export declare const appwriteIds: {
4
+ readonly bucket: "marco-files";
5
+ readonly database: "marco";
6
+ readonly functions: {
7
+ readonly api: "marco-api";
8
+ readonly worker: "marco-worker";
9
+ };
10
+ readonly tables: {
11
+ readonly accounts: "accounts";
12
+ readonly aliases: "aliases";
13
+ readonly commands: "commands_v2";
14
+ readonly contacts: "contacts";
15
+ readonly credentials: "credentials";
16
+ readonly drafts: "drafts";
17
+ readonly jobs: "jobs_v2";
18
+ readonly labels: "labels";
19
+ readonly mailboxSyncCandidates: "mailbox_sync_candidates_v2";
20
+ readonly mailboxSyncLanes: "mailbox_sync_lanes";
21
+ readonly mailboxSyncStates: "mailbox_sync_states";
22
+ readonly messageLocations: "message_locations";
23
+ readonly messages: "messages";
24
+ readonly oauthStates: "oauth_states";
25
+ readonly pollShardCoordinators: "poll_shard_coordinators";
26
+ readonly pollShards: "poll_shards";
27
+ readonly profileAvatarCleanups: "profile_avatar_cleanups";
28
+ readonly profiles: "profiles";
29
+ readonly pushNotificationTokens: "push_notification_tokens";
30
+ readonly savedViews: "saved_views";
31
+ readonly threadAliases: "thread_aliases";
32
+ readonly threadLabels: "thread_labels";
33
+ readonly threads: "threads";
34
+ };
35
+ };
36
+ export type AppwriteTableKey = keyof typeof appwriteIds.tables;
37
+ export type AppwriteTableId = (typeof appwriteIds.tables)[AppwriteTableKey];
38
+ export declare const appwriteTableIds: readonly AppwriteTableId[];
39
+ export declare const appwriteTableIdSchema: v.PicklistSchema<readonly AppwriteTableId[], undefined>;
40
+ export declare const appwriteRowIdSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
41
+ export declare const appwriteRelationshipIdSchema: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
42
+ readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
43
+ }, undefined>, v.TransformAction<{
44
+ $id: string;
45
+ }, string>]>], undefined>;
46
+ export declare const accountProviders: readonly ["GMAIL", "OUTLOOK", "IMAP"];
47
+ export declare const accountStates: readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"];
48
+ export declare const commandStates: readonly ["ACCEPTED", "RUNNING", "SUCCEEDED", "FAILED"];
49
+ export declare const draftStates: readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"];
50
+ export declare const draftTypes: readonly ["COMPOSE", "REPLY", "FORWARD"];
51
+ export declare const jobStates: readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"];
52
+ export declare const labelSpecialUses: readonly ["ALL", "ARCHIVE", "DRAFTS", "INBOX", "JUNK", "SENT", "STARRED", "TRASH"];
53
+ export declare const mailboxSyncLanes: readonly ["HEAD", "BACKFILL"];
54
+ export declare const mailboxSyncLaneStates: readonly ["PENDING", "RUNNING", "COMPLETED", "FAILED"];
55
+ export declare const mailboxSyncProvisionedStates: readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"];
56
+ export declare const mailboxSyncStates: readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"];
57
+ export declare const oauthOperations: readonly ["CONNECT", "REPLACE"];
58
+ export declare const oauthProviders: readonly ["GMAIL", "OUTLOOK"];
59
+ export declare const oauthReturnUris: readonly ["https://app.marcoapp.io/onboarding/loading"];
60
+ export declare const oauthReturnUriSchema: v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>;
61
+ export declare const pollShardStates: readonly ["ACTIVE", "STOPPED", "FAILED"];
62
+ export type AppwriteMailboxSyncLane = (typeof mailboxSyncLanes)[number];
63
+ export type AppwriteMailboxSyncLaneState = (typeof mailboxSyncLaneStates)[number];
64
+ export type AppwriteMailboxSyncState = (typeof mailboxSyncProvisionedStates)[number];
65
+ export type AppwritePollShardState = (typeof pollShardStates)[number];
66
+ export declare const identifierSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
67
+ export declare const timestampSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
68
+ export declare const nonNegativeIntegerSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
69
+ export declare const positiveIntegerSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
70
+ export declare const colourSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>;
71
+ export declare const emailSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
72
+ export declare const mailboxAddressSchema: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
73
+ export declare const mailboxSortKeySchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 257, undefined>]>;
74
+ export declare const jsonObjectTextSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
75
+ export type AppwriteColumnType = 'bigint' | 'boolean' | 'datetime' | 'enum' | 'integer' | 'longtext' | 'string' | 'text';
76
+ export type AppwriteIndexType = 'fulltext' | 'key' | 'unique';
77
+ export type AppwriteRelationshipOnDelete = 'cascade' | 'setNull';
78
+ export type AppwriteRelationshipType = 'manyToOne' | 'oneToOne';
79
+ export type AppwriteColumnDefinition = ReadonlyDeep<{
80
+ array?: boolean;
81
+ elements?: readonly string[];
82
+ key: string;
83
+ required: boolean;
84
+ size?: number;
85
+ type: AppwriteColumnType;
86
+ }>;
87
+ export type AppwriteIndexDefinition = ReadonlyDeep<{
88
+ attributes: readonly string[];
89
+ name: string;
90
+ type: AppwriteIndexType;
91
+ }>;
92
+ export type AppwriteRelationshipDefinition = ReadonlyDeep<{
93
+ key: string;
94
+ onDelete: AppwriteRelationshipOnDelete;
95
+ relatedTableId: string;
96
+ type: AppwriteRelationshipType;
97
+ }>;
98
+ export type AppwriteTableDefinition = ReadonlyDeep<{
99
+ columns: readonly AppwriteColumnDefinition[];
100
+ id: string;
101
+ indexes: readonly AppwriteIndexDefinition[];
102
+ key: AppwriteTableKey;
103
+ name: string;
104
+ relationships: readonly AppwriteRelationshipDefinition[];
105
+ }>;
106
+ type AppwriteColumnDefinitionInput = Omit<AppwriteColumnDefinition, 'key'>;
107
+ type AppwriteRelationshipDefinitionInput = Readonly<{
108
+ onDelete: AppwriteRelationshipOnDelete;
109
+ relatedTable: AppwriteTableKey;
110
+ type: AppwriteRelationshipType;
111
+ }>;
112
+ export type AppwriteColumnSchema<TSchema extends v.GenericSchema = v.GenericSchema> = TSchema & {
113
+ readonly definition: AppwriteColumnDefinitionInput;
114
+ };
115
+ export type AppwriteRelationshipSchema<TSchema extends v.GenericSchema = v.GenericSchema> = TSchema & {
116
+ readonly definition: AppwriteRelationshipDefinitionInput;
117
+ };
118
+ export type AppwriteTableFields = Readonly<Record<string, AppwriteColumnSchema | AppwriteRelationshipSchema>>;
119
+ export type AppwriteTableInput<TFields extends AppwriteTableFields = AppwriteTableFields> = Readonly<{
120
+ dataCheck?: (input: unknown) => boolean;
121
+ fields: TFields;
122
+ id: string;
123
+ indexes: readonly AppwriteIndexDefinition[];
124
+ key: AppwriteTableKey;
125
+ name: string;
126
+ wirePermissions?: 'empty';
127
+ }>;
128
+ export declare const appwriteColumn: <const TSchema extends v.GenericSchema>(schema: TSchema, definition: AppwriteColumnDefinitionInput) => AppwriteColumnSchema<TSchema>;
129
+ export declare const appwriteRelationship: <const TSchema extends v.GenericSchema>(schema: TSchema, relatedTable: AppwriteTableKey, type?: AppwriteRelationshipType, onDelete?: AppwriteRelationshipOnDelete) => AppwriteRelationshipSchema<TSchema>;
130
+ export declare const appwriteColumnDefinitions: {
131
+ bigint: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
132
+ boolean: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
133
+ dateTime: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
134
+ enumValue: <const TSchema extends v.GenericSchema>(schema: TSchema, elements: readonly string[], required?: boolean) => AppwriteColumnSchema<TSchema>;
135
+ identifier: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
136
+ integer: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
137
+ longText: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
138
+ string: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean, size?: number) => AppwriteColumnSchema<TSchema>;
139
+ stringArray: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean, size?: number) => AppwriteColumnSchema<TSchema>;
140
+ text: <const TSchema extends v.GenericSchema>(schema: TSchema, required?: boolean) => AppwriteColumnSchema<TSchema>;
141
+ };
142
+ export declare const defineAppwriteTable: <const TTable extends AppwriteTableInput>(table: TTable) => TTable;
143
+ export declare const messageLocationCoordinateCheck: (location: unknown) => boolean;
144
+ export {};
145
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCd,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,WAAW,CAAC,MAAM,CAAA;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,gBAAgB,CAAC,CAAA;AAC3E,eAAO,MAAM,gBAAgB,EAA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AI,EAAE,MAAM,CAAA;IACZ,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC,CAAA;AAEF,eAAO,MAAM,cAAc,SAAU,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO,cAAc,6BAA6B,KAAG,oBAAoB,CAAC,OAAO,CACpH,CAAA;AAE3C,eAAO,MAAM,oBAAoB,SAAU,OAAO,SAAS,CAAC,CAAC,aAAa,UAChE,OAAO,gBACD,gBAAgB,SACxB,wBAAwB,aACpB,4BAA4B,KACrC,0BAA0B,CAAC,OAAO,CAAgF,CAAA;AAErH,eAAO,MAAM,yBAAyB;mBACrB,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;oBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;qBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;sBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO,YAAY,SAAS,MAAM,EAAE;uBAC5E,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;oBACnD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;qBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;mBAClD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;wBAC3C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;iBACvD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;CAC9D,CAAA;AAED,eAAO,MAAM,mBAAmB,SAAU,MAAM,SAAS,kBAAkB,SAAS,MAAM,KAAG,MAAe,CAAA;AAE5G,eAAO,MAAM,8BAA8B,aAAc,OAAO,YAM/D,CAAA"}
@@ -0,0 +1,89 @@
1
+ import * as v from 'valibot';
2
+ import { string } from '../../schemas/string';
3
+ export const appwriteIds = {
4
+ bucket: 'marco-files',
5
+ database: 'marco',
6
+ functions: {
7
+ api: 'marco-api',
8
+ worker: 'marco-worker',
9
+ },
10
+ tables: {
11
+ accounts: 'accounts',
12
+ aliases: 'aliases',
13
+ commands: 'commands_v2',
14
+ contacts: 'contacts',
15
+ credentials: 'credentials',
16
+ drafts: 'drafts',
17
+ jobs: 'jobs_v2',
18
+ labels: 'labels',
19
+ mailboxSyncCandidates: 'mailbox_sync_candidates_v2',
20
+ mailboxSyncLanes: 'mailbox_sync_lanes',
21
+ mailboxSyncStates: 'mailbox_sync_states',
22
+ messageLocations: 'message_locations',
23
+ messages: 'messages',
24
+ oauthStates: 'oauth_states',
25
+ pollShardCoordinators: 'poll_shard_coordinators',
26
+ pollShards: 'poll_shards',
27
+ profileAvatarCleanups: 'profile_avatar_cleanups',
28
+ profiles: 'profiles',
29
+ pushNotificationTokens: 'push_notification_tokens',
30
+ savedViews: 'saved_views',
31
+ threadAliases: 'thread_aliases',
32
+ threadLabels: 'thread_labels',
33
+ threads: 'threads',
34
+ },
35
+ };
36
+ export const appwriteTableIds = Object.values(appwriteIds.tables);
37
+ export const appwriteTableIdSchema = v.picklist(appwriteTableIds);
38
+ export const appwriteRowIdSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(36), v.regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/));
39
+ export const appwriteRelationshipIdSchema = v.union([
40
+ v.pipe(v.string(), v.minLength(1), v.maxLength(255)),
41
+ v.pipe(v.object({ $id: v.pipe(v.string(), v.minLength(1), v.maxLength(255)) }), v.transform(relationship => relationship.$id)),
42
+ ]);
43
+ export const accountProviders = ['GMAIL', 'OUTLOOK', 'IMAP'];
44
+ export const accountStates = ['AWAITING_CONNECTION', 'CONNECTED', 'ERROR', 'DISCONNECTED'];
45
+ export const commandStates = ['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED'];
46
+ export const draftStates = ['DRAFT', 'SCHEDULED', 'SENDING', 'SENT', 'FAILED', 'CANCELLED'];
47
+ export const draftTypes = ['COMPOSE', 'REPLY', 'FORWARD'];
48
+ export const jobStates = ['PENDING', 'RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED'];
49
+ export const labelSpecialUses = ['ALL', 'ARCHIVE', 'DRAFTS', 'INBOX', 'JUNK', 'SENT', 'STARRED', 'TRASH'];
50
+ export const mailboxSyncLanes = ['HEAD', 'BACKFILL'];
51
+ export const mailboxSyncLaneStates = ['PENDING', 'RUNNING', 'COMPLETED', 'FAILED'];
52
+ export const mailboxSyncProvisionedStates = ['INITIAL', 'SYNCING', 'CURRENT', 'ERROR'];
53
+ // Retained as the established public alias; mailboxSyncProvisionedStates is the canonical name.
54
+ export const mailboxSyncStates = mailboxSyncProvisionedStates;
55
+ export const oauthOperations = ['CONNECT', 'REPLACE'];
56
+ export const oauthProviders = ['GMAIL', 'OUTLOOK'];
57
+ export const oauthReturnUris = ['https://app.marcoapp.io/onboarding/loading'];
58
+ export const oauthReturnUriSchema = v.picklist(oauthReturnUris);
59
+ export const pollShardStates = ['ACTIVE', 'STOPPED', 'FAILED'];
60
+ export const identifierSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(255));
61
+ export const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
62
+ export const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
63
+ export const positiveIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(1));
64
+ export const colourSchema = v.pipe(v.string(), v.maxLength(64));
65
+ export const emailSchema = v.pipe(v.string(), v.email());
66
+ export const mailboxAddressSchema = string.mailboxAddress();
67
+ export const mailboxSortKeySchema = v.pipe(v.string(), v.minLength(1), v.maxLength(257));
68
+ export const jsonObjectTextSchema = v.pipe(v.string(), v.parseJson(), v.check(value => !Array.isArray(value)), v.looseObject({}));
69
+ export const appwriteColumn = (schema, definition) => Object.assign({}, schema, { definition });
70
+ export const appwriteRelationship = (schema, relatedTable, type = 'manyToOne', onDelete = 'cascade') => Object.assign({}, schema, { definition: { onDelete, relatedTable, type } });
71
+ export const appwriteColumnDefinitions = {
72
+ bigint: (schema, required = true) => appwriteColumn(schema, { required, type: 'bigint' }),
73
+ boolean: (schema, required = true) => appwriteColumn(schema, { required, type: 'boolean' }),
74
+ dateTime: (schema, required = true) => appwriteColumn(schema, { required, type: 'datetime' }),
75
+ enumValue: (schema, elements, required = true) => appwriteColumn(schema, { elements, required, type: 'enum' }),
76
+ identifier: (schema, required = true) => appwriteColumn(schema, { required, size: 36, type: 'string' }),
77
+ integer: (schema, required = true) => appwriteColumn(schema, { required, type: 'integer' }),
78
+ longText: (schema, required = true) => appwriteColumn(schema, { required, type: 'longtext' }),
79
+ string: (schema, required = true, size = 255) => appwriteColumn(schema, { required, size, type: 'string' }),
80
+ stringArray: (schema, required = true, size = 255) => appwriteColumn(schema, { array: true, required, size, type: 'string' }),
81
+ text: (schema, required = true) => appwriteColumn(schema, { required, type: 'text' }),
82
+ };
83
+ export const defineAppwriteTable = (table) => table;
84
+ export const messageLocationCoordinateCheck = (location) => {
85
+ if (typeof location === 'object' && location !== null && 'uid' in location && 'uidValidity' in location) {
86
+ return (location.uid === null && location.uidValidity === null) || (location.uid !== null && location.uidValidity !== null);
87
+ }
88
+ return false;
89
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteEnvironment, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteMailboxSyncLane, type AppwriteMailboxSyncLaneState, type AppwriteMailboxSyncState, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwritePollShardState, type AppwriteRow, type AppwriteRowTable, appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
1
+ export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteColumnDefinition, type AppwriteColumnSchema, type AppwriteColumnType, type AppwriteDataRow, type AppwriteEnvironment, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteIndexDefinition, type AppwriteIndexType, type AppwriteMailboxSyncLane, type AppwriteMailboxSyncLaneState, type AppwriteMailboxSyncState, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwritePollShardState, type AppwriteRelationshipDefinition, type AppwriteRelationshipOnDelete, type AppwriteRelationshipSchema, type AppwriteRelationshipType, type AppwriteRow, type AppwriteRowTable, type AppwriteTableDefinition, type AppwriteTableId, type AppwriteTableInput, type AppwriteTableKey, accountProviders, accountStates, appwrite, appwriteAvatar, appwriteCommandGroups, appwriteCommands, appwriteDataSchemas, appwriteFunctions, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableIdSchema, appwriteTableIds, appwriteTableContract, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, } from './appwrite';
2
2
  export { marcoConstants } from './constants';
3
3
  export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type JobId, type LabelId, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type UserId, type UserView, type ViewId, } from './schemas';
4
4
  export * from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,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B,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
1
+ export { accountProviders, accountStates, appwrite, appwriteAvatar, appwriteCommandGroups, appwriteCommands, appwriteDataSchemas, appwriteFunctions, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableIdSchema, appwriteTableIds, appwriteTableContract, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUris, oauthReturnUriSchema, pollShardStates, } from './appwrite';
2
2
  export { marcoConstants } from './constants';
3
3
  export { marcoSchemas, } from './schemas';
4
4
  export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "4.0.9",
3
+ "version": "4.0.11",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",