@marcoappio/marco-config 2.0.451 → 2.0.453

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/sdk/endpoints/index.d.ts +30 -0
  2. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
  4. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
  5. package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
  6. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
  7. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
  8. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +17 -0
  9. package/dist/sdk/endpoints/private/index.d.ts +30 -0
  10. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/private/index.js +2 -0
  12. package/dist/sdk/index.d.ts +30 -0
  13. package/dist/sdk/index.d.ts.map +1 -1
  14. package/dist/types/DraftAttachmentUploadStatus.d.ts +3 -0
  15. package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -0
  16. package/dist/types/DraftAttachmentUploadStatus.js +1 -0
  17. package/dist/types/index.d.ts +1 -0
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/index.js +1 -0
  20. package/dist/zero/index.d.ts +187 -174
  21. package/dist/zero/index.d.ts.map +1 -1
  22. package/dist/zero/mutatorSchemas/draft.d.ts +2 -12
  23. package/dist/zero/mutatorSchemas/draft.d.ts.map +1 -1
  24. package/dist/zero/mutatorSchemas/draft.js +2 -11
  25. package/dist/zero/mutatorSchemas/index.d.ts +2 -12
  26. package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
  27. package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
  28. package/dist/zero/mutators/draftMutators/draftMutators.js +2 -16
  29. package/dist/zero/mutators/draftMutators/draftMutators.test.js +2 -41
  30. package/dist/zero/mutators/threadMutators/threadMutators.d.ts +3 -1
  31. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
  32. package/dist/zero/mutators/threadMutators/threadMutators.js +31 -24
  33. package/dist/zero/mutators/threadMutators/threadMutators.test.js +12 -12
  34. package/dist/zero/queries/getAccounts.d.ts +28 -24
  35. package/dist/zero/queries/getAccounts.d.ts.map +1 -1
  36. package/dist/zero/queries/getContacts.d.ts +27 -24
  37. package/dist/zero/queries/getContacts.d.ts.map +1 -1
  38. package/dist/zero/queries/getDrafts.d.ts +28 -26
  39. package/dist/zero/queries/getDrafts.d.ts.map +1 -1
  40. package/dist/zero/queries/getThreads.d.ts +28 -24
  41. package/dist/zero/queries/getThreads.d.ts.map +1 -1
  42. package/dist/zero/queries/getUser.d.ts +28 -24
  43. package/dist/zero/queries/getUser.d.ts.map +1 -1
  44. package/dist/zero/queries/index.d.ts +27 -24
  45. package/dist/zero/queries/index.d.ts.map +1 -1
  46. package/dist/zero/schema.d.ts +46 -40
  47. package/dist/zero/schema.d.ts.map +1 -1
  48. package/dist/zero/schema.js +5 -4
  49. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAM,CAAA;AAEV,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
@@ -13,9 +13,8 @@ export declare const draftMutatorSchemas: {
13
13
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
14
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
- readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
16
+ readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
17
17
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
18
- readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
19
18
  }, undefined>;
20
19
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
20
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -29,9 +28,8 @@ export declare const draftMutatorSchemas: {
29
28
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
29
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
30
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
- readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
31
+ readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
33
32
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
34
- readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
35
33
  }, undefined>, undefined>;
36
34
  readonly body: v.ObjectSchema<{
37
35
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -150,13 +148,5 @@ export declare const draftMutatorSchemas: {
150
148
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
151
149
  }, undefined>;
152
150
  };
153
- readonly uploadAttachmentChunk: {
154
- readonly delta: v.ObjectSchema<{
155
- readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
156
- readonly chunk: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
157
- readonly chunkIndex: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
158
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
159
- }, undefined>;
160
- };
161
151
  };
162
152
  //# sourceMappingURL=draft.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwD5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEtB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuD5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDtB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../schemas';
3
- import { DRAFT_STATUSES, DRAFT_TYPES } from '../../types';
3
+ import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../../types';
4
4
  const draftStatusSchema = v.picklist(DRAFT_STATUSES);
5
5
  const draftTypeSchema = v.picklist(DRAFT_TYPES);
