@channel.io/app-sdk-core 0.3.0 → 0.4.0

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 (41) hide show
  1. package/dist/extensions/apikey.d.ts +94 -113
  2. package/dist/extensions/apikey.d.ts.map +1 -1
  3. package/dist/extensions/apikey.js +26 -25
  4. package/dist/extensions/apikey.js.map +1 -1
  5. package/dist/extensions/index.d.ts +2 -1
  6. package/dist/extensions/index.d.ts.map +1 -1
  7. package/dist/extensions/index.js +3 -1
  8. package/dist/extensions/index.js.map +1 -1
  9. package/dist/extensions/interfaces/alftask.d.ts +2 -2
  10. package/dist/extensions/interfaces/alftask.d.ts.map +1 -1
  11. package/dist/extensions/interfaces/apikey.d.ts +23 -33
  12. package/dist/extensions/interfaces/apikey.d.ts.map +1 -1
  13. package/dist/extensions/interfaces/apikey.js +2 -2
  14. package/dist/extensions/interfaces/apikey.js.map +1 -1
  15. package/dist/extensions/interfaces/calendar.d.ts +7 -7
  16. package/dist/extensions/interfaces/calendar.d.ts.map +1 -1
  17. package/dist/extensions/interfaces/calendar.js.map +1 -1
  18. package/dist/extensions/interfaces/command.d.ts +3 -3
  19. package/dist/extensions/interfaces/command.d.ts.map +1 -1
  20. package/dist/extensions/interfaces/customtab.d.ts +3 -3
  21. package/dist/extensions/interfaces/customtab.d.ts.map +1 -1
  22. package/dist/extensions/interfaces/index.d.ts +1 -0
  23. package/dist/extensions/interfaces/index.d.ts.map +1 -1
  24. package/dist/extensions/interfaces/index.js +1 -0
  25. package/dist/extensions/interfaces/index.js.map +1 -1
  26. package/dist/extensions/interfaces/oauth.d.ts +5 -18
  27. package/dist/extensions/interfaces/oauth.d.ts.map +1 -1
  28. package/dist/extensions/interfaces/oauth.js.map +1 -1
  29. package/dist/extensions/interfaces/order.d.ts +113 -0
  30. package/dist/extensions/interfaces/order.d.ts.map +1 -0
  31. package/dist/extensions/interfaces/order.js +13 -0
  32. package/dist/extensions/interfaces/order.js.map +1 -0
  33. package/dist/extensions/interfaces/widget.d.ts +3 -3
  34. package/dist/extensions/interfaces/widget.d.ts.map +1 -1
  35. package/dist/extensions/order.d.ts +1076 -0
  36. package/dist/extensions/order.d.ts.map +1 -0
  37. package/dist/extensions/order.js +114 -0
  38. package/dist/extensions/order.js.map +1 -0
  39. package/dist/types/context.d.ts +28 -15
  40. package/dist/types/context.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -0,0 +1,1076 @@
