@marcoappio/marco-config 2.0.452 → 2.0.454

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 (50) hide show
  1. package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -1
  2. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/createEndpointConfig.js +1 -0
  4. package/dist/sdk/endpoints/index.d.ts +30 -0
  5. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
  7. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
  8. package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
  9. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
  10. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
  11. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
  12. package/dist/sdk/endpoints/private/index.d.ts +30 -0
  13. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/index.js +2 -0
  15. package/dist/sdk/index.d.ts +30 -0
  16. package/dist/sdk/index.d.ts.map +1 -1
  17. package/dist/types/DraftAttachmentUploadStatus.d.ts +3 -0
  18. package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -0
  19. package/dist/types/DraftAttachmentUploadStatus.js +1 -0
  20. package/dist/types/Endpoint.d.ts +2 -0
  21. package/dist/types/Endpoint.d.ts.map +1 -1
  22. package/dist/types/index.d.ts +1 -0
  23. package/dist/types/index.d.ts.map +1 -1
  24. package/dist/types/index.js +1 -0
  25. package/dist/zero/index.d.ts +30 -90
  26. package/dist/zero/index.d.ts.map +1 -1
  27. package/dist/zero/mutatorSchemas/draft.d.ts +2 -12
  28. package/dist/zero/mutatorSchemas/draft.d.ts.map +1 -1
  29. package/dist/zero/mutatorSchemas/draft.js +2 -11
  30. package/dist/zero/mutatorSchemas/index.d.ts +2 -12
  31. package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
  32. package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
  33. package/dist/zero/mutators/draftMutators/draftMutators.js +2 -16
  34. package/dist/zero/mutators/draftMutators/draftMutators.test.js +2 -41
  35. package/dist/zero/queries/getAccounts.d.ts +4 -11
  36. package/dist/zero/queries/getAccounts.d.ts.map +1 -1
  37. package/dist/zero/queries/getContacts.d.ts +4 -11
  38. package/dist/zero/queries/getContacts.d.ts.map +1 -1
  39. package/dist/zero/queries/getDrafts.d.ts +5 -13
  40. package/dist/zero/queries/getDrafts.d.ts.map +1 -1
  41. package/dist/zero/queries/getThreads.d.ts +4 -11
  42. package/dist/zero/queries/getThreads.d.ts.map +1 -1
  43. package/dist/zero/queries/getUser.d.ts +4 -11
  44. package/dist/zero/queries/getUser.d.ts.map +1 -1
  45. package/dist/zero/queries/index.d.ts +4 -11
  46. package/dist/zero/queries/index.d.ts.map +1 -1
  47. package/dist/zero/schema.d.ts +7 -21
  48. package/dist/zero/schema.d.ts.map +1 -1
  49. package/dist/zero/schema.js +1 -2
  50. 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
  });
@@ -426,10 +426,10 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
426
426
  } & {
427
427
  serverName: string;
428
428
  };
429
- readonly totalChunks: {
430
- type: "number";
429
+ readonly status: {
430
+ type: "string";
431
431
  optional: false;
432
- customType: number;
432
+ customType: "PENDING" | "COMPLETE" | "FAILED";
433
433
  } & {
434
434
  serverName: string;
435
435
  };
@@ -440,13 +440,6 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
440
440
  } & {
441
441
  serverName: string;
442
442
  };
443
- readonly uploadedChunks: {
444
- type: "number";
445
- optional: false;
446
- customType: number;
447
- } & {
448
- serverName: string;
449
- };
450
443
  };
451
444
  primaryKey: readonly [string, ...string[]];
452
445
  } & {
@@ -829,7 +822,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
829
822
  }];
830
823
  attachments: [{
831
824
  readonly sourceField: string[];
832
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
825
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
833
826
  readonly destSchema: "draftAttachment";
834
827
  readonly cardinality: "many";
835
828
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
@@ -435,10 +435,10 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
435
435
  } & {
436
436
  serverName: string;
437
437
  };
438
- readonly totalChunks: {
439
- type: "number";
438
+ readonly status: {
439
+ type: "string";
440
440
  optional: false;
441
- customType: number;
441
+ customType: "PENDING" | "COMPLETE" | "FAILED";
442
442
  } & {
443
443
  serverName: string;
444
444
  };
@@ -449,13 +449,6 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
449
449
  } & {
450
450
  serverName: string;
451
451
  };
452
- readonly uploadedChunks: {
453
- type: "number";
454
- optional: false;
455
- customType: number;
456
- } & {
457
- serverName: string;
458
- };
459
452
  };
460
453
  primaryKey: readonly [string, ...string[]];
461
454
  } & {
@@ -838,7 +831,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
838
831
  }];