6
6
  const draftBodySchema = v.object({
@@ -15,9 +15,8 @@ const draftAttachmentSchema = v.object({
15
15
  fileName: marcoSchemas.string.required(),
16
16
  id: marcoSchemas.string.required(),
17
17
  mimeType: marcoSchemas.string.required(),
18
- totalChunks: marcoSchemas.number.positiveInteger(),
18
+ status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
19
19
  totalSize: marcoSchemas.number.positiveInteger(),
20
- uploadedChunks: marcoSchemas.number.positiveInteger(),
21
20
  });
22
21
  const draftScheduleSchema = v.union([
23
22
  v.object({
@@ -103,12 +102,4 @@ export const draftMutatorSchemas = {
103
102
  updatedAt: marcoSchemas.number.positiveInteger(),
104
103
  }),
105
104
  },
106
- uploadAttachmentChunk: {
107
- delta: v.object({
108
- attachmentId: marcoSchemas.string.required(),
109
- chunk: v.pipe(v.string(), v.base64()),
110
- chunkIndex: marcoSchemas.number.positiveInteger(),
111
- id: marcoSchemas.string.required(),
112
- }),
113
- },
114
105
  };
@@ -91,9 +91,8 @@ export declare const zeroMutatorSchemas: {
91
91
  readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
92
92
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
93
93
  readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
94
- readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
94
+ readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
95
95
  readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
96
- readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
97
96
  }, undefined>;
98
97
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
99
98
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -107,9 +106,8 @@ export declare const zeroMutatorSchemas: {
107
106
  readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
108
107
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
109
108
  readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
110
- readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
109
+ readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
111
110
  readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
112
- readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
113
111
  }, undefined>, undefined>;
114
112
  readonly body: import("valibot").ObjectSchema<{
115
113
  readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -228,14 +226,6 @@ export declare const zeroMutatorSchemas: {
228
226
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
229
227
  }, undefined>;
230
228
  };
231
- readonly uploadAttachmentChunk: {
232
- readonly delta: import("valibot").ObjectSchema<{
233
- readonly attachmentId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
234
- readonly chunk: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").Base64Action<string, undefined>]>;
235
- readonly chunkIndex: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
236
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
237
- }, undefined>;
238
- };
239
229
  };
240
230
  readonly thread: {
241
231
  readonly addLabel: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"draftMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/draftMutators/draftMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,MAAM,MAAM,qBAAqB,GAAG;KACjC,CAAC,IAAI,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CACzC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KACzD,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,aACpB,QAAQ,GAAG,SAAS,cAClB,qBAAqB,KAChC,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAwLvC,CAAA"}
1
+ {"version":3,"file":"draftMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/draftMutators/draftMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,MAAM,MAAM,qBAAqB,GAAG;KACjC,CAAC,IAAI,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CACzC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KACzD,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,aACpB,QAAQ,GAAG,SAAS,cAClB,qBAAqB,KAChC,UAAU,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAmKvC,CAAA"}
@@ -17,9 +17,8 @@ export const createDraftMutators = (authData, callbacks) => ({
17
17
  fileName: args.attachment.fileName,
18
18
  id: args.attachment.id,
19
19
  mimeType: args.attachment.mimeType,
20
- totalChunks: args.attachment.totalChunks,
20
+ status: args.attachment.status,
21
21
  totalSize: args.attachment.totalSize,
22
- uploadedChunks: args.attachment.uploadedChunks,
23
22
  });
24
23
  await tx.mutate.draft.update({
25
24
  id: args.id,
@@ -59,9 +58,8 @@ export const createDraftMutators = (authData, callbacks) => ({
59
58
  fileName: attachment.fileName,
60
59
  id: attachment.id,
61
60
  mimeType: attachment.mimeType,
62
- totalChunks: attachment.totalChunks,
61
+ status: attachment.status,
63
62
  totalSize: attachment.totalSize,
64
- uploadedChunks: attachment.uploadedChunks,
65
63
  });
66
64
  }
67
65
  callbacks?.createDraft?.(args);
@@ -147,16 +145,4 @@ export const createDraftMutators = (authData, callbacks) => ({
147
145
  });
148
146
  callbacks?.setFrom?.(args);
149
147
  },
150
- uploadAttachmentChunk: async (tx, args) => {
151
- const attachment = await tx.query.draftAttachment.where('id', args.attachmentId).one().run();
152
- if (!attachment) {
153
- throw new Error(MutationError.ENTITY_NOT_FOUND);
154
- }
155
- const uploadedChunks = Math.max(typeof attachment.uploadedChunks === 'number' ? attachment.uploadedChunks : 0, args.chunkIndex + 1);
156
- await tx.mutate.draftAttachment.update({
157
- id: args.attachmentId,
158
- uploadedChunks,
159
- });
160
- callbacks?.uploadAttachmentChunk?.(args);
161
- },
162
148
  });
