erpnext-queue-client 1.34.0 → 1.34.2
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.
|
@@ -54,11 +54,11 @@ export declare class ERPNextServicecase {
|
|
|
54
54
|
modified: string;
|
|
55
55
|
modified_by: string;
|
|
56
56
|
idx: number;
|
|
57
|
+
shipment_id: string;
|
|
57
58
|
quantity: number;
|
|
58
59
|
item: string;
|
|
59
60
|
return_fee: number;
|
|
60
61
|
return_item: string;
|
|
61
|
-
shipmentId: string;
|
|
62
62
|
shipping_provider?: string | null | undefined;
|
|
63
63
|
return_label?: string | null | undefined;
|
|
64
64
|
}[];
|
|
@@ -120,11 +120,11 @@ export declare class ERPNextServicecase {
|
|
|
120
120
|
modified: string;
|
|
121
121
|
modified_by: string;
|
|
122
122
|
idx: number;
|
|
123
|
+
shipment_id: string;
|
|
123
124
|
quantity: number;
|
|
124
125
|
item: string;
|
|
125
126
|
return_fee: number;
|
|
126
127
|
return_item: string;
|
|
127
|
-
shipmentId: string;
|
|
128
128
|
shipping_provider?: string | null | undefined;
|
|
129
129
|
return_label?: string | null | undefined;
|
|
130
130
|
}[];
|
|
@@ -181,11 +181,11 @@ export declare class ERPNextServicecase {
|
|
|
181
181
|
modified: string;
|
|
182
182
|
modified_by: string;
|
|
183
183
|
idx: number;
|
|
184
|
+
shipment_id: string;
|
|
184
185
|
quantity: number;
|
|
185
186
|
item: string;
|
|
186
187
|
return_fee: number;
|
|
187
188
|
return_item: string;
|
|
188
|
-
shipmentId: string;
|
|
189
189
|
shipping_provider?: string | null | undefined;
|
|
190
190
|
return_label?: string | null | undefined;
|
|
191
191
|
}[];
|
|
@@ -241,11 +241,11 @@ export declare class ERPNextServicecase {
|
|
|
241
241
|
modified: string;
|
|
242
242
|
modified_by: string;
|
|
243
243
|
idx: number;
|
|
244
|
+
shipment_id: string;
|
|
244
245
|
quantity: number;
|
|
245
246
|
item: string;
|
|
246
247
|
return_fee: number;
|
|
247
248
|
return_item: string;
|
|
248
|
-
shipmentId: string;
|
|
249
249
|
shipping_provider?: string | null | undefined;
|
|
250
250
|
return_label?: string | null | undefined;
|
|
251
251
|
}[];
|
|
@@ -306,11 +306,11 @@ export declare class ERPNextServicecase {
|
|
|
306
306
|
modified: string;
|
|
307
307
|
modified_by: string;
|
|
308
308
|
idx: number;
|
|
309
|
+
shipment_id: string;
|
|
309
310
|
quantity: number;
|
|
310
311
|
item: string;
|
|
311
312
|
return_fee: number;
|
|
312
313
|
return_item: string;
|
|
313
|
-
shipmentId: string;
|
|
314
314
|
shipping_provider?: string | null | undefined;
|
|
315
315
|
return_label?: string | null | undefined;
|
|
316
316
|
}[];
|
|
@@ -366,11 +366,11 @@ export declare class ERPNextServicecase {
|
|
|
366
366
|
modified: string;
|
|
367
367
|
modified_by: string;
|
|
368
368
|
idx: number;
|
|
369
|
+
shipment_id: string;
|
|
369
370
|
quantity: number;
|
|
370
371
|
item: string;
|
|
371
372
|
return_fee: number;
|
|
372
373
|
return_item: string;
|
|
373
|
-
shipmentId: string;
|
|
374
374
|
shipping_provider?: string | null | undefined;
|
|
375
375
|
return_label?: string | null | undefined;
|
|
376
376
|
}[];
|
|
@@ -381,7 +381,7 @@ export declare class ERPNextServicecase {
|
|
|
381
381
|
agreed_terms?: string | null | undefined;
|
|
382
382
|
}>;
|
|
383
383
|
getServicecasesExtended({ email, id, priority, }: {
|
|
384
|
-
email
|
|
384
|
+
email?: string;
|
|
385
385
|
id?: string;
|
|
386
386
|
priority?: number;
|
|
387
387
|
}): Promise<{
|
|
@@ -433,11 +433,11 @@ export declare class ERPNextServicecase {
|
|
|
433
433
|
modified: string;
|
|
434
434
|
modified_by: string;
|
|
435
435
|
idx: number;
|
|
436
|
+
shipment_id: string;
|
|
436
437
|
quantity: number;
|
|
437
438
|
item: string;
|
|
438
439
|
return_fee: number;
|
|
439
440
|
return_item: string;
|
|
440
|
-
shipmentId: string;
|
|
441
441
|
shipping_provider?: string | null | undefined;
|
|
442
442
|
return_label?: string | null | undefined;
|
|
443
443
|
}[];
|
|
@@ -72,22 +72,44 @@ class ERPNextServicecase {
|
|
|
72
72
|
}
|
|
73
73
|
getServicecasesExtended(_a) {
|
|
74
74
|
return __awaiter(this, arguments, void 0, function* ({ email, id, priority = 5, }) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
let servicecases = [];
|
|
76
|
+
if (email) {
|
|
77
|
+
servicecases = yield this.methodRequest.request({
|
|
78
|
+
requestMethod: "GET",
|
|
79
|
+
methodName: "servicecases-extended",
|
|
80
|
+
params: {
|
|
81
|
+
email: email !== null && email !== void 0 ? email : "",
|
|
82
|
+
id: id !== null && id !== void 0 ? id : "",
|
|
83
|
+
},
|
|
84
|
+
inputValidationModel: zod_1.z
|
|
85
|
+
.object({
|
|
86
|
+
email: zod_1.z.string().email(),
|
|
87
|
+
id: zod_1.z.string().optional(),
|
|
88
|
+
})
|
|
89
|
+
.describe("ServicecaseExtendedInput"),
|
|
90
|
+
responseValidationModel: Servicecase_1.ServicecaseMethodResponse,
|
|
91
|
+
priority,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else if (id) {
|
|
95
|
+
servicecases = yield this.methodRequest.request({
|
|
96
|
+
requestMethod: "GET",
|
|
97
|
+
methodName: "servicecases-extended-name",
|
|
98
|
+
params: {
|
|
99
|
+
id: id,
|
|
100
|
+
},
|
|
101
|
+
inputValidationModel: zod_1.z
|
|
102
|
+
.object({
|
|
103
|
+
id: zod_1.z.string(),
|
|
104
|
+
})
|
|
105
|
+
.describe("ServicecaseExtendedInput"),
|
|
106
|
+
responseValidationModel: Servicecase_1.ServicecaseMethodResponse,
|
|
107
|
+
priority,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
throw new Error("Either email or id must be provided");
|
|
112
|
+
}
|
|
91
113
|
return servicecases;
|
|
92
114
|
});
|
|
93
115
|
}
|
|
@@ -446,23 +446,23 @@ export declare const ReturnShippingItemBase: z.ZodObject<{
|
|
|
446
446
|
item: z.ZodString;
|
|
447
447
|
return_item: z.ZodString;
|
|
448
448
|
quantity: z.ZodNumber;
|
|
449
|
-
|
|
449
|
+
shipment_id: z.ZodString;
|
|
450
450
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
451
451
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
452
452
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
453
453
|
}, "strip", z.ZodTypeAny, {
|
|
454
|
+
shipment_id: string;
|
|
454
455
|
quantity: number;
|
|
455
456
|
item: string;
|
|
456
457
|
return_fee: number;
|
|
457
458
|
return_item: string;
|
|
458
|
-
shipmentId: string;
|
|
459
459
|
shipping_provider?: string | null | undefined;
|
|
460
460
|
return_label?: string | null | undefined;
|
|
461
461
|
}, {
|
|
462
|
+
shipment_id: string;
|
|
462
463
|
quantity: number;
|
|
463
464
|
item: string;
|
|
464
465
|
return_item: string;
|
|
465
|
-
shipmentId: string;
|
|
466
466
|
shipping_provider?: string | null | undefined;
|
|
467
467
|
return_fee?: number | undefined;
|
|
468
468
|
return_label?: string | null | undefined;
|
|
@@ -472,7 +472,7 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
472
472
|
item: z.ZodString;
|
|
473
473
|
return_item: z.ZodString;
|
|
474
474
|
quantity: z.ZodNumber;
|
|
475
|
-
|
|
475
|
+
shipment_id: z.ZodString;
|
|
476
476
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
477
477
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
478
478
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -490,11 +490,11 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
490
490
|
modified: string;
|
|
491
491
|
modified_by: string;
|
|
492
492
|
idx: number;
|
|
493
|
+
shipment_id: string;
|
|
493
494
|
quantity: number;
|
|
494
495
|
item: string;
|
|
495
496
|
return_fee: number;
|
|
496
497
|
return_item: string;
|
|
497
|
-
shipmentId: string;
|
|
498
498
|
shipping_provider?: string | null | undefined;
|
|
499
499
|
return_label?: string | null | undefined;
|
|
500
500
|
}, {
|
|
@@ -504,10 +504,10 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
504
504
|
modified: string;
|
|
505
505
|
modified_by: string;
|
|
506
506
|
idx: number;
|
|
507
|
+
shipment_id: string;
|
|
507
508
|
quantity: number;
|
|
508
509
|
item: string;
|
|
509
510
|
return_item: string;
|
|
510
|
-
shipmentId: string;
|
|
511
511
|
shipping_provider?: string | null | undefined;
|
|
512
512
|
return_fee?: number | undefined;
|
|
513
513
|
return_label?: string | null | undefined;
|
|
@@ -647,7 +647,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
647
647
|
item: z.ZodString;
|
|
648
648
|
return_item: z.ZodString;
|
|
649
649
|
quantity: z.ZodNumber;
|
|
650
|
-
|
|
650
|
+
shipment_id: z.ZodString;
|
|
651
651
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
652
652
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
653
653
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -665,11 +665,11 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
665
665
|
modified: string;
|
|
666
666
|
modified_by: string;
|
|
667
667
|
idx: number;
|
|
668
|
+
shipment_id: string;
|
|
668
669
|
quantity: number;
|
|
669
670
|
item: string;
|
|
670
671
|
return_fee: number;
|
|
671
672
|
return_item: string;
|
|
672
|
-
shipmentId: string;
|
|
673
673
|
shipping_provider?: string | null | undefined;
|
|
674
674
|
return_label?: string | null | undefined;
|
|
675
675
|
}, {
|
|
@@ -679,10 +679,10 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
679
679
|
modified: string;
|
|
680
680
|
modified_by: string;
|
|
681
681
|
idx: number;
|
|
682
|
+
shipment_id: string;
|
|
682
683
|
quantity: number;
|
|
683
684
|
item: string;
|
|
684
685
|
return_item: string;
|
|
685
|
-
shipmentId: string;
|
|
686
686
|
shipping_provider?: string | null | undefined;
|
|
687
687
|
return_fee?: number | undefined;
|
|
688
688
|
return_label?: string | null | undefined;
|
|
@@ -733,11 +733,11 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
733
733
|
modified: string;
|
|
734
734
|
modified_by: string;
|
|
735
735
|
idx: number;
|
|
736
|
+
shipment_id: string;
|
|
736
737
|
quantity: number;
|
|
737
738
|
item: string;
|
|
738
739
|
return_fee: number;
|
|
739
740
|
return_item: string;
|
|
740
|
-
shipmentId: string;
|
|
741
741
|
shipping_provider?: string | null | undefined;
|
|
742
742
|
return_label?: string | null | undefined;
|
|
743
743
|
}[];
|
|
@@ -788,10 +788,10 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
788
788
|
modified: string;
|
|
789
789
|
modified_by: string;
|
|
790
790
|
idx: number;
|
|
791
|
+
shipment_id: string;
|
|
791
792
|
quantity: number;
|
|
792
793
|
item: string;
|
|
793
794
|
return_item: string;
|
|
794
|
-
shipmentId: string;
|
|
795
795
|
shipping_provider?: string | null | undefined;
|
|
796
796
|
return_fee?: number | undefined;
|
|
797
797
|
return_label?: string | null | undefined;
|
|
@@ -875,23 +875,23 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
875
875
|
item: z.ZodString;
|
|
876
876
|
return_item: z.ZodString;
|
|
877
877
|
quantity: z.ZodNumber;
|
|
878
|
-
|
|
878
|
+
shipment_id: z.ZodString;
|
|
879
879
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
880
880
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
881
881
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
882
882
|
}, "strip", z.ZodTypeAny, {
|
|
883
|
+
shipment_id: string;
|
|
883
884
|
quantity: number;
|
|
884
885
|
item: string;
|
|
885
886
|
return_fee: number;
|
|
886
887
|
return_item: string;
|
|
887
|
-
shipmentId: string;
|
|
888
888
|
shipping_provider?: string | null | undefined;
|
|
889
889
|
return_label?: string | null | undefined;
|
|
890
890
|
}, {
|
|
891
|
+
shipment_id: string;
|
|
891
892
|
quantity: number;
|
|
892
893
|
item: string;
|
|
893
894
|
return_item: string;
|
|
894
|
-
shipmentId: string;
|
|
895
895
|
shipping_provider?: string | null | undefined;
|
|
896
896
|
return_fee?: number | undefined;
|
|
897
897
|
return_label?: string | null | undefined;
|
|
@@ -931,11 +931,11 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
931
931
|
customer_message?: string | null | undefined;
|
|
932
932
|
agreed_terms?: string | null | undefined;
|
|
933
933
|
return_shipping_items?: {
|
|
934
|
+
shipment_id: string;
|
|
934
935
|
quantity: number;
|
|
935
936
|
item: string;
|
|
936
937
|
return_fee: number;
|
|
937
938
|
return_item: string;
|
|
938
|
-
shipmentId: string;
|
|
939
939
|
shipping_provider?: string | null | undefined;
|
|
940
940
|
return_label?: string | null | undefined;
|
|
941
941
|
}[] | undefined;
|
|
@@ -972,10 +972,10 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
972
972
|
agreed_terms?: string | null | undefined;
|
|
973
973
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
974
974
|
return_shipping_items?: {
|
|
975
|
+
shipment_id: string;
|
|
975
976
|
quantity: number;
|
|
976
977
|
item: string;
|
|
977
978
|
return_item: string;
|
|
978
|
-
shipmentId: string;
|
|
979
979
|
shipping_provider?: string | null | undefined;
|
|
980
980
|
return_fee?: number | undefined;
|
|
981
981
|
return_label?: string | null | undefined;
|
|
@@ -1093,7 +1093,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1093
1093
|
item: z.ZodString;
|
|
1094
1094
|
return_item: z.ZodString;
|
|
1095
1095
|
quantity: z.ZodNumber;
|
|
1096
|
-
|
|
1096
|
+
shipment_id: z.ZodString;
|
|
1097
1097
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
1098
1098
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1099
1099
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1111,11 +1111,11 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1111
1111
|
modified: string;
|
|
1112
1112
|
modified_by: string;
|
|
1113
1113
|
idx: number;
|
|
1114
|
+
shipment_id: string;
|
|
1114
1115
|
quantity: number;
|
|
1115
1116
|
item: string;
|
|
1116
1117
|
return_fee: number;
|
|
1117
1118
|
return_item: string;
|
|
1118
|
-
shipmentId: string;
|
|
1119
1119
|
shipping_provider?: string | null | undefined;
|
|
1120
1120
|
return_label?: string | null | undefined;
|
|
1121
1121
|
}, {
|
|
@@ -1125,10 +1125,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1125
1125
|
modified: string;
|
|
1126
1126
|
modified_by: string;
|
|
1127
1127
|
idx: number;
|
|
1128
|
+
shipment_id: string;
|
|
1128
1129
|
quantity: number;
|
|
1129
1130
|
item: string;
|
|
1130
1131
|
return_item: string;
|
|
1131
|
-
shipmentId: string;
|
|
1132
1132
|
shipping_provider?: string | null | undefined;
|
|
1133
1133
|
return_fee?: number | undefined;
|
|
1134
1134
|
return_label?: string | null | undefined;
|
|
@@ -1184,11 +1184,11 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1184
1184
|
modified: string;
|
|
1185
1185
|
modified_by: string;
|
|
1186
1186
|
idx: number;
|
|
1187
|
+
shipment_id: string;
|
|
1187
1188
|
quantity: number;
|
|
1188
1189
|
item: string;
|
|
1189
1190
|
return_fee: number;
|
|
1190
1191
|
return_item: string;
|
|
1191
|
-
shipmentId: string;
|
|
1192
1192
|
shipping_provider?: string | null | undefined;
|
|
1193
1193
|
return_label?: string | null | undefined;
|
|
1194
1194
|
}[];
|
|
@@ -1244,10 +1244,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1244
1244
|
modified: string;
|
|
1245
1245
|
modified_by: string;
|
|
1246
1246
|
idx: number;
|
|
1247
|
+
shipment_id: string;
|
|
1247
1248
|
quantity: number;
|
|
1248
1249
|
item: string;
|
|
1249
1250
|
return_item: string;
|
|
1250
|
-
shipmentId: string;
|
|
1251
1251
|
shipping_provider?: string | null | undefined;
|
|
1252
1252
|
return_fee?: number | undefined;
|
|
1253
1253
|
return_label?: string | null | undefined;
|
|
@@ -1372,7 +1372,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1372
1372
|
item: z.ZodString;
|
|
1373
1373
|
return_item: z.ZodString;
|
|
1374
1374
|
quantity: z.ZodNumber;
|
|
1375
|
-
|
|
1375
|
+
shipment_id: z.ZodString;
|
|
1376
1376
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
1377
1377
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1378
1378
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1390,11 +1390,11 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1390
1390
|
modified: string;
|
|
1391
1391
|
modified_by: string;
|
|
1392
1392
|
idx: number;
|
|
1393
|
+
shipment_id: string;
|
|
1393
1394
|
quantity: number;
|
|
1394
1395
|
item: string;
|
|
1395
1396
|
return_fee: number;
|
|
1396
1397
|
return_item: string;
|
|
1397
|
-
shipmentId: string;
|
|
1398
1398
|
shipping_provider?: string | null | undefined;
|
|
1399
1399
|
return_label?: string | null | undefined;
|
|
1400
1400
|
}, {
|
|
@@ -1404,10 +1404,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1404
1404
|
modified: string;
|
|
1405
1405
|
modified_by: string;
|
|
1406
1406
|
idx: number;
|
|
1407
|
+
shipment_id: string;
|
|
1407
1408
|
quantity: number;
|
|
1408
1409
|
item: string;
|
|
1409
1410
|
return_item: string;
|
|
1410
|
-
shipmentId: string;
|
|
1411
1411
|
shipping_provider?: string | null | undefined;
|
|
1412
1412
|
return_fee?: number | undefined;
|
|
1413
1413
|
return_label?: string | null | undefined;
|
|
@@ -1463,11 +1463,11 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1463
1463
|
modified: string;
|
|
1464
1464
|
modified_by: string;
|
|
1465
1465
|
idx: number;
|
|
1466
|
+
shipment_id: string;
|
|
1466
1467
|
quantity: number;
|
|
1467
1468
|
item: string;
|
|
1468
1469
|
return_fee: number;
|
|
1469
1470
|
return_item: string;
|
|
1470
|
-
shipmentId: string;
|
|
1471
1471
|
shipping_provider?: string | null | undefined;
|
|
1472
1472
|
return_label?: string | null | undefined;
|
|
1473
1473
|
}[];
|
|
@@ -1523,10 +1523,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1523
1523
|
modified: string;
|
|
1524
1524
|
modified_by: string;
|
|
1525
1525
|
idx: number;
|
|
1526
|
+
shipment_id: string;
|
|
1526
1527
|
quantity: number;
|
|
1527
1528
|
item: string;
|
|
1528
1529
|
return_item: string;
|
|
1529
|
-
shipmentId: string;
|
|
1530
1530
|
shipping_provider?: string | null | undefined;
|
|
1531
1531
|
return_fee?: number | undefined;
|
|
1532
1532
|
return_label?: string | null | undefined;
|
|
@@ -81,7 +81,7 @@ exports.ReturnItemBase = zod_1.z
|
|
|
81
81
|
bundle_parent_item: zod_1.z.string().optional().nullable(),
|
|
82
82
|
return_quantity: zod_1.z.number(),
|
|
83
83
|
total_price: zod_1.z.number().optional().nullable(),
|
|
84
|
-
return_fee: zod_1.z.number().optional().nullable(),
|
|
84
|
+
return_fee: zod_1.z.number().optional().nullable(), // TODO: Remove when return shipping items is implemented
|
|
85
85
|
is_complaint: zod_1.z.number(),
|
|
86
86
|
intent: zod_1.z.enum(["return", "solve"]).optional().nullable(),
|
|
87
87
|
servicecase_reason: zod_1.z.string().optional().nullable(),
|
|
@@ -90,7 +90,7 @@ exports.ReturnItemBase = zod_1.z
|
|
|
90
90
|
complaint_description: zod_1.z.string().optional().nullable(),
|
|
91
91
|
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
92
92
|
attachments: zod_1.z.string().optional().nullable(),
|
|
93
|
-
return_label: zod_1.z.string().optional().nullable(),
|
|
93
|
+
return_label: zod_1.z.string().optional().nullable(), // TODO: Remove when return shipping items is implemented
|
|
94
94
|
})
|
|
95
95
|
.describe("ReturnItemBase");
|
|
96
96
|
exports.ReturnItemInput = exports.ReturnItemBase.extend({
|
|
@@ -124,7 +124,7 @@ exports.ReturnShippingItemBase = zod_1.z
|
|
|
124
124
|
item: zod_1.z.string(),
|
|
125
125
|
return_item: zod_1.z.string(),
|
|
126
126
|
quantity: zod_1.z.number(),
|
|
127
|
-
|
|
127
|
+
shipment_id: zod_1.z.string(),
|
|
128
128
|
return_fee: zod_1.z.number().default(0),
|
|
129
129
|
return_label: zod_1.z.string().optional().nullable(),
|
|
130
130
|
shipping_provider: zod_1.z.string().optional().nullable(),
|