@marcoappio/marco-config 2.0.586 → 2.0.587
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 +38 -9
- package/dist/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +23 -7
- package/dist/appwrite/appwrite.test.js +29 -18
- package/dist/appwrite/index.d.ts +1 -1
- package/dist/appwrite/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/index.d.ts +7 -7
- package/dist/schemas/mutators/mutatorSchemas.d.ts +7 -7
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +7 -7
- package/dist/utils/labels/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,8 +12,23 @@ declare const draftEnvelopeSchema: v.SchemaWithPipe<readonly [v.StringSchema<und
|
|
|
12
12
|
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
13
13
|
readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
14
14
|
}, undefined>]>;
|
|
15
|
+
declare const messageAttachmentSchema: v.LooseObjectSchema<{
|
|
16
|
+
readonly fileId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
17
|
+
readonly isAttachment: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
19
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
+
readonly partNumber: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
21
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
declare const messageRecipientSchema: v.StrictObjectSchema<{
|
|
24
|
+
readonly emailAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
|
|
25
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
27
|
+
}, undefined>;
|
|
15
28
|
export type AppwriteDraftAttachment = ReadonlyDeep<v.InferOutput<typeof draftAttachmentSchema>>;
|
|
16
29
|
export type AppwriteDraftEnvelope = ReadonlyDeep<v.InferOutput<typeof draftEnvelopeSchema>>;
|
|
30
|
+
export type AppwriteMessageAttachment = ReadonlyDeep<v.InferOutput<typeof messageAttachmentSchema>>;
|
|
31
|
+
export type AppwriteMessageRecipient = ReadonlyDeep<v.InferOutput<typeof messageRecipientSchema>>;
|
|
17
32
|
declare const rowSchemas: {
|
|
18
33
|
readonly accounts: v.StrictObjectSchema<{
|
|
19
34
|
readonly colour: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
@@ -184,16 +199,18 @@ declare const rowSchemas: {
|
|
|
184
199
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
185
200
|
readonly attachmentMetadata: v.StringSchema<undefined>;
|
|
186
201
|
readonly htmlFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
187
|
-
readonly preview: v.StringSchema<undefined>;
|
|
202
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
188
203
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
189
204
|
readonly rawFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
190
205
|
readonly receivedAt: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
191
|
-
readonly recipients: v.StringSchema<undefined>;
|
|
206
|
+
readonly recipients: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
192
207
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
193
208
|
readonly rfcMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
194
|
-
readonly sender: v.StringSchema<undefined>;
|
|
209
|
+
readonly sender: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
210
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
195
211
|
readonly sentAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
196
212
|
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
213
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
197
214
|
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
198
215
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
199
216
|
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -307,7 +324,6 @@ declare const rowSchemas: {
|
|
|
307
324
|
};
|
|
308
325
|
export declare const appwrite: {
|
|
309
326
|
readonly decodedSchemas: {
|
|
310
|
-
readonly attachmentMetadata: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.UnknownSchema, undefined>]>;
|
|
311
327
|
readonly commandPayload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
|
|
312
328
|
readonly draftAttachments: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.StrictObjectSchema<{
|
|
313
329
|
readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
|
|
@@ -322,8 +338,19 @@ export declare const appwrite: {
|
|
|
322
338
|
readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
323
339
|
}, undefined>]>;
|
|
324
340
|
readonly jobPayload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.CheckAction<unknown, undefined>, v.LooseObjectSchema<{}, undefined>]>;
|
|
325
|
-
readonly
|
|
326
|
-
|
|
341
|
+
readonly messageAttachments: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.LooseObjectSchema<{
|
|
342
|
+
readonly fileId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
343
|
+
readonly isAttachment: v.BooleanSchema<undefined>;
|
|
344
|
+
readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
345
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
346
|
+
readonly partNumber: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
347
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
348
|
+
}, undefined>, undefined>]>;
|
|
349
|
+
readonly messageRecipients: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.ParseJsonAction<string, undefined, undefined>, v.ArraySchema<v.StrictObjectSchema<{
|
|
350
|
+
readonly emailAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
|
|
351
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
352
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
353
|
+
}, undefined>, undefined>]>;
|
|
327
354
|
};
|
|
328
355
|
readonly ids: {
|
|
329
356
|
readonly bucket: "marco-files";
|
|
@@ -521,16 +548,18 @@ export declare const appwrite: {
|
|
|
521
548
|
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
522
549
|
readonly attachmentMetadata: v.StringSchema<undefined>;
|
|
523
550
|
readonly htmlFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
524
|
-
readonly preview: v.StringSchema<undefined>;
|
|
551
|
+
readonly preview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
525
552
|
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
526
553
|
readonly rawFileId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
527
554
|
readonly receivedAt: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
|
|
528
|
-
readonly recipients: v.StringSchema<undefined>;
|
|
555
|
+
readonly recipients: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
529
556
|
readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
530
557
|
readonly rfcMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
531
|
-
readonly sender: v.StringSchema<undefined>;
|
|
558
|
+
readonly sender: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
559
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
532
560
|
readonly sentAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
533
561
|
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
562
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
534
563
|
readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
535
564
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
536
565
|
readonly $createdAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appwrite.d.ts","sourceRoot":"","sources":["../../src/appwrite/appwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"appwrite.d.ts","sourceRoot":"","sources":["../../src/appwrite/appwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,QAAA,MAAM,qBAAqB;;;;;aAKzB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;eASxB,CAAA;AACD,QAAA,MAAM,uBAAuB;;;;;;;aAO3B,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;;aAI1B,CAAA;AAGF,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAA;AAC/F,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAA;AAC3F,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAA;AACnG,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAA;AAmDjG,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoMN,CAAA;AAEV,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWX,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,UAAU,CAAA;AACtD,MAAM,MAAM,WAAW,CAAC,MAAM,SAAS,gBAAgB,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { MESSAGE_RECIPIENT_TYPES } from '../types';
|
|
2
3
|
const identifierSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(255));
|
|
3
4
|
const appwriteRowIdSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(36), v.regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/));
|
|
4
5
|
const timestampSchema = v.pipe(v.string(), v.isoTimestamp());
|
|
5
6
|
const nonNegativeIntegerSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
6
7
|
const colourSchema = v.pipe(v.string(), v.maxLength(64));
|
|
7
8
|
const emailSchema = v.pipe(v.string(), v.email());
|
|
8
|
-
const jsonArrayTextSchema = v.pipe(v.string(), v.parseJson(), v.array(v.unknown()));
|
|
9
9
|
const jsonObjectTextSchema = v.pipe(v.string(), v.parseJson(), v.check(value => !Array.isArray(value)), v.looseObject({}));
|
|
10
10
|
const draftAttachmentSchema = v.strictObject({
|
|
11
11
|
fileId: appwriteRowIdSchema,
|
|
@@ -20,6 +20,21 @@ const draftEnvelopeSchema = v.pipe(v.string(), v.parseJson(), v.strictObject({
|
|
|
20
20
|
subject: v.nullable(v.string()),
|
|
21
21
|
to: v.array(emailSchema),
|
|
22
22
|
}));
|
|
23
|
+
const messageAttachmentSchema = v.looseObject({
|
|
24
|
+
fileId: v.optional(v.nullable(appwriteRowIdSchema)),
|
|
25
|
+
isAttachment: v.boolean(),
|
|
26
|
+
mimeType: identifierSchema,
|
|
27
|
+
name: v.nullable(identifierSchema),
|
|
28
|
+
partNumber: identifierSchema,
|
|
29
|
+
size: nonNegativeIntegerSchema,
|
|
30
|
+
});
|
|
31
|
+
const messageAttachmentsSchema = v.pipe(v.string(), v.parseJson(), v.array(messageAttachmentSchema));
|
|
32
|
+
const messageRecipientSchema = v.strictObject({
|
|
33
|
+
emailAddress: emailSchema,
|
|
34
|
+
name: v.nullable(identifierSchema),
|
|
35
|
+
type: v.picklist(MESSAGE_RECIPIENT_TYPES),
|
|
36
|
+
});
|
|
37
|
+
const messageRecipientsSchema = v.pipe(v.string(), v.parseJson(), v.array(messageRecipientSchema));
|
|
23
38
|
const accountProviders = ['GMAIL', 'OUTLOOK', 'IMAP'];
|
|
24
39
|
const accountStates = ['AWAITING_CONNECTION', 'CONNECTED', 'ERROR', 'DISCONNECTED'];
|
|
25
40
|
const commandStates = ['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED'];
|
|
@@ -181,16 +196,18 @@ const rowSchemas = {
|
|
|
181
196
|
accountId: identifierSchema,
|
|
182
197
|
attachmentMetadata: v.string(),
|
|
183
198
|
htmlFileId: v.nullable(identifierSchema),
|
|
184
|
-
preview: v.string(),
|
|
199
|
+
preview: v.nullable(v.string()),
|
|
185
200
|
providerId: identifierSchema,
|
|
186
201
|
rawFileId: v.nullable(identifierSchema),
|
|
187
202
|
receivedAt: v.nullable(timestampSchema),
|
|
188
|
-
recipients: v.string(),
|
|
203
|
+
recipients: v.nullable(v.string()),
|
|
189
204
|
revision: nonNegativeIntegerSchema,
|
|
190
205
|
rfcMessageId: v.nullable(identifierSchema),
|
|
191
|
-
sender: v.
|
|
206
|
+
sender: v.nullable(emailSchema),
|
|
207
|
+
senderName: v.nullable(identifierSchema),
|
|
192
208
|
sentAt: timestampSchema,
|
|
193
209
|
size: nonNegativeIntegerSchema,
|
|
210
|
+
subject: v.nullable(v.string()),
|
|
194
211
|
threadId: identifierSchema,
|
|
195
212
|
userId: identifierSchema,
|
|
196
213
|
}),
|
|
@@ -261,13 +278,12 @@ const rowSchemas = {
|
|
|
261
278
|
};
|
|
262
279
|
export const appwrite = {
|
|
263
280
|
decodedSchemas: {
|
|
264
|
-
attachmentMetadata: jsonArrayTextSchema,
|
|
265
281
|
commandPayload: jsonObjectTextSchema,
|
|
266
282
|
draftAttachments: draftAttachmentsSchema,
|
|
267
283
|
draftEnvelope: draftEnvelopeSchema,
|
|
268
284
|
jobPayload: jsonObjectTextSchema,
|
|
269
|
-
|
|
270
|
-
|
|
285
|
+
messageAttachments: messageAttachmentsSchema,
|
|
286
|
+
messageRecipients: messageRecipientsSchema,
|
|
271
287
|
},
|
|
272
288
|
ids: appwriteIds,
|
|
273
289
|
rowSchemas,
|
|
@@ -129,12 +129,14 @@ const validRows = {
|
|
|
129
129
|
providerId: 'provider-1',
|
|
130
130
|
rawFileId: null,
|
|
131
131
|
receivedAt: null,
|
|
132
|
-
recipients: '[]',
|
|
132
|
+
recipients: '[{"emailAddress":"recipient@example.com","name":"Recipient","type":"to"}]',
|
|
133
133
|
revision: 0,
|
|
134
134
|
rfcMessageId: null,
|
|
135
|
-
sender: '
|
|
135
|
+
sender: 'marco@example.com',
|
|
136
|
+
senderName: 'Marco',
|
|
136
137
|
sentAt: '2026-07-15T00:00:00.000Z',
|
|
137
138
|
size: 1,
|
|
139
|
+
subject: 'Test subject',
|
|
138
140
|
threadId: 'thread-1',
|
|
139
141
|
userId: 'user-1',
|
|
140
142
|
},
|
|
@@ -268,11 +270,20 @@ describe('appwrite', () => {
|
|
|
268
270
|
}
|
|
269
271
|
const jsonTextTestCases = [
|
|
270
272
|
{
|
|
271
|
-
expected: [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
expected: [
|
|
274
|
+
{
|
|
275
|
+
fileId: 'test-file-id-1',
|
|
276
|
+
isAttachment: true,
|
|
277
|
+
mimeType: 'text/plain',
|
|
278
|
+
name: 'test-file-name-1.txt',
|
|
279
|
+
partNumber: '2',
|
|
280
|
+
size: 1,
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
invalidValue: '[{"fileId":"test-file-id-1"}]',
|
|
284
|
+
name: 'message attachments',
|
|
285
|
+
schema: appwrite.decodedSchemas.messageAttachments,
|
|
286
|
+
value: '[{"fileId":"test-file-id-1","isAttachment":true,"mimeType":"text/plain","name":"test-file-name-1.txt","partNumber":"2","size":1}]',
|
|
276
287
|
},
|
|
277
288
|
{
|
|
278
289
|
expected: [
|
|
@@ -310,18 +321,17 @@ describe('appwrite', () => {
|
|
|
310
321
|
value: '{"threadId":"thread-1"}',
|
|
311
322
|
},
|
|
312
323
|
{
|
|
313
|
-
expected: [
|
|
314
|
-
|
|
324
|
+
expected: [
|
|
325
|
+
{
|
|
326
|
+
emailAddress: 'recipient@example.com',
|
|
327
|
+
name: 'Recipient',
|
|
328
|
+
type: 'to',
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
invalidValue: '[{"emailAddress":"recipient@example.com"}]',
|
|
315
332
|
name: 'message recipients',
|
|
316
333
|
schema: appwrite.decodedSchemas.messageRecipients,
|
|
317
|
-
value: '[]',
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
expected: { email: 'marco@example.com' },
|
|
321
|
-
invalidValue: '[]',
|
|
322
|
-
name: 'message sender',
|
|
323
|
-
schema: appwrite.decodedSchemas.messageSender,
|
|
324
|
-
value: '{"email":"marco@example.com"}',
|
|
334
|
+
value: '[{"emailAddress":"recipient@example.com","name":"Recipient","type":"to"}]',
|
|
325
335
|
},
|
|
326
336
|
];
|
|
327
337
|
for (const testCase of jsonTextTestCases) {
|
|
@@ -329,7 +339,8 @@ describe('appwrite', () => {
|
|
|
329
339
|
const result = v.safeParse(testCase.schema, testCase.value);
|
|
330
340
|
expect(result.success).toBe(true);
|
|
331
341
|
if (result.success) {
|
|
332
|
-
|
|
342
|
+
const output = result.output;
|
|
343
|
+
expect(output).toEqual(testCase.expected);
|
|
333
344
|
}
|
|
334
345
|
expect(v.safeParse(testCase.schema, testCase.invalidValue).success).toBe(false);
|
|
335
346
|
expect(v.safeParse(testCase.schema, '{').success).toBe(false);
|
package/dist/appwrite/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type AppwriteDraftAttachment, type AppwriteDraftEnvelope, type AppwriteRow, type AppwriteRowTable, appwrite, } from './appwrite';
|
|
1
|
+
export { type AppwriteDraftAttachment, type AppwriteDraftEnvelope, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwriteRow, type AppwriteRowTable, appwrite, } from './appwrite';
|
|
2
2
|
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, appwriteAvatar, appwriteCommands, } from './commands';
|
|
3
3
|
export { type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, appwriteFunctions, } from './functions';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,GACT,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,GACT,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,aAAa,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteRow, type AppwriteRowTable, appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
|
|
1
|
+
export { type AppwriteCommandError, type AppwriteCommandKind, type AppwriteCommandPayload, type AppwriteCommandRequest, type AppwriteCommandResponse, type AppwriteCommandState, type AppwriteFunctionContext, type AppwriteFunctionError, type AppwriteFunctionName, type AppwriteFunctionRequest, type AppwriteFunctionResponse, type AppwriteFunctionRoute, type AppwriteFunctionRouteName, type AppwriteMessageAttachment, type AppwriteMessageRecipient, type AppwriteRow, type AppwriteRowTable, appwrite, appwriteAvatar, appwriteCommands, appwriteFunctions, } from './appwrite';
|
|
2
2
|
export { marcoConstants } from './constants';
|
|
3
3
|
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
4
|
export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type JobId, type LabelId, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -592,34 +592,34 @@ export declare const marcoSchemas: {
|
|
|
592
592
|
readonly '~standard': import("valibot").StandardProps<{
|
|
593
593
|
bcc: string[];
|
|
594
594
|
cc: string[];
|
|
595
|
-
subject: string | null;
|
|
596
595
|
to: string[];
|
|
596
|
+
subject: string | null;
|
|
597
597
|
}, {
|
|
598
598
|
bcc: string[];
|
|
599
599
|
cc: string[];
|
|
600
|
-
subject: string | null;
|
|
601
600
|
to: string[];
|
|
601
|
+
subject: string | null;
|
|
602
602
|
}>;
|
|
603
603
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
604
604
|
bcc: string[];
|
|
605
605
|
cc: string[];
|
|
606
|
-
subject: string | null;
|
|
607
606
|
to: string[];
|
|
608
|
-
|
|
607
|
+
subject: string | null;
|
|
608
|
+
}, import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string>>;
|
|
609
609
|
readonly '~types'?: {
|
|
610
610
|
readonly input: {
|
|
611
611
|
bcc: string[];
|
|
612
612
|
cc: string[];
|
|
613
|
-
subject: string | null;
|
|
614
613
|
to: string[];
|
|
614
|
+
subject: string | null;
|
|
615
615
|
};
|
|
616
616
|
readonly output: {
|
|
617
617
|
bcc: string[];
|
|
618
618
|
cc: string[];
|
|
619
|
-
subject: string | null;
|
|
620
619
|
to: string[];
|
|
620
|
+
subject: string | null;
|
|
621
621
|
};
|
|
622
|
-
readonly issue: import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string
|
|
622
|
+
readonly issue: import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").RfcEmailIssue<string>;
|
|
623
623
|
} | undefined;
|
|
624
624
|
};
|
|
625
625
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "DraftId">]>, undefined>;
|
|
@@ -163,34 +163,34 @@ export declare const mutatorSchemas: {
|
|
|
163
163
|
readonly '~standard': v.StandardProps<{
|
|
164
164
|
bcc: string[];
|
|
165
165
|
cc: string[];
|
|
166
|
-
subject: string | null;
|
|
167
166
|
to: string[];
|
|
167
|
+
subject: string | null;
|
|
168
168
|
}, {
|
|
169
169
|
bcc: string[];
|
|
170
170
|
cc: string[];
|
|
171
|
-
subject: string | null;
|
|
172
171
|
to: string[];
|
|
172
|
+
subject: string | null;
|
|
173
173
|
}>;
|
|
174
174
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
175
175
|
bcc: string[];
|
|
176
176
|
cc: string[];
|
|
177
|
-
subject: string | null;
|
|
178
177
|
to: string[];
|
|
179
|
-
|
|
178
|
+
subject: string | null;
|
|
179
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>>;
|
|
180
180
|
readonly '~types'?: {
|
|
181
181
|
readonly input: {
|
|
182
182
|
bcc: string[];
|
|
183
183
|
cc: string[];
|
|
184
|
-
subject: string | null;
|
|
185
184
|
to: string[];
|
|
185
|
+
subject: string | null;
|
|
186
186
|
};
|
|
187
187
|
readonly output: {
|
|
188
188
|
bcc: string[];
|
|
189
189
|
cc: string[];
|
|
190
|
-
subject: string | null;
|
|
191
190
|
to: string[];
|
|
191
|
+
subject: string | null;
|
|
192
192
|
};
|
|
193
|
-
readonly issue: v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string
|
|
193
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>;
|
|
194
194
|
} | undefined;
|
|
195
195
|
};
|
|
196
196
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
@@ -17,34 +17,34 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
17
17
|
readonly '~standard': v.StandardProps<{
|
|
18
18
|
bcc: string[];
|
|
19
19
|
cc: string[];
|
|
20
|
-
subject: string | null;
|
|
21
20
|
to: string[];
|
|
21
|
+
subject: string | null;
|
|
22
22
|
}, {
|
|
23
23
|
bcc: string[];
|
|
24
24
|
cc: string[];
|
|
25
|
-
subject: string | null;
|
|
26
25
|
to: string[];
|
|
26
|
+
subject: string | null;
|
|
27
27
|
}>;
|
|
28
28
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
29
29
|
bcc: string[];
|
|
30
30
|
cc: string[];
|
|
31
|
-
subject: string | null;
|
|
32
31
|
to: string[];
|
|
33
|
-
|
|
32
|
+
subject: string | null;
|
|
33
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>>;
|
|
34
34
|
readonly '~types'?: {
|
|
35
35
|
readonly input: {
|
|
36
36
|
bcc: string[];
|
|
37
37
|
cc: string[];
|
|
38
|
-
subject: string | null;
|
|
39
38
|
to: string[];
|
|
39
|
+
subject: string | null;
|
|
40
40
|
};
|
|
41
41
|
readonly output: {
|
|
42
42
|
bcc: string[];
|
|
43
43
|
cc: string[];
|
|
44
|
-
subject: string | null;
|
|
45
44
|
to: string[];
|
|
45
|
+
subject: string | null;
|
|
46
46
|
};
|
|
47
|
-
readonly issue: v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string
|
|
47
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>;
|
|
48
48
|
} | undefined;
|
|
49
49
|
};
|
|
50
50
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|