@marcoappio/marco-config 4.0.12 → 4.0.14
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.
- package/dist/appwrite/appwrite.d.ts +34 -47
- package/dist/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +4 -17
- package/dist/appwrite/appwrite.test.js +42 -0
- package/dist/appwrite/commands.d.ts +9 -9
- package/dist/appwrite/commands.d.ts.map +1 -1
- package/dist/appwrite/commands.js +8 -15
- package/dist/appwrite/commands.test.js +50 -0
- package/dist/appwrite/decodedSchemas.d.ts +35 -0
- package/dist/appwrite/decodedSchemas.d.ts.map +1 -0
- package/dist/appwrite/decodedSchemas.js +18 -0
- package/dist/appwrite/functions.d.ts +16 -16
- package/dist/appwrite/functions.d.ts.map +1 -1
- package/dist/appwrite/functions.js +3 -9
- package/dist/appwrite/tableContract/identity.d.ts +2 -2
- package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
- package/dist/appwrite/tableContract/identity.js +12 -12
- package/dist/appwrite/tableContract/index.d.ts +36 -36
- package/dist/appwrite/tableContract/index.js +3 -3
- package/dist/appwrite/tableContract/mailbox.d.ts +10 -10
- package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
- package/dist/appwrite/tableContract/mailbox.js +12 -12
- package/dist/appwrite/tableContract/operational.d.ts +12 -12
- package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
- package/dist/appwrite/tableContract/operational.js +12 -12
- package/dist/appwrite/tableContract/shared.d.ts +1 -7
- package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
- package/dist/appwrite/tableContract/shared.js +1 -7
- package/dist/schemas/emailAccount.d.ts +6 -6
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +4 -4
- package/dist/schemas/index.d.ts +35 -34
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/models/account.d.ts +2 -2
- package/dist/schemas/models/account.js +3 -3
- package/dist/schemas/models/contact.d.ts +1 -1
- package/dist/schemas/models/draft.d.ts +8 -8
- package/dist/schemas/models/draft.js +1 -1
- package/dist/schemas/models/numericSemantics.test.d.ts +2 -0
- package/dist/schemas/models/numericSemantics.test.d.ts.map +1 -0
- package/dist/schemas/models/numericSemantics.test.js +24 -0
- package/dist/schemas/models/thread.d.ts +16 -16
- package/dist/schemas/models/thread.js +2 -2
- package/dist/schemas/number.d.ts +2 -1
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +3 -1
- package/dist/schemas/scalars.d.ts +13 -0
- package/dist/schemas/scalars.d.ts.map +1 -0
- package/dist/schemas/scalars.js +15 -0
- package/dist/schemas/scalars.test.d.ts +2 -0
- package/dist/schemas/scalars.test.d.ts.map +1 -0
- package/dist/schemas/scalars.test.js +44 -0
- package/dist/schemas/string.d.ts +1 -1
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +3 -2
- package/package.json +1 -1
|
@@ -90,9 +90,9 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
90
90
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
|
|
91
91
|
readonly attempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
92
92
|
readonly maxAttempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
93
|
-
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
93
|
+
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
94
94
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
95
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
95
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
96
96
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
97
97
|
};
|
|
98
98
|
readonly id: "jobs_v2";
|
|
@@ -209,11 +209,11 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
209
209
|
readonly providerCursor: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
210
210
|
readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
211
211
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
|
|
212
|
-
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
212
|
+
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
213
213
|
readonly lastEventAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
214
214
|
readonly lastSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
215
215
|
readonly materialisationLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
216
|
-
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
216
|
+
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
217
217
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
218
218
|
};
|
|
219
219
|
readonly id: "mailbox_sync_states";
|
|
@@ -245,9 +245,9 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
245
245
|
readonly generation: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
246
246
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
|
|
247
247
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
248
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
248
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
249
249
|
readonly lastStartedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
250
|
-
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
250
|
+
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
251
251
|
readonly pollingSnapshot: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
252
252
|
readonly scheduledExecutionId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
253
253
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
@@ -291,7 +291,7 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
291
291
|
};
|
|
292
292
|
contacts: {
|
|
293
293
|
readonly fields: {
|
|
294
|
-
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.
|
|
294
|
+
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
|
|
295
295
|
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
296
296
|
readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
297
297
|
readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
@@ -328,12 +328,12 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
328
328
|
readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
329
329
|
readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
330
330
|
readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
331
|
-
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
331
|
+
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
332
332
|
readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
|
|
333
333
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
334
334
|
readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
335
335
|
readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
336
|
-
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
336
|
+
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
337
337
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
338
338
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
339
339
|
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -528,7 +528,7 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
528
528
|
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
529
529
|
readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
530
530
|
readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
531
|
-
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.
|
|
531
|
+
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
|
|
532
532
|
readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
533
533
|
readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
534
534
|
readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
@@ -544,7 +544,7 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
544
544
|
readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
545
545
|
readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
546
546
|
readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
547
|
-
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
547
|
+
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
548
548
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
549
549
|
readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
550
550
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -697,7 +697,7 @@ export declare const appwriteTableContract: AppwriteTableContract<{
|
|
|
697
697
|
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
|
|
698
698
|
readonly encryptedPayload: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
699
699
|
readonly expiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
700
|
-
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
700
|
+
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
701
701
|
readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
702
702
|
};
|
|
703
703
|
readonly id: "credentials";
|
|
@@ -1054,7 +1054,7 @@ export declare const appwriteDataSchemas: {
|
|
|
1054
1054
|
}, string>]>], undefined>>;
|
|
1055
1055
|
}>;
|
|
1056
1056
|
contacts: AppwriteObjectSchema<{
|
|
1057
|
-
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.
|
|
1057
|
+
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
|
|
1058
1058
|
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1059
1059
|
readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1060
1060
|
readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
@@ -1072,7 +1072,7 @@ export declare const appwriteDataSchemas: {
|
|
|
1072
1072
|
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
|
|
1073
1073
|
readonly encryptedPayload: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1074
1074
|
readonly expiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1075
|
-
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1075
|
+
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1076
1076
|
readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1077
1077
|
}>;
|
|
1078
1078
|
drafts: AppwriteObjectSchema<{
|
|
@@ -1082,12 +1082,12 @@ export declare const appwriteDataSchemas: {
|
|
|
1082
1082
|
readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1083
1083
|
readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1084
1084
|
readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
1085
|
-
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1085
|
+
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1086
1086
|
readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
|
|
1087
1087
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1088
1088
|
readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1089
1089
|
readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1090
|
-
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1090
|
+
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1091
1091
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1092
1092
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1093
1093
|
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -1160,7 +1160,7 @@ export declare const appwriteDataSchemas: {
|
|
|
1160
1160
|
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
1161
1161
|
readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1162
1162
|
readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1163
|
-
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.
|
|
1163
|
+
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
|
|
1164
1164
|
readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1165
1165
|
readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1166
1166
|
readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
@@ -1176,7 +1176,7 @@ export declare const appwriteDataSchemas: {
|
|
|
1176
1176
|
readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1177
1177
|
readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1178
1178
|
readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1179
|
-
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1179
|
+
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1180
1180
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1181
1181
|
readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1182
1182
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -1218,9 +1218,9 @@ export declare const appwriteDataSchemas: {
|
|
|
1218
1218
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
|
|
1219
1219
|
readonly attempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1220
1220
|
readonly maxAttempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1221
|
-
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
1221
|
+
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
1222
1222
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1223
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1223
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1224
1224
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1225
1225
|
}>;
|
|
1226
1226
|
mailboxSyncCandidates: AppwriteObjectSchema<{
|
|
@@ -1270,11 +1270,11 @@ export declare const appwriteDataSchemas: {
|
|
|
1270
1270
|
readonly providerCursor: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1271
1271
|
readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1272
1272
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
|
|
1273
|
-
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1273
|
+
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1274
1274
|
readonly lastEventAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1275
1275
|
readonly lastSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1276
1276
|
readonly materialisationLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1277
|
-
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1277
|
+
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1278
1278
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1279
1279
|
}>;
|
|
1280
1280
|
messageLocations: AppwriteCheckedObjectSchema<{
|
|
@@ -1330,9 +1330,9 @@ export declare const appwriteDataSchemas: {
|
|
|
1330
1330
|
readonly generation: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1331
1331
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
|
|
1332
1332
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1333
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1333
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1334
1334
|
readonly lastStartedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1335
|
-
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
1335
|
+
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
1336
1336
|
readonly pollingSnapshot: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1337
1337
|
readonly scheduledExecutionId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1338
1338
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
@@ -1493,7 +1493,7 @@ export declare const appwriteRowSchemas: {
|
|
|
1493
1493
|
}>;
|
|
1494
1494
|
contacts: AppwriteRowSchemaFor<{
|
|
1495
1495
|
readonly fields: {
|
|
1496
|
-
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.
|
|
1496
|
+
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
|
|
1497
1497
|
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1498
1498
|
readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1499
1499
|
readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
@@ -1529,7 +1529,7 @@ export declare const appwriteRowSchemas: {
|
|
|
1529
1529
|
readonly provider: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["GMAIL", "OUTLOOK", "IMAP"], undefined>>;
|
|
1530
1530
|
readonly encryptedPayload: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1531
1531
|
readonly expiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1532
|
-
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1532
|
+
readonly refreshLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1533
1533
|
readonly refreshLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1534
1534
|
};
|
|
1535
1535
|
readonly id: "credentials";
|
|
@@ -1553,12 +1553,12 @@ export declare const appwriteRowSchemas: {
|
|
|
1553
1553
|
readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1554
1554
|
readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
1555
1555
|
readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
1556
|
-
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1556
|
+
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1557
1557
|
readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
|
|
1558
1558
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1559
1559
|
readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1560
1560
|
readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1561
|
-
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1561
|
+
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1562
1562
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1563
1563
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1564
1564
|
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -1695,7 +1695,7 @@ export declare const appwriteRowSchemas: {
|
|
|
1695
1695
|
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
1696
1696
|
readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1697
1697
|
readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1698
|
-
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.
|
|
1698
|
+
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
|
|
1699
1699
|
readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1700
1700
|
readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1701
1701
|
readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
@@ -1711,7 +1711,7 @@ export declare const appwriteRowSchemas: {
|
|
|
1711
1711
|
readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1712
1712
|
readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1713
1713
|
readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
1714
|
-
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1714
|
+
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1715
1715
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1716
1716
|
readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1717
1717
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -1825,9 +1825,9 @@ export declare const appwriteRowSchemas: {
|
|
|
1825
1825
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
|
|
1826
1826
|
readonly attempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1827
1827
|
readonly maxAttempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
1828
|
-
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
1828
|
+
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
1829
1829
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1830
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1830
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1831
1831
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1832
1832
|
};
|
|
1833
1833
|
readonly id: "jobs_v2";
|
|
@@ -1944,11 +1944,11 @@ export declare const appwriteRowSchemas: {
|
|
|
1944
1944
|
readonly providerCursor: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1945
1945
|
readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
1946
1946
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
|
|
1947
|
-
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1947
|
+
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1948
1948
|
readonly lastEventAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1949
1949
|
readonly lastSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1950
1950
|
readonly materialisationLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1951
|
-
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
1951
|
+
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
1952
1952
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
1953
1953
|
};
|
|
1954
1954
|
readonly id: "mailbox_sync_states";
|
|
@@ -2050,9 +2050,9 @@ export declare const appwriteRowSchemas: {
|
|
|
2050
2050
|
readonly generation: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
2051
2051
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
|
|
2052
2052
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
2053
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
2053
|
+
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
2054
2054
|
readonly lastStartedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
2055
|
-
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
2055
|
+
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
2056
2056
|
readonly pollingSnapshot: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
2057
2057
|
readonly scheduledExecutionId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
2058
2058
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { identityTableInputs } from './identity';
|
|
3
3
|
import { mailboxTableInputs } from './mailbox';
|
|
4
4
|
import { operationalTableInputs } from './operational';
|
|
5
|
-
import { appwriteIds, appwriteRowIdSchema, identifierSchema,
|
|
5
|
+
import { appwriteIds, appwriteRowIdSchema, identifierSchema, isoTimestampSchema, } from './shared';
|
|
6
6
|
export * from './shared';
|
|
7
7
|
const appwriteTableInputs = {
|
|
8
8
|
...identityTableInputs,
|
|
@@ -39,13 +39,13 @@ const materialiseTable = (table) => {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
const wireMetadata = (tableId, wirePermissions) => ({
|
|
42
|
-
$createdAt:
|
|
42
|
+
$createdAt: isoTimestampSchema,
|
|
43
43
|
$databaseId: v.literal(appwriteIds.database),
|
|
44
44
|
$id: appwriteRowIdSchema,
|
|
45
45
|
$permissions: wirePermissions === 'empty' ? v.pipe(v.array(v.string()), v.length(0)) : v.array(v.string()),
|
|
46
46
|
$sequence: identifierSchema,
|
|
47
47
|
$tableId: v.literal(tableId),
|
|
48
|
-
$updatedAt:
|
|
48
|
+
$updatedAt: isoTimestampSchema,
|
|
49
49
|
});
|
|
50
50
|
function createDataSchema(fields, dataCheck) {
|
|
51
51
|
const schema = v.object(fields);
|
|
@@ -79,7 +79,7 @@ export declare const messageLocationsTable: {
|
|
|
79
79
|
};
|
|
80
80
|
export declare const contactsTable: {
|
|
81
81
|
readonly fields: {
|
|
82
|
-
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.
|
|
82
|
+
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
|
|
83
83
|
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
84
84
|
readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
85
85
|
readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
@@ -116,12 +116,12 @@ export declare const draftsTable: {
|
|
|
116
116
|
readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
117
117
|
readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
118
118
|
readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
119
|
-
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
119
|
+
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
120
120
|
readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
|
|
121
121
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
122
122
|
readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
123
123
|
readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
124
|
-
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
124
|
+
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
125
125
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
126
126
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
127
127
|
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -162,7 +162,7 @@ export declare const threadsTable: {
|
|
|
162
162
|
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
163
163
|
readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
164
164
|
readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
165
|
-
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.
|
|
165
|
+
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
|
|
166
166
|
readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
167
167
|
readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
168
168
|
readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
@@ -178,7 +178,7 @@ export declare const threadsTable: {
|
|
|
178
178
|
readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
179
179
|
readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
180
180
|
readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
181
|
-
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
181
|
+
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
182
182
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
183
183
|
readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
184
184
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -311,7 +311,7 @@ export declare const messagesTable: {
|
|
|
311
311
|
export declare const mailboxTableInputs: {
|
|
312
312
|
readonly contacts: {
|
|
313
313
|
readonly fields: {
|
|
314
|
-
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.
|
|
314
|
+
readonly normalisedAddress: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>>;
|
|
315
315
|
readonly displayName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
316
316
|
readonly lastContactedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
317
317
|
readonly messageCount: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
@@ -348,12 +348,12 @@ export declare const mailboxTableInputs: {
|
|
|
348
348
|
readonly html: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
349
349
|
readonly attachmentMetadata: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
350
350
|
readonly contentHash: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
351
|
-
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
351
|
+
readonly scheduledAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
352
352
|
readonly status: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["DRAFT", "SCHEDULED", "SENDING", "SENT", "FAILED", "CANCELLED"], undefined>>;
|
|
353
353
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
354
354
|
readonly sequence: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
355
355
|
readonly executionLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
356
|
-
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
356
|
+
readonly executionLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
357
357
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
358
358
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
359
359
|
readonly $id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -548,7 +548,7 @@ export declare const mailboxTableInputs: {
|
|
|
548
548
|
readonly providerId: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>>;
|
|
549
549
|
readonly subject: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
550
550
|
readonly firstMessageAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
551
|
-
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.
|
|
551
|
+
readonly senderEmail: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>>;
|
|
552
552
|
readonly senderName: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
553
553
|
readonly preview: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
554
554
|
readonly participants: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
@@ -564,7 +564,7 @@ export declare const mailboxTableInputs: {
|
|
|
564
564
|
readonly archived: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
565
565
|
readonly spam: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
566
566
|
readonly trashed: import("./shared").AppwriteColumnSchema<v.BooleanSchema<undefined>>;
|
|
567
|
-
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
567
|
+
readonly snoozedUntil: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>>;
|
|
568
568
|
readonly revision: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
569
569
|
readonly searchText: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
570
570
|
readonly account: import("./shared").AppwriteRelationshipSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailbox.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/mailbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"mailbox.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/mailbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBxB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CvB,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB5B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrB,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
/* oxlint-disable eslint/sort-keys */
|
|
3
|
-
import { appwriteColumnDefinitions, appwriteIds, appwriteRelationship, appwriteRelationshipIdSchema, defineAppwriteTable, draftStates, draftTypes, identifierSchema, mailboxAddressSchema, messageLocationCoordinateCheck, nonNegativeIntegerSchema, positiveIntegerSchema,
|
|
3
|
+
import { appwriteColumnDefinitions, appwriteIds, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, defineAppwriteTable, draftStates, draftTypes, identifierSchema, mailboxAddressSchema, messageLocationCoordinateCheck, nonNegativeIntegerSchema, positiveIntegerSchema, isoTimestampSchema, } from './shared';
|
|
4
4
|
const { bigint, boolean, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
5
5
|
export const threadAliasesTable = defineAppwriteTable({
|
|
6
6
|
fields: {
|
|
7
7
|
aliasAssignmentKey: identifier(identifierSchema),
|
|
8
|
-
latestMessageAt: dateTime(
|
|
8
|
+
latestMessageAt: dateTime(isoTimestampSchema),
|
|
9
9
|
threadAssignmentKey: identifier(identifierSchema),
|
|
10
10
|
alias: appwriteRelationship(appwriteRelationshipIdSchema, 'aliases'),
|
|
11
11
|
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
@@ -24,7 +24,7 @@ export const messageLocationsTable = defineAppwriteTable({
|
|
|
24
24
|
accountAssignmentKey: identifier(identifierSchema),
|
|
25
25
|
flagged: boolean(v.boolean()),
|
|
26
26
|
labelAssignmentKey: identifier(identifierSchema),
|
|
27
|
-
messageAt: dateTime(
|
|
27
|
+
messageAt: dateTime(isoTimestampSchema),
|
|
28
28
|
seen: boolean(v.boolean()),
|
|
29
29
|
threadAssignmentKey: identifier(identifierSchema),
|
|
30
30
|
uid: bigint(v.nullable(positiveIntegerSchema), false),
|
|
@@ -47,7 +47,7 @@ export const contactsTable = defineAppwriteTable({
|
|
|
47
47
|
fields: {
|
|
48
48
|
normalisedAddress: stringColumn(mailboxAddressSchema, true, 320),
|
|
49
49
|
displayName: stringColumn(v.nullable(identifierSchema), false),
|
|
50
|
-
lastContactedAt: dateTime(v.nullable(
|
|
50
|
+
lastContactedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
51
51
|
messageCount: integer(nonNegativeIntegerSchema),
|
|
52
52
|
profileAssignmentKey: identifier(identifierSchema),
|
|
53
53
|
searchText: text(v.string()),
|
|
@@ -70,12 +70,12 @@ export const draftsTable = defineAppwriteTable({
|
|
|
70
70
|
html: longText(v.string()),
|
|
71
71
|
attachmentMetadata: text(v.string()),
|
|
72
72
|
contentHash: stringColumn(identifierSchema),
|
|
73
|
-
scheduledAt: dateTime(v.nullable(
|
|
73
|
+
scheduledAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
74
74
|
status: enumValue(v.picklist(draftStates), draftStates),
|
|
75
75
|
revision: integer(nonNegativeIntegerSchema),
|
|
76
76
|
sequence: integer(nonNegativeIntegerSchema),
|
|
77
77
|
executionLeaseId: stringColumn(v.nullable(identifierSchema), false),
|
|
78
|
-
executionLeaseExpiresAt: dateTime(v.nullable(
|
|
78
|
+
executionLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
79
79
|
errorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
80
80
|
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
81
81
|
fromAlias: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'aliases', 'manyToOne', 'setNull'),
|
|
@@ -95,13 +95,13 @@ export const threadsTable = defineAppwriteTable({
|
|
|
95
95
|
accountAssignmentKey: identifier(identifierSchema),
|
|
96
96
|
providerId: stringColumn(identifierSchema),
|
|
97
97
|
subject: text(v.nullable(v.string()), false),
|
|
98
|
-
firstMessageAt: dateTime(v.nullable(
|
|
98
|
+
firstMessageAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
99
99
|
senderEmail: stringColumn(v.nullable(mailboxAddressSchema), false, 320),
|
|
100
100
|
senderName: stringColumn(v.nullable(identifierSchema), false),
|
|
101
101
|
preview: text(v.nullable(v.string()), false),
|
|
102
102
|
participants: text(v.nullable(v.string()), false),
|
|
103
103
|
labelIds: stringArray(v.array(identifierSchema), true, 36),
|
|
104
|
-
latestMessageAt: dateTime(
|
|
104
|
+
latestMessageAt: dateTime(isoTimestampSchema),
|
|
105
105
|
latestMessageId: identifier(identifierSchema),
|
|
106
106
|
messageCount: integer(nonNegativeIntegerSchema),
|
|
107
107
|
hasAttachments: boolean(v.boolean()),
|
|
@@ -112,7 +112,7 @@ export const threadsTable = defineAppwriteTable({
|
|
|
112
112
|
archived: boolean(v.boolean()),
|
|
113
113
|
spam: boolean(v.boolean()),
|
|
114
114
|
trashed: boolean(v.boolean()),
|
|
115
|
-
snoozedUntil: dateTime(v.nullable(
|
|
115
|
+
snoozedUntil: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
116
116
|
revision: integer(nonNegativeIntegerSchema),
|
|
117
117
|
searchText: text(v.nullable(v.string()), false),
|
|
118
118
|
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
@@ -136,7 +136,7 @@ export const threadsTable = defineAppwriteTable({
|
|
|
136
136
|
export const threadLabelsTable = defineAppwriteTable({
|
|
137
137
|
fields: {
|
|
138
138
|
labelAssignmentKey: identifier(identifierSchema),
|
|
139
|
-
latestMessageAt: dateTime(
|
|
139
|
+
latestMessageAt: dateTime(isoTimestampSchema),
|
|
140
140
|
locationCount: integer(nonNegativeIntegerSchema),
|
|
141
141
|
threadAssignmentKey: identifier(identifierSchema),
|
|
142
142
|
label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
|
|
@@ -158,8 +158,8 @@ export const messagesTable = defineAppwriteTable({
|
|
|
158
158
|
sender: text(v.nullable(v.string()), false),
|
|
159
159
|
senderName: text(v.nullable(v.string()), false),
|
|
160
160
|
recipients: text(v.nullable(v.string()), false),
|
|
161
|
-
sentAt: dateTime(
|
|
162
|
-
receivedAt: dateTime(v.nullable(
|
|
161
|
+
sentAt: dateTime(isoTimestampSchema),
|
|
162
|
+
receivedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
163
163
|
preview: text(v.nullable(v.string()), false),
|
|
164
164
|
attachmentMetadata: longText(v.string()),
|
|
165
165
|
htmlFileId: stringColumn(v.nullable(identifierSchema), false),
|