erpnext-queue-client 1.33.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;
@@ -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;
@@ -856,6 +915,41 @@ export declare const ServicecaseExtended: z.ZodObject<{
856
915
  creation: z.ZodString;
857
916
  modified: z.ZodString;
858
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">;
859
953
  } & {
860
954
  return_items: z.ZodArray<z.ZodObject<{
861
955
  item: z.ZodString;
@@ -946,41 +1040,6 @@ export declare const ServicecaseExtended: z.ZodObject<{
946
1040
  attachments_collection_name?: string | null | undefined;
947
1041
  internal_reasons_collection_name?: string | null | undefined;
948
1042
  }>, "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
1043
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
985
1044
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
986
1045
  }, "strip", z.ZodTypeAny, {
@@ -1120,6 +1179,41 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1120
1179
  creation: z.ZodString;
1121
1180
  modified: z.ZodString;
1122
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">;
1123
1217
  } & {
1124
1218
  return_items: z.ZodArray<z.ZodObject<{
1125
1219
  item: z.ZodString;
@@ -1210,41 +1304,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1210
1304
  attachments_collection_name?: string | null | undefined;
1211
1305
  internal_reasons_collection_name?: string | null | undefined;
1212
1306
  }>, "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
1307
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
1249
1308
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
1250
1309
  }, "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,6 +159,7 @@ 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");
@@ -169,7 +170,6 @@ exports.ServicecaseInput = exports.ServicecaseBase.extend({
169
170
  }).describe("ServicecaseInput");
170
171
  exports.ServicecaseExtended = exports.Servicecase.extend({
171
172
  return_items: zod_1.z.array(exports.ReturnItemExtended),
172
- return_shipping_items: zod_1.z.array(exports.ReturnShippingItemExtended),
173
173
  is_sent_to_client: zod_1.z.number().transform(Boolean),
174
174
  is_sent_to_cc: zod_1.z.number().transform(Boolean),
175
175
  }).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.1",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",