erpnext-queue-client 1.32.0 → 1.33.1

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.
@@ -47,13 +47,25 @@ export declare class ERPNextServicecase {
47
47
  complaint_description?: string | null | undefined;
48
48
  return_label?: string | null | undefined;
49
49
  }[];
50
+ return_shipping_items: {
51
+ name: string;
52
+ owner: string;
53
+ creation: string;
54
+ modified: string;
55
+ modified_by: string;
56
+ idx: number;
57
+ quantity: number;
58
+ item: string;
59
+ return_label: string;
60
+ return_item: string;
61
+ }[];
50
62
  external_id?: string | null | undefined;
51
63
  customer_email?: string | null | undefined;
52
64
  complaint_date?: string | null | undefined;
53
65
  customer_message?: string | null | undefined;
54
66
  agreed_terms?: string | null | undefined;
55
67
  }>;
56
- getList: <TField extends ("status" | "name" | "country" | "owner" | "creation" | "modified" | "modified_by" | "order_number" | "title" | "shop" | "is_sent_to_client" | "is_sent_to_cc" | "created_with" | "return_items") | ("external_id" | "customer_email" | "complaint_date" | "customer_message" | "agreed_terms"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
68
+ getList: <TField extends ("status" | "name" | "country" | "owner" | "creation" | "modified" | "modified_by" | "order_number" | "title" | "shop" | "is_sent_to_client" | "is_sent_to_cc" | "created_with" | "return_items" | "return_shipping_items") | ("external_id" | "customer_email" | "complaint_date" | "customer_message" | "agreed_terms"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
57
69
  fields?: TField[] | undefined;
58
70
  filters?: (string | string[])[][];
59
71
  skip?: number;
@@ -98,6 +110,18 @@ export declare class ERPNextServicecase {
98
110
  complaint_description?: string | null | undefined;
99
111
  return_label?: string | null | undefined;
100
112
  }[];
113
+ return_shipping_items: {
114
+ name: string;
115
+ owner: string;
116
+ creation: string;
117
+ modified: string;
118
+ modified_by: string;
119
+ idx: number;
120
+ quantity: number;
121
+ item: string;
122
+ return_label: string;
123
+ return_item: string;
124
+ }[];
101
125
  external_id?: string | null | undefined;
102
126
  customer_email?: string | null | undefined;
103
127
  complaint_date?: string | null | undefined;
@@ -144,6 +168,18 @@ export declare class ERPNextServicecase {
144
168
  complaint_description?: string | null | undefined;
145
169
  return_label?: string | null | undefined;
146
170
  }[];
171
+ return_shipping_items: {
172
+ name: string;
173
+ owner: string;
174
+ creation: string;
175
+ modified: string;
176
+ modified_by: string;
177
+ idx: number;
178
+ quantity: number;
179
+ item: string;
180
+ return_label: string;
181
+ return_item: string;
182
+ }[];
147
183
  external_id?: string | null | undefined;
148
184
  customer_email?: string | null | undefined;
149
185
  complaint_date?: string | null | undefined;
@@ -189,6 +225,18 @@ export declare class ERPNextServicecase {
189
225
  complaint_description?: string | null | undefined;
190
226
  return_label?: string | null | undefined;
191
227
  }[];
228
+ return_shipping_items: {
229
+ name: string;
230
+ owner: string;
231
+ creation: string;
232
+ modified: string;
233
+ modified_by: string;
234
+ idx: number;
235
+ quantity: number;
236
+ item: string;
237
+ return_label: string;
238
+ return_item: string;
239
+ }[];
192
240
  external_id?: string | null | undefined;
193
241
  customer_email?: string | null | undefined;
194
242
  complaint_date?: string | null | undefined;
@@ -239,6 +287,18 @@ export declare class ERPNextServicecase {
239
287
  complaint_description?: string | null | undefined;
240
288
  return_label?: string | null | undefined;
241
289
  }[];
290
+ return_shipping_items: {
291
+ name: string;
292
+ owner: string;
293
+ creation: string;
294
+ modified: string;
295
+ modified_by: string;
296
+ idx: number;
297
+ quantity: number;
298
+ item: string;
299
+ return_label: string;
300
+ return_item: string;
301
+ }[];
242
302
  external_id?: string | null | undefined;
243
303
  customer_email?: string | null | undefined;
244
304
  complaint_date?: string | null | undefined;
@@ -284,6 +344,18 @@ export declare class ERPNextServicecase {
284
344
  complaint_description?: string | null | undefined;
285
345
  return_label?: string | null | undefined;
286
346
  }[];
347
+ return_shipping_items: {
348
+ name: string;
349
+ owner: string;
350
+ creation: string;
351
+ modified: string;
352
+ modified_by: string;
353
+ idx: number;
354
+ quantity: number;
355
+ item: string;
356
+ return_label: string;
357
+ return_item: string;
358
+ }[];
287
359
  external_id?: string | null | undefined;
288
360
  customer_email?: string | null | undefined;
289
361
  complaint_date?: string | null | undefined;
@@ -336,6 +408,18 @@ export declare class ERPNextServicecase {
336
408
  attachments_collection_name?: string | null | undefined;
337
409
  internal_reasons_collection_name?: string | null | undefined;
338
410
  }[];
411
+ return_shipping_items: {
412
+ name: string;
413
+ owner: string;
414
+ creation: string;
415
+ modified: string;
416
+ modified_by: string;
417
+ idx: number;
418
+ quantity: number;
419
+ item: string;
420
+ return_label: string;
421
+ return_item: string;
422
+ }[];
339
423
  external_id?: string | null | undefined;
340
424
  customer_email?: string | null | undefined;
341
425
  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 ReturnShippingItem: 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 ReturnShippingItemType = z.infer<typeof ReturnShippingItem>;
442
495
  export declare const ServicecaseBase: z.ZodObject<{
443
496
  title: z.ZodString;
444
497
  order_number: z.ZodString;
@@ -569,6 +622,41 @@ export declare const Servicecase: z.ZodObject<{
569
622
  complaint_description?: string | null | undefined;
570
623
  return_label?: string | null | undefined;
571
624
  }>, "many">;
625
+ return_shipping_items: z.ZodArray<z.ZodObject<{
626
+ item: z.ZodString;
627
+ return_item: z.ZodString;
628
+ quantity: z.ZodNumber;
629
+ return_label: z.ZodString;
630
+ } & {
631
+ name: z.ZodString;
632
+ owner: z.ZodString;
633
+ creation: z.ZodString;
634
+ modified: z.ZodString;
635
+ modified_by: z.ZodString;
636
+ idx: z.ZodNumber;
637
+ }, "strip", z.ZodTypeAny, {
638
+ name: string;
639
+ owner: string;
640
+ creation: string;
641
+ modified: string;
642
+ modified_by: string;
643
+ idx: number;
644
+ quantity: number;
645
+ item: string;
646
+ return_label: string;
647
+ return_item: string;
648
+ }, {
649
+ name: string;
650
+ owner: string;
651
+ creation: string;
652
+ modified: string;
653
+ modified_by: string;
654
+ idx: number;
655
+ quantity: number;
656
+ item: string;
657
+ return_label: string;
658
+ return_item: string;
659
+ }>, "many">;
572
660
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
573
661
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
574
662
  }, "strip", z.ZodTypeAny, {
@@ -608,6 +696,18 @@ export declare const Servicecase: z.ZodObject<{
608
696
  complaint_description?: string | null | undefined;
609
697
  return_label?: string | null | undefined;
610
698
  }[];
699
+ return_shipping_items: {
700
+ name: string;
701
+ owner: string;
702
+ creation: string;
703
+ modified: string;
704
+ modified_by: string;
705
+ idx: number;
706
+ quantity: number;
707
+ item: string;
708
+ return_label: string;
709
+ return_item: string;
710
+ }[];
611
711
  external_id?: string | null | undefined;
612
712
  customer_email?: string | null | undefined;
613
713
  complaint_date?: string | null | undefined;
@@ -648,6 +748,18 @@ export declare const Servicecase: z.ZodObject<{
648
748
  complaint_description?: string | null | undefined;
649
749
  return_label?: string | null | undefined;
650
750
  }[];
751
+ return_shipping_items: {
752
+ name: string;
753
+ owner: string;
754
+ creation: string;
755
+ modified: string;
756
+ modified_by: string;
757
+ idx: number;
758
+ quantity: number;
759
+ item: string;
760
+ return_label: string;
761
+ return_item: string;
762
+ }[];
651
763
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
652
764
  external_id?: string | null | undefined;
653
765
  customer_email?: string | null | undefined;
@@ -803,6 +915,41 @@ export declare const ServicecaseExtended: z.ZodObject<{
803
915
  creation: z.ZodString;
804
916
  modified: z.ZodString;
805
917
  modified_by: z.ZodString;
918
+ return_shipping_items: z.ZodArray<z.ZodObject<{
919
+ item: z.ZodString;
920
+ return_item: z.ZodString;
921
+ quantity: z.ZodNumber;
922
+ return_label: z.ZodString;
923
+ } & {
924
+ name: z.ZodString;
925
+ owner: z.ZodString;
926
+ creation: z.ZodString;
927
+ modified: z.ZodString;
928
+ modified_by: z.ZodString;
929
+ idx: z.ZodNumber;
930
+ }, "strip", z.ZodTypeAny, {
931
+ name: string;
932
+ owner: string;
933
+ creation: string;
934
+ modified: string;
935
+ modified_by: string;
936
+ idx: number;
937
+ quantity: number;
938
+ item: string;
939
+ return_label: string;
940
+ return_item: string;
941
+ }, {
942
+ name: string;
943
+ owner: string;
944
+ creation: string;
945
+ modified: string;
946
+ modified_by: string;
947
+ idx: number;
948
+ quantity: number;
949
+ item: string;
950
+ return_label: string;
951
+ return_item: string;
952
+ }>, "many">;
806
953
  } & {
807
954
  return_items: z.ZodArray<z.ZodObject<{
808
955
  item: z.ZodString;
@@ -937,6 +1084,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
937
1084
  attachments_collection_name?: string | null | undefined;
938
1085
  internal_reasons_collection_name?: string | null | undefined;
939
1086
  }[];
1087
+ return_shipping_items: {
1088
+ name: string;
1089
+ owner: string;
1090
+ creation: string;
1091
+ modified: string;
1092
+ modified_by: string;
1093
+ idx: number;
1094
+ quantity: number;
1095
+ item: string;
1096
+ return_label: string;
1097
+ return_item: string;
1098
+ }[];
940
1099
  external_id?: string | null | undefined;
941
1100
  customer_email?: string | null | undefined;
942
1101
  complaint_date?: string | null | undefined;
@@ -982,6 +1141,18 @@ export declare const ServicecaseExtended: z.ZodObject<{
982
1141
  attachments_collection_name?: string | null | undefined;
983
1142
  internal_reasons_collection_name?: string | null | undefined;
984
1143
  }[];
1144
+ return_shipping_items: {
1145
+ name: string;
1146
+ owner: string;
1147
+ creation: string;
1148
+ modified: string;
1149
+ modified_by: string;
1150
+ idx: number;
1151
+ quantity: number;
1152
+ item: string;
1153
+ return_label: string;
1154
+ return_item: string;
1155
+ }[];
985
1156
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
986
1157
  external_id?: string | null | undefined;
987
1158
  customer_email?: string | null | undefined;
@@ -1008,6 +1179,41 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1008
1179
  creation: z.ZodString;
1009
1180
  modified: z.ZodString;
1010
1181
  modified_by: z.ZodString;
1182
+ return_shipping_items: z.ZodArray<z.ZodObject<{
1183
+ item: z.ZodString;
1184
+ return_item: z.ZodString;
1185
+ quantity: z.ZodNumber;
1186
+ return_label: z.ZodString;
1187
+ } & {
1188
+ name: z.ZodString;
1189
+ owner: z.ZodString;
1190
+ creation: z.ZodString;
1191
+ modified: z.ZodString;
1192
+ modified_by: z.ZodString;
1193
+ idx: z.ZodNumber;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ name: string;
1196
+ owner: string;
1197
+ creation: string;
1198
+ modified: string;
1199
+ modified_by: string;
1200
+ idx: number;
1201
+ quantity: number;
1202
+ item: string;
1203
+ return_label: string;
1204
+ return_item: string;
1205
+ }, {
1206
+ name: string;
1207
+ owner: string;
1208
+ creation: string;
1209
+ modified: string;
1210
+ modified_by: string;
1211
+ idx: number;
1212
+ quantity: number;
1213
+ item: string;
1214
+ return_label: string;
1215
+ return_item: string;
1216
+ }>, "many">;
1011
1217
  } & {
1012
1218
  return_items: z.ZodArray<z.ZodObject<{
1013
1219
  item: z.ZodString;
@@ -1142,6 +1348,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1142
1348
  attachments_collection_name?: string | null | undefined;
1143
1349
  internal_reasons_collection_name?: string | null | undefined;
1144
1350
  }[];
1351
+ return_shipping_items: {
1352
+ name: string;
1353
+ owner: string;
1354
+ creation: string;
1355
+ modified: string;
1356
+ modified_by: string;
1357
+ idx: number;
1358
+ quantity: number;
1359
+ item: string;
1360
+ return_label: string;
1361
+ return_item: string;
1362
+ }[];
1145
1363
  external_id?: string | null | undefined;
1146
1364
  customer_email?: string | null | undefined;
1147
1365
  complaint_date?: string | null | undefined;
@@ -1187,6 +1405,18 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1187
1405
  attachments_collection_name?: string | null | undefined;
1188
1406
  internal_reasons_collection_name?: string | null | undefined;
1189
1407
  }[];
1408
+ return_shipping_items: {
1409
+ name: string;
1410
+ owner: string;
1411
+ creation: string;
1412
+ modified: string;
1413
+ modified_by: string;
1414
+ idx: number;
1415
+ quantity: number;
1416
+ item: string;
1417
+ return_label: string;
1418
+ return_item: string;
1419
+ }[];
1190
1420
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
1191
1421
  external_id?: string | null | undefined;
1192
1422
  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.ReturnShippingItem = 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.ReturnShippingItem = 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("ReturnShippingItem");
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({
@@ -142,6 +159,7 @@ exports.Servicecase = exports.ServicecaseBase.extend({
142
159
  modified: zod_1.z.string(),
143
160
  modified_by: zod_1.z.string(),
144
161
  return_items: zod_1.z.array(exports.ReturnItem),
162
+ return_shipping_items: zod_1.z.array(exports.ReturnShippingItem),
145
163
  is_sent_to_client: zod_1.z.number().transform(Boolean),
146
164
  is_sent_to_cc: zod_1.z.number().transform(Boolean),
147
165
  }).describe("Servicecase");
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "3.25.76"
27
27
  },
28
- "version": "1.32.0",
28
+ "version": "1.33.1",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",