1
+ import { z } from "zod";
2
+ export declare const AddressSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ phoneNumber: z.ZodOptional<z.ZodString>;
5
+ email: z.ZodOptional<z.ZodString>;
6
+ cellPhoneNumber: z.ZodOptional<z.ZodString>;
7
+ zipcode: z.ZodOptional<z.ZodString>;
8
+ address1: z.ZodOptional<z.ZodString>;
9
+ address2: z.ZodOptional<z.ZodString>;
10
+ shippingMessage: z.ZodOptional<z.ZodString>;
11
+ country: z.ZodOptional<z.ZodString>;
12
+ city: z.ZodOptional<z.ZodString>;
13
+ province: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name?: string | undefined;
16
+ email?: string | undefined;
17
+ phoneNumber?: string | undefined;
18
+ cellPhoneNumber?: string | undefined;
19
+ zipcode?: string | undefined;
20
+ address1?: string | undefined;
21
+ address2?: string | undefined;
22
+ shippingMessage?: string | undefined;
23
+ country?: string | undefined;
24
+ city?: string | undefined;
25
+ province?: string | undefined;
26
+ }, {
27
+ name?: string | undefined;
28
+ email?: string | undefined;
29
+ phoneNumber?: string | undefined;
30
+ cellPhoneNumber?: string | undefined;
31
+ zipcode?: string | undefined;
32
+ address1?: string | undefined;
33
+ address2?: string | undefined;
34
+ shippingMessage?: string | undefined;
35
+ country?: string | undefined;
36
+ city?: string | undefined;
37
+ province?: string | undefined;
38
+ }>;
39
+ export type Address = z.infer<typeof AddressSchema>;
40
+ export declare const BankAccountSchema: z.ZodObject<{
41
+ bankName: z.ZodString;
42
+ accountNo: z.ZodString;
43
+ accountHolder: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ bankName: string;
46
+ accountNo: string;
47
+ accountHolder: string;
48
+ }, {
49
+ bankName: string;
50
+ accountNo: string;
51
+ accountHolder: string;
52
+ }>;
53
+ export type BankAccount = z.infer<typeof BankAccountSchema>;
54
+ export declare const DefectInfoSchema: z.ZodObject<{
55
+ description: z.ZodString;
56
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ description: string;
59
+ imageUrls?: string[] | undefined;
60
+ }, {
61
+ description: string;
62
+ imageUrls?: string[] | undefined;
63
+ }>;
64
+ export type DefectInfo = z.infer<typeof DefectInfoSchema>;
65
+ export declare const ClaimReasonSchema: z.ZodObject<{
66
+ type: z.ZodOptional<z.ZodString>;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ type?: string | undefined;
70
+ description?: string | undefined;
71
+ }, {
72
+ type?: string | undefined;
73
+ description?: string | undefined;
74
+ }>;
75
+ export type ClaimReason = z.infer<typeof ClaimReasonSchema>;
76
+ export declare const ClaimabilitySchema: z.ZodObject<{
77
+ cancelable: z.ZodBoolean;
78
+ returnable: z.ZodBoolean;
79
+ exchangeable: z.ZodBoolean;
80
+ shippingAddressChangeable: z.ZodBoolean;
81
+ }, "strip", z.ZodTypeAny, {
82
+ cancelable: boolean;
83
+ returnable: boolean;
84
+ exchangeable: boolean;
85
+ shippingAddressChangeable: boolean;
86
+ }, {
87
+ cancelable: boolean;
88
+ returnable: boolean;
89
+ exchangeable: boolean;
90
+ shippingAddressChangeable: boolean;
91
+ }>;
92
+ export type Claimability = z.infer<typeof ClaimabilitySchema>;
93
+ export declare const ClaimSchema: z.ZodObject<{
94
+ id: z.ZodString;
95
+ extClaimId: z.ZodOptional<z.ZodString>;
96
+ type: z.ZodString;
97
+ state: z.ZodString;
98
+ itemIds: z.ZodArray<z.ZodString, "many">;
99
+ createdAt: z.ZodNumber;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ id: string;
103
+ state: string;
104
+ itemIds: string[];
105
+ createdAt: number;
106
+ extClaimId?: string | undefined;
107
+ }, {
108
+ type: string;
109
+ id: string;
110
+ state: string;
111
+ itemIds: string[];
112
+ createdAt: number;
113
+ extClaimId?: string | undefined;
114
+ }>;
115
+ export type Claim = z.infer<typeof ClaimSchema>;
116
+ export declare const OrderItemSchema: z.ZodObject<{
117
+ id: z.ZodString;
118
+ name: z.ZodString;
119
+ imageUrl: z.ZodOptional<z.ZodString>;
120
+ amount: z.ZodNumber;
121
+ quantity: z.ZodNumber;
122
+ option: z.ZodOptional<z.ZodString>;
123
+ productId: z.ZodOptional<z.ZodString>;
124
+ variantId: z.ZodOptional<z.ZodString>;
125
+ state: z.ZodString;
126
+ shippedAt: z.ZodOptional<z.ZodNumber>;
127
+ deliveredAt: z.ZodOptional<z.ZodNumber>;
128
+ estimatedShipDate: z.ZodOptional<z.ZodNumber>;
129
+ claimability: z.ZodObject<{
130
+ cancelable: z.ZodBoolean;
131
+ returnable: z.ZodBoolean;
132
+ exchangeable: z.ZodBoolean;
133
+ shippingAddressChangeable: z.ZodBoolean;
134
+ }, "strip", z.ZodTypeAny, {
135
+ cancelable: boolean;
136
+ returnable: boolean;
137
+ exchangeable: boolean;
138
+ shippingAddressChangeable: boolean;
139
+ }, {
140
+ cancelable: boolean;
141
+ returnable: boolean;
142
+ exchangeable: boolean;
143
+ shippingAddressChangeable: boolean;
144
+ }>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ name: string;
147
+ id: string;
148
+ state: string;
149
+ amount: number;
150
+ quantity: number;
151
+ claimability: {
152
+ cancelable: boolean;
153
+ returnable: boolean;
154
+ exchangeable: boolean;
155
+ shippingAddressChangeable: boolean;
156
+ };
157
+ imageUrl?: string | undefined;
158
+ option?: string | undefined;
159
+ productId?: string | undefined;
160
+ variantId?: string | undefined;
161
+ shippedAt?: number | undefined;
162
+ deliveredAt?: number | undefined;
163
+ estimatedShipDate?: number | undefined;
164
+ }, {
165
+ name: string;
166
+ id: string;
167
+ state: string;
168
+ amount: number;
169
+ quantity: number;
170
+ claimability: {
171
+ cancelable: boolean;
172
+ returnable: boolean;
173
+ exchangeable: boolean;
174
+ shippingAddressChangeable: boolean;
175
+ };
176
+ imageUrl?: string | undefined;
177
+ option?: string | undefined;
178
+ productId?: string | undefined;
179
+ variantId?: string | undefined;
180
+ shippedAt?: number | undefined;
181
+ deliveredAt?: number | undefined;
182
+ estimatedShipDate?: number | undefined;
183
+ }>;
184
+ export type OrderItem = z.infer<typeof OrderItemSchema>;
185
+ export declare const PaymentSchema: z.ZodObject<{
186
+ state: z.ZodString;
187
+ currency: z.ZodString;
188
+ totalAmount: z.ZodNumber;
189
+ itemsAmount: z.ZodNumber;
190
+ shippingAmount: z.ZodNumber;
191
+ discountAmount: z.ZodNumber;
192
+ methods: z.ZodArray<z.ZodString, "many">;
193
+ requireRefundBankAccount: z.ZodBoolean;
194
+ }, "strip", z.ZodTypeAny, {
195
+ state: string;
196
+ currency: string;
197
+ totalAmount: number;
198
+ itemsAmount: number;
199
+ shippingAmount: number;
200
+ discountAmount: number;
201
+ methods: string[];
202
+ requireRefundBankAccount: boolean;
203
+ }, {
204
+ state: string;
205
+ currency: string;
206
+ totalAmount: number;
207
+ itemsAmount: number;
208
+ shippingAmount: number;
209
+ discountAmount: number;
210
+ methods: string[];
211
+ requireRefundBankAccount: boolean;
212
+ }>;
213
+ export type Payment = z.infer<typeof PaymentSchema>;
214
+ export declare const FulfillmentSchema: z.ZodObject<{
215
+ id: z.ZodString;
216
+ state: z.ZodString;
217
+ itemIds: z.ZodArray<z.ZodString, "many">;
218
+ trackingNumber: z.ZodOptional<z.ZodString>;
219
+ trackingCompany: z.ZodOptional<z.ZodString>;
220
+ trackingUrl: z.ZodOptional<z.ZodString>;
221
+ estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ id: string;
224
+ state: string;
225
+ itemIds: string[];
226
+ trackingNumber?: string | undefined;
227
+ trackingCompany?: string | undefined;
228
+ trackingUrl?: string | undefined;
229
+ estimatedDeliveryDate?: number | undefined;
230
+ }, {
231
+ id: string;
232
+ state: string;
233
+ itemIds: string[];
234
+ trackingNumber?: string | undefined;
235
+ trackingCompany?: string | undefined;
236
+ trackingUrl?: string | undefined;
237
+ estimatedDeliveryDate?: number | undefined;
238
+ }>;
239
+ export type Fulfillment = z.infer<typeof FulfillmentSchema>;
240
+ export declare const OrderSchema: z.ZodObject<{
241
+ id: z.ZodString;
242
+ title: z.ZodString;
243
+ createdAt: z.ZodNumber;
244
+ items: z.ZodArray<z.ZodObject<{
245
+ id: z.ZodString;
246
+ name: z.ZodString;
247
+ imageUrl: z.ZodOptional<z.ZodString>;
248
+ amount: z.ZodNumber;
249
+ quantity: z.ZodNumber;
250
+ option: z.ZodOptional<z.ZodString>;
251
+ productId: z.ZodOptional<z.ZodString>;
252
+ variantId: z.ZodOptional<z.ZodString>;
253
+ state: z.ZodString;
254
+ shippedAt: z.ZodOptional<z.ZodNumber>;
255
+ deliveredAt: z.ZodOptional<z.ZodNumber>;
256
+ estimatedShipDate: z.ZodOptional<z.ZodNumber>;
257
+ claimability: z.ZodObject<{
258
+ cancelable: z.ZodBoolean;
259
+ returnable: z.ZodBoolean;
260
+ exchangeable: z.ZodBoolean;
261
+ shippingAddressChangeable: z.ZodBoolean;
262
+ }, "strip", z.ZodTypeAny, {
263
+ cancelable: boolean;
264
+ returnable: boolean;
265
+ exchangeable: boolean;
266
+ shippingAddressChangeable: boolean;
267
+ }, {
268
+ cancelable: boolean;
269
+ returnable: boolean;
270
+ exchangeable: boolean;
271
+ shippingAddressChangeable: boolean;
272
+ }>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ name: string;
275
+ id: string;
276
+ state: string;
277
+ amount: number;
278
+ quantity: number;
279
+ claimability: {
280
+ cancelable: boolean;
281
+ returnable: boolean;
282
+ exchangeable: boolean;
283
+ shippingAddressChangeable: boolean;
284
+ };
285
+ imageUrl?: string | undefined;
286
+ option?: string | undefined;
287
+ productId?: string | undefined;
288
+ variantId?: string | undefined;
289
+ shippedAt?: number | undefined;
290
+ deliveredAt?: number | undefined;
291
+ estimatedShipDate?: number | undefined;
292
+ }, {
293
+ name: string;
294
+ id: string;
295
+ state: string;
296
+ amount: number;
297
+ quantity: number;
298
+ claimability: {
299
+ cancelable: boolean;
300
+ returnable: boolean;
301
+ exchangeable: boolean;
302
+ shippingAddressChangeable: boolean;
303
+ };
304
+ imageUrl?: string | undefined;
305
+ option?: string | undefined;
306
+ productId?: string | undefined;
307
+ variantId?: string | undefined;
308
+ shippedAt?: number | undefined;
309
+ deliveredAt?: number | undefined;
310
+ estimatedShipDate?: number | undefined;
311
+ }>, "many">;
312
+ payment: z.ZodObject<{
313
+ state: z.ZodString;
314
+ currency: z.ZodString;
315
+ totalAmount: z.ZodNumber;
316
+ itemsAmount: z.ZodNumber;
317
+ shippingAmount: z.ZodNumber;
318
+ discountAmount: z.ZodNumber;
319
+ methods: z.ZodArray<z.ZodString, "many">;
320
+ requireRefundBankAccount: z.ZodBoolean;
321
+ }, "strip", z.ZodTypeAny, {
322
+ state: string;
323
+ currency: string;
324
+ totalAmount: number;
325
+ itemsAmount: number;
326
+ shippingAmount: number;
327
+ discountAmount: number;
328
+ methods: string[];
329
+ requireRefundBankAccount: boolean;
330
+ }, {
331
+ state: string;
332
+ currency: string;
333
+ totalAmount: number;
334
+ itemsAmount: number;
335
+ shippingAmount: number;
336
+ discountAmount: number;
337
+ methods: string[];
338
+ requireRefundBankAccount: boolean;
339
+ }>;
340
+ fulfillments: z.ZodArray<z.ZodObject<{
341
+ id: z.ZodString;
342
+ state: z.ZodString;
343
+ itemIds: z.ZodArray<z.ZodString, "many">;
344
+ trackingNumber: z.ZodOptional<z.ZodString>;
345
+ trackingCompany: z.ZodOptional<z.ZodString>;
346
+ trackingUrl: z.ZodOptional<z.ZodString>;
347
+ estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ id: string;
350
+ state: string;
351
+ itemIds: string[];
352
+ trackingNumber?: string | undefined;
353
+ trackingCompany?: string | undefined;
354
+ trackingUrl?: string | undefined;
355
+ estimatedDeliveryDate?: number | undefined;
356
+ }, {
357
+ id: string;
358
+ state: string;
359
+ itemIds: string[];
360
+ trackingNumber?: string | undefined;
361
+ trackingCompany?: string | undefined;
362
+ trackingUrl?: string | undefined;
363
+ estimatedDeliveryDate?: number | undefined;
364
+ }>, "many">;
365
+ shippingAddress: z.ZodOptional<z.ZodObject<{
366
+ name: z.ZodOptional<z.ZodString>;
367
+ phoneNumber: z.ZodOptional<z.ZodString>;
368
+ email: z.ZodOptional<z.ZodString>;
369
+ cellPhoneNumber: z.ZodOptional<z.ZodString>;
370
+ zipcode: z.ZodOptional<z.ZodString>;
371
+ address1: z.ZodOptional<z.ZodString>;
372
+ address2: z.ZodOptional<z.ZodString>;
373
+ shippingMessage: z.ZodOptional<z.ZodString>;
374
+ country: z.ZodOptional<z.ZodString>;
375
+ city: z.ZodOptional<z.ZodString>;
376
+ province: z.ZodOptional<z.ZodString>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ name?: string | undefined;
379
+ email?: string | undefined;
380
+ phoneNumber?: string | undefined;
381
+ cellPhoneNumber?: string | undefined;
382
+ zipcode?: string | undefined;
383
+ address1?: string | undefined;
384
+ address2?: string | undefined;
385
+ shippingMessage?: string | undefined;
386
+ country?: string | undefined;
387
+ city?: string | undefined;
388
+ province?: string | undefined;
389
+ }, {
390
+ name?: string | undefined;
391
+ email?: string | undefined;
392
+ phoneNumber?: string | undefined;
393
+ cellPhoneNumber?: string | undefined;
394
+ zipcode?: string | undefined;
395
+ address1?: string | undefined;
396
+ address2?: string | undefined;
397
+ shippingMessage?: string | undefined;
398
+ country?: string | undefined;
399
+ city?: string | undefined;
400
+ province?: string | undefined;
401
+ }>>;
402
+ claims: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodString;
404
+ extClaimId: z.ZodOptional<z.ZodString>;
405
+ type: z.ZodString;
406
+ state: z.ZodString;
407
+ itemIds: z.ZodArray<z.ZodString, "many">;
408
+ createdAt: z.ZodNumber;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type: string;
411
+ id: string;
412
+ state: string;
413
+ itemIds: string[];
414
+ createdAt: number;
415
+ extClaimId?: string | undefined;
416
+ }, {
417
+ type: string;
418
+ id: string;
419
+ state: string;
420
+ itemIds: string[];
421
+ createdAt: number;
422
+ extClaimId?: string | undefined;
423
+ }>, "many">;
424
+ }, "strip", z.ZodTypeAny, {
425
+ id: string;
426
+ createdAt: number;
427
+ title: string;
428
+ items: {
429
+ name: string;
430
+ id: string;
431
+ state: string;
432
+ amount: number;
433
+ quantity: number;
434
+ claimability: {
435
+ cancelable: boolean;
436
+ returnable: boolean;
437
+ exchangeable: boolean;
438
+ shippingAddressChangeable: boolean;
439
+ };
440
+ imageUrl?: string | undefined;
441
+ option?: string | undefined;
442
+ productId?: string | undefined;
443
+ variantId?: string | undefined;
444
+ shippedAt?: number | undefined;
445
+ deliveredAt?: number | undefined;
446
+ estimatedShipDate?: number | undefined;
447
+ }[];
448
+ payment: {
449
+ state: string;
450
+ currency: string;
451
+ totalAmount: number;
452
+ itemsAmount: number;
453
+ shippingAmount: number;
454
+ discountAmount: number;
455
+ methods: string[];
456
+ requireRefundBankAccount: boolean;
457
+ };
458
+ fulfillments: {
459
+ id: string;
460
+ state: string;
461
+ itemIds: string[];
462
+ trackingNumber?: string | undefined;
463
+ trackingCompany?: string | undefined;
464
+ trackingUrl?: string | undefined;
465
+ estimatedDeliveryDate?: number | undefined;
466
+ }[];
467
+ claims: {
468
+ type: string;
469
+ id: string;
470
+ state: string;
471
+ itemIds: string[];
472
+ createdAt: number;
473
+ extClaimId?: string | undefined;
474
+ }[];
475
+ shippingAddress?: {
476
+ name?: string | undefined;
477
+ email?: string | undefined;
478
+ phoneNumber?: string | undefined;
479
+ cellPhoneNumber?: string | undefined;
480
+ zipcode?: string | undefined;
481
+ address1?: string | undefined;
482
+ address2?: string | undefined;
483
+ shippingMessage?: string | undefined;
484
+ country?: string | undefined;
485
+ city?: string | undefined;
486
+ province?: string | undefined;
487
+ } | undefined;
488
+ }, {
489
+ id: string;
490
+ createdAt: number;
491
+ title: string;
492
+ items: {
493
+ name: string;
494
+ id: string;
495
+ state: string;
496
+ amount: number;
497
+ quantity: number;
498
+ claimability: {
499
+ cancelable: boolean;
500
+ returnable: boolean;
501
+ exchangeable: boolean;
502
+ shippingAddressChangeable: boolean;
503
+ };
504
+ imageUrl?: string | undefined;
505
+ option?: string | undefined;
506
+ productId?: string | undefined;
507
+ variantId?: string | undefined;
508
+ shippedAt?: number | undefined;
509
+ deliveredAt?: number | undefined;
510
+ estimatedShipDate?: number | undefined;
511
+ }[];
512
+ payment: {
513
+ state: string;
514
+ currency: string;
515
+ totalAmount: number;
516
+ itemsAmount: number;
517
+ shippingAmount: number;
518
+ discountAmount: number;
519
+ methods: string[];
520
+ requireRefundBankAccount: boolean;
521
+ };
522
+ fulfillments: {
523
+ id: string;
524
+ state: string;
525
+ itemIds: string[];
526
+ trackingNumber?: string | undefined;
527
+ trackingCompany?: string | undefined;
528
+ trackingUrl?: string | undefined;
529
+ estimatedDeliveryDate?: number | undefined;
530
+ }[];
531
+ claims: {
532
+ type: string;
533
+ id: string;
534
+ state: string;
535
+ itemIds: string[];
536
+ createdAt: number;
537
+ extClaimId?: string | undefined;
538
+ }[];
539
+ shippingAddress?: {
540
+ name?: string | undefined;
541
+ email?: string | undefined;
542
+ phoneNumber?: string | undefined;
543
+ cellPhoneNumber?: string | undefined;
544
+ zipcode?: string | undefined;
545
+ address1?: string | undefined;
546
+ address2?: string | undefined;
547
+ shippingMessage?: string | undefined;
548
+ country?: string | undefined;
549
+ city?: string | undefined;
550
+ province?: string | undefined;
551
+ } | undefined;
552
+ }>;
553
+ export type Order = z.infer<typeof OrderSchema>;
554
+ export declare const FieldConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
555
+ type: z.ZodLiteral<"enum">;
556
+ allowedValues: z.ZodArray<z.ZodObject<{
557
+ value: z.ZodString;
558
+ label: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ value: string;
561
+ label: string;
562
+ }, {
563
+ value: string;
564
+ label: string;
565
+ }>, "many">;
566
+ }, "strip", z.ZodTypeAny, {
567
+ type: "enum";
568
+ allowedValues: {
569
+ value: string;
570
+ label: string;
571
+ }[];
572
+ }, {
573
+ type: "enum";
574
+ allowedValues: {
575
+ value: string;
576
+ label: string;
577
+ }[];
578
+ }>, z.ZodObject<{
579
+ type: z.ZodLiteral<"freeform">;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: "freeform";
582
+ }, {
583
+ type: "freeform";
584
+ }>]>;
585
+ export type FieldConfig = z.infer<typeof FieldConfigSchema>;
586
+ export declare const OperationOptionsSchema: z.ZodObject<{
587
+ required: z.ZodArray<z.ZodString, "many">;
588
+ optional: z.ZodArray<z.ZodString, "many">;
589
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
590
+ type: z.ZodLiteral<"enum">;
591
+ allowedValues: z.ZodArray<z.ZodObject<{
592
+ value: z.ZodString;
593
+ label: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ value: string;
596
+ label: string;
597
+ }, {
598
+ value: string;
599
+ label: string;
600
+ }>, "many">;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "enum";
603
+ allowedValues: {
604
+ value: string;
605
+ label: string;
606
+ }[];
607
+ }, {
608
+ type: "enum";
609
+ allowedValues: {
610
+ value: string;
611
+ label: string;
612
+ }[];
613
+ }>, z.ZodObject<{
614
+ type: z.ZodLiteral<"freeform">;
615
+ }, "strip", z.ZodTypeAny, {
616
+ type: "freeform";
617
+ }, {
618
+ type: "freeform";
619
+ }>]>>>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ required: string[];
622
+ optional: string[];
623
+ fieldConfigs?: Record<string, {
624
+ type: "enum";
625
+ allowedValues: {
626
+ value: string;
627
+ label: string;
628
+ }[];
629
+ } | {
630
+ type: "freeform";
631
+ }> | undefined;
632
+ }, {
633
+ required: string[];
634
+ optional: string[];
635
+ fieldConfigs?: Record<string, {
636
+ type: "enum";
637
+ allowedValues: {
638
+ value: string;
639
+ label: string;
640
+ }[];
641
+ } | {
642
+ type: "freeform";
643
+ }> | undefined;
644
+ }>;
645
+ export type OperationOptions = z.infer<typeof OperationOptionsSchema>;
646
+ export declare const AppCapabilitiesSchema: z.ZodObject<{
647
+ getOrdersOptions: z.ZodObject<{
648
+ required: z.ZodArray<z.ZodString, "many">;
649
+ optional: z.ZodArray<z.ZodString, "many">;
650
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
651
+ type: z.ZodLiteral<"enum">;
652
+ allowedValues: z.ZodArray<z.ZodObject<{
653
+ value: z.ZodString;
654
+ label: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ value: string;
657
+ label: string;
658
+ }, {
659
+ value: string;
660
+ label: string;
661
+ }>, "many">;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "enum";
664
+ allowedValues: {
665
+ value: string;
666
+ label: string;
667
+ }[];
668
+ }, {
669
+ type: "enum";
670
+ allowedValues: {
671
+ value: string;
672
+ label: string;
673
+ }[];
674
+ }>, z.ZodObject<{
675
+ type: z.ZodLiteral<"freeform">;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "freeform";
678
+ }, {
679
+ type: "freeform";
680
+ }>]>>>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ required: string[];
683
+ optional: string[];
684
+ fieldConfigs?: Record<string, {
685
+ type: "enum";
686
+ allowedValues: {
687
+ value: string;
688
+ label: string;
689
+ }[];
690
+ } | {
691
+ type: "freeform";
692
+ }> | undefined;
693
+ }, {
694
+ required: string[];
695
+ optional: string[];
696
+ fieldConfigs?: Record<string, {
697
+ type: "enum";
698
+ allowedValues: {
699
+ value: string;
700
+ label: string;
701
+ }[];
702
+ } | {
703
+ type: "freeform";
704
+ }> | undefined;
705
+ }>;
706
+ cancelOrderOptions: z.ZodObject<{
707
+ required: z.ZodArray<z.ZodString, "many">;
708
+ optional: z.ZodArray<z.ZodString, "many">;
709
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
710
+ type: z.ZodLiteral<"enum">;
711
+ allowedValues: z.ZodArray<z.ZodObject<{
712
+ value: z.ZodString;
713
+ label: z.ZodString;
714
+ }, "strip", z.ZodTypeAny, {
715
+ value: string;
716
+ label: string;
717
+ }, {
718
+ value: string;
719
+ label: string;
720
+ }>, "many">;
721
+ }, "strip", z.ZodTypeAny, {
722
+ type: "enum";
723
+ allowedValues: {
724
+ value: string;
725
+ label: string;
726
+ }[];
727
+ }, {
728
+ type: "enum";
729
+ allowedValues: {
730
+ value: string;
731
+ label: string;
732
+ }[];
733
+ }>, z.ZodObject<{
734
+ type: z.ZodLiteral<"freeform">;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: "freeform";
737
+ }, {
738
+ type: "freeform";
739
+ }>]>>>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ required: string[];
742
+ optional: string[];
743
+ fieldConfigs?: Record<string, {
744
+ type: "enum";
745
+ allowedValues: {
746
+ value: string;
747
+ label: string;
748
+ }[];
749
+ } | {
750
+ type: "freeform";
751
+ }> | undefined;
752
+ }, {
753
+ required: string[];
754
+ optional: string[];
755
+ fieldConfigs?: Record<string, {
756
+ type: "enum";
757
+ allowedValues: {
758
+ value: string;
759
+ label: string;
760
+ }[];
761
+ } | {
762
+ type: "freeform";
763
+ }> | undefined;
764
+ }>;
765
+ returnOrderOptions: z.ZodObject<{
766
+ required: z.ZodArray<z.ZodString, "many">;
767
+ optional: z.ZodArray<z.ZodString, "many">;
768
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
769
+ type: z.ZodLiteral<"enum">;
770
+ allowedValues: z.ZodArray<z.ZodObject<{
771
+ value: z.ZodString;
772
+ label: z.ZodString;
773
+ }, "strip", z.ZodTypeAny, {
774
+ value: string;
775
+ label: string;
776
+ }, {
777
+ value: string;
778
+ label: string;
779
+ }>, "many">;
780
+ }, "strip", z.ZodTypeAny, {
781
+ type: "enum";
782
+ allowedValues: {
783
+ value: string;
784
+ label: string;
785
+ }[];
786
+ }, {
787
+ type: "enum";
788
+ allowedValues: {
789
+ value: string;
790
+ label: string;
791
+ }[];
792
+ }>, z.ZodObject<{
793
+ type: z.ZodLiteral<"freeform">;
794
+ }, "strip", z.ZodTypeAny, {
795
+ type: "freeform";
796
+ }, {
797
+ type: "freeform";
798
+ }>]>>>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ required: string[];
801
+ optional: string[];
802
+ fieldConfigs?: Record<string, {
803
+ type: "enum";
804
+ allowedValues: {
805
+ value: string;
806
+ label: string;
807
+ }[];
808
+ } | {
809
+ type: "freeform";
810
+ }> | undefined;
811
+ }, {
812
+ required: string[];
813
+ optional: string[];
814
+ fieldConfigs?: Record<string, {
815
+ type: "enum";
816
+ allowedValues: {
817
+ value: string;
818
+ label: string;
819
+ }[];
820
+ } | {
821
+ type: "freeform";
822
+ }> | undefined;
823
+ }>;
824
+ exchangeOrderOptions: z.ZodObject<{
825
+ required: z.ZodArray<z.ZodString, "many">;
826
+ optional: z.ZodArray<z.ZodString, "many">;
827
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
828
+ type: z.ZodLiteral<"enum">;
829
+ allowedValues: z.ZodArray<z.ZodObject<{
830
+ value: z.ZodString;
831
+ label: z.ZodString;
832
+ }, "strip", z.ZodTypeAny, {
833
+ value: string;
834
+ label: string;
835
+ }, {
836
+ value: string;
837
+ label: string;
838
+ }>, "many">;
839
+ }, "strip", z.ZodTypeAny, {
840
+ type: "enum";
841
+ allowedValues: {
842
+ value: string;
843
+ label: string;
844
+ }[];
845
+ }, {
846
+ type: "enum";
847
+ allowedValues: {
848
+ value: string;
849
+ label: string;
850
+ }[];
851
+ }>, z.ZodObject<{
852
+ type: z.ZodLiteral<"freeform">;
853
+ }, "strip", z.ZodTypeAny, {
854
+ type: "freeform";
855
+ }, {
856
+ type: "freeform";
857
+ }>]>>>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ required: string[];
860
+ optional: string[];
861
+ fieldConfigs?: Record<string, {
862
+ type: "enum";
863
+ allowedValues: {
864
+ value: string;
865
+ label: string;
866
+ }[];
867
+ } | {
868
+ type: "freeform";
869
+ }> | undefined;
870
+ }, {
871
+ required: string[];
872
+ optional: string[];
873
+ fieldConfigs?: Record<string, {
874
+ type: "enum";
875
+ allowedValues: {
876
+ value: string;
877
+ label: string;
878
+ }[];
879
+ } | {
880
+ type: "freeform";
881
+ }> | undefined;
882
+ }>;
883
+ changeAddressOptions: z.ZodObject<{
884
+ required: z.ZodArray<z.ZodString, "many">;
885
+ optional: z.ZodArray<z.ZodString, "many">;
886
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
887
+ type: z.ZodLiteral<"enum">;
888
+ allowedValues: z.ZodArray<z.ZodObject<{
889
+ value: z.ZodString;
890
+ label: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ value: string;
893
+ label: string;
894
+ }, {
895
+ value: string;
896
+ label: string;
897
+ }>, "many">;
898
+ }, "strip", z.ZodTypeAny, {
899
+ type: "enum";
900
+ allowedValues: {
901
+ value: string;
902
+ label: string;
903
+ }[];
904
+ }, {
905
+ type: "enum";
906
+ allowedValues: {
907
+ value: string;
908
+ label: string;
909
+ }[];
910
+ }>, z.ZodObject<{
911
+ type: z.ZodLiteral<"freeform">;
912
+ }, "strip", z.ZodTypeAny, {
913
+ type: "freeform";
914
+ }, {
915
+ type: "freeform";
916
+ }>]>>>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ required: string[];
919
+ optional: string[];
920
+ fieldConfigs?: Record<string, {
921
+ type: "enum";
922
+ allowedValues: {
923
+ value: string;
924
+ label: string;
925
+ }[];
926
+ } | {
927
+ type: "freeform";
928
+ }> | undefined;
929
+ }, {
930
+ required: string[];
931
+ optional: string[];
932
+ fieldConfigs?: Record<string, {
933
+ type: "enum";
934
+ allowedValues: {
935
+ value: string;
936
+ label: string;
937
+ }[];
938
+ } | {
939
+ type: "freeform";
940
+ }> | undefined;
941
+ }>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ getOrdersOptions: {
944
+ required: string[];
945
+ optional: string[];
946
+ fieldConfigs?: Record<string, {
947
+ type: "enum";
948
+ allowedValues: {
949
+ value: string;
950
+ label: string;
951
+ }[];
952
+ } | {
953
+ type: "freeform";
954
+ }> | undefined;
955
+ };
956
+ cancelOrderOptions: {
957
+ required: string[];
958
+ optional: string[];
959
+ fieldConfigs?: Record<string, {
960
+ type: "enum";
961
+ allowedValues: {
962
+ value: string;
963
+ label: string;
964
+ }[];
965
+ } | {
966
+ type: "freeform";
967
+ }> | undefined;
968
+ };
969
+ returnOrderOptions: {
970
+ required: string[];
971
+ optional: string[];
972
+ fieldConfigs?: Record<string, {
973
+ type: "enum";
974
+ allowedValues: {
975
+ value: string;
976
+ label: string;
977
+ }[];
978
+ } | {
979
+ type: "freeform";
980
+ }> | undefined;
981
+ };
982
+ exchangeOrderOptions: {
983
+ required: string[];
984
+ optional: string[];
985
+ fieldConfigs?: Record<string, {
986
+ type: "enum";
987
+ allowedValues: {
988
+ value: string;
989
+ label: string;
990
+ }[];
991
+ } | {
992
+ type: "freeform";
993
+ }> | undefined;
994
+ };
995
+ changeAddressOptions: {
996
+ required: string[];
997
+ optional: string[];
998
+ fieldConfigs?: Record<string, {
999
+ type: "enum";
1000
+ allowedValues: {
1001
+ value: string;
1002
+ label: string;
1003
+ }[];
1004
+ } | {
1005
+ type: "freeform";
1006
+ }> | undefined;
1007
+ };
1008
+ }, {
1009
+ getOrdersOptions: {
1010
+ required: string[];
1011
+ optional: string[];
1012
+ fieldConfigs?: Record<string, {
1013
+ type: "enum";
1014
+ allowedValues: {
1015
+ value: string;
1016
+ label: string;
1017
+ }[];
1018
+ } | {
1019
+ type: "freeform";
1020
+ }> | undefined;
1021
+ };
1022
+ cancelOrderOptions: {
1023
+ required: string[];
1024
+ optional: string[];
1025
+ fieldConfigs?: Record<string, {
1026
+ type: "enum";
1027
+ allowedValues: {
1028
+ value: string;
1029
+ label: string;
1030
+ }[];
1031
+ } | {
1032
+ type: "freeform";
1033
+ }> | undefined;
1034
+ };
1035
+ returnOrderOptions: {
1036
+ required: string[];
1037
+ optional: string[];
1038
+ fieldConfigs?: Record<string, {
1039
+ type: "enum";
1040
+ allowedValues: {
1041
+ value: string;
1042
+ label: string;
1043
+ }[];
1044
+ } | {
1045
+ type: "freeform";
1046
+ }> | undefined;
1047
+ };
1048
+ exchangeOrderOptions: {
1049
+ required: string[];
1050
+ optional: string[];
1051
+ fieldConfigs?: Record<string, {
1052
+ type: "enum";
1053
+ allowedValues: {
1054
+ value: string;
1055
+ label: string;
1056
+ }[];
1057
+ } | {
1058
+ type: "freeform";
1059
+ }> | undefined;
1060
+ };
1061
+ changeAddressOptions: {
1062
+ required: string[];
1063
+ optional: string[];
1064
+ fieldConfigs?: Record<string, {
1065
+ type: "enum";
1066
+ allowedValues: {
1067
+ value: string;
1068
+ label: string;
1069
+ }[];
1070
+ } | {
1071
+ type: "freeform";
1072
+ }> | undefined;
1073
+ };
1074
+ }>;
1075
+ export type AppCapabilities = z.infer<typeof AppCapabilitiesSchema>;
1076
+ //# sourceMappingURL=order.d.ts.map