@@ -127,9 +127,8 @@ describe('draftMutators', () => {
127
127
  fileName: 'test-document.pdf',
128
128
  id: 'test-attachment-id-1',
129
129
  mimeType: 'application/pdf',
130
- totalChunks: 5,
130
+ status: 'PENDING',
131
131
  totalSize: 1024000,
132
- uploadedChunks: 0,
133
132
  },
134
133
  id: 'test-draft-id-1',
135
134
  updatedAt: 3_000,
@@ -140,9 +139,8 @@ describe('draftMutators', () => {
140
139
  fileName: 'test-document.pdf',
141
140
  id: 'test-attachment-id-1',
142
141
  mimeType: 'application/pdf',
143
- totalChunks: 5,
142
+ status: 'PENDING',
144
143
  totalSize: 1024000,
145
- uploadedChunks: 0,
146
144
  });
147
145
  expect(draftUpdate).toHaveBeenCalledWith({
148
146
  id: 'test-draft-id-1',
@@ -350,41 +348,4 @@ describe('draftMutators', () => {
350
348
  });
351
349
  });
352
350
  });
353
- describe('uploadAttachmentChunk', () => {
354
- it('uploads attachment chunk', async () => {
355
- const attachmentRecord = {
356
- id: 'test-attachment-id-1',
357
- uploadedChunks: 2,
358
- };
359
- const run = mock(async () => attachmentRecord);
360
- const one = mock(() => ({ run }));
361
- const where = mock(() => ({ one }));
362
- const draftAttachmentUpdate = mock(async () => { });
363
- const transaction = {
364
- mutate: {
365
- draftAttachment: {
366
- delete: mock(async () => { }),
367
- insert: mock(async () => { }),
368
- update: draftAttachmentUpdate,
369
- },
370
- },
371
- query: {
372
- draftAttachment: {
373
- where,
374
- },
375
- },
376
- };
377
- const mutators = createMutators();
378
- await mutators.draft.uploadAttachmentChunk(transaction, {
379
- attachmentId: 'test-attachment-id-1',
380
- chunk: 'dGVzdC1jaHVuaw==',
381
- chunkIndex: 3,
382
- id: 'test-draft-id-1',
383
- });
384
- expect(draftAttachmentUpdate).toHaveBeenCalledWith({
385
- id: 'test-attachment-id-1',
386
- uploadedChunks: 4,
387
- });
388
- });
389
- });
390
351
  });
@@ -1,10 +1,12 @@
1
+ import type { Transaction } from '@rocicorp/zero';
1
2
  import type * as v from 'valibot';
2
3
  import type { IMAPSourceLocation, LabelSpecialUse } from '../../../types';
3
4
  import { type AuthData, type HandlerMap } from '../../../types';
4
5
  import type { ZeroMutatorSchemas } from '../../../zero/mutatorSchemas';
6
+ import type { MarcoZeroSchema } from '../../../zero/schema';
5
7
  export type ThreadMutatorCallbacks = {
6
8
  [K in keyof ZeroMutatorSchemas['thread']]?: (args: v.InferOutput<ZeroMutatorSchemas['thread'][K]['delta']>) => Promise<void>;
7
9
  };
8
- export declare const setSystemLabel: (tx: any, threadId: string, targetSpecialUse: LabelSpecialUse) => Promise<IMAPSourceLocation[]>;
10
+ export declare const setSystemLabel: (tx: Transaction<MarcoZeroSchema>, threadId: string, targetSpecialUse: LabelSpecialUse) => Promise<IMAPSourceLocation[]>;
9
11
  export declare const createThreadMutators: (_authData: AuthData | undefined, callbacks?: ThreadMutatorCallbacks) => HandlerMap<ZeroMutatorSchemas["thread"]>;