839
832
  attachments: [{
840
833
  readonly sourceField: string[];
841
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
834
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
842
835
  readonly destSchema: "draftAttachment";
843
836
  readonly cardinality: "many";
844
837
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;QACd,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAiBD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
@@ -432,10 +432,10 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
432
432
  } & {
433
433
  serverName: string;
434
434
  };
435
- readonly totalChunks: {
436
- type: "number";
435
+ readonly status: {
436
+ type: "string";
437
437
  optional: false;
438
- customType: number;
438
+ customType: "PENDING" | "COMPLETE" | "FAILED";
439
439
  } & {
440
440
  serverName: string;
441
441
  };
@@ -446,13 +446,6 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
446
446
  } & {
447
447
  serverName: string;
448
448
  };
449
- readonly uploadedChunks: {
450
- type: "number";
451
- optional: false;
452
- customType: number;
453
- } & {
454
- serverName: string;
455
- };
456
449
  };
457
450
  primaryKey: readonly [string, ...string[]];
458
451
  } & {
@@ -835,7 +828,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
835
828
  }];
836
829
  attachments: [{
837
830
  readonly sourceField: string[];
838
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
831
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
839
832
  readonly destSchema: "draftAttachment";
840
833
  readonly cardinality: "many";
841
834
  }];
@@ -1003,9 +996,8 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
1003
996
  readonly fileName: string;
1004
997
  readonly id: string;
1005
998
  readonly mimeType: string;
1006
- readonly totalChunks: number;
999
+ readonly status: "PENDING" | "COMPLETE" | "FAILED";
1007
1000
  readonly totalSize: number;
1008
- readonly uploadedChunks: number;
1009
1001
  }[];
1010
1002
  }>>;
1011
1003
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
@@ -438,10 +438,10 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
438
438
  } & {
439
439
  serverName: string;
440
440
  };
441
- readonly totalChunks: {
442
- type: "number";
441
+ readonly status: {
442
+ type: "string";
443
443
  optional: false;
444
- customType: number;
444
+ customType: "PENDING" | "COMPLETE" | "FAILED";
445
445
  } & {
446
446
  serverName: string;
447
447
  };
@@ -452,13 +452,6 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
452
452
  } & {
453
453
  serverName: string;
454
454
  };
455
- readonly uploadedChunks: {
456
- type: "number";
457
- optional: false;
458
- customType: number;
459
- } & {
460
- serverName: string;
461
- };
462
455
  };
463
456
  primaryKey: readonly [string, ...string[]];
464
457
  } & {
@@ -841,7 +834,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
841
834
  }];
842
835
  attachments: [{
843
836
  readonly sourceField: string[];
844
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
837
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
845
838
  readonly destSchema: "draftAttachment";
846
839
  readonly cardinality: "many";
847
840
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
@@ -426,10 +426,10 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
426
426
  } & {
427
427
  serverName: string;
428
428
  };
429
- readonly totalChunks: {
430
- type: "number";
429
+ readonly status: {
430
+ type: "string";
431
431
  optional: false;
432
- customType: number;
432
+ customType: "PENDING" | "COMPLETE" | "FAILED";
433
433
  } & {
434
434
  serverName: string;
435
435
  };
@@ -440,13 +440,6 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
440
440
  } & {
441
441
  serverName: string;
442
442
  };
443
- readonly uploadedChunks: {
444
- type: "number";
445
- optional: false;
446
- customType: number;
447
- } & {
448
- serverName: string;
449
- };
450
443
  };
451
444
  primaryKey: readonly [string, ...string[]];
452
445
  } & {
@@ -829,7 +822,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
829
822
  }];
830
823
  attachments: [{
831
824
  readonly sourceField: string[];
832
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
825
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
833
826
  readonly destSchema: "draftAttachment";
834
827
  readonly cardinality: "many";
835
828
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMnB,CAAA"}
@@ -425,10 +425,10 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
425
425
  } & {
426
426
  serverName: string;
427
427
  };
428
- readonly totalChunks: {
429
- type: "number";
428
+ readonly status: {
429
+ type: "string";
430
430
  optional: false;
431
- customType: number;
431
+ customType: "PENDING" | "COMPLETE" | "FAILED";
432
432
  } & {
433
433
  serverName: string;
434
434
  };
@@ -439,13 +439,6 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
439
439
  } & {
440
440
  serverName: string;
441
441
  };
442
- readonly uploadedChunks: {
443
- type: "number";
444
- optional: false;
445
- customType: number;
446
- } & {
447
- serverName: string;
448
- };
449
442
  };
450
443
  primaryKey: readonly [string, ...string[]];
451
444
  } & {
@@ -828,7 +821,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
828
821
  }];
829
822
  attachments: [{
830
823
  readonly sourceField: string[];
831
- readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalChunks" | "totalSize" | "uploadedChunks")[];
824
+ readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
832
825
  readonly destSchema: "draftAttachment";
833
826
  readonly cardinality: "many";
834
827
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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