erpnext-queue-client 1.33.1 → 1.33.3
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.
|
@@ -56,8 +56,8 @@ export declare class ERPNextServicecase {
|
|
|
56
56
|
idx: number;
|
|
57
57
|
quantity: number;
|
|
58
58
|
item: string;
|
|
59
|
-
return_label: string;
|
|
60
59
|
return_item: string;
|
|
60
|
+
return_label?: string | null | undefined;
|
|
61
61
|
}[];
|
|
62
62
|
external_id?: string | null | undefined;
|
|
63
63
|
customer_email?: string | null | undefined;
|
|
@@ -119,8 +119,8 @@ export declare class ERPNextServicecase {
|
|
|
119
119
|
idx: number;
|
|
120
120
|
quantity: number;
|
|
121
121
|
item: string;
|
|
122
|
-
return_label: string;
|
|
123
122
|
return_item: string;
|
|
123
|
+
return_label?: string | null | undefined;
|
|
124
124
|
}[];
|
|
125
125
|
external_id?: string | null | undefined;
|
|
126
126
|
customer_email?: string | null | undefined;
|
|
@@ -177,8 +177,8 @@ export declare class ERPNextServicecase {
|
|
|
177
177
|
idx: number;
|
|
178
178
|
quantity: number;
|
|
179
179
|
item: string;
|
|
180
|
-
return_label: string;
|
|
181
180
|
return_item: string;
|
|
181
|
+
return_label?: string | null | undefined;
|
|
182
182
|
}[];
|
|
183
183
|
external_id?: string | null | undefined;
|
|
184
184
|
customer_email?: string | null | undefined;
|
|
@@ -234,8 +234,8 @@ export declare class ERPNextServicecase {
|
|
|
234
234
|
idx: number;
|
|
235
235
|
quantity: number;
|
|
236
236
|
item: string;
|
|
237
|
-
return_label: string;
|
|
238
237
|
return_item: string;
|
|
238
|
+
return_label?: string | null | undefined;
|
|
239
239
|
}[];
|
|
240
240
|
external_id?: string | null | undefined;
|
|
241
241
|
customer_email?: string | null | undefined;
|
|
@@ -296,8 +296,8 @@ export declare class ERPNextServicecase {
|
|
|
296
296
|
idx: number;
|
|
297
297
|
quantity: number;
|
|
298
298
|
item: string;
|
|
299
|
-
return_label: string;
|
|
300
299
|
return_item: string;
|
|
300
|
+
return_label?: string | null | undefined;
|
|
301
301
|
}[];
|
|
302
302
|
external_id?: string | null | undefined;
|
|
303
303
|
customer_email?: string | null | undefined;
|
|
@@ -353,8 +353,8 @@ export declare class ERPNextServicecase {
|
|
|
353
353
|
idx: number;
|
|
354
354
|
quantity: number;
|
|
355
355
|
item: string;
|
|
356
|
-
return_label: string;
|
|
357
356
|
return_item: string;
|
|
357
|
+
return_label?: string | null | undefined;
|
|
358
358
|
}[];
|
|
359
359
|
external_id?: string | null | undefined;
|
|
360
360
|
customer_email?: string | null | undefined;
|
|
@@ -417,8 +417,8 @@ export declare class ERPNextServicecase {
|
|
|
417
417
|
idx: number;
|
|
418
418
|
quantity: number;
|
|
419
419
|
item: string;
|
|
420
|
-
return_label: string;
|
|
421
420
|
return_item: string;
|
|
421
|
+
return_label?: string | null | undefined;
|
|
422
422
|
}[];
|
|
423
423
|
external_id?: string | null | undefined;
|
|
424
424
|
customer_email?: string | null | undefined;
|
|
@@ -443,24 +443,24 @@ export declare const ReturnShippingItemBase: z.ZodObject<{
|
|
|
443
443
|
item: z.ZodString;
|
|
444
444
|
return_item: z.ZodString;
|
|
445
445
|
quantity: z.ZodNumber;
|
|
446
|
-
return_label: z.ZodString
|
|
446
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
448
|
quantity: number;
|
|
449
449
|
item: string;
|
|
450
|
-
return_label: string;
|
|
451
450
|
return_item: string;
|
|
451
|
+
return_label?: string | null | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
quantity: number;
|
|
454
454
|
item: string;
|
|
455
|
-
return_label: string;
|
|
456
455
|
return_item: string;
|
|
456
|
+
return_label?: string | null | undefined;
|
|
457
457
|
}>;
|
|
458
458
|
export type ReturnShippingItemBaseType = z.infer<typeof ReturnShippingItemBase>;
|
|
459
459
|
export declare const ReturnShippingItem: z.ZodObject<{
|
|
460
460
|
item: z.ZodString;
|
|
461
461
|
return_item: z.ZodString;
|
|
462
462
|
quantity: z.ZodNumber;
|
|
463
|
-
return_label: z.ZodString
|
|
463
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
464
464
|
} & {
|
|
465
465
|
name: z.ZodString;
|
|
466
466
|
owner: z.ZodString;
|
|
@@ -477,8 +477,8 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
477
477
|
idx: number;
|
|
478
478
|
quantity: number;
|
|
479
479
|
item: string;
|
|
480
|
-
return_label: string;
|
|
481
480
|
return_item: string;
|
|
481
|
+
return_label?: string | null | undefined;
|
|
482
482
|
}, {
|
|
483
483
|
name: string;
|
|
484
484
|
owner: string;
|
|
@@ -488,8 +488,8 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
488
488
|
idx: number;
|
|
489
489
|
quantity: number;
|
|
490
490
|
item: string;
|
|
491
|
-
return_label: string;
|
|
492
491
|
return_item: string;
|
|
492
|
+
return_label?: string | null | undefined;
|
|
493
493
|
}>;
|
|
494
494
|
export type ReturnShippingItemType = z.infer<typeof ReturnShippingItem>;
|
|
495
495
|
export declare const ServicecaseBase: z.ZodObject<{
|
|
@@ -626,7 +626,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
626
626
|
item: z.ZodString;
|
|
627
627
|
return_item: z.ZodString;
|
|
628
628
|
quantity: z.ZodNumber;
|
|
629
|
-
return_label: z.ZodString
|
|
629
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
630
630
|
} & {
|
|
631
631
|
name: z.ZodString;
|
|
632
632
|
owner: z.ZodString;
|
|
@@ -643,8 +643,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
643
643
|
idx: number;
|
|
644
644
|
quantity: number;
|
|
645
645
|
item: string;
|
|
646
|
-
return_label: string;
|
|
647
646
|
return_item: string;
|
|
647
|
+
return_label?: string | null | undefined;
|
|
648
648
|
}, {
|
|
649
649
|
name: string;
|
|
650
650
|
owner: string;
|
|
@@ -654,8 +654,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
654
654
|
idx: number;
|
|
655
655
|
quantity: number;
|
|
656
656
|
item: string;
|
|
657
|
-
return_label: string;
|
|
658
657
|
return_item: string;
|
|
658
|
+
return_label?: string | null | undefined;
|
|
659
659
|
}>, "many">;
|
|
660
660
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
661
661
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
@@ -705,8 +705,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
705
705
|
idx: number;
|
|
706
706
|
quantity: number;
|
|
707
707
|
item: string;
|
|
708
|
-
return_label: string;
|
|
709
708
|
return_item: string;
|
|
709
|
+
return_label?: string | null | undefined;
|
|
710
710
|
}[];
|
|
711
711
|
external_id?: string | null | undefined;
|
|
712
712
|
customer_email?: string | null | undefined;
|
|
@@ -757,8 +757,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
757
757
|
idx: number;
|
|
758
758
|
quantity: number;
|
|
759
759
|
item: string;
|
|
760
|
-
return_label: string;
|
|
761
760
|
return_item: string;
|
|
761
|
+
return_label?: string | null | undefined;
|
|
762
762
|
}[];
|
|
763
763
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
764
764
|
external_id?: string | null | undefined;
|
|
@@ -832,6 +832,22 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
832
832
|
complaint_description?: string | null | undefined;
|
|
833
833
|
return_label?: string | null | undefined;
|
|
834
834
|
}>, "many">;
|
|
835
|
+
return_shipping_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
836
|
+
item: z.ZodString;
|
|
837
|
+
return_item: z.ZodString;
|
|
838
|
+
quantity: z.ZodNumber;
|
|
839
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
840
|
+
}, "strip", z.ZodTypeAny, {
|
|
841
|
+
quantity: number;
|
|
842
|
+
item: string;
|
|
843
|
+
return_item: string;
|
|
844
|
+
return_label?: string | null | undefined;
|
|
845
|
+
}, {
|
|
846
|
+
quantity: number;
|
|
847
|
+
item: string;
|
|
848
|
+
return_item: string;
|
|
849
|
+
return_label?: string | null | undefined;
|
|
850
|
+
}>, "many">>;
|
|
835
851
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
836
852
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
837
853
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -865,6 +881,12 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
865
881
|
complaint_date?: string | null | undefined;
|
|
866
882
|
customer_message?: string | null | undefined;
|
|
867
883
|
agreed_terms?: string | null | undefined;
|
|
884
|
+
return_shipping_items?: {
|
|
885
|
+
quantity: number;
|
|
886
|
+
item: string;
|
|
887
|
+
return_item: string;
|
|
888
|
+
return_label?: string | null | undefined;
|
|
889
|
+
}[] | undefined;
|
|
868
890
|
}, {
|
|
869
891
|
country: string;
|
|
870
892
|
order_number: string;
|
|
@@ -896,6 +918,12 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
896
918
|
customer_message?: string | null | undefined;
|
|
897
919
|
agreed_terms?: string | null | undefined;
|
|
898
920
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
921
|
+
return_shipping_items?: {
|
|
922
|
+
quantity: number;
|
|
923
|
+
item: string;
|
|
924
|
+
return_item: string;
|
|
925
|
+
return_label?: string | null | undefined;
|
|
926
|
+
}[] | undefined;
|
|
899
927
|
}>;
|
|
900
928
|
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
901
929
|
export declare const ServicecaseExtended: z.ZodObject<{
|
|
@@ -919,7 +947,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
919
947
|
item: z.ZodString;
|
|
920
948
|
return_item: z.ZodString;
|
|
921
949
|
quantity: z.ZodNumber;
|
|
922
|
-
return_label: z.ZodString
|
|
950
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
923
951
|
} & {
|
|
924
952
|
name: z.ZodString;
|
|
925
953
|
owner: z.ZodString;
|
|
@@ -936,8 +964,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
936
964
|
idx: number;
|
|
937
965
|
quantity: number;
|
|
938
966
|
item: string;
|
|
939
|
-
return_label: string;
|
|
940
967
|
return_item: string;
|
|
968
|
+
return_label?: string | null | undefined;
|
|
941
969
|
}, {
|
|
942
970
|
name: string;
|
|
943
971
|
owner: string;
|
|
@@ -947,8 +975,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
947
975
|
idx: number;
|
|
948
976
|
quantity: number;
|
|
949
977
|
item: string;
|
|
950
|
-
return_label: string;
|
|
951
978
|
return_item: string;
|
|
979
|
+
return_label?: string | null | undefined;
|
|
952
980
|
}>, "many">;
|
|
953
981
|
} & {
|
|
954
982
|
return_items: z.ZodArray<z.ZodObject<{
|
|
@@ -1093,8 +1121,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1093
1121
|
idx: number;
|
|
1094
1122
|
quantity: number;
|
|
1095
1123
|
item: string;
|
|
1096
|
-
return_label: string;
|
|
1097
1124
|
return_item: string;
|
|
1125
|
+
return_label?: string | null | undefined;
|
|
1098
1126
|
}[];
|
|
1099
1127
|
external_id?: string | null | undefined;
|
|
1100
1128
|
customer_email?: string | null | undefined;
|
|
@@ -1150,8 +1178,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1150
1178
|
idx: number;
|
|
1151
1179
|
quantity: number;
|
|
1152
1180
|
item: string;
|
|
1153
|
-
return_label: string;
|
|
1154
1181
|
return_item: string;
|
|
1182
|
+
return_label?: string | null | undefined;
|
|
1155
1183
|
}[];
|
|
1156
1184
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1157
1185
|
external_id?: string | null | undefined;
|
|
@@ -1183,7 +1211,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1183
1211
|
item: z.ZodString;
|
|
1184
1212
|
return_item: z.ZodString;
|
|
1185
1213
|
quantity: z.ZodNumber;
|
|
1186
|
-
return_label: z.ZodString
|
|
1214
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1187
1215
|
} & {
|
|
1188
1216
|
name: z.ZodString;
|
|
1189
1217
|
owner: z.ZodString;
|
|
@@ -1200,8 +1228,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1200
1228
|
idx: number;
|
|
1201
1229
|
quantity: number;
|
|
1202
1230
|
item: string;
|
|
1203
|
-
return_label: string;
|
|
1204
1231
|
return_item: string;
|
|
1232
|
+
return_label?: string | null | undefined;
|
|
1205
1233
|
}, {
|
|
1206
1234
|
name: string;
|
|
1207
1235
|
owner: string;
|
|
@@ -1211,8 +1239,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1211
1239
|
idx: number;
|
|
1212
1240
|
quantity: number;
|
|
1213
1241
|
item: string;
|
|
1214
|
-
return_label: string;
|
|
1215
1242
|
return_item: string;
|
|
1243
|
+
return_label?: string | null | undefined;
|
|
1216
1244
|
}>, "many">;
|
|
1217
1245
|
} & {
|
|
1218
1246
|
return_items: z.ZodArray<z.ZodObject<{
|
|
@@ -1357,8 +1385,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1357
1385
|
idx: number;
|
|
1358
1386
|
quantity: number;
|
|
1359
1387
|
item: string;
|
|
1360
|
-
return_label: string;
|
|
1361
1388
|
return_item: string;
|
|
1389
|
+
return_label?: string | null | undefined;
|
|
1362
1390
|
}[];
|
|
1363
1391
|
external_id?: string | null | undefined;
|
|
1364
1392
|
customer_email?: string | null | undefined;
|
|
@@ -1414,8 +1442,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1414
1442
|
idx: number;
|
|
1415
1443
|
quantity: number;
|
|
1416
1444
|
item: string;
|
|
1417
|
-
return_label: string;
|
|
1418
1445
|
return_item: string;
|
|
1446
|
+
return_label?: string | null | undefined;
|
|
1419
1447
|
}[];
|
|
1420
1448
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1421
1449
|
external_id?: string | null | undefined;
|
|
@@ -123,7 +123,7 @@ exports.ReturnShippingItemBase = zod_1.z
|
|
|
123
123
|
item: zod_1.z.string(),
|
|
124
124
|
return_item: zod_1.z.string(),
|
|
125
125
|
quantity: zod_1.z.number(),
|
|
126
|
-
return_label: zod_1.z.string(),
|
|
126
|
+
return_label: zod_1.z.string().optional().nullable(),
|
|
127
127
|
})
|
|
128
128
|
.describe("ReturnShippingItemBase");
|
|
129
129
|
exports.ReturnShippingItem = exports.ReturnShippingItemBase.extend({
|
|
@@ -165,6 +165,7 @@ exports.Servicecase = exports.ServicecaseBase.extend({
|
|
|
165
165
|
}).describe("Servicecase");
|
|
166
166
|
exports.ServicecaseInput = exports.ServicecaseBase.extend({
|
|
167
167
|
return_items: zod_1.z.array(exports.ReturnItemInput),
|
|
168
|
+
return_shipping_items: zod_1.z.array(exports.ReturnShippingItemBase).optional(),
|
|
168
169
|
is_sent_to_client: zod_1.z.preprocess((i) => Number(i), zod_1.z.number()),
|
|
169
170
|
is_sent_to_cc: zod_1.z.preprocess((i) => Number(i), zod_1.z.number()),
|
|
170
171
|
}).describe("ServicecaseInput");
|