10
12
  //# sourceMappingURL=threadMutators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,OACrB,GAAG,YACG,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CA+D9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAiLxC,CAAA"}
1
+ {"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,OACrB,WAAW,CAAC,eAAe,CAAC,YACtB,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CAoE9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAoLxC,CAAA"}
@@ -4,49 +4,53 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
4
4
  if (!thread) {
5
5
  throw new Error(MutationError.ENTITY_NOT_FOUND);
6
6
  }
7
- const { accountId } = thread;
8
7
  const targetLabel = await tx.query.accountLabel
9
- .where('accountId', accountId)
8
+ .where('accountId', thread.accountId)
10
9
  .where('specialUse', targetSpecialUse)
11
10
  .one()
12
11
  .run();
13
12
  if (!targetLabel) {
14
13
  throw new Error(MutationError.ENTITY_NOT_FOUND);
15
14
  }
16
- const allThreadLabels = await tx.query.threadLabel.where('threadId', threadId).run();
15
+ const threadLabels = await tx.query.threadLabel.where('threadId', threadId).run();
17
16
  const sourceLocations = [];
17
+ const labelsToDelete = [];
18
18
  let hasTarget = false;
19
- for (const label of allThreadLabels) {
19
+ for (const label of threadLabels) {
20
20
  if (label.labelId === targetLabel.id) {
21
21
  hasTarget = true;
22
+ continue;
22
23
  }
23
- else {
24
- if (label.uid !== null &&
25
- label.uid !== undefined &&
26
- label.uidValidity !== null &&
27
- label.uidValidity !== undefined) {
28
- sourceLocations.push({
29
- labelId: label.labelId,
30
- threadMessageId: label.threadMessageId,
31
- uid: label.uid,
32
- uidValidity: label.uidValidity,
33
- });
34
- }
35
- await tx.mutate.threadLabel.delete({
36
- accountId,
24
+ labelsToDelete.push(label);
25
+ if (label.uid > 0 && label.uidValidity > 0) {
26
+ sourceLocations.push({
37
27
  labelId: label.labelId,
38
28
  threadMessageId: label.threadMessageId,
29
+ uid: label.uid,
30
+ uidValidity: label.uidValidity,
39
31
  });
40
32
  }
41
33
  }
34
+ for (const label of labelsToDelete) {
35
+ await tx.mutate.threadLabel.delete({
36
+ accountId: thread.accountId,
37
+ labelId: label.labelId,
38
+ threadMessageId: label.threadMessageId,
39
+ });
40
+ }
42
41
  if (!hasTarget) {
43
42
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
44
- for (const message of messages) {
43
+ const baseTimestamp = Date.now();
44
+ for (let i = 0; i < messages.length; i++) {
45
+ const message = messages[i];
45
46
  await tx.mutate.threadLabel.insert({
46
- accountId,
47
+ accountId: thread.accountId,
47
48
  labelId: targetLabel.id,
49
+ lastSyncedAt: 0,
48
50
  threadId,
49
51
  threadMessageId: message.id,
52
+ uid: -(baseTimestamp + i),
53
+ uidValidity: targetLabel.uidValidity ?? 0,
50
54
  });
51
55
  }
52
56
  }
@@ -68,6 +72,8 @@ export const createThreadMutators = (_authData, callbacks) => ({
68
72
  throw new Error(MutationError.ENTITY_NOT_FOUND);
69
73
  }
70
74
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
75
+ const baseTimestamp = Date.now();
76
+ let insertIndex = 0;
71
77
  for (const message of messages) {
72
78
  const existing = await tx.query.threadLabel
73
79
  .where('threadMessageId', message.id)
@@ -78,9 +84,13 @@ export const createThreadMutators = (_authData, callbacks) => ({
78
84
  await tx.mutate.threadLabel.insert({
79
85
  accountId: thread.accountId,
80
86
  labelId: label.id,
87
+ lastSyncedAt: 0,
81
88
  threadId,
82
89
  threadMessageId: message.id,
90
+ uid: -(baseTimestamp + insertIndex),
91
+ uidValidity: label.uidValidity ?? 0,
83
92
  });
93
+ insertIndex++;
84
94
  }
85
95
  }
86
96
  }
@@ -114,10 +124,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
114
124
  throw new Error(MutationError.ENTITY_NOT_FOUND);
115
125
  }
116
126
  for (const existing of existingLabels) {
117
- if (existing.uid !== null &&
118
- existing.uid !== undefined &&
119
- existing.uidValidity !== null &&
120
- existing.uidValidity !== undefined) {
127
+ if (existing.uid > 0 && existing.uidValidity > 0) {
121
128
  allSourceLocations.push({
122
129
  labelId: existing.labelId,
123
130
  threadMessageId: existing.threadMessageId,
@@ -56,18 +56,18 @@ describe('threadMutators', () => {
56
56
  threadIds: ['test-thread-id-1'],
57
57
  });
58
58
  expect(threadLabelInsert).toHaveBeenCalledTimes(2);
59
- expect(threadLabelInsert).toHaveBeenCalledWith({
59
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
60
60
  accountId: 'test-account-id-1',
61
61
  labelId: 'test-label-id-1',
62
62
  threadId: 'test-thread-id-1',
63
63
  threadMessageId: 'test-message-id-1',
64
- });
65
- expect(threadLabelInsert).toHaveBeenCalledWith({
64
+ }));
65
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
66
66
  accountId: 'test-account-id-1',
67
67
  labelId: 'test-label-id-1',
68
68
  threadId: 'test-thread-id-1',
69
69
  threadMessageId: 'test-message-id-2',
70
- });
70
+ }));
71
71
  });
72
72
  });
