erpnext-queue-client 1.19.1 → 1.19.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.
@@ -310,6 +310,8 @@ export declare class ERPNextServicecase {
310
310
  batch_number?: string | null | undefined;
311
311
  complaint_description?: string | null | undefined;
312
312
  complaint_images?: string[] | null | undefined;
313
+ attachments_collection_name?: string | null | undefined;
314
+ internal_reasons_collection_name?: string | null | undefined;
313
315
  }[];
314
316
  is_complaint?: boolean | null | undefined;
315
317
  external_id?: string | null | undefined;
@@ -670,7 +670,9 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
670
670
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
671
671
  }, "attachments" | "internal_reasons">, {
672
672
  attachments: z.ZodArray<z.ZodString, "many">;
673
+ attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
673
674
  internal_reasons: z.ZodArray<z.ZodString, "many">;
675
+ internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
674
676
  }>, "strip", z.ZodTypeAny, {
675
677
  name: string;
676
678
  owner: string;
@@ -691,6 +693,8 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
691
693
  batch_number?: string | null | undefined;
692
694
  complaint_description?: string | null | undefined;
693
695
  complaint_images?: string[] | null | undefined;
696
+ attachments_collection_name?: string | null | undefined;
697
+ internal_reasons_collection_name?: string | null | undefined;
694
698
  }, {
695
699
  name: string;
696
700
  owner: string;
@@ -711,6 +715,8 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
711
715
  batch_number?: string | null | undefined;
712
716
  complaint_description?: string | null | undefined;
713
717
  complaint_images?: string[] | null | undefined;
718
+ attachments_collection_name?: string | null | undefined;
719
+ internal_reasons_collection_name?: string | null | undefined;
714
720
  }>, "many">;
715
721
  }>, "strip", z.ZodTypeAny, {
716
722
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
@@ -744,6 +750,8 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
744
750
  batch_number?: string | null | undefined;
745
751
  complaint_description?: string | null | undefined;
746
752
  complaint_images?: string[] | null | undefined;
753
+ attachments_collection_name?: string | null | undefined;
754
+ internal_reasons_collection_name?: string | null | undefined;
747
755
  }[];
748
756
  is_complaint?: boolean | null | undefined;
749
757
  external_id?: string | null | undefined;
@@ -783,6 +791,8 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
783
791
  batch_number?: string | null | undefined;
784
792
  complaint_description?: string | null | undefined;
785
793
  complaint_images?: string[] | null | undefined;
794
+ attachments_collection_name?: string | null | undefined;
795
+ internal_reasons_collection_name?: string | null | undefined;
786
796
  }[];
787
797
  status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
788
798
  is_complaint?: number | null | undefined;
@@ -900,7 +910,9 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
900
910
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
901
911
  }, "attachments" | "internal_reasons">, {
902
912
  attachments: z.ZodArray<z.ZodString, "many">;
913
+ attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
903
914
  internal_reasons: z.ZodArray<z.ZodString, "many">;
915
+ internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
904
916
  }>, "strip", z.ZodTypeAny, {
905
917
  name: string;
906
918
  owner: string;
@@ -921,6 +933,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
921
933
  batch_number?: string | null | undefined;
922
934
  complaint_description?: string | null | undefined;
923
935
  complaint_images?: string[] | null | undefined;
936
+ attachments_collection_name?: string | null | undefined;
937
+ internal_reasons_collection_name?: string | null | undefined;
924
938
  }, {
925
939
  name: string;
926
940
  owner: string;
@@ -941,6 +955,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
941
955
  batch_number?: string | null | undefined;
942
956
  complaint_description?: string | null | undefined;
943
957
  complaint_images?: string[] | null | undefined;
958
+ attachments_collection_name?: string | null | undefined;
959
+ internal_reasons_collection_name?: string | null | undefined;
944
960
  }>, "many">;
945
961
  }>, "strip", z.ZodTypeAny, {
946
962
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
@@ -974,6 +990,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
974
990
  batch_number?: string | null | undefined;
975
991
  complaint_description?: string | null | undefined;
976
992
  complaint_images?: string[] | null | undefined;
993
+ attachments_collection_name?: string | null | undefined;
994
+ internal_reasons_collection_name?: string | null | undefined;
977
995
  }[];
