erpnext-queue-client 1.32.0 → 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.
|
@@ -336,6 +336,18 @@ export declare class ERPNextServicecase {
|
|
|
336
336
|
attachments_collection_name?: string | null | undefined;
|
|
337
337
|
internal_reasons_collection_name?: string | null | undefined;
|
|
338
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
|
+
}[];
|
|
339
351
|
external_id?: string | null | undefined;
|
|
340
352
|
customer_email?: string | null | undefined;
|
|
341
353
|
complaint_date?: string | null | undefined;
|
|
@@ -439,6 +439,59 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
439
439
|
internal_reasons_collection_name?: string | null | undefined;
|
|
440
440
|
}>;
|
|
441
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>;
|
|
442
495
|
export declare const ServicecaseBase: z.ZodObject<{
|
|
443
496
|
title: z.ZodString;
|
|
444
497
|
order_number: z.ZodString;
|
|
@@ -893,6 +946,41 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
893
946
|
attachments_collection_name?: string | null | undefined;
|
|
894
947
|
internal_reasons_collection_name?: string | null | undefined;
|
|
895
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">;
|
|
896
984
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
897
985
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
898
986
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -937,6 +1025,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
937
1025
|
attachments_collection_name?: string | null | undefined;
|
|
938
1026
|
internal_reasons_collection_name?: string | null | undefined;
|
|
939
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
|
+
}[];
|
|
940
1040
|
external_id?: string | null | undefined;
|
|
941
1041
|
customer_email?: string | null | undefined;
|
|
942
1042
|
complaint_date?: string | null | undefined;
|
|
@@ -982,6 +1082,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
982
1082
|
attachments_collection_name?: string | null | undefined;
|
|
983
1083
|
internal_reasons_collection_name?: string | null | undefined;
|
|
984
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
|
+
}[];
|
|
985
1097
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
986
1098
|
external_id?: string | null | undefined;
|
|
987
1099
|
customer_email?: string | null | undefined;
|
|
@@ -1098,6 +1210,41 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1098
1210
|
attachments_collection_name?: string | null | undefined;
|
|
1099
1211
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1100
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">;
|
|
1101
1248
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1102
1249
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1103
1250
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1142,6 +1289,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1142
1289
|
attachments_collection_name?: string | null | undefined;
|
|
1143
1290
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1144
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
|
+
}[];
|
|
1145
1304
|
external_id?: string | null | undefined;
|
|
1146
1305
|
customer_email?: string | null | undefined;
|
|
1147
1306
|
complaint_date?: string | null | undefined;
|
|
@@ -1187,6 +1346,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1187
1346
|
attachments_collection_name?: string | null | undefined;
|
|
1188
1347
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1189
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
|
+
}[];
|
|
1190
1361
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1191
1362
|
external_id?: string | null | undefined;
|
|
1192
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"]);
|
|
@@ -117,6 +117,23 @@ exports.ReturnItemExtended = exports.ReturnItemBase.extend({
|
|
|
117
117
|
internal_reasons: zod_1.z.array(zod_1.z.string()),
|
|
118
118
|
internal_reasons_collection_name: zod_1.z.string().optional().nullable(),
|
|
119
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");
|
|
120
137
|
// Base type to prevent having to use omit combined with extend, not to be used directly
|
|
121
138
|
exports.ServicecaseBase = zod_1.z
|
|
122
139
|
.object({
|
|
@@ -152,6 +169,7 @@ exports.ServicecaseInput = exports.ServicecaseBase.extend({
|
|
|
152
169
|
}).describe("ServicecaseInput");
|
|
153
170
|
exports.ServicecaseExtended = exports.Servicecase.extend({
|
|
154
171
|
return_items: zod_1.z.array(exports.ReturnItemExtended),
|
|
172
|
+
return_shipping_items: zod_1.z.array(exports.ReturnShippingItemExtended),
|
|
155
173
|
is_sent_to_client: zod_1.z.number().transform(Boolean),
|
|
156
174
|
is_sent_to_cc: zod_1.z.number().transform(Boolean),
|
|
157
175
|
}).describe("ServicecaseExtended");
|