@channel.io/app-sdk-core 0.23.1 → 0.24.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.
- package/dist/extensions/commerce.d.ts +2268 -411
- package/dist/extensions/commerce.d.ts.map +1 -1
- package/dist/extensions/commerce.js +103 -4
- package/dist/extensions/commerce.js.map +1 -1
- package/dist/extensions/hook.d.ts +197 -2
- package/dist/extensions/hook.d.ts.map +1 -1
- package/dist/extensions/hook.js +60 -0
- package/dist/extensions/hook.js.map +1 -1
- package/dist/extensions/index.d.ts +3 -3
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +3 -3
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/messaging.d.ts +9 -0
- package/dist/extensions/messaging.d.ts.map +1 -1
- package/dist/extensions/messaging.js +1 -0
- package/dist/extensions/messaging.js.map +1 -1
- package/dist/extensions/order.d.ts +442 -149
- package/dist/extensions/order.d.ts.map +1 -1
- package/dist/extensions/order.js +82 -9
- package/dist/extensions/order.js.map +1 -1
- package/dist/extensions/wms.d.ts +5 -0
- package/dist/extensions/wms.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/common.zod.d.ts +4 -4
- package/dist/gen/channel/app/sdk/v1/extension.d.ts +260 -1
- package/dist/gen/channel/app/sdk/v1/extension.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts +2573 -150
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.js +149 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { Buyer as ProtoBuyer, Order as ProtoOrder, OrderAddress as ProtoAddress, OrderAppCapabilities as ProtoAppCapabilities, OrderBankAccount as ProtoBankAccount, OrderClaim as ProtoClaim, OrderClaimability as ProtoClaimability, OrderClaimItem as ProtoOrderClaimItem, OrderClaimReason as ProtoClaimReason, OrderDefectInfo as ProtoDefectInfo, OrderExchangeItem as ProtoOrderExchangeItem, OrderFieldConfig as ProtoFieldConfig, OrderFulfillment as ProtoFulfillment, OrderItem as ProtoOrderItem, OrderOperationOptions as ProtoOperationOptions, OrderPayment as ProtoPayment } from "../gen/channel/app/sdk/v1/extension.js";
|
|
2
|
+
import type { Buyer as ProtoBuyer, Order as ProtoOrder, OrderAddress as ProtoAddress, OrderAppCapabilities as ProtoAppCapabilities, OrderBankAccount as ProtoBankAccount, OrderClaim as ProtoClaim, OrderClaimability as ProtoClaimability, OrderClaimItem as ProtoOrderClaimItem, OrderClaimReason as ProtoClaimReason, OrderDefectInfo as ProtoDefectInfo, OrderExchangeItem as ProtoOrderExchangeItem, OrderFieldConfig as ProtoFieldConfig, OrderFulfillment as ProtoFulfillment, OrderFulfillmentItem as ProtoOrderFulfillmentItem, OrderItem as ProtoOrderItem, OrderAttribute as ProtoOrderAttribute, OrderMetafield as ProtoOrderMetafield, OrderOperationOptions as ProtoOperationOptions, OrderPayment as ProtoPayment, OrderShippingLine as ProtoOrderShippingLine, OrderTaxLine as ProtoOrderTaxLine, OrderTransaction as ProtoOrderTransaction } from "../gen/channel/app/sdk/v1/extension.js";
|
|
3
3
|
type ProtoBacked<T, Proto> = T & Proto;
|
|
4
4
|
export declare const BuyerSchema: z.ZodObject<{
|
|
5
5
|
memberId: z.ZodOptional<z.ZodString>;
|
|
@@ -31,8 +31,10 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
31
31
|
country: z.ZodOptional<z.ZodString>;
|
|
32
32
|
city: z.ZodOptional<z.ZodString>;
|
|
33
33
|
province: z.ZodOptional<z.ZodString>;
|
|
34
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
34
35
|
}, "strip", z.ZodTypeAny, {
|
|
35
36
|
email?: string | undefined;
|
|
37
|
+
countryCode?: string | undefined;
|
|
36
38
|
address1?: string | undefined;
|
|
37
39
|
address2?: string | undefined;
|
|
38
40
|
firstName?: string | undefined;
|
|
@@ -46,6 +48,7 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
46
48
|
province?: string | undefined;
|
|
47
49
|
}, {
|
|
48
50
|
email?: string | undefined;
|
|
51
|
+
countryCode?: string | undefined;
|
|
49
52
|
address1?: string | undefined;
|
|
50
53
|
address2?: string | undefined;
|
|
51
54
|
firstName?: string | undefined;
|
|
@@ -96,20 +99,32 @@ export declare const ClaimReasonSchema: z.ZodObject<{
|
|
|
96
99
|
}>;
|
|
97
100
|
export type ClaimReason = ProtoBacked<z.infer<typeof ClaimReasonSchema>, ProtoClaimReason>;
|
|
98
101
|
export declare const ClaimabilitySchema: z.ZodObject<{
|
|
99
|
-
cancelable: z.ZodBoolean
|
|
100
|
-
returnable: z.ZodBoolean
|
|
101
|
-
exchangeable: z.ZodBoolean
|
|
102
|
-
shippingAddressChangeable: z.ZodBoolean
|
|
102
|
+
cancelable: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
returnable: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
exchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
nonCancelableReason: z.ZodOptional<z.ZodString>;
|
|
107
|
+
nonReturnableReason: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nonExchangeableReason: z.ZodOptional<z.ZodString>;
|
|
109
|
+
nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
|
|
103
110
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
cancelable
|
|
105
|
-
returnable
|
|
106
|
-
exchangeable
|
|
107
|
-
shippingAddressChangeable
|
|
111
|
+
cancelable?: boolean | undefined;
|
|
112
|
+
returnable?: boolean | undefined;
|
|
113
|
+
exchangeable?: boolean | undefined;
|
|
114
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
115
|
+
nonCancelableReason?: string | undefined;
|
|
116
|
+
nonReturnableReason?: string | undefined;
|
|
117
|
+
nonExchangeableReason?: string | undefined;
|
|
118
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
108
119
|
}, {
|
|
109
|
-
cancelable
|
|
110
|
-
returnable
|
|
111
|
-
exchangeable
|
|
112
|
-
shippingAddressChangeable
|
|
120
|
+
cancelable?: boolean | undefined;
|
|
121
|
+
returnable?: boolean | undefined;
|
|
122
|
+
exchangeable?: boolean | undefined;
|
|
123
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
124
|
+
nonCancelableReason?: string | undefined;
|
|
125
|
+
nonReturnableReason?: string | undefined;
|
|
126
|
+
nonExchangeableReason?: string | undefined;
|
|
127
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
113
128
|
}>;
|
|
114
129
|
export type Claimability = ProtoBacked<z.infer<typeof ClaimabilitySchema>, ProtoClaimability>;
|
|
115
130
|
export declare const ClaimSchema: z.ZodObject<{
|
|
@@ -149,20 +164,32 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
149
164
|
deliveredAt: z.ZodOptional<z.ZodNumber>;
|
|
150
165
|
estimatedShipDate: z.ZodOptional<z.ZodNumber>;
|
|
151
166
|
claimability: z.ZodObject<{
|
|
152
|
-
cancelable: z.ZodBoolean
|
|
153
|
-
returnable: z.ZodBoolean
|
|
154
|
-
exchangeable: z.ZodBoolean
|
|
155
|
-
shippingAddressChangeable: z.ZodBoolean
|
|
167
|
+
cancelable: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
returnable: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
exchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
nonCancelableReason: z.ZodOptional<z.ZodString>;
|
|
172
|
+
nonReturnableReason: z.ZodOptional<z.ZodString>;
|
|
173
|
+
nonExchangeableReason: z.ZodOptional<z.ZodString>;
|
|
174
|
+
nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
|
|
156
175
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
cancelable
|
|
158
|
-
returnable
|
|
159
|
-
exchangeable
|
|
160
|
-
shippingAddressChangeable
|
|
176
|
+
cancelable?: boolean | undefined;
|
|
177
|
+
returnable?: boolean | undefined;
|
|
178
|
+
exchangeable?: boolean | undefined;
|
|
179
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
180
|
+
nonCancelableReason?: string | undefined;
|
|
181
|
+
nonReturnableReason?: string | undefined;
|
|
182
|
+
nonExchangeableReason?: string | undefined;
|
|
183
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
161
184
|
}, {
|
|
162
|
-
cancelable
|
|
163
|
-
returnable
|
|
164
|
-
exchangeable
|
|
165
|
-
shippingAddressChangeable
|
|
185
|
+
cancelable?: boolean | undefined;
|
|
186
|
+
returnable?: boolean | undefined;
|
|
187
|
+
exchangeable?: boolean | undefined;
|
|
188
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
189
|
+
nonCancelableReason?: string | undefined;
|
|
190
|
+
nonReturnableReason?: string | undefined;
|
|
191
|
+
nonExchangeableReason?: string | undefined;
|
|
192
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
166
193
|
}>;
|
|
167
194
|
}, "strip", z.ZodTypeAny, {
|
|
168
195
|
name: string;
|
|
@@ -171,10 +198,14 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
171
198
|
amount: number;
|
|
172
199
|
quantity: number;
|
|
173
200
|
claimability: {
|
|
174
|
-
cancelable
|
|
175
|
-
returnable
|
|
176
|
-
exchangeable
|
|
177
|
-
shippingAddressChangeable
|
|
201
|
+
cancelable?: boolean | undefined;
|
|
202
|
+
returnable?: boolean | undefined;
|
|
203
|
+
exchangeable?: boolean | undefined;
|
|
204
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
205
|
+
nonCancelableReason?: string | undefined;
|
|
206
|
+
nonReturnableReason?: string | undefined;
|
|
207
|
+
nonExchangeableReason?: string | undefined;
|
|
208
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
178
209
|
};
|
|
179
210
|
imageUrl?: string | undefined;
|
|
180
211
|
option?: string | undefined;
|
|
@@ -190,10 +221,14 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
190
221
|
amount: number;
|
|
191
222
|
quantity: number;
|
|
192
223
|
claimability: {
|
|
193
|
-
cancelable
|
|
194
|
-
returnable
|
|
195
|
-
exchangeable
|
|
196
|
-
shippingAddressChangeable
|
|
224
|
+
cancelable?: boolean | undefined;
|
|
225
|
+
returnable?: boolean | undefined;
|
|
226
|
+
exchangeable?: boolean | undefined;
|
|
227
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
228
|
+
nonCancelableReason?: string | undefined;
|
|
229
|
+
nonReturnableReason?: string | undefined;
|
|
230
|
+
nonExchangeableReason?: string | undefined;
|
|
231
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
197
232
|
};
|
|
198
233
|
imageUrl?: string | undefined;
|
|
199
234
|
option?: string | undefined;
|
|
@@ -239,8 +274,13 @@ export declare const PaymentSchema: z.ZodObject<{
|
|
|
239
274
|
itemsAmount: z.ZodNumber;
|
|
240
275
|
shippingAmount: z.ZodNumber;
|
|
241
276
|
discountAmount: z.ZodNumber;
|
|
242
|
-
methods: z.ZodArray<z.ZodString, "many"
|
|
277
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
243
278
|
requireRefundBankAccount: z.ZodBoolean;
|
|
279
|
+
taxAmount: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
pointAmount: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
creditAmount: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
couponDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
dueAmount: z.ZodOptional<z.ZodNumber>;
|
|
244
284
|
}, "strip", z.ZodTypeAny, {
|
|
245
285
|
state: string;
|
|
246
286
|
currency: string;
|
|
@@ -248,8 +288,13 @@ export declare const PaymentSchema: z.ZodObject<{
|
|
|
248
288
|
itemsAmount: number;
|
|
249
289
|
shippingAmount: number;
|
|
250
290
|
discountAmount: number;
|
|
251
|
-
methods: string[];
|
|
252
291
|
requireRefundBankAccount: boolean;
|
|
292
|
+
methods?: string[] | undefined;
|
|
293
|
+
taxAmount?: number | undefined;
|
|
294
|
+
pointAmount?: number | undefined;
|
|
295
|
+
creditAmount?: number | undefined;
|
|
296
|
+
couponDiscountAmount?: number | undefined;
|
|
297
|
+
dueAmount?: number | undefined;
|
|
253
298
|
}, {
|
|
254
299
|
state: string;
|
|
255
300
|
currency: string;
|
|
@@ -257,10 +302,26 @@ export declare const PaymentSchema: z.ZodObject<{
|
|
|
257
302
|
itemsAmount: number;
|
|
258
303
|
shippingAmount: number;
|
|
259
304
|
discountAmount: number;
|
|
260
|
-
methods: string[];
|
|
261
305
|
requireRefundBankAccount: boolean;
|
|
306
|
+
methods?: string[] | undefined;
|
|
307
|
+
taxAmount?: number | undefined;
|
|
308
|
+
pointAmount?: number | undefined;
|
|
309
|
+
creditAmount?: number | undefined;
|
|
310
|
+
couponDiscountAmount?: number | undefined;
|
|
311
|
+
dueAmount?: number | undefined;
|
|
262
312
|
}>;
|
|
263
313
|
export type Payment = ProtoBacked<z.infer<typeof PaymentSchema>, ProtoPayment>;
|
|
314
|
+
export declare const FulfillmentItemSchema: z.ZodObject<{
|
|
315
|
+
itemId: z.ZodString;
|
|
316
|
+
state: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
itemId: string;
|
|
319
|
+
state?: string | undefined;
|
|
320
|
+
}, {
|
|
321
|
+
itemId: string;
|
|
322
|
+
state?: string | undefined;
|
|
323
|
+
}>;
|
|
324
|
+
export type FulfillmentItem = ProtoBacked<z.infer<typeof FulfillmentItemSchema>, ProtoOrderFulfillmentItem>;
|
|
264
325
|
export declare const FulfillmentSchema: z.ZodObject<{
|
|
265
326
|
id: z.ZodString;
|
|
266
327
|
state: z.ZodString;
|
|
@@ -269,24 +330,167 @@ export declare const FulfillmentSchema: z.ZodObject<{
|
|
|
269
330
|
trackingCompany: z.ZodOptional<z.ZodString>;
|
|
270
331
|
trackingUrl: z.ZodOptional<z.ZodString>;
|
|
271
332
|
estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
trackingCompanyName: z.ZodOptional<z.ZodString>;
|
|
334
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
335
|
+
itemId: z.ZodString;
|
|
336
|
+
state: z.ZodOptional<z.ZodString>;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
itemId: string;
|
|
339
|
+
state?: string | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
itemId: string;
|
|
342
|
+
state?: string | undefined;
|
|
343
|
+
}>, "many">>;
|
|
272
344
|
}, "strip", z.ZodTypeAny, {
|
|
273
345
|
id: string;
|
|
274
346
|
state: string;
|
|
275
347
|
itemIds: string[];
|
|
348
|
+
items?: {
|
|
349
|
+
itemId: string;
|
|
350
|
+
state?: string | undefined;
|
|
351
|
+
}[] | undefined;
|
|
276
352
|
trackingNumber?: string | undefined;
|
|
277
353
|
trackingCompany?: string | undefined;
|
|
278
354
|
trackingUrl?: string | undefined;
|
|
279
355
|
estimatedDeliveryDate?: number | undefined;
|
|
356
|
+
trackingCompanyName?: string | undefined;
|
|
280
357
|
}, {
|
|
281
358
|
id: string;
|
|
282
359
|
state: string;
|
|
283
360
|
itemIds: string[];
|
|
361
|
+
items?: {
|
|
362
|
+
itemId: string;
|
|
363
|
+
state?: string | undefined;
|
|
364
|
+
}[] | undefined;
|
|
284
365
|
trackingNumber?: string | undefined;
|
|
285
366
|
trackingCompany?: string | undefined;
|
|
286
367
|
trackingUrl?: string | undefined;
|
|
287
368
|
estimatedDeliveryDate?: number | undefined;
|
|
369
|
+
trackingCompanyName?: string | undefined;
|
|
288
370
|
}>;
|
|
289
371
|
export type Fulfillment = ProtoBacked<z.infer<typeof FulfillmentSchema>, ProtoFulfillment>;
|
|
372
|
+
export declare const TaxLineSchema: z.ZodObject<{
|
|
373
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
ratePercentage: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
title: z.ZodOptional<z.ZodString>;
|
|
376
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
title?: string | undefined;
|
|
379
|
+
amount?: number | undefined;
|
|
380
|
+
rate?: number | undefined;
|
|
381
|
+
ratePercentage?: number | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
title?: string | undefined;
|
|
384
|
+
amount?: number | undefined;
|
|
385
|
+
rate?: number | undefined;
|
|
386
|
+
ratePercentage?: number | undefined;
|
|
387
|
+
}>;
|
|
388
|
+
export type TaxLine = ProtoBacked<z.infer<typeof TaxLineSchema>, ProtoOrderTaxLine>;
|
|
389
|
+
export declare const OrderAttributeSchema: z.ZodObject<{
|
|
390
|
+
key: z.ZodString;
|
|
391
|
+
value: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
key: string;
|
|
394
|
+
value?: string | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
key: string;
|
|
397
|
+
value?: string | undefined;
|
|
398
|
+
}>;
|
|
399
|
+
export type OrderAttribute = ProtoBacked<z.infer<typeof OrderAttributeSchema>, ProtoOrderAttribute>;
|
|
400
|
+
export declare const ShippingLineSchema: z.ZodObject<{
|
|
401
|
+
id: z.ZodOptional<z.ZodString>;
|
|
402
|
+
title: z.ZodOptional<z.ZodString>;
|
|
403
|
+
code: z.ZodOptional<z.ZodString>;
|
|
404
|
+
carrierIdentifier: z.ZodOptional<z.ZodString>;
|
|
405
|
+
taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
ratePercentage: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
title: z.ZodOptional<z.ZodString>;
|
|
409
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
title?: string | undefined;
|
|
412
|
+
amount?: number | undefined;
|
|
413
|
+
rate?: number | undefined;
|
|
414
|
+
ratePercentage?: number | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
title?: string | undefined;
|
|
417
|
+
amount?: number | undefined;
|
|
418
|
+
rate?: number | undefined;
|
|
419
|
+
ratePercentage?: number | undefined;
|
|
420
|
+
}>, "many">>;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
code?: string | undefined;
|
|
423
|
+
id?: string | undefined;
|
|
424
|
+
title?: string | undefined;
|
|
425
|
+
carrierIdentifier?: string | undefined;
|
|
426
|
+
taxLines?: {
|
|
427
|
+
title?: string | undefined;
|
|
428
|
+
amount?: number | undefined;
|
|
429
|
+
rate?: number | undefined;
|
|
430
|
+
ratePercentage?: number | undefined;
|
|
431
|
+
}[] | undefined;
|
|
432
|
+
}, {
|
|
433
|
+
code?: string | undefined;
|
|
434
|
+
id?: string | undefined;
|
|
435
|
+
title?: string | undefined;
|
|
436
|
+
carrierIdentifier?: string | undefined;
|
|
437
|
+
taxLines?: {
|
|
438
|
+
title?: string | undefined;
|
|
439
|
+
amount?: number | undefined;
|
|
440
|
+
rate?: number | undefined;
|
|
441
|
+
ratePercentage?: number | undefined;
|
|
442
|
+
}[] | undefined;
|
|
443
|
+
}>;
|
|
444
|
+
export type ShippingLine = ProtoBacked<z.infer<typeof ShippingLineSchema>, ProtoOrderShippingLine>;
|
|
445
|
+
export declare const TransactionSchema: z.ZodObject<{
|
|
446
|
+
id: z.ZodOptional<z.ZodString>;
|
|
447
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
448
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
449
|
+
status: z.ZodOptional<z.ZodString>;
|
|
450
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
451
|
+
manualPaymentGateway: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
453
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
454
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
}, "strip", z.ZodTypeAny, {
|
|
456
|
+
status?: string | undefined;
|
|
457
|
+
id?: string | undefined;
|
|
458
|
+
kind?: string | undefined;
|
|
459
|
+
createdAt?: number | undefined;
|
|
460
|
+
amount?: number | undefined;
|
|
461
|
+
currency?: string | undefined;
|
|
462
|
+
parentId?: string | undefined;
|
|
463
|
+
gateway?: string | undefined;
|
|
464
|
+
manualPaymentGateway?: boolean | undefined;
|
|
465
|
+
}, {
|
|
466
|
+
status?: string | undefined;
|
|
467
|
+
id?: string | undefined;
|
|
468
|
+
kind?: string | undefined;
|
|
469
|
+
createdAt?: number | undefined;
|
|
470
|
+
amount?: number | undefined;
|
|
471
|
+
currency?: string | undefined;
|
|
472
|
+
parentId?: string | undefined;
|
|
473
|
+
gateway?: string | undefined;
|
|
474
|
+
manualPaymentGateway?: boolean | undefined;
|
|
475
|
+
}>;
|
|
476
|
+
export type Transaction = ProtoBacked<z.infer<typeof TransactionSchema>, ProtoOrderTransaction>;
|
|
477
|
+
export declare const MetafieldSchema: z.ZodObject<{
|
|
478
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
479
|
+
key: z.ZodString;
|
|
480
|
+
value: z.ZodOptional<z.ZodString>;
|
|
481
|
+
type: z.ZodOptional<z.ZodString>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
key: string;
|
|
484
|
+
type?: string | undefined;
|
|
485
|
+
value?: string | undefined;
|
|
486
|
+
namespace?: string | undefined;
|
|
487
|
+
}, {
|
|
488
|
+
key: string;
|
|
489
|
+
type?: string | undefined;
|
|
490
|
+
value?: string | undefined;
|
|
491
|
+
namespace?: string | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
export type Metafield = ProtoBacked<z.infer<typeof MetafieldSchema>, ProtoOrderMetafield>;
|
|
290
494
|
export declare const OrderSchema: z.ZodObject<{
|
|
291
495
|
id: z.ZodString;
|
|
292
496
|
title: z.ZodString;
|
|
@@ -305,20 +509,32 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
305
509
|
deliveredAt: z.ZodOptional<z.ZodNumber>;
|
|
306
510
|
estimatedShipDate: z.ZodOptional<z.ZodNumber>;
|
|
307
511
|
claimability: z.ZodObject<{
|
|
308
|
-
cancelable: z.ZodBoolean
|
|
309
|
-
returnable: z.ZodBoolean
|
|
310
|
-
exchangeable: z.ZodBoolean
|
|
311
|
-
shippingAddressChangeable: z.ZodBoolean
|
|
512
|
+
cancelable: z.ZodOptional<z.ZodBoolean>;
|
|
513
|
+
returnable: z.ZodOptional<z.ZodBoolean>;
|
|
514
|
+
exchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
shippingAddressChangeable: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
nonCancelableReason: z.ZodOptional<z.ZodString>;
|
|
517
|
+
nonReturnableReason: z.ZodOptional<z.ZodString>;
|
|
518
|
+
nonExchangeableReason: z.ZodOptional<z.ZodString>;
|
|
519
|
+
nonShippingAddressChangeableReason: z.ZodOptional<z.ZodString>;
|
|
312
520
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
cancelable
|
|
314
|
-
returnable
|
|
315
|
-
exchangeable
|
|
316
|
-
shippingAddressChangeable
|
|
521
|
+
cancelable?: boolean | undefined;
|
|
522
|
+
returnable?: boolean | undefined;
|
|
523
|
+
exchangeable?: boolean | undefined;
|
|
524
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
525
|
+
nonCancelableReason?: string | undefined;
|
|
526
|
+
nonReturnableReason?: string | undefined;
|
|
527
|
+
nonExchangeableReason?: string | undefined;
|
|
528
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
317
529
|
}, {
|
|
318
|
-
cancelable
|
|
319
|
-
returnable
|
|
320
|
-
exchangeable
|
|
321
|
-
shippingAddressChangeable
|
|
530
|
+
cancelable?: boolean | undefined;
|
|
531
|
+
returnable?: boolean | undefined;
|
|
532
|
+
exchangeable?: boolean | undefined;
|
|
533
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
534
|
+
nonCancelableReason?: string | undefined;
|
|
535
|
+
nonReturnableReason?: string | undefined;
|
|
536
|
+
nonExchangeableReason?: string | undefined;
|
|
537
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
322
538
|
}>;
|
|
323
539
|
}, "strip", z.ZodTypeAny, {
|
|
324
540
|
name: string;
|
|
@@ -327,10 +543,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
327
543
|
amount: number;
|
|
328
544
|
quantity: number;
|
|
329
545
|
claimability: {
|
|
330
|
-
cancelable
|
|
331
|
-
returnable
|
|
332
|
-
exchangeable
|
|
333
|
-
shippingAddressChangeable
|
|
546
|
+
cancelable?: boolean | undefined;
|
|
547
|
+
returnable?: boolean | undefined;
|
|
548
|
+
exchangeable?: boolean | undefined;
|
|
549
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
550
|
+
nonCancelableReason?: string | undefined;
|
|
551
|
+
nonReturnableReason?: string | undefined;
|
|
552
|
+
nonExchangeableReason?: string | undefined;
|
|
553
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
334
554
|
};
|
|
335
555
|
imageUrl?: string | undefined;
|
|
336
556
|
option?: string | undefined;
|
|
@@ -346,10 +566,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
346
566
|
amount: number;
|
|
347
567
|
quantity: number;
|
|
348
568
|
claimability: {
|
|
349
|
-
cancelable
|
|
350
|
-
returnable
|
|
351
|
-
exchangeable
|
|
352
|
-
shippingAddressChangeable
|
|
569
|
+
cancelable?: boolean | undefined;
|
|
570
|
+
returnable?: boolean | undefined;
|
|
571
|
+
exchangeable?: boolean | undefined;
|
|
572
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
573
|
+
nonCancelableReason?: string | undefined;
|
|
574
|
+
nonReturnableReason?: string | undefined;
|
|
575
|
+
nonExchangeableReason?: string | undefined;
|
|
576
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
353
577
|
};
|
|
354
578
|
imageUrl?: string | undefined;
|
|
355
579
|
option?: string | undefined;
|
|
@@ -366,8 +590,13 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
366
590
|
itemsAmount: z.ZodNumber;
|
|
367
591
|
shippingAmount: z.ZodNumber;
|
|
368
592
|
discountAmount: z.ZodNumber;
|
|
369
|
-
methods: z.ZodArray<z.ZodString, "many"
|
|
593
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
370
594
|
requireRefundBankAccount: z.ZodBoolean;
|
|
595
|
+
taxAmount: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
pointAmount: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
creditAmount: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
couponDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
dueAmount: z.ZodOptional<z.ZodNumber>;
|
|
371
600
|
}, "strip", z.ZodTypeAny, {
|
|
372
601
|
state: string;
|
|
373
602
|
currency: string;
|
|
@@ -375,8 +604,13 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
375
604
|
itemsAmount: number;
|
|
376
605
|
shippingAmount: number;
|
|
377
606
|
discountAmount: number;
|
|
378
|
-
methods: string[];
|
|
379
607
|
requireRefundBankAccount: boolean;
|
|
608
|
+
methods?: string[] | undefined;
|
|
609
|
+
taxAmount?: number | undefined;
|
|
610
|
+
pointAmount?: number | undefined;
|
|
611
|
+
creditAmount?: number | undefined;
|
|
612
|
+
couponDiscountAmount?: number | undefined;
|
|
613
|
+
dueAmount?: number | undefined;
|
|
380
614
|
}, {
|
|
381
615
|
state: string;
|
|
382
616
|
currency: string;
|
|
@@ -384,10 +618,15 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
384
618
|
itemsAmount: number;
|
|
385
619
|
shippingAmount: number;
|
|
386
620
|
discountAmount: number;
|
|
387
|
-
methods: string[];
|
|
388
621
|
requireRefundBankAccount: boolean;
|
|
622
|
+
methods?: string[] | undefined;
|
|
623
|
+
taxAmount?: number | undefined;
|
|
624
|
+
pointAmount?: number | undefined;
|
|
625
|
+
creditAmount?: number | undefined;
|
|
626
|
+
couponDiscountAmount?: number | undefined;
|
|
627
|
+
dueAmount?: number | undefined;
|
|
389
628
|
}>;
|
|
390
|
-
fulfillments: z.ZodArray<z.ZodObject<{
|
|
629
|
+
fulfillments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
391
630
|
id: z.ZodString;
|
|
392
631
|
state: z.ZodString;
|
|
393
632
|
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -395,23 +634,44 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
395
634
|
trackingCompany: z.ZodOptional<z.ZodString>;
|
|
396
635
|
trackingUrl: z.ZodOptional<z.ZodString>;
|
|
397
636
|
estimatedDeliveryDate: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
trackingCompanyName: z.ZodOptional<z.ZodString>;
|
|
638
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
639
|
+
itemId: z.ZodString;
|
|
640
|
+
state: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
itemId: string;
|
|
643
|
+
state?: string | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
itemId: string;
|
|
646
|
+
state?: string | undefined;
|
|
647
|
+
}>, "many">>;
|
|
398
648
|
}, "strip", z.ZodTypeAny, {
|
|
399
649
|
id: string;
|
|
400
650
|
state: string;
|
|
401
651
|
itemIds: string[];
|
|
652
|
+
items?: {
|
|
653
|
+
itemId: string;
|
|
654
|
+
state?: string | undefined;
|
|
655
|
+
}[] | undefined;
|
|
402
656
|
trackingNumber?: string | undefined;
|
|
403
657
|
trackingCompany?: string | undefined;
|
|
404
658
|
trackingUrl?: string | undefined;
|
|
405
659
|
estimatedDeliveryDate?: number | undefined;
|
|
660
|
+
trackingCompanyName?: string | undefined;
|
|
406
661
|
}, {
|
|
407
662
|
id: string;
|
|
408
663
|
state: string;
|
|
409
664
|
itemIds: string[];
|
|
665
|
+
items?: {
|
|
666
|
+
itemId: string;
|
|
667
|
+
state?: string | undefined;
|
|
668
|
+
}[] | undefined;
|
|
410
669
|
trackingNumber?: string | undefined;
|
|
411
670
|
trackingCompany?: string | undefined;
|
|
412
671
|
trackingUrl?: string | undefined;
|
|
413
672
|
estimatedDeliveryDate?: number | undefined;
|
|
414
|
-
|
|
673
|
+
trackingCompanyName?: string | undefined;
|
|
674
|
+
}>, "many">>;
|
|
415
675
|
shippingAddress: z.ZodOptional<z.ZodObject<{
|
|
416
676
|
firstName: z.ZodOptional<z.ZodString>;
|
|
417
677
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -425,8 +685,10 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
425
685
|
country: z.ZodOptional<z.ZodString>;
|
|
426
686
|
city: z.ZodOptional<z.ZodString>;
|
|
427
687
|
province: z.ZodOptional<z.ZodString>;
|
|
688
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
428
689
|
}, "strip", z.ZodTypeAny, {
|
|
429
690
|
email?: string | undefined;
|
|
691
|
+
countryCode?: string | undefined;
|
|
430
692
|
address1?: string | undefined;
|
|
431
693
|
address2?: string | undefined;
|
|
432
694
|
firstName?: string | undefined;
|
|
@@ -440,6 +702,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
440
702
|
province?: string | undefined;
|
|
441
703
|
}, {
|
|
442
704
|
email?: string | undefined;
|
|
705
|
+
countryCode?: string | undefined;
|
|
443
706
|
address1?: string | undefined;
|
|
444
707
|
address2?: string | undefined;
|
|
445
708
|
firstName?: string | undefined;
|
|
@@ -452,7 +715,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
452
715
|
city?: string | undefined;
|
|
453
716
|
province?: string | undefined;
|
|
454
717
|
}>>;
|
|
455
|
-
claims: z.ZodArray<z.ZodObject<{
|
|
718
|
+
claims: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
456
719
|
id: z.ZodString;
|
|
457
720
|
extClaimId: z.ZodOptional<z.ZodString>;
|
|
458
721
|
type: z.ZodString;
|
|
@@ -473,7 +736,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
473
736
|
itemIds: string[];
|
|
474
737
|
createdAt: number;
|
|
475
738
|
extClaimId?: string | undefined;
|
|
476
|
-
}>, "many"
|
|
739
|
+
}>, "many">>;
|
|
477
740
|
}, "strip", z.ZodTypeAny, {
|
|
478
741
|
id: string;
|
|
479
742
|
title: string;
|
|
@@ -484,10 +747,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
484
747
|
amount: number;
|
|
485
748
|
quantity: number;
|
|
486
749
|
claimability: {
|
|
487
|
-
cancelable
|
|
488
|
-
returnable
|
|
489
|
-
exchangeable
|
|
490
|
-
shippingAddressChangeable
|
|
750
|
+
cancelable?: boolean | undefined;
|
|
751
|
+
returnable?: boolean | undefined;
|
|
752
|
+
exchangeable?: boolean | undefined;
|
|
753
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
754
|
+
nonCancelableReason?: string | undefined;
|
|
755
|
+
nonReturnableReason?: string | undefined;
|
|
756
|
+
nonExchangeableReason?: string | undefined;
|
|
757
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
491
758
|
};
|
|
492
759
|
imageUrl?: string | undefined;
|
|
493
760
|
option?: string | undefined;
|
|
@@ -505,28 +772,31 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
505
772
|
itemsAmount: number;
|
|
506
773
|
shippingAmount: number;
|
|
507
774
|
discountAmount: number;
|
|
508
|
-
methods: string[];
|
|
509
775
|
requireRefundBankAccount: boolean;
|
|
776
|
+
methods?: string[] | undefined;
|
|
777
|
+
taxAmount?: number | undefined;
|
|
778
|
+
pointAmount?: number | undefined;
|
|
779
|
+
creditAmount?: number | undefined;
|
|
780
|
+
couponDiscountAmount?: number | undefined;
|
|
781
|
+
dueAmount?: number | undefined;
|
|
510
782
|
};
|
|
511
|
-
fulfillments
|
|
783
|
+
fulfillments?: {
|
|
512
784
|
id: string;
|
|
513
785
|
state: string;
|
|
514
786
|
itemIds: string[];
|
|
787
|
+
items?: {
|
|
788
|
+
itemId: string;
|
|
789
|
+
state?: string | undefined;
|
|
790
|
+
}[] | undefined;
|
|
515
791
|
trackingNumber?: string | undefined;
|
|
516
792
|
trackingCompany?: string | undefined;
|
|
517
793
|
trackingUrl?: string | undefined;
|
|
518
794
|
estimatedDeliveryDate?: number | undefined;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
type: string;
|
|
522
|
-
id: string;
|
|
523
|
-
state: string;
|
|
524
|
-
itemIds: string[];
|
|
525
|
-
createdAt: number;
|
|
526
|
-
extClaimId?: string | undefined;
|
|
527
|
-
}[];
|
|
795
|
+
trackingCompanyName?: string | undefined;
|
|
796
|
+
}[] | undefined;
|
|
528
797
|
shippingAddress?: {
|
|
529
798
|
email?: string | undefined;
|
|
799
|
+
countryCode?: string | undefined;
|
|
530
800
|
address1?: string | undefined;
|
|
531
801
|
address2?: string | undefined;
|
|
532
802
|
firstName?: string | undefined;
|
|
@@ -539,6 +809,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
539
809
|
city?: string | undefined;
|
|
540
810
|
province?: string | undefined;
|
|
541
811
|
} | undefined;
|
|
812
|
+
claims?: {
|
|
813
|
+
type: string;
|
|
814
|
+
id: string;
|
|
815
|
+
state: string;
|
|
816
|
+
itemIds: string[];
|
|
817
|
+
createdAt: number;
|
|
818
|
+
extClaimId?: string | undefined;
|
|
819
|
+
}[] | undefined;
|
|
542
820
|
}, {
|
|
543
821
|
id: string;
|
|
544
822
|
title: string;
|
|
@@ -549,10 +827,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
549
827
|
amount: number;
|
|
550
828
|
quantity: number;
|
|
551
829
|
claimability: {
|
|
552
|
-
cancelable
|
|
553
|
-
returnable
|
|
554
|
-
exchangeable
|
|
555
|
-
shippingAddressChangeable
|
|
830
|
+
cancelable?: boolean | undefined;
|
|
831
|
+
returnable?: boolean | undefined;
|
|
832
|
+
exchangeable?: boolean | undefined;
|
|
833
|
+
shippingAddressChangeable?: boolean | undefined;
|
|
834
|
+
nonCancelableReason?: string | undefined;
|
|
835
|
+
nonReturnableReason?: string | undefined;
|
|
836
|
+
nonExchangeableReason?: string | undefined;
|
|
837
|
+
nonShippingAddressChangeableReason?: string | undefined;
|
|
556
838
|
};
|
|
557
839
|
imageUrl?: string | undefined;
|
|
558
840
|
option?: string | undefined;
|
|
@@ -570,28 +852,31 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
570
852
|
itemsAmount: number;
|
|
571
853
|
shippingAmount: number;
|
|
572
854
|
discountAmount: number;
|
|
573
|
-
methods: string[];
|
|
574
855
|
requireRefundBankAccount: boolean;
|
|
856
|
+
methods?: string[] | undefined;
|
|
857
|
+
taxAmount?: number | undefined;
|
|
858
|
+
pointAmount?: number | undefined;
|
|
859
|
+
creditAmount?: number | undefined;
|
|
860
|
+
couponDiscountAmount?: number | undefined;
|
|
861
|
+
dueAmount?: number | undefined;
|
|
575
862
|
};
|
|
576
|
-
fulfillments
|
|
863
|
+
fulfillments?: {
|
|
577
864
|
id: string;
|
|
578
865
|
state: string;
|
|
579
866
|
itemIds: string[];
|
|
867
|
+
items?: {
|
|
868
|
+
itemId: string;
|
|
869
|
+
state?: string | undefined;
|
|
870
|
+
}[] | undefined;
|
|
580
871
|
trackingNumber?: string | undefined;
|
|
581
872
|
trackingCompany?: string | undefined;
|
|
582
873
|
trackingUrl?: string | undefined;
|
|
583
874
|
estimatedDeliveryDate?: number | undefined;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
type: string;
|
|
587
|
-
id: string;
|
|
588
|
-
state: string;
|
|
589
|
-
itemIds: string[];
|
|
590
|
-
createdAt: number;
|
|
591
|
-
extClaimId?: string | undefined;
|
|
592
|
-
}[];
|
|
875
|
+
trackingCompanyName?: string | undefined;
|
|
876
|
+
}[] | undefined;
|
|
593
877
|
shippingAddress?: {
|
|
594
878
|
email?: string | undefined;
|
|
879
|
+
countryCode?: string | undefined;
|
|
595
880
|
address1?: string | undefined;
|
|
596
881
|
address2?: string | undefined;
|
|
597
882
|
firstName?: string | undefined;
|
|
@@ -604,6 +889,14 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
604
889
|
city?: string | undefined;
|
|
605
890
|
province?: string | undefined;
|
|
606
891
|
} | undefined;
|
|
892
|
+
claims?: {
|
|
893
|
+
type: string;
|
|
894
|
+
id: string;
|
|
895
|
+
state: string;
|
|
896
|
+
itemIds: string[];
|
|
897
|
+
createdAt: number;
|
|
898
|
+
extClaimId?: string | undefined;
|
|
899
|
+
}[] | undefined;
|
|
607
900
|
}>;
|
|
608
901
|
export type Order = ProtoBacked<z.infer<typeof OrderSchema>, ProtoOrder>;
|
|
609
902
|
export declare const FieldConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -642,8 +935,8 @@ export declare const FieldConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
642
935
|
}>]>;
|
|
643
936
|
export type FieldConfig = ProtoBacked<z.infer<typeof FieldConfigSchema>, ProtoFieldConfig>;
|
|
644
937
|
export declare const OperationOptionsSchema: z.ZodObject<{
|
|
645
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
646
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
938
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
939
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
647
940
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
648
941
|
type: z.ZodLiteral<"enum">;
|
|
649
942
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -679,8 +972,8 @@ export declare const OperationOptionsSchema: z.ZodObject<{
|
|
|
679
972
|
description?: string | undefined;
|
|
680
973
|
}>]>>>;
|
|
681
974
|
}, "strip", z.ZodTypeAny, {
|
|
682
|
-
required
|
|
683
|
-
optional
|
|
975
|
+
required?: string[] | undefined;
|
|
976
|
+
optional?: string[] | undefined;
|
|
684
977
|
fieldConfigs?: Record<string, {
|
|
685
978
|
type: "enum";
|
|
686
979
|
allowedValues: {
|
|
@@ -692,8 +985,8 @@ export declare const OperationOptionsSchema: z.ZodObject<{
|
|
|
692
985
|
description?: string | undefined;
|
|
693
986
|
}> | undefined;
|
|
694
987
|
}, {
|
|
695
|
-
required
|
|
696
|
-
optional
|
|
988
|
+
required?: string[] | undefined;
|
|
989
|
+
optional?: string[] | undefined;
|
|
697
990
|
fieldConfigs?: Record<string, {
|
|
698
991
|
type: "enum";
|
|
699
992
|
allowedValues: {
|
|
@@ -708,8 +1001,8 @@ export declare const OperationOptionsSchema: z.ZodObject<{
|
|
|
708
1001
|
export type OperationOptions = ProtoBacked<z.infer<typeof OperationOptionsSchema>, ProtoOperationOptions>;
|
|
709
1002
|
export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
710
1003
|
getOrdersOptions: z.ZodObject<{
|
|
711
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
712
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
1004
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1005
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
713
1006
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
714
1007
|
type: z.ZodLiteral<"enum">;
|
|
715
1008
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -745,8 +1038,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
745
1038
|
description?: string | undefined;
|
|
746
1039
|
}>]>>>;
|
|
747
1040
|
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
required
|
|
749
|
-
optional
|
|
1041
|
+
required?: string[] | undefined;
|
|
1042
|
+
optional?: string[] | undefined;
|
|
750
1043
|
fieldConfigs?: Record<string, {
|
|
751
1044
|
type: "enum";
|
|
752
1045
|
allowedValues: {
|
|
@@ -758,8 +1051,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
758
1051
|
description?: string | undefined;
|
|
759
1052
|
}> | undefined;
|
|
760
1053
|
}, {
|
|
761
|
-
required
|
|
762
|
-
optional
|
|
1054
|
+
required?: string[] | undefined;
|
|
1055
|
+
optional?: string[] | undefined;
|
|
763
1056
|
fieldConfigs?: Record<string, {
|
|
764
1057
|
type: "enum";
|
|
765
1058
|
allowedValues: {
|
|
@@ -772,8 +1065,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
772
1065
|
}> | undefined;
|
|
773
1066
|
}>;
|
|
774
1067
|
cancelOrderOptions: z.ZodObject<{
|
|
775
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
776
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
1068
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1069
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
777
1070
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
778
1071
|
type: z.ZodLiteral<"enum">;
|
|
779
1072
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -809,8 +1102,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
809
1102
|
description?: string | undefined;
|
|
810
1103
|
}>]>>>;
|
|
811
1104
|
}, "strip", z.ZodTypeAny, {
|
|
812
|
-
required
|
|
813
|
-
optional
|
|
1105
|
+
required?: string[] | undefined;
|
|
1106
|
+
optional?: string[] | undefined;
|
|
814
1107
|
fieldConfigs?: Record<string, {
|
|
815
1108
|
type: "enum";
|
|
816
1109
|
allowedValues: {
|
|
@@ -822,8 +1115,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
822
1115
|
description?: string | undefined;
|
|
823
1116
|
}> | undefined;
|
|
824
1117
|
}, {
|
|
825
|
-
required
|
|
826
|
-
optional
|
|
1118
|
+
required?: string[] | undefined;
|
|
1119
|
+
optional?: string[] | undefined;
|
|
827
1120
|
fieldConfigs?: Record<string, {
|
|
828
1121
|
type: "enum";
|
|
829
1122
|
allowedValues: {
|
|
@@ -836,8 +1129,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
836
1129
|
}> | undefined;
|
|
837
1130
|
}>;
|
|
838
1131
|
returnOrderOptions: z.ZodObject<{
|
|
839
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
840
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
1132
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1133
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
841
1134
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
842
1135
|
type: z.ZodLiteral<"enum">;
|
|
843
1136
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -873,8 +1166,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
873
1166
|
description?: string | undefined;
|
|
874
1167
|
}>]>>>;
|
|
875
1168
|
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
required
|
|
877
|
-
optional
|
|
1169
|
+
required?: string[] | undefined;
|
|
1170
|
+
optional?: string[] | undefined;
|
|
878
1171
|
fieldConfigs?: Record<string, {
|
|
879
1172
|
type: "enum";
|
|
880
1173
|
allowedValues: {
|
|
@@ -886,8 +1179,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
886
1179
|
description?: string | undefined;
|
|
887
1180
|
}> | undefined;
|
|
888
1181
|
}, {
|
|
889
|
-
required
|
|
890
|
-
optional
|
|
1182
|
+
required?: string[] | undefined;
|
|
1183
|
+
optional?: string[] | undefined;
|
|
891
1184
|
fieldConfigs?: Record<string, {
|
|
892
1185
|
type: "enum";
|
|
893
1186
|
allowedValues: {
|
|
@@ -900,8 +1193,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
900
1193
|
}> | undefined;
|
|
901
1194
|
}>;
|
|
902
1195
|
exchangeOrderOptions: z.ZodObject<{
|
|
903
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
904
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
1196
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1197
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
905
1198
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
906
1199
|
type: z.ZodLiteral<"enum">;
|
|
907
1200
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -937,8 +1230,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
937
1230
|
description?: string | undefined;
|
|
938
1231
|
}>]>>>;
|
|
939
1232
|
}, "strip", z.ZodTypeAny, {
|
|
940
|
-
required
|
|
941
|
-
optional
|
|
1233
|
+
required?: string[] | undefined;
|
|
1234
|
+
optional?: string[] | undefined;
|
|
942
1235
|
fieldConfigs?: Record<string, {
|
|
943
1236
|
type: "enum";
|
|
944
1237
|
allowedValues: {
|
|
@@ -950,8 +1243,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
950
1243
|
description?: string | undefined;
|
|
951
1244
|
}> | undefined;
|
|
952
1245
|
}, {
|
|
953
|
-
required
|
|
954
|
-
optional
|
|
1246
|
+
required?: string[] | undefined;
|
|
1247
|
+
optional?: string[] | undefined;
|
|
955
1248
|
fieldConfigs?: Record<string, {
|
|
956
1249
|
type: "enum";
|
|
957
1250
|
allowedValues: {
|
|
@@ -964,8 +1257,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
964
1257
|
}> | undefined;
|
|
965
1258
|
}>;
|
|
966
1259
|
changeAddressOptions: z.ZodObject<{
|
|
967
|
-
required: z.ZodArray<z.ZodString, "many"
|
|
968
|
-
optional: z.ZodArray<z.ZodString, "many"
|
|
1260
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1261
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
969
1262
|
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
970
1263
|
type: z.ZodLiteral<"enum">;
|
|
971
1264
|
allowedValues: z.ZodArray<z.ZodObject<{
|
|
@@ -1001,8 +1294,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1001
1294
|
description?: string | undefined;
|
|
1002
1295
|
}>]>>>;
|
|
1003
1296
|
}, "strip", z.ZodTypeAny, {
|
|
1004
|
-
required
|
|
1005
|
-
optional
|
|
1297
|
+
required?: string[] | undefined;
|
|
1298
|
+
optional?: string[] | undefined;
|
|
1006
1299
|
fieldConfigs?: Record<string, {
|
|
1007
1300
|
type: "enum";
|
|
1008
1301
|
allowedValues: {
|
|
@@ -1014,8 +1307,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1014
1307
|
description?: string | undefined;
|
|
1015
1308
|
}> | undefined;
|
|
1016
1309
|
}, {
|
|
1017
|
-
required
|
|
1018
|
-
optional
|
|
1310
|
+
required?: string[] | undefined;
|
|
1311
|
+
optional?: string[] | undefined;
|
|
1019
1312
|
fieldConfigs?: Record<string, {
|
|
1020
1313
|
type: "enum";
|
|
1021
1314
|
allowedValues: {
|
|
@@ -1029,8 +1322,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1029
1322
|
}>;
|
|
1030
1323
|
}, "strip", z.ZodTypeAny, {
|
|
1031
1324
|
getOrdersOptions: {
|
|
1032
|
-
required
|
|
1033
|
-
optional
|
|
1325
|
+
required?: string[] | undefined;
|
|
1326
|
+
optional?: string[] | undefined;
|
|
1034
1327
|
fieldConfigs?: Record<string, {
|
|
1035
1328
|
type: "enum";
|
|
1036
1329
|
allowedValues: {
|
|
@@ -1043,8 +1336,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1043
1336
|
}> | undefined;
|
|
1044
1337
|
};
|
|
1045
1338
|
cancelOrderOptions: {
|
|
1046
|
-
required
|
|
1047
|
-
optional
|
|
1339
|
+
required?: string[] | undefined;
|
|
1340
|
+
optional?: string[] | undefined;
|
|
1048
1341
|
fieldConfigs?: Record<string, {
|
|
1049
1342
|
type: "enum";
|
|
1050
1343
|
allowedValues: {
|
|
@@ -1057,8 +1350,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1057
1350
|
}> | undefined;
|
|
1058
1351
|
};
|
|
1059
1352
|
returnOrderOptions: {
|
|
1060
|
-
required
|
|
1061
|
-
optional
|
|
1353
|
+
required?: string[] | undefined;
|
|
1354
|
+
optional?: string[] | undefined;
|
|
1062
1355
|
fieldConfigs?: Record<string, {
|
|
1063
1356
|
type: "enum";
|
|
1064
1357
|
allowedValues: {
|
|
@@ -1071,8 +1364,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1071
1364
|
}> | undefined;
|
|
1072
1365
|
};
|
|
1073
1366
|
exchangeOrderOptions: {
|
|
1074
|
-
required
|
|
1075
|
-
optional
|
|
1367
|
+
required?: string[] | undefined;
|
|
1368
|
+
optional?: string[] | undefined;
|
|
1076
1369
|
fieldConfigs?: Record<string, {
|
|
1077
1370
|
type: "enum";
|
|
1078
1371
|
allowedValues: {
|
|
@@ -1085,8 +1378,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1085
1378
|
}> | undefined;
|
|
1086
1379
|
};
|
|
1087
1380
|
changeAddressOptions: {
|
|
1088
|
-
required
|
|
1089
|
-
optional
|
|
1381
|
+
required?: string[] | undefined;
|
|
1382
|
+
optional?: string[] | undefined;
|
|
1090
1383
|
fieldConfigs?: Record<string, {
|
|
1091
1384
|
type: "enum";
|
|
1092
1385
|
allowedValues: {
|
|
@@ -1100,8 +1393,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1100
1393
|
};
|
|
1101
1394
|
}, {
|
|
1102
1395
|
getOrdersOptions: {
|
|
1103
|
-
required
|
|
1104
|
-
optional
|
|
1396
|
+
required?: string[] | undefined;
|
|
1397
|
+
optional?: string[] | undefined;
|
|
1105
1398
|
fieldConfigs?: Record<string, {
|
|
1106
1399
|
type: "enum";
|
|
1107
1400
|
allowedValues: {
|
|
@@ -1114,8 +1407,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1114
1407
|
}> | undefined;
|
|
1115
1408
|
};
|
|
1116
1409
|
cancelOrderOptions: {
|
|
1117
|
-
required
|
|
1118
|
-
optional
|
|
1410
|
+
required?: string[] | undefined;
|
|
1411
|
+
optional?: string[] | undefined;
|
|
1119
1412
|
fieldConfigs?: Record<string, {
|
|
1120
1413
|
type: "enum";
|
|
1121
1414
|
allowedValues: {
|
|
@@ -1128,8 +1421,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1128
1421
|
}> | undefined;
|
|
1129
1422
|
};
|
|
1130
1423
|
returnOrderOptions: {
|
|
1131
|
-
required
|
|
1132
|
-
optional
|
|
1424
|
+
required?: string[] | undefined;
|
|
1425
|
+
optional?: string[] | undefined;
|
|
1133
1426
|
fieldConfigs?: Record<string, {
|
|
1134
1427
|
type: "enum";
|
|
1135
1428
|
allowedValues: {
|
|
@@ -1142,8 +1435,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1142
1435
|
}> | undefined;
|
|
1143
1436
|
};
|
|
1144
1437
|
exchangeOrderOptions: {
|
|
1145
|
-
required
|
|
1146
|
-
optional
|
|
1438
|
+
required?: string[] | undefined;
|
|
1439
|
+
optional?: string[] | undefined;
|
|
1147
1440
|
fieldConfigs?: Record<string, {
|
|
1148
1441
|
type: "enum";
|
|
1149
1442
|
allowedValues: {
|
|
@@ -1156,8 +1449,8 @@ export declare const AppCapabilitiesSchema: z.ZodObject<{
|
|
|
1156
1449
|
}> | undefined;
|
|
1157
1450
|
};
|
|
1158
1451
|
changeAddressOptions: {
|
|
1159
|
-
required
|
|
1160
|
-
optional
|
|
1452
|
+
required?: string[] | undefined;
|
|
1453
|
+
optional?: string[] | undefined;
|
|
1161
1454
|
fieldConfigs?: Record<string, {
|
|
1162
1455
|
type: "enum";
|
|
1163
1456
|
allowedValues: {
|