73
73
  describe('delete', () => {
@@ -257,12 +257,12 @@ describe('threadMutators', () => {
257
257
  labelId: 'test-inbox-label-id',
258
258
  threadMessageId: 'test-message-id-1',
259
259
  });
260
- expect(threadLabelInsert).toHaveBeenCalledWith({
260
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
261
261
  accountId: 'test-account-id-1',
262
262
  labelId: 'test-archive-label-id',
263
263
  threadId: 'test-thread-id-1',
264
264
  threadMessageId: 'test-message-id-1',
265
- });
265
+ }));
266
266
  });
267
267
  });
268
268
  describe('setFlagged', () => {
@@ -346,12 +346,12 @@ describe('threadMutators', () => {
346
346
  labelId: 'test-archive-label-id',
347
347
  threadMessageId: 'test-message-id-1',
348
348
  });
349
- expect(threadLabelInsert).toHaveBeenCalledWith({
349
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
350
350
  accountId: 'test-account-id-1',
351
351
  labelId: 'test-inbox-label-id',
352
352
  threadId: 'test-thread-id-1',
353
353
  threadMessageId: 'test-message-id-1',
354
- });
354
+ }));
355
355
  });
356
356
  });
357
357
  describe('setSeen', () => {
@@ -431,12 +431,12 @@ describe('threadMutators', () => {
431
431
  sourceLocations: [],
432
432
  threadIds: ['test-thread-id-1'],
433
433
  });
434
- expect(threadLabelInsert).toHaveBeenCalledWith({
434
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
435
435
  accountId: 'test-account-id-1',
436
436
  labelId: 'test-spam-label-id',
437
437
  threadId: 'test-thread-id-1',
438
438
  threadMessageId: 'test-message-id-1',
439
- });
439
+ }));
440
440
  });
441
441
  });
442
442
  describe('setTrash', () => {
@@ -489,12 +489,12 @@ describe('threadMutators', () => {
489
489
  sourceLocations: [],
490
490
  threadIds: ['test-thread-id-1'],
491
491
  });
492
- expect(threadLabelInsert).toHaveBeenCalledWith({
492
+ expect(threadLabelInsert).toHaveBeenCalledWith(expect.objectContaining({
493
493
  accountId: 'test-account-id-1',
494
494
  labelId: 'test-trash-label-id',
495
495
  threadId: 'test-thread-id-1',
496
496
  threadMessageId: 'test-message-id-1',
497
- });
497
+ }));
498
498
  });
499
499
  });
500
500
  });
@@ -237,6 +237,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
237
237
  } & {
238
238
  serverName: string;
239
239
  };
240
+ readonly uidValidity: {
241
+ type: "number";
242
+ optional: false;
243
+ customType: number;
244
+ } & {
245
+ serverName: string;
246
+ };
240
247
  };