978
996
  is_complaint?: boolean | null | undefined;
979
997
  external_id?: string | null | undefined;
@@ -1013,6 +1031,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
1013
1031
  batch_number?: string | null | undefined;
1014
1032
  complaint_description?: string | null | undefined;
1015
1033
  complaint_images?: string[] | null | undefined;
1034
+ attachments_collection_name?: string | null | undefined;
1035
+ internal_reasons_collection_name?: string | null | undefined;
1016
1036
  }[];
1017
1037
  status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
1018
1038
  is_complaint?: number | null | undefined;
@@ -148,7 +148,9 @@ exports.ServicecaseExtended = exports.Servicecase.omit({
148
148
  .extend({
149
149
  return_items: zod_1.z.array(exports.ReturnItem.omit({ attachments: true, internal_reasons: true }).extend({
150
150
  attachments: zod_1.z.array(zod_1.z.string()),
151
+ attachments_collection_name: zod_1.z.string().optional().nullable(),
151
152
  internal_reasons: zod_1.z.array(zod_1.z.string()),
153
+ internal_reasons_collection_name: zod_1.z.string().optional().nullable(),
152
154
  })),
153
155
  })
154
156
  .describe("ServicecaseExtended");
@@ -124,7 +124,7 @@ export declare const ShippingProvider: z.ZodObject<{
124
124
  modified: z.ZodString;
125
125
  modified_by: z.ZodString;
126
126
  owner: z.ZodString;
127
- is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
127
+ is_active: z.ZodEffects<z.ZodDefault<z.ZodNumber>, boolean, number | undefined>;
128
128
  is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
129
129
  is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
130
130
  label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
@@ -138,7 +138,7 @@ export declare const ShippingProvider: z.ZodObject<{
138
138
  product_id_europe: z.ZodString;
139
139
  sender_address: z.ZodString;
140
140
  is_return_shipping_provider: z.ZodEffects<z.ZodNumber, boolean, number>;
141
- return_address: z.ZodString;
141
+ return_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
142
142
  return_label_link: z.ZodNullable<z.ZodOptional<z.ZodString>>;
143
143
  return_label_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  is_self_service: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -162,13 +162,13 @@ export declare const ShippingProvider: z.ZodObject<{
162
162
  product_id_europe: string;
163
163
  sender_address: string;
164
164
  is_return_shipping_provider: boolean;
165
- return_address: string;
166
165
  is_self_service: boolean;
167
166
  dhl_ekp_number?: string | null | undefined;
168
167
  api_user?: string | null | undefined;
169
168
  api_password?: string | null | undefined;
170
169
  api_base_url?: string | null | undefined;
171
170
  gls_shipper_id?: string | null | undefined;
171
+ return_address?: string | null | undefined;
172
172
  return_label_link?: string | null | undefined;
173
173
  return_label_instructions?: string | null | undefined;
174
174
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -180,7 +180,6 @@ export declare const ShippingProvider: z.ZodObject<{
180
180
  modified: string;
181
181
  modified_by: string;
182
182
  title: string;
183
- is_active: number;
184
183
  is_transport_by_freight_forwarding: number;
185
184
  is_print_label: number;
186
185
  label_service: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
@@ -189,13 +188,14 @@ export declare const ShippingProvider: z.ZodObject<{
189
188
  product_id_europe: string;
190
189
  sender_address: string;
191
190
  is_return_shipping_provider: number;
192
- return_address: string;
193
191
  is_self_service: number;
192
+ is_active?: number | undefined;
194
193
  dhl_ekp_number?: string | null | undefined;
195
194
  api_user?: string | null | undefined;
196
195
  api_password?: string | null | undefined;
197
196
  api_base_url?: string | null | undefined;
198
197
  gls_shipper_id?: string | null | undefined;
198
+ return_address?: string | null | undefined;
199
199
  return_label_link?: string | null | undefined;
200
200
  return_label_instructions?: string | null | undefined;
201
201
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -207,7 +207,7 @@ export declare const ShippingProviderFromList: z.ZodObject<Omit<{
207
207
  modified: z.ZodString;
208
208
  modified_by: z.ZodString;
209
209
  owner: z.ZodString;
210
- is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
210
+ is_active: z.ZodEffects<z.ZodDefault<z.ZodNumber>, boolean, number | undefined>;
211
211
  is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
212
212
  is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
213
213
  label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
@@ -221,7 +221,7 @@ export declare const ShippingProviderFromList: z.ZodObject<Omit<{
221
221
  product_id_europe: z.ZodString;
222
222
  sender_address: z.ZodString;
223
223
  is_return_shipping_provider: z.ZodEffects<z.ZodNumber, boolean, number>;
224
- return_address: z.ZodString;
224
+ return_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
225
225
  return_label_link: z.ZodNullable<z.ZodOptional<z.ZodString>>;
226
226
  return_label_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
227
227
  is_self_service: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -244,13 +244,13 @@ export declare const ShippingProviderFromList: z.ZodObject<Omit<{
244
244
  product_id_europe: string;
245
245
  sender_address: string;
246
246
  is_return_shipping_provider: boolean;
247
- return_address: string;
248
247
  is_self_service: boolean;
249
248
  dhl_ekp_number?: string | null | undefined;
250
249
  api_user?: string | null | undefined;
251
250
  api_password?: string | null | undefined;
252
251
  api_base_url?: string | null | undefined;
253
252
  gls_shipper_id?: string | null | undefined;
253
+ return_address?: string | null | undefined;
254
254
  return_label_link?: string | null | undefined;
255
255
  return_label_instructions?: string | null | undefined;
256
256
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -261,7 +261,6 @@ export declare const ShippingProviderFromList: z.ZodObject<Omit<{
261
261
  modified: string;
262
262
  modified_by: string;
263
263
  title: string;
264
- is_active: number;
265
264
  is_transport_by_freight_forwarding: number;
266
265
  is_print_label: number;
267
266
  label_service: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
@@ -270,13 +269,14 @@ export declare const ShippingProviderFromList: z.ZodObject<Omit<{
270
269
  product_id_europe: string;
271
270
  sender_address: string;
272
271
  is_return_shipping_provider: number;
273
- return_address: string;
274
272
  is_self_service: number;
273
+ is_active?: number | undefined;
275
274
  dhl_ekp_number?: string | null | undefined;
276
275
  api_user?: string | null | undefined;
277
276
  api_password?: string | null | undefined;
278
277
  api_base_url?: string | null | undefined;
279
278
  gls_shipper_id?: string | null | undefined;
279
+ return_address?: string | null | undefined;
280
280
  return_label_link?: string | null | undefined;
281
281
  return_label_instructions?: string | null | undefined;
282
282
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -287,7 +287,7 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
287
287
  modified: z.ZodString;
288
288
  modified_by: z.ZodString;
289
289
  owner: z.ZodString;
290
- is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
290
+ is_active: z.ZodEffects<z.ZodDefault<z.ZodNumber>, boolean, number | undefined>;
291
291
  is_transport_by_freight_forwarding: z.ZodEffects<z.ZodNumber, boolean, number>;
292
292
  is_print_label: z.ZodEffects<z.ZodNumber, boolean, number>;
293
293
  label_service: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"GLS Germany">, z.ZodLiteral<"GLS ADE-plus">]>, z.ZodLiteral<"DHL">]>, z.ZodLiteral<"DHL-2-Mann">]>, z.ZodLiteral<"Deutsche Post">]>, z.ZodLiteral<"Billbee">]>, z.ZodLiteral<"Billbee Amazon MCF">]>;
@@ -301,7 +301,7 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
301
301
  product_id_europe: z.ZodString;
302
302
  sender_address: z.ZodString;
303
303
  is_return_shipping_provider: z.ZodEffects<z.ZodNumber, boolean, number>;
304
- return_address: z.ZodString;
304
+ return_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
305
  return_label_link: z.ZodNullable<z.ZodOptional<z.ZodString>>;
306
306
  return_label_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
307
307
  is_self_service: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -324,13 +324,13 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
324
324
  product_id_europe: string;
325
325
  sender_address: string;
326
326
  is_return_shipping_provider: boolean;
327
- return_address: string;
328
327
  is_self_service: boolean;
329
328
  dhl_ekp_number?: string | null | undefined;
330
329
  api_user?: string | null | undefined;
331
330
  api_password?: string | null | undefined;
332
331
  api_base_url?: string | null | undefined;
333
332
  gls_shipper_id?: string | null | undefined;
333
+ return_address?: string | null | undefined;
334
334
  return_label_link?: string | null | undefined;
335
335
  return_label_instructions?: string | null | undefined;
336
336
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -341,7 +341,6 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
341
341
  modified: string;
342
342
  modified_by: string;
343
343
  title: string;
344
- is_active: number;
345
344
  is_transport_by_freight_forwarding: number;
346
345
  is_print_label: number;
347
346
  label_service: "DHL" | "Deutsche Post" | "GLS Germany" | "GLS ADE-plus" | "DHL-2-Mann" | "Billbee" | "Billbee Amazon MCF";
@@ -350,13 +349,14 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
350
349
  product_id_europe: string;
351
350
  sender_address: string;
352
351
  is_return_shipping_provider: number;
353
- return_address: string;
354
352
  is_self_service: number;
353
+ is_active?: number | undefined;
355
354
  dhl_ekp_number?: string | null | undefined;
356
355
  api_user?: string | null | undefined;
357
356
  api_password?: string | null | undefined;
358
357
  api_base_url?: string | null | undefined;
359
358
  gls_shipper_id?: string | null | undefined;
359
+ return_address?: string | null | undefined;
360
360
  return_label_link?: string | null | undefined;
361
361
  return_label_instructions?: string | null | undefined;
362
362
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -376,13 +376,13 @@ export declare const ShippingProviderList: z.ZodEffects<z.ZodArray<z.ZodObject<O
376
376
  product_id_europe: string;
377
377
  sender_address: string;
378
378
  is_return_shipping_provider: boolean;
379
- return_address: string;
380
379
  is_self_service: boolean;
381
380
  dhl_ekp_number?: string | null | undefined;
382
381
  api_user?: string | null | undefined;
383
382
  api_password?: string | null | undefined;
384
383
  api_base_url?: string | null | undefined;
385
384
  gls_shipper_id?: string | null | undefined;
385
+ return_address?: string | null | undefined;
386
386
  return_label_link?: string | null | undefined;
387
387
  return_label_instructions?: string | null | undefined;
388
388
  shopify_carrier_mapping?: "" | ShopifyCarrier | null | undefined;
@@ -138,7 +138,7 @@ exports.ShippingProvider = zod_1.z
138
138
  modified: zod_1.z.string(),
139
139
  modified_by: zod_1.z.string(),
140
140
  owner: zod_1.z.string(),
141
- is_active: zod_1.z.number().transform(Boolean),
141
+ is_active: zod_1.z.number().default(1).transform(Boolean),
142
142
  is_transport_by_freight_forwarding: zod_1.z.number().transform(Boolean),
143
143
  is_print_label: zod_1.z.number().transform(Boolean),
144
144
  label_service: exports.LabelService,
@@ -152,7 +152,7 @@ exports.ShippingProvider = zod_1.z
152
152
  product_id_europe: zod_1.z.string(),
153
153
  sender_address: zod_1.z.string(),
154
154
  is_return_shipping_provider: zod_1.z.number().transform(Boolean),
155
- return_address: zod_1.z.string(),
155
+ return_address: zod_1.z.string().optional().nullable(),
156
156
  return_label_link: zod_1.z.string().optional().nullable(),
157
157
  return_label_instructions: zod_1.z.string().optional().nullable(),
158
158
  is_self_service: zod_1.z.number().transform(Boolean),
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "3.24.1"
27
27
  },
28
- "version": "1.19.1",
28
+ "version": "1.19.3",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",