erpnext-queue-client 1.31.2 → 1.33.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.
|
@@ -37,6 +37,7 @@ export declare class ERPNextServicecase {
|
|
|
37
37
|
attachments?: string | null | undefined;
|
|
38
38
|
internal_reasons?: string | null | undefined;
|
|
39
39
|
line_item_id?: string | null | undefined;
|
|
40
|
+
bundle_parent_item?: string | null | undefined;
|
|
40
41
|
total_price?: number | null | undefined;
|
|
41
42
|
return_fee?: number | null | undefined;
|
|
42
43
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -87,6 +88,7 @@ export declare class ERPNextServicecase {
|
|
|
87
88
|
attachments?: string | null | undefined;
|
|
88
89
|
internal_reasons?: string | null | undefined;
|
|
89
90
|
line_item_id?: string | null | undefined;
|
|
91
|
+
bundle_parent_item?: string | null | undefined;
|
|
90
92
|
total_price?: number | null | undefined;
|
|
91
93
|
return_fee?: number | null | undefined;
|
|
92
94
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -132,6 +134,7 @@ export declare class ERPNextServicecase {
|
|
|
132
134
|
attachments?: string | null | undefined;
|
|
133
135
|
internal_reasons?: string | null | undefined;
|
|
134
136
|
line_item_id?: string | null | undefined;
|
|
137
|
+
bundle_parent_item?: string | null | undefined;
|
|
135
138
|
total_price?: number | null | undefined;
|
|
136
139
|
return_fee?: number | null | undefined;
|
|
137
140
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -176,6 +179,7 @@ export declare class ERPNextServicecase {
|
|
|
176
179
|
attachments?: string | null | undefined;
|
|
177
180
|
internal_reasons?: string | null | undefined;
|
|
178
181
|
line_item_id?: string | null | undefined;
|
|
182
|
+
bundle_parent_item?: string | null | undefined;
|
|
179
183
|
total_price?: number | null | undefined;
|
|
180
184
|
return_fee?: number | null | undefined;
|
|
181
185
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -225,6 +229,7 @@ export declare class ERPNextServicecase {
|
|
|
225
229
|
attachments?: string | null | undefined;
|
|
226
230
|
internal_reasons?: string | null | undefined;
|
|
227
231
|
line_item_id?: string | null | undefined;
|
|
232
|
+
bundle_parent_item?: string | null | undefined;
|
|
228
233
|
total_price?: number | null | undefined;
|
|
229
234
|
return_fee?: number | null | undefined;
|
|
230
235
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -269,6 +274,7 @@ export declare class ERPNextServicecase {
|
|
|
269
274
|
attachments?: string | null | undefined;
|
|
270
275
|
internal_reasons?: string | null | undefined;
|
|
271
276
|
line_item_id?: string | null | undefined;
|
|
277
|
+
bundle_parent_item?: string | null | undefined;
|
|
272
278
|
total_price?: number | null | undefined;
|
|
273
279
|
return_fee?: number | null | undefined;
|
|
274
280
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -318,6 +324,7 @@ export declare class ERPNextServicecase {
|
|
|
318
324
|
return_quantity: number;
|
|
319
325
|
is_complaint: boolean;
|
|
320
326
|
line_item_id?: string | null | undefined;
|
|
327
|
+
bundle_parent_item?: string | null | undefined;
|
|
321
328
|
total_price?: number | null | undefined;
|
|
322
329
|
return_fee?: number | null | undefined;
|
|
323
330
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -329,6 +336,18 @@ export declare class ERPNextServicecase {
|
|
|
329
336
|
attachments_collection_name?: string | null | undefined;
|
|
330
337
|
internal_reasons_collection_name?: string | null | undefined;
|
|
331
338
|
}[];
|
|
339
|
+
return_shipping_items: {
|
|
340
|
+
name: string;
|
|
341
|
+
owner: string;
|
|
342
|
+
creation: string;
|
|
343
|
+
modified: string;
|
|
344
|
+
modified_by: string;
|
|
345
|
+
idx: number;
|
|
346
|
+
quantity: number;
|
|
347
|
+
item: string;
|
|
348
|
+
return_label: string;
|
|
349
|
+
return_item: string;
|
|
350
|
+
}[];
|
|
332
351
|
external_id?: string | null | undefined;
|
|
333
352
|
customer_email?: string | null | undefined;
|
|
334
353
|
complaint_date?: string | null | undefined;
|
|
@@ -182,6 +182,7 @@ export declare const UpdateInternalReasonCollectionInput: z.ZodObject<{
|
|
|
182
182
|
export declare const ReturnItemBase: z.ZodObject<{
|
|
183
183
|
item: z.ZodString;
|
|
184
184
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
185
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
185
186
|
return_quantity: z.ZodNumber;
|
|
186
187
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
187
188
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -201,6 +202,7 @@ export declare const ReturnItemBase: z.ZodObject<{
|
|
|
201
202
|
attachments?: string | null | undefined;
|
|
202
203
|
internal_reasons?: string | null | undefined;
|
|
203
204
|
line_item_id?: string | null | undefined;
|
|
205
|
+
bundle_parent_item?: string | null | undefined;
|
|
204
206
|
total_price?: number | null | undefined;
|
|
205
207
|
return_fee?: number | null | undefined;
|
|
206
208
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -216,6 +218,7 @@ export declare const ReturnItemBase: z.ZodObject<{
|
|
|
216
218
|
attachments?: string | null | undefined;
|
|
217
219
|
internal_reasons?: string | null | undefined;
|
|
218
220
|
line_item_id?: string | null | undefined;
|
|
221
|
+
bundle_parent_item?: string | null | undefined;
|
|
219
222
|
total_price?: number | null | undefined;
|
|
220
223
|
return_fee?: number | null | undefined;
|
|
221
224
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -229,6 +232,7 @@ export type ReturnItemBaseType = z.infer<typeof ReturnItemBase>;
|
|
|
229
232
|
export declare const ReturnItemInput: z.ZodObject<{
|
|
230
233
|
item: z.ZodString;
|
|
231
234
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
232
236
|
return_quantity: z.ZodNumber;
|
|
233
237
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
234
238
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -249,6 +253,7 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
249
253
|
attachments?: string | null | undefined;
|
|
250
254
|
internal_reasons?: string | null | undefined;
|
|
251
255
|
line_item_id?: string | null | undefined;
|
|
256
|
+
bundle_parent_item?: string | null | undefined;
|
|
252
257
|
total_price?: number | null | undefined;
|
|
253
258
|
return_fee?: number | null | undefined;
|
|
254
259
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -263,6 +268,7 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
263
268
|
attachments?: string | null | undefined;
|
|
264
269
|
internal_reasons?: string | null | undefined;
|
|
265
270
|
line_item_id?: string | null | undefined;
|
|
271
|
+
bundle_parent_item?: string | null | undefined;
|
|
266
272
|
total_price?: number | null | undefined;
|
|
267
273
|
return_fee?: number | null | undefined;
|
|
268
274
|
is_complaint?: unknown;
|
|
@@ -277,6 +283,7 @@ export type ReturnItemInputType = z.infer<typeof ReturnItemInput>;
|
|
|
277
283
|
export declare const ReturnItem: z.ZodObject<{
|
|
278
284
|
item: z.ZodString;
|
|
279
285
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
286
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
280
287
|
return_quantity: z.ZodNumber;
|
|
281
288
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
282
289
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -309,6 +316,7 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
309
316
|
attachments?: string | null | undefined;
|
|
310
317
|
internal_reasons?: string | null | undefined;
|
|
311
318
|
line_item_id?: string | null | undefined;
|
|
319
|
+
bundle_parent_item?: string | null | undefined;
|
|
312
320
|
total_price?: number | null | undefined;
|
|
313
321
|
return_fee?: number | null | undefined;
|
|
314
322
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -330,6 +338,7 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
330
338
|
attachments?: string | null | undefined;
|
|
331
339
|
internal_reasons?: string | null | undefined;
|
|
332
340
|
line_item_id?: string | null | undefined;
|
|
341
|
+
bundle_parent_item?: string | null | undefined;
|
|
333
342
|
total_price?: number | null | undefined;
|
|
334
343
|
return_fee?: number | null | undefined;
|
|
335
344
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -343,6 +352,7 @@ export type ReturnItemType = z.infer<typeof ReturnItem>;
|
|
|
343
352
|
export declare const ReturnItemExtended: z.ZodObject<{
|
|
344
353
|
item: z.ZodString;
|
|
345
354
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
355
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
346
356
|
return_quantity: z.ZodNumber;
|
|
347
357
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
348
358
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -389,6 +399,7 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
389
399
|
return_quantity: number;
|
|
390
400
|
is_complaint: boolean;
|
|
391
401
|
line_item_id?: string | null | undefined;
|
|
402
|
+
bundle_parent_item?: string | null | undefined;
|
|
392
403
|
total_price?: number | null | undefined;
|
|
393
404
|
return_fee?: number | null | undefined;
|
|
394
405
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -415,6 +426,7 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
415
426
|
return_quantity: number;
|
|
416
427
|
is_complaint: number;
|
|
417
428
|
line_item_id?: string | null | undefined;
|
|
429
|
+
bundle_parent_item?: string | null | undefined;
|
|
418
430
|
total_price?: number | null | undefined;
|
|
419
431
|
return_fee?: number | null | undefined;
|
|
420
432
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -427,6 +439,59 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
427
439
|
internal_reasons_collection_name?: string | null | undefined;
|
|
428
440
|
}>;
|
|
429
441
|
export type ReturnItemExtendedType = z.infer<typeof ReturnItemExtended>;
|
|
442
|
+
export declare const ReturnShippingItemBase: z.ZodObject<{
|
|
443
|
+
item: z.ZodString;
|
|
444
|
+
return_item: z.ZodString;
|
|
445
|
+
quantity: z.ZodNumber;
|
|
446
|
+
return_label: z.ZodString;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
quantity: number;
|
|
449
|
+
item: string;
|
|
450
|
+
return_label: string;
|
|
451
|
+
return_item: string;
|
|
452
|
+
}, {
|
|
453
|
+
quantity: number;
|
|
454
|
+
item: string;
|
|
455
|
+
return_label: string;
|
|
456
|
+
return_item: string;
|
|
457
|
+
}>;
|
|
458
|
+
export type ReturnShippingItemBaseType = z.infer<typeof ReturnShippingItemBase>;
|
|
459
|
+
export declare const ReturnShippingItemExtended: z.ZodObject<{
|
|
460
|
+
item: z.ZodString;
|
|
461
|
+
return_item: z.ZodString;
|
|
462
|
+
quantity: z.ZodNumber;
|
|
463
|
+
return_label: z.ZodString;
|
|
464
|
+
} & {
|
|
465
|
+
name: z.ZodString;
|
|
466
|
+
owner: z.ZodString;
|
|
467
|
+
creation: z.ZodString;
|
|
468
|
+
modified: z.ZodString;
|
|
469
|
+
modified_by: z.ZodString;
|
|
470
|
+
idx: z.ZodNumber;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
name: string;
|
|
473
|
+
owner: string;
|
|
474
|
+
creation: string;
|
|
475
|
+
modified: string;
|
|
476
|
+
modified_by: string;
|
|
477
|
+
idx: number;
|
|
478
|
+
quantity: number;
|
|
479
|
+
item: string;
|
|
480
|
+
return_label: string;
|
|
481
|
+
return_item: string;
|
|
482
|
+
}, {
|
|
483
|
+
name: string;
|
|
484
|
+
owner: string;
|
|
485
|
+
creation: string;
|
|
486
|
+
modified: string;
|
|
487
|
+
modified_by: string;
|
|
488
|
+
idx: number;
|
|
489
|
+
quantity: number;
|
|
490
|
+
item: string;
|
|
491
|
+
return_label: string;
|
|
492
|
+
return_item: string;
|
|
493
|
+
}>;
|
|
494
|
+
export type ReturnShippingItemExtendedType = z.infer<typeof ReturnShippingItemExtended>;
|
|
430
495
|
export declare const ServicecaseBase: z.ZodObject<{
|
|
431
496
|
title: z.ZodString;
|
|
432
497
|
order_number: z.ZodString;
|
|
@@ -492,6 +557,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
492
557
|
return_items: z.ZodArray<z.ZodObject<{
|
|
493
558
|
item: z.ZodString;
|
|
494
559
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
560
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
495
561
|
return_quantity: z.ZodNumber;
|
|
496
562
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
497
563
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -524,6 +590,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
524
590
|
attachments?: string | null | undefined;
|
|
525
591
|
internal_reasons?: string | null | undefined;
|
|
526
592
|
line_item_id?: string | null | undefined;
|
|
593
|
+
bundle_parent_item?: string | null | undefined;
|
|
527
594
|
total_price?: number | null | undefined;
|
|
528
595
|
return_fee?: number | null | undefined;
|
|
529
596
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -545,6 +612,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
545
612
|
attachments?: string | null | undefined;
|
|
546
613
|
internal_reasons?: string | null | undefined;
|
|
547
614
|
line_item_id?: string | null | undefined;
|
|
615
|
+
bundle_parent_item?: string | null | undefined;
|
|
548
616
|
total_price?: number | null | undefined;
|
|
549
617
|
return_fee?: number | null | undefined;
|
|
550
618
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -583,6 +651,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
583
651
|
attachments?: string | null | undefined;
|
|
584
652
|
internal_reasons?: string | null | undefined;
|
|
585
653
|
line_item_id?: string | null | undefined;
|
|
654
|
+
bundle_parent_item?: string | null | undefined;
|
|
586
655
|
total_price?: number | null | undefined;
|
|
587
656
|
return_fee?: number | null | undefined;
|
|
588
657
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -622,6 +691,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
622
691
|
attachments?: string | null | undefined;
|
|
623
692
|
internal_reasons?: string | null | undefined;
|
|
624
693
|
line_item_id?: string | null | undefined;
|
|
694
|
+
bundle_parent_item?: string | null | undefined;
|
|
625
695
|
total_price?: number | null | undefined;
|
|
626
696
|
return_fee?: number | null | undefined;
|
|
627
697
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -656,6 +726,7 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
656
726
|
return_items: z.ZodArray<z.ZodObject<{
|
|
657
727
|
item: z.ZodString;
|
|
658
728
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
729
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
659
730
|
return_quantity: z.ZodNumber;
|
|
660
731
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
661
732
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -676,6 +747,7 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
676
747
|
attachments?: string | null | undefined;
|
|
677
748
|
internal_reasons?: string | null | undefined;
|
|
678
749
|
line_item_id?: string | null | undefined;
|
|
750
|
+
bundle_parent_item?: string | null | undefined;
|
|
679
751
|
total_price?: number | null | undefined;
|
|
680
752
|
return_fee?: number | null | undefined;
|
|
681
753
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -690,6 +762,7 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
690
762
|
attachments?: string | null | undefined;
|
|
691
763
|
internal_reasons?: string | null | undefined;
|
|
692
764
|
line_item_id?: string | null | undefined;
|
|
765
|
+
bundle_parent_item?: string | null | undefined;
|
|
693
766
|
total_price?: number | null | undefined;
|
|
694
767
|
return_fee?: number | null | undefined;
|
|
695
768
|
is_complaint?: unknown;
|
|
@@ -718,6 +791,7 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
718
791
|
attachments?: string | null | undefined;
|
|
719
792
|
internal_reasons?: string | null | undefined;
|
|
720
793
|
line_item_id?: string | null | undefined;
|
|
794
|
+
bundle_parent_item?: string | null | undefined;
|
|
721
795
|
total_price?: number | null | undefined;
|
|
722
796
|
return_fee?: number | null | undefined;
|
|
723
797
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -743,6 +817,7 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
743
817
|
attachments?: string | null | undefined;
|
|
744
818
|
internal_reasons?: string | null | undefined;
|
|
745
819
|
line_item_id?: string | null | undefined;
|
|
820
|
+
bundle_parent_item?: string | null | undefined;
|
|
746
821
|
total_price?: number | null | undefined;
|
|
747
822
|
return_fee?: number | null | undefined;
|
|
748
823
|
is_complaint?: unknown;
|
|
@@ -785,6 +860,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
785
860
|
return_items: z.ZodArray<z.ZodObject<{
|
|
786
861
|
item: z.ZodString;
|
|
787
862
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
863
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
788
864
|
return_quantity: z.ZodNumber;
|
|
789
865
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
790
866
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -831,6 +907,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
831
907
|
return_quantity: number;
|
|
832
908
|
is_complaint: boolean;
|
|
833
909
|
line_item_id?: string | null | undefined;
|
|
910
|
+
bundle_parent_item?: string | null | undefined;
|
|
834
911
|
total_price?: number | null | undefined;
|
|
835
912
|
return_fee?: number | null | undefined;
|
|
836
913
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -857,6 +934,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
857
934
|
return_quantity: number;
|
|
858
935
|
is_complaint: number;
|
|
859
936
|
line_item_id?: string | null | undefined;
|
|
937
|
+
bundle_parent_item?: string | null | undefined;
|
|
860
938
|
total_price?: number | null | undefined;
|
|
861
939
|
return_fee?: number | null | undefined;
|
|
862
940
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -868,6 +946,41 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
868
946
|
attachments_collection_name?: string | null | undefined;
|
|
869
947
|
internal_reasons_collection_name?: string | null | undefined;
|
|
870
948
|
}>, "many">;
|
|
949
|
+
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
950
|
+
item: z.ZodString;
|
|
951
|
+
return_item: z.ZodString;
|
|
952
|
+
quantity: z.ZodNumber;
|
|
953
|
+
return_label: z.ZodString;
|
|
954
|
+
} & {
|
|
955
|
+
name: z.ZodString;
|
|
956
|
+
owner: z.ZodString;
|
|
957
|
+
creation: z.ZodString;
|
|
958
|
+
modified: z.ZodString;
|
|
959
|
+
modified_by: z.ZodString;
|
|
960
|
+
idx: z.ZodNumber;
|
|
961
|
+
}, "strip", z.ZodTypeAny, {
|
|
962
|
+
name: string;
|
|
963
|
+
owner: string;
|
|
964
|
+
creation: string;
|
|
965
|
+
modified: string;
|
|
966
|
+
modified_by: string;
|
|
967
|
+
idx: number;
|
|
968
|
+
quantity: number;
|
|
969
|
+
item: string;
|
|
970
|
+
return_label: string;
|
|
971
|
+
return_item: string;
|
|
972
|
+
}, {
|
|
973
|
+
name: string;
|
|
974
|
+
owner: string;
|
|
975
|
+
creation: string;
|
|
976
|
+
modified: string;
|
|
977
|
+
modified_by: string;
|
|
978
|
+
idx: number;
|
|
979
|
+
quantity: number;
|
|
980
|
+
item: string;
|
|
981
|
+
return_label: string;
|
|
982
|
+
return_item: string;
|
|
983
|
+
}>, "many">;
|
|
871
984
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
872
985
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
873
986
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -900,6 +1013,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
900
1013
|
return_quantity: number;
|
|
901
1014
|
is_complaint: boolean;
|
|
902
1015
|
line_item_id?: string | null | undefined;
|
|
1016
|
+
bundle_parent_item?: string | null | undefined;
|
|
903
1017
|
total_price?: number | null | undefined;
|
|
904
1018
|
return_fee?: number | null | undefined;
|
|
905
1019
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -911,6 +1025,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
911
1025
|
attachments_collection_name?: string | null | undefined;
|
|
912
1026
|
internal_reasons_collection_name?: string | null | undefined;
|
|
913
1027
|
}[];
|
|
1028
|
+
return_shipping_items: {
|
|
1029
|
+
name: string;
|
|
1030
|
+
owner: string;
|
|
1031
|
+
creation: string;
|
|
1032
|
+
modified: string;
|
|
1033
|
+
modified_by: string;
|
|
1034
|
+
idx: number;
|
|
1035
|
+
quantity: number;
|
|
1036
|
+
item: string;
|
|
1037
|
+
return_label: string;
|
|
1038
|
+
return_item: string;
|
|
1039
|
+
}[];
|
|
914
1040
|
external_id?: string | null | undefined;
|
|
915
1041
|
customer_email?: string | null | undefined;
|
|
916
1042
|
complaint_date?: string | null | undefined;
|
|
@@ -944,6 +1070,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
944
1070
|
return_quantity: number;
|
|
945
1071
|
is_complaint: number;
|
|
946
1072
|
line_item_id?: string | null | undefined;
|
|
1073
|
+
bundle_parent_item?: string | null | undefined;
|
|
947
1074
|
total_price?: number | null | undefined;
|
|
948
1075
|
return_fee?: number | null | undefined;
|
|
949
1076
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -955,6 +1082,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
955
1082
|
attachments_collection_name?: string | null | undefined;
|
|
956
1083
|
internal_reasons_collection_name?: string | null | undefined;
|
|
957
1084
|
}[];
|
|
1085
|
+
return_shipping_items: {
|
|
1086
|
+
name: string;
|
|
1087
|
+
owner: string;
|
|
1088
|
+
creation: string;
|
|
1089
|
+
modified: string;
|
|
1090
|
+
modified_by: string;
|
|
1091
|
+
idx: number;
|
|
1092
|
+
quantity: number;
|
|
1093
|
+
item: string;
|
|
1094
|
+
return_label: string;
|
|
1095
|
+
return_item: string;
|
|
1096
|
+
}[];
|
|
958
1097
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
959
1098
|
external_id?: string | null | undefined;
|
|
960
1099
|
customer_email?: string | null | undefined;
|
|
@@ -985,6 +1124,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
985
1124
|
return_items: z.ZodArray<z.ZodObject<{
|
|
986
1125
|
item: z.ZodString;
|
|
987
1126
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1127
|
+
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
988
1128
|
return_quantity: z.ZodNumber;
|
|
989
1129
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
990
1130
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1031,6 +1171,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1031
1171
|
return_quantity: number;
|
|
1032
1172
|
is_complaint: boolean;
|
|
1033
1173
|
line_item_id?: string | null | undefined;
|
|
1174
|
+
bundle_parent_item?: string | null | undefined;
|
|
1034
1175
|
total_price?: number | null | undefined;
|
|
1035
1176
|
return_fee?: number | null | undefined;
|
|
1036
1177
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -1057,6 +1198,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1057
1198
|
return_quantity: number;
|
|
1058
1199
|
is_complaint: number;
|
|
1059
1200
|
line_item_id?: string | null | undefined;
|
|
1201
|
+
bundle_parent_item?: string | null | undefined;
|
|
1060
1202
|
total_price?: number | null | undefined;
|
|
1061
1203
|
return_fee?: number | null | undefined;
|
|
1062
1204
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -1068,6 +1210,41 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1068
1210
|
attachments_collection_name?: string | null | undefined;
|
|
1069
1211
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1070
1212
|
}>, "many">;
|
|
1213
|
+
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
1214
|
+
item: z.ZodString;
|
|
1215
|
+
return_item: z.ZodString;
|
|
1216
|
+
quantity: z.ZodNumber;
|
|
1217
|
+
return_label: z.ZodString;
|
|
1218
|
+
} & {
|
|
1219
|
+
name: z.ZodString;
|
|
1220
|
+
owner: z.ZodString;
|
|
1221
|
+
creation: z.ZodString;
|
|
1222
|
+
modified: z.ZodString;
|
|
1223
|
+
modified_by: z.ZodString;
|
|
1224
|
+
idx: z.ZodNumber;
|
|
1225
|
+
}, "strip", z.ZodTypeAny, {
|
|
1226
|
+
name: string;
|
|
1227
|
+
owner: string;
|
|
1228
|
+
creation: string;
|
|
1229
|
+
modified: string;
|
|
1230
|
+
modified_by: string;
|
|
1231
|
+
idx: number;
|
|
1232
|
+
quantity: number;
|
|
1233
|
+
item: string;
|
|
1234
|
+
return_label: string;
|
|
1235
|
+
return_item: string;
|
|
1236
|
+
}, {
|
|
1237
|
+
name: string;
|
|
1238
|
+
owner: string;
|
|
1239
|
+
creation: string;
|
|
1240
|
+
modified: string;
|
|
1241
|
+
modified_by: string;
|
|
1242
|
+
idx: number;
|
|
1243
|
+
quantity: number;
|
|
1244
|
+
item: string;
|
|
1245
|
+
return_label: string;
|
|
1246
|
+
return_item: string;
|
|
1247
|
+
}>, "many">;
|
|
1071
1248
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1072
1249
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1073
1250
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1100,6 +1277,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1100
1277
|
return_quantity: number;
|
|
1101
1278
|
is_complaint: boolean;
|
|
1102
1279
|
line_item_id?: string | null | undefined;
|
|
1280
|
+
bundle_parent_item?: string | null | undefined;
|
|
1103
1281
|
total_price?: number | null | undefined;
|
|
1104
1282
|
return_fee?: number | null | undefined;
|
|
1105
1283
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -1111,6 +1289,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1111
1289
|
attachments_collection_name?: string | null | undefined;
|
|
1112
1290
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1113
1291
|
}[];
|
|
1292
|
+
return_shipping_items: {
|
|
1293
|
+
name: string;
|
|
1294
|
+
owner: string;
|
|
1295
|
+
creation: string;
|
|
1296
|
+
modified: string;
|
|
1297
|
+
modified_by: string;
|
|
1298
|
+
idx: number;
|
|
1299
|
+
quantity: number;
|
|
1300
|
+
item: string;
|
|
1301
|
+
return_label: string;
|
|
1302
|
+
return_item: string;
|
|
1303
|
+
}[];
|
|
1114
1304
|
external_id?: string | null | undefined;
|
|
1115
1305
|
customer_email?: string | null | undefined;
|
|
1116
1306
|
complaint_date?: string | null | undefined;
|
|
@@ -1144,6 +1334,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1144
1334
|
return_quantity: number;
|
|
1145
1335
|
is_complaint: number;
|
|
1146
1336
|
line_item_id?: string | null | undefined;
|
|
1337
|
+
bundle_parent_item?: string | null | undefined;
|
|
1147
1338
|
total_price?: number | null | undefined;
|
|
1148
1339
|
return_fee?: number | null | undefined;
|
|
1149
1340
|
intent?: "return" | "solve" | null | undefined;
|
|
@@ -1155,6 +1346,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1155
1346
|
attachments_collection_name?: string | null | undefined;
|
|
1156
1347
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1157
1348
|
}[];
|
|
1349
|
+
return_shipping_items: {
|
|
1350
|
+
name: string;
|
|
1351
|
+
owner: string;
|
|
1352
|
+
creation: string;
|
|
1353
|
+
modified: string;
|
|
1354
|
+
modified_by: string;
|
|
1355
|
+
idx: number;
|
|
1356
|
+
quantity: number;
|
|
1357
|
+
item: string;
|
|
1358
|
+
return_label: string;
|
|
1359
|
+
return_item: string;
|
|
1360
|
+
}[];
|
|
1158
1361
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1159
1362
|
external_id?: string | null | undefined;
|
|
1160
1363
|
customer_email?: string | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServicecaseMethodResponse = exports.ServicecaseExtended = exports.ServicecaseInput = exports.Servicecase = exports.ServicecaseBase = exports.ReturnItemExtended = exports.ReturnItem = exports.ReturnItemInput = exports.ReturnItemBase = exports.UpdateInternalReasonCollectionInput = exports.InternalReasonCollection = exports.UpdateAttachmentCollectionInput = exports.AttachmentCollection = void 0;
|
|
3
|
+
exports.ServicecaseMethodResponse = exports.ServicecaseExtended = exports.ServicecaseInput = exports.Servicecase = exports.ServicecaseBase = exports.ReturnShippingItemExtended = exports.ReturnShippingItemBase = exports.ReturnItemExtended = exports.ReturnItem = exports.ReturnItemInput = exports.ReturnItemBase = exports.UpdateInternalReasonCollectionInput = exports.InternalReasonCollection = exports.UpdateAttachmentCollectionInput = exports.AttachmentCollection = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Shop = zod_1.z.enum(["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]);
|
|
6
6
|
const Status = zod_1.z.enum(["EDITING", "SUBMITTED", "COMPLETED"]);
|
|
@@ -78,6 +78,7 @@ exports.ReturnItemBase = zod_1.z
|
|
|
78
78
|
.object({
|
|
79
79
|
item: zod_1.z.string(),
|
|
80
80
|
line_item_id: zod_1.z.string().optional().nullable(),
|
|
81
|
+
bundle_parent_item: zod_1.z.string().optional().nullable(),
|
|
81
82
|
return_quantity: zod_1.z.number(),
|
|
82
83
|
total_price: zod_1.z.number().optional().nullable(),
|
|
83
84
|
return_fee: zod_1.z.number().optional().nullable(),
|
|
@@ -116,6 +117,23 @@ exports.ReturnItemExtended = exports.ReturnItemBase.extend({
|
|
|
116
117
|
internal_reasons: zod_1.z.array(zod_1.z.string()),
|
|
117
118
|
internal_reasons_collection_name: zod_1.z.string().optional().nullable(),
|
|
118
119
|
}).describe("ReturnItemExtended");
|
|
120
|
+
// Shipping Info stored in separate child table with relation to return_item
|
|
121
|
+
exports.ReturnShippingItemBase = zod_1.z
|
|
122
|
+
.object({
|
|
123
|
+
item: zod_1.z.string(),
|
|
124
|
+
return_item: zod_1.z.string(),
|
|
125
|
+
quantity: zod_1.z.number(),
|
|
126
|
+
return_label: zod_1.z.string(),
|
|
127
|
+
})
|
|
128
|
+
.describe("ReturnShippingItemBase");
|
|
129
|
+
exports.ReturnShippingItemExtended = exports.ReturnShippingItemBase.extend({
|
|
130
|
+
name: zod_1.z.string(),
|
|
131
|
+
owner: zod_1.z.string(),
|
|
132
|
+
creation: zod_1.z.string(),
|
|
133
|
+
modified: zod_1.z.string(),
|
|
134
|
+
modified_by: zod_1.z.string(),
|
|
135
|
+
idx: zod_1.z.number(),
|
|
136
|
+
}).describe("ReturnItemExtended");
|
|
119
137
|
// Base type to prevent having to use omit combined with extend, not to be used directly
|
|
120
138
|
exports.ServicecaseBase = zod_1.z
|
|
121
139
|
.object({
|
|
@@ -151,6 +169,7 @@ exports.ServicecaseInput = exports.ServicecaseBase.extend({
|
|
|
151
169
|
}).describe("ServicecaseInput");
|
|
152
170
|
exports.ServicecaseExtended = exports.Servicecase.extend({
|
|
153
171
|
return_items: zod_1.z.array(exports.ReturnItemExtended),
|
|
172
|
+
return_shipping_items: zod_1.z.array(exports.ReturnShippingItemExtended),
|
|
154
173
|
is_sent_to_client: zod_1.z.number().transform(Boolean),
|
|
155
174
|
is_sent_to_cc: zod_1.z.number().transform(Boolean),
|
|
156
175
|
}).describe("ServicecaseExtended");
|