241
248
  primaryKey: readonly [string, ...string[]];
242
249
  } & {
@@ -419,10 +426,10 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
419
426
  } & {
420
427
  serverName: string;
421
428
  };
422
- readonly totalChunks: {
423
- type: "number";
429
+ readonly status: {
430
+ type: "string";
424
431
  optional: false;
425
- customType: number;
432
+ customType: "PENDING" | "COMPLETE" | "FAILED";
426
433
  } & {
427
434
  serverName: string;
428
435
  };
@@ -433,13 +440,6 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
433
440
  } & {
434
441
  serverName: string;
435
442
  };
436
- readonly uploadedChunks: {
437
- type: "number";
438
- optional: false;
439
- customType: number;
440
- } & {
441
- serverName: string;
442
- };
443
443
  };
444
444
  primaryKey: readonly [string, ...string[]];
445
445
  } & {
@@ -511,6 +511,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
511
511
  } & {
512
512
  serverName: string;
513
513
  };
514
+ readonly lastSyncedAt: {
515
+ type: "number";
516
+ optional: false;
517
+ customType: number;
518
+ } & {
519
+ serverName: string;
520
+ };
514
521
  readonly threadId: {
515
522
  type: "string";
516
523
  optional: false;
@@ -525,19 +532,15 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
525
532
  } & {
526
533
  serverName: string;
527
534
  };
528
- readonly uid: Omit<{
535
+ readonly uid: {
529
536
  type: "number";
530
537
  optional: false;
531
538
  customType: number;
532
- }, "optional"> & {
533
- optional: true;
534
539
  };
535
- readonly uidValidity: Omit<{
540
+ readonly uidValidity: {
536
541
  type: "number";
537
542
  optional: false;
538
543
  customType: number;
539
- }, "optional"> & {
540
- optional: true;
541
544
  } & {
542
545
  serverName: string;
543
546
  };
@@ -760,7 +763,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
760
763
  }];
761
764
  labels: [{
762
765
  readonly sourceField: string[];
763
- readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
766
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
764
767
  readonly destSchema: "accountLabel";
765
768
  readonly cardinality: "many";
766
769
  }];
@@ -800,7 +803,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
800
803
  }];
801
804
  threads: [{
802
805
  readonly sourceField: string[];
803
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
806
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
804
807
  readonly destSchema: "threadLabel";
805
808
  readonly cardinality: "many";
806
809
  }, {
@@ -819,7 +822,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
819
822
  }];
820
823
  attachments: [{
821
824
  readonly sourceField: string[];
822
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
825
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
823
826
  readonly destSchema: "draftAttachment";
824
827
  readonly cardinality: "many";
825
828
  }];
@@ -861,12 +864,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
861
864
  }];
862
865
  labels: [{
863
866
  readonly sourceField: string[];
864
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
867
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
865
868
  readonly destSchema: "threadLabel";
866
869
  readonly cardinality: "many";
867
870
  }, {
868
871
  readonly sourceField: string[];
869
- readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
872
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
870
873
  readonly destSchema: "accountLabel";
871
874
  readonly cardinality: "many";
872
875
  }];
@@ -886,7 +889,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
886
889
  readonly threadLabel: {
887
890
  label: [{
888
891
  readonly sourceField: string[];
889
- readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
892
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
890
893
  readonly destSchema: "accountLabel";
891
894
  readonly cardinality: "one";
892
895
  }];
@@ -912,12 +915,12 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
912
915
  }];
913
916
  labels: [{
914
917
  readonly sourceField: string[];
915
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
918
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
916
919
  readonly destSchema: "threadLabel";
917
920
  readonly cardinality: "many";
918
921
  }, {
919
922
  readonly sourceField: string[];
920
- readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
923
+ readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
921
924
  readonly destSchema: "accountLabel";
922
925
  readonly cardinality: "many";
923
926
  }];
@@ -984,6 +987,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
984
987
  readonly id: string;
985
988
  readonly path: string;
986
989
  readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
990
+ readonly uidValidity: number;
987
991
  }[];
988
992
  }>>;
989
993
  //# sourceMappingURL=getAccounts.d.ts.map