@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
|
@@ -86,11 +86,11 @@ export declare const mailboxSyncStatesTable: {
|
|
|
86
86
|
readonly providerCursor: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
87
87
|
readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
88
88
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
|
|
89
|
-
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
89
|
+
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>>;
|
|
90
90
|
readonly lastEventAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
91
91
|
readonly lastSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
92
92
|
readonly materialisationLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
93
|
-
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
93
|
+
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>>;
|
|
94
94
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
95
95
|
};
|
|
96
96
|
readonly id: "mailbox_sync_states";
|
|
@@ -166,9 +166,9 @@ export declare const jobsTable: {
|
|
|
166
166
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
|
|
167
167
|
readonly attempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
168
168
|
readonly maxAttempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
169
|
-
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
169
|
+
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
170
170
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
171
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
171
|
+
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>>;
|
|
172
172
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
173
173
|
};
|
|
174
174
|
readonly id: "jobs_v2";
|
|
@@ -214,9 +214,9 @@ export declare const pollShardsTable: {
|
|
|
214
214
|
readonly generation: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
215
215
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
|
|
216
216
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
217
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
217
|
+
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>>;
|
|
218
218
|
readonly lastStartedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
219
|
-
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
219
|
+
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
220
220
|
readonly pollingSnapshot: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
221
221
|
readonly scheduledExecutionId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
222
222
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
@@ -319,9 +319,9 @@ export declare const operationalTableInputs: {
|
|
|
319
319
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"], undefined>>;
|
|
320
320
|
readonly attempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
321
321
|
readonly maxAttempts: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
322
|
-
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
322
|
+
readonly nextRunAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
323
323
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
324
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
324
|
+
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>>;
|
|
325
325
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
326
326
|
};
|
|
327
327
|
readonly id: "jobs_v2";
|
|
@@ -438,11 +438,11 @@ export declare const operationalTableInputs: {
|
|
|
438
438
|
readonly providerCursor: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
439
439
|
readonly uidValidity: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>>;
|
|
440
440
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["INITIAL", "SYNCING", "CURRENT", "ERROR"], undefined>>;
|
|
441
|
-
readonly nextPollAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
441
|
+
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>>;
|
|
442
442
|
readonly lastEventAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
443
443
|
readonly lastSyncAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
444
444
|
readonly materialisationLeaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
445
|
-
readonly materialisationLeaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
445
|
+
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>>;
|
|
446
446
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
447
447
|
};
|
|
448
448
|
readonly id: "mailbox_sync_states";
|
|
@@ -474,9 +474,9 @@ export declare const operationalTableInputs: {
|
|
|
474
474
|
readonly generation: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>>;
|
|
475
475
|
readonly state: import("./shared").AppwriteColumnSchema<v.PicklistSchema<readonly ["ACTIVE", "STOPPED", "FAILED"], undefined>>;
|
|
476
476
|
readonly leaseId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
477
|
-
readonly leaseExpiresAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
477
|
+
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>>;
|
|
478
478
|
readonly lastStartedAt: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>>;
|
|
479
|
-
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>>;
|
|
479
|
+
readonly nextStartAt: import("./shared").AppwriteColumnSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>>;
|
|
480
480
|
readonly pollingSnapshot: import("./shared").AppwriteColumnSchema<v.StringSchema<undefined>>;
|
|
481
481
|
readonly scheduledExecutionId: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
482
482
|
readonly errorCode: import("./shared").AppwriteColumnSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/operational.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/operational.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4B5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;CASrC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBjC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BxB,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BpB,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB1B,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;CAatC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASzB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
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,
|
|
3
|
+
import { accountProviders, appwriteColumnDefinitions, appwriteIds, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, commandStates, defineAppwriteTable, identifierSchema, jobStates, labelSpecialUses, mailboxSortKeySchema, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, nonNegativeIntegerSchema, positiveIntegerSchema, pollShardStates, isoTimestampSchema, } from './shared';
|
|
4
4
|
const { bigint, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
5
5
|
export const mailboxSyncCandidatesTable = defineAppwriteTable({
|
|
6
6
|
fields: {
|
|
@@ -13,7 +13,7 @@ export const mailboxSyncCandidatesTable = defineAppwriteTable({
|
|
|
13
13
|
mailboxPriority: integer(nonNegativeIntegerSchema),
|
|
14
14
|
mailboxSortKey: stringColumn(mailboxSortKeySchema, true, 257),
|
|
15
15
|
providerId: stringColumn(identifierSchema),
|
|
16
|
-
receivedAt: dateTime(
|
|
16
|
+
receivedAt: dateTime(isoTimestampSchema),
|
|
17
17
|
specialUse: enumValue(v.nullable(v.picklist(labelSpecialUses)), labelSpecialUses, false),
|
|
18
18
|
uid: bigint(positiveIntegerSchema),
|
|
19
19
|
uidValidity: bigint(positiveIntegerSchema),
|
|
@@ -71,11 +71,11 @@ export const mailboxSyncStatesTable = defineAppwriteTable({
|
|
|
71
71
|
providerCursor: text(v.nullable(v.string()), false),
|
|
72
72
|
uidValidity: stringColumn(v.nullable(v.string()), false),
|
|
73
73
|
state: enumValue(v.picklist(mailboxSyncProvisionedStates), mailboxSyncProvisionedStates),
|
|
74
|
-
nextPollAt: dateTime(v.nullable(
|
|
75
|
-
lastEventAt: dateTime(v.nullable(
|
|
76
|
-
lastSyncAt: dateTime(v.nullable(
|
|
74
|
+
nextPollAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
75
|
+
lastEventAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
76
|
+
lastSyncAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
77
77
|
materialisationLeaseId: identifier(v.nullable(identifierSchema), false),
|
|
78
|
-
materialisationLeaseExpiresAt: dateTime(v.nullable(
|
|
78
|
+
materialisationLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
79
79
|
errorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
80
80
|
},
|
|
81
81
|
id: appwriteIds.tables.mailboxSyncStates,
|
|
@@ -98,7 +98,7 @@ export const commandsTable = defineAppwriteTable({
|
|
|
98
98
|
attempts: integer(nonNegativeIntegerSchema),
|
|
99
99
|
canonicalRevision: integer(v.nullable(nonNegativeIntegerSchema), false),
|
|
100
100
|
errorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
101
|
-
submittedAt: dateTime(
|
|
101
|
+
submittedAt: dateTime(isoTimestampSchema),
|
|
102
102
|
account: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'accounts', 'manyToOne', 'setNull'),
|
|
103
103
|
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
104
104
|
},
|
|
@@ -124,9 +124,9 @@ export const jobsTable = defineAppwriteTable({
|
|
|
124
124
|
state: enumValue(v.picklist(jobStates), jobStates),
|
|
125
125
|
attempts: integer(nonNegativeIntegerSchema),
|
|
126
126
|
maxAttempts: integer(nonNegativeIntegerSchema),
|
|
127
|
-
nextRunAt: dateTime(
|
|
127
|
+
nextRunAt: dateTime(canonicalTimestampSchema),
|
|
128
128
|
leaseId: stringColumn(v.nullable(identifierSchema), false),
|
|
129
|
-
leaseExpiresAt: dateTime(v.nullable(
|
|
129
|
+
leaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
130
130
|
errorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
131
131
|
},
|
|
132
132
|
id: appwriteIds.tables.jobs,
|
|
@@ -149,9 +149,9 @@ export const pollShardsTable = defineAppwriteTable({
|
|
|
149
149
|
generation: integer(nonNegativeIntegerSchema),
|
|
150
150
|
state: enumValue(v.picklist(pollShardStates), pollShardStates),
|
|
151
151
|
leaseId: identifier(v.nullable(identifierSchema), false),
|
|
152
|
-
leaseExpiresAt: dateTime(v.nullable(
|
|
153
|
-
lastStartedAt: dateTime(v.nullable(
|
|
154
|
-
nextStartAt: dateTime(
|
|
152
|
+
leaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
153
|
+
lastStartedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
154
|
+
nextStartAt: dateTime(canonicalTimestampSchema),
|
|
155
155
|
pollingSnapshot: longText(v.string()),
|
|
156
156
|
scheduledExecutionId: identifier(v.nullable(identifierSchema), false),
|
|
157
157
|
errorCode: identifier(v.nullable(identifierSchema), false),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReadonlyDeep } from 'type-fest';
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
+
export { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, nonNegativeIntegerSchema, portSchema, positiveIntegerSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from '../../schemas/scalars';
|
|
3
4
|
export declare const appwriteIds: {
|
|
4
5
|
readonly bucket: "marco-files";
|
|
5
6
|
readonly database: "marco";
|
|
@@ -64,14 +65,8 @@ export type AppwriteMailboxSyncLaneState = (typeof mailboxSyncLaneStates)[number
|
|
|
64
65
|
export type AppwriteMailboxSyncState = (typeof mailboxSyncProvisionedStates)[number];
|
|
65
66
|
export type AppwritePollShardState = (typeof pollShardStates)[number];
|
|
66
67
|
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
68
|
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
69
|
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
70
|
export type AppwriteColumnType = 'bigint' | 'boolean' | 'datetime' | 'enum' | 'integer' | 'longtext' | 'string' | 'text';
|
|
76
71
|
export type AppwriteIndexType = 'fulltext' | 'key' | 'unique';
|
|
77
72
|
export type AppwriteRelationshipOnDelete = 'cascade' | 'setNull';
|
|
@@ -141,5 +136,4 @@ export declare const appwriteColumnDefinitions: {
|
|
|
141
136
|
};
|
|
142
137
|
export declare const defineAppwriteTable: <const TTable extends AppwriteTableInput>(table: TTable) => TTable;
|
|
143
138
|
export declare const messageLocationCoordinateCheck: (location: unknown) => boolean;
|
|
144
|
-
export {};
|
|
145
139
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAE5B,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,UAAU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|
|
2
|
-
|
|
2
|
+
export { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, nonNegativeIntegerSchema, portSchema, positiveIntegerSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from '../../schemas/scalars';
|
|
3
3
|
export const appwriteIds = {
|
|
4
4
|
bucket: 'marco-files',
|
|
5
5
|
database: 'marco',
|
|
@@ -58,14 +58,8 @@ export const oauthReturnUris = ['https://app.marcoapp.io/onboarding/loading'];
|
|
|
58
58
|
export const oauthReturnUriSchema = v.picklist(oauthReturnUris);
|
|
59
59
|
export const pollShardStates = ['ACTIVE', 'STOPPED', 'FAILED'];
|
|
60
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
61
|
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
62
|
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
63
|
export const appwriteColumn = (schema, definition) => Object.assign({}, schema, { definition });
|
|
70
64
|
export const appwriteRelationship = (schema, relatedTable, type = 'manyToOne', onDelete = 'cascade') => Object.assign({}, schema, { definition: { onDelete, relatedTable, type } });
|
|
71
65
|
export const appwriteColumnDefinitions = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export
|
|
2
|
+
export { socketTypeSchema } from './scalars';
|
|
3
3
|
export declare const emailAccount: {
|
|
4
4
|
connectionConfigImapRaw: () => v.ObjectSchema<{
|
|
5
5
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
6
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly imapPort: v.
|
|
8
|
-
readonly imapSocketType: v.
|
|
7
|
+
readonly imapPort: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
8
|
+
readonly imapSocketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
|
|
9
9
|
readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
10
|
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
11
|
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
-
readonly smtpPort: v.
|
|
13
|
-
readonly smtpSocketType: v.
|
|
12
|
+
readonly smtpPort: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
13
|
+
readonly smtpSocketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
|
|
14
14
|
readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
connectionConfigOauth: () => v.ObjectSchema<{
|
|
@@ -19,6 +19,6 @@ export declare const emailAccount: {
|
|
|
19
19
|
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
20
|
}, undefined>;
|
|
21
21
|
imapConnectionStatus: () => v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
|
22
|
-
socketTypeSchema: () => v.
|
|
22
|
+
socketTypeSchema: () => v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=emailAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,
|
|
1
|
+
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE5C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAsBxB,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { IMAP_CONNECTION_STATUSES } from '../types';
|
|
3
|
-
import { number } from './number';
|
|
4
3
|
import { oauth } from './oauth';
|
|
4
|
+
import { portSchema, socketTypeSchema } from './scalars';
|
|
5
5
|
import { string } from './string';
|
|
6
|
-
export
|
|
6
|
+
export { socketTypeSchema } from './scalars';
|
|
7
7
|
export const emailAccount = {
|
|
8
8
|
connectionConfigImapRaw: () => v.object({
|
|
9
9
|
imapHost: string.required(4096),
|
|
10
10
|
imapPassword: string.required(4096),
|
|
11
|
-
imapPort:
|
|
11
|
+
imapPort: portSchema,
|
|
12
12
|
imapSocketType: socketTypeSchema,
|
|
13
13
|
imapUser: string.required(4096),
|
|
14
14
|
smtpHost: string.required(4096),
|
|
15
15
|
smtpPassword: string.required(4096),
|
|
16
|
-
smtpPort:
|
|
16
|
+
smtpPort: portSchema,
|
|
17
17
|
smtpSocketType: socketTypeSchema,
|
|
18
18
|
smtpUser: string.required(4096),
|
|
19
19
|
}),
|