erpnext-queue-client 1.33.0 → 1.33.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.
@@ -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;
@@ -456,7 +456,7 @@ export declare const ReturnShippingItemBase: z.ZodObject<{
456
456
  return_item: string;
457
457
  }>;
458
458
  export type ReturnShippingItemBaseType = z.infer<typeof ReturnShippingItemBase>;
459
- export declare const ReturnShippingItemExtended: z.ZodObject<{
459
+ export declare const ReturnShippingItem: z.ZodObject<{
460
460
  item: z.ZodString;
461
461
  return_item: z.ZodString;
462
462
  quantity: z.ZodNumber;
@@ -491,7 +491,7 @@ export declare const ReturnShippingItemExtended: z.ZodObject<{
491
491
  return_label: string;
492
492
  return_item: string;
493
493
  }>;
494
- export type ReturnShippingItemExtendedType = z.infer<typeof ReturnShippingItemExtended>;
494
+ export type ReturnShippingItemType = z.infer<typeof ReturnShippingItem>;
495
495
  export declare const ServicecaseBase: z.ZodObject<{
496
496
  title: z.ZodString;
497
497
  order_number: z.ZodString;
@@ -622,6 +622,41 @@ export declare const Servicecase: z.ZodObject<{
622
622
  complaint_description?: string | null | undefined;
623
623
  return_label?: string | null | undefined;
624
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">;
625
660
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
626
661
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
627
662
  }, "strip", z.ZodTypeAny, {
@@ -661,6 +696,18 @@ export declare const Servicecase: z.ZodObject<{
661
696
  complaint_description?: string | null | undefined;
662
697
  return_label?: string | null | undefined;
663
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
+ }[];
664
711
  external_id?: string | null | undefined;
665
712
  customer_email?: string | null | undefined;
666
713
  complaint_date?: string | null | undefined;
@@ -701,6 +748,18 @@ export declare const Servicecase: z.ZodObject<{
701
748
  complaint_description?: string | null | undefined;
702
749
  return_label?: string | null | undefined;
703
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
+ }[];
704
763
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
705
764
  external_id?: string | null | undefined;
706
765
  customer_email?: string | null | undefined;
@@ -773,6 +832,22 @@ export declare const ServicecaseInput: z.ZodObject<{
773
832
  complaint_description?: string | null | undefined;
774
833
  return_label?: string | null | undefined;
775
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.ZodString;
840
+ }, "strip", z.ZodTypeAny, {
841
+ quantity: number;
842
+ item: string;
843
+ return_label: string;
844
+ return_item: string;
845
+ }, {
846
+ quantity: number;
847
+ item: string;
848
+ return_label: string;
849
+ return_item: string;
850
+ }>, "many">>;
776
851
  is_sent_to_client: z.ZodEffects<z.ZodNumber, number, unknown>;
777
852
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, number, unknown>;
778
853
  }, "strip", z.ZodTypeAny, {
@@ -806,6 +881,12 @@ export declare const ServicecaseInput: z.ZodObject<{
806
881
  complaint_date?: string | null | undefined;
807
882
  customer_message?: string | null | undefined;
808
883
  agreed_terms?: string | null | undefined;
884
+ return_shipping_items?: {
885
+ quantity: number;
886
+ item: string;
887
+ return_label: string;
888
+ return_item: string;
889
+ }[] | undefined;
809
890
  }, {
810
891
  country: string;
811
892
  order_number: string;
@@ -837,6 +918,12 @@ export declare const ServicecaseInput: z.ZodObject<{
837
918
  customer_message?: string | null | undefined;
838
919
  agreed_terms?: string | null | undefined;
839
920
  created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
921
+ return_shipping_items?: {
922
+ quantity: number;
923
+ item: string;
924
+ return_label: string;
925
+ return_item: string;
926
+ }[] | undefined;
840
927
  }>;
841
928
  export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
842
929
  export declare const ServicecaseExtended: z.ZodObject<{
@@ -856,6 +943,41 @@ export declare const ServicecaseExtended: z.ZodObject<{
856
943
  creation: z.ZodString;
857
944
  modified: z.ZodString;
858
945
  modified_by: z.ZodString;
946
+ return_shipping_items: z.ZodArray<z.ZodObject<{
947
+ item: z.ZodString;
948
+ return_item: z.ZodString;
949
+ quantity: z.ZodNumber;
950
+ return_label: z.ZodString;
951
+ } & {
952
+ name: z.ZodString;
953
+ owner: z.ZodString;
954
+ creation: z.ZodString;
955
+ modified: z.ZodString;
956
+ modified_by: z.ZodString;
957
+ idx: z.ZodNumber;
958
+ }, "strip", z.ZodTypeAny, {
959
+ name: string;
960
+ owner: string;
961
+ creation: string;
962
+ modified: string;
963
+ modified_by: string;
964
+ idx: number;
965
+ quantity: number;
966
+ item: string;
967
+ return_label: string;
968
+ return_item: string;
969
+ }, {
970
+ name: string;
971
+ owner: string;
972
+ creation: string;
973
+ modified: string;
974
+ modified_by: string;
975
+ idx: number;
976
+ quantity: number;
977
+ item: string;
978
+ return_label: string;
979
+ return_item: string;
980
+ }>, "many">;
859
981
  } & {
860
982
  return_items: z.ZodArray<z.ZodObject<{
861
983
  item: z.ZodString;
@@ -946,41 +1068,6 @@ export declare const ServicecaseExtended: z.ZodObject<{
946
1068
  attachments_collection_name?: string | null | undefined;
947
1069
  internal_reasons_collection_name?: string | null | undefined;
948
1070
  }>, "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">;
984
1071
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
985
1072
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
986
1073
  }, "strip", z.ZodTypeAny, {
@@ -1120,6 +1207,41 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1120
1207
  creation: z.ZodString;
1121
1208
  modified: z.ZodString;
1122
1209
  modified_by: z.ZodString;
1210
+ return_shipping_items: z.ZodArray<z.ZodObject<{
1211
+ item: z.ZodString;
1212
+ return_item: z.ZodString;
1213
+ quantity: z.ZodNumber;
1214
+ return_label: z.ZodString;
1215
+ } & {
1216
+ name: z.ZodString;
1217
+ owner: z.ZodString;
1218
+ creation: z.ZodString;
1219
+ modified: z.ZodString;
1220
+ modified_by: z.ZodString;
1221
+ idx: z.ZodNumber;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ name: string;
1224
+ owner: string;
1225
+ creation: string;
1226
+ modified: string;
1227
+ modified_by: string;
1228
+ idx: number;
1229
+ quantity: number;
1230
+ item: string;
1231
+ return_label: string;
1232
+ return_item: string;
1233
+ }, {
1234
+ name: string;
1235
+ owner: string;
1236
+ creation: string;
1237
+ modified: string;
1238
+ modified_by: string;
1239
+ idx: number;
1240
+ quantity: number;
1241
+ item: string;
1242
+ return_label: string;
1243
+ return_item: string;
1244
+ }>, "many">;
1123
1245
  } & {
1124
1246
  return_items: z.ZodArray<z.ZodObject<{
1125
1247
  item: z.ZodString;
@@ -1210,41 +1332,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1210
1332
  attachments_collection_name?: string | null | undefined;
1211
1333
  internal_reasons_collection_name?: string | null | undefined;
1212
1334
  }>, "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">;
1248
1335
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
1249
1336
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
1250
1337
  }, "strip", z.ZodTypeAny, {
@@ -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.ReturnShippingItemExtended = exports.ReturnShippingItemBase = 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"]);
@@ -126,14 +126,14 @@ exports.ReturnShippingItemBase = zod_1.z
126
126
  return_label: zod_1.z.string(),
127
127
  })
128
128
  .describe("ReturnShippingItemBase");
129
- exports.ReturnShippingItemExtended = exports.ReturnShippingItemBase.extend({
129
+ exports.ReturnShippingItem = exports.ReturnShippingItemBase.extend({
130
130
  name: zod_1.z.string(),
131
131
  owner: zod_1.z.string(),
132
132
  creation: zod_1.z.string(),
133
133
  modified: zod_1.z.string(),
134
134
  modified_by: zod_1.z.string(),
135
135
  idx: zod_1.z.number(),
136
- }).describe("ReturnItemExtended");
136
+ }).describe("ReturnShippingItem");
137
137
  // Base type to prevent having to use omit combined with extend, not to be used directly
138
138
  exports.ServicecaseBase = zod_1.z
139
139
  .object({
@@ -159,17 +159,18 @@ exports.Servicecase = exports.ServicecaseBase.extend({
159
159
  modified: zod_1.z.string(),
160
160
  modified_by: zod_1.z.string(),
161
161
  return_items: zod_1.z.array(exports.ReturnItem),
162
+ return_shipping_items: zod_1.z.array(exports.ReturnShippingItem),
162
163
  is_sent_to_client: zod_1.z.number().transform(Boolean),
163
164
  is_sent_to_cc: zod_1.z.number().transform(Boolean),
164
165
  }).describe("Servicecase");
165
166
  exports.ServicecaseInput = exports.ServicecaseBase.extend({
166
167
  return_items: zod_1.z.array(exports.ReturnItemInput),
168
+ return_shipping_items: zod_1.z.array(exports.ReturnShippingItemBase).optional(),
167
169
  is_sent_to_client: zod_1.z.preprocess((i) => Number(i), zod_1.z.number()),
168
170
  is_sent_to_cc: zod_1.z.preprocess((i) => Number(i), zod_1.z.number()),
169
171
  }).describe("ServicecaseInput");
170
172
  exports.ServicecaseExtended = exports.Servicecase.extend({
171
173
  return_items: zod_1.z.array(exports.ReturnItemExtended),
172
- return_shipping_items: zod_1.z.array(exports.ReturnShippingItemExtended),
173
174
  is_sent_to_client: zod_1.z.number().transform(Boolean),
174
175
  is_sent_to_cc: zod_1.z.number().transform(Boolean),
175
176
  }).describe("ServicecaseExtended");
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.33.0",
28
+ "version": "1.33.2",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",