erpnext-queue-client 1.33.4 → 1.34.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.
@@ -56,7 +56,10 @@ export declare class ERPNextServicecase {
56
56
  idx: number;
57
57
  quantity: number;
58
58
  item: string;
59
+ return_fee: number;
59
60
  return_item: string;
61
+ shipmentId: string;
62
+ shipping_provider?: string | null | undefined;
60
63
  return_label?: string | null | undefined;
61
64
  }[];
62
65
  external_id?: string | null | undefined;
@@ -119,7 +122,10 @@ export declare class ERPNextServicecase {
119
122
  idx: number;
120
123
  quantity: number;
121
124
  item: string;
125
+ return_fee: number;
122
126
  return_item: string;
127
+ shipmentId: string;
128
+ shipping_provider?: string | null | undefined;
123
129
  return_label?: string | null | undefined;
124
130
  }[];
125
131
  external_id?: string | null | undefined;
@@ -177,7 +183,10 @@ export declare class ERPNextServicecase {
177
183
  idx: number;
178
184
  quantity: number;
179
185
  item: string;
186
+ return_fee: number;
180
187
  return_item: string;
188
+ shipmentId: string;
189
+ shipping_provider?: string | null | undefined;
181
190
  return_label?: string | null | undefined;
182
191
  }[];
183
192
  external_id?: string | null | undefined;
@@ -234,7 +243,10 @@ export declare class ERPNextServicecase {
234
243
  idx: number;
235
244
  quantity: number;
236
245
  item: string;
246
+ return_fee: number;
237
247
  return_item: string;
248
+ shipmentId: string;
249
+ shipping_provider?: string | null | undefined;
238
250
  return_label?: string | null | undefined;
239
251
  }[];
240
252
  external_id?: string | null | undefined;
@@ -296,7 +308,10 @@ export declare class ERPNextServicecase {
296
308
  idx: number;
297
309
  quantity: number;
298
310
  item: string;
311
+ return_fee: number;
299
312
  return_item: string;
313
+ shipmentId: string;
314
+ shipping_provider?: string | null | undefined;
300
315
  return_label?: string | null | undefined;
301
316
  }[];
302
317
  external_id?: string | null | undefined;
@@ -353,7 +368,10 @@ export declare class ERPNextServicecase {
353
368
  idx: number;
354
369
  quantity: number;
355
370
  item: string;
371
+ return_fee: number;
356
372
  return_item: string;
373
+ shipmentId: string;
374
+ shipping_provider?: string | null | undefined;
357
375
  return_label?: string | null | undefined;
358
376
  }[];
359
377
  external_id?: string | null | undefined;
@@ -417,7 +435,10 @@ export declare class ERPNextServicecase {
417
435
  idx: number;
418
436
  quantity: number;
419
437
  item: string;
438
+ return_fee: number;
420
439
  return_item: string;
440
+ shipmentId: string;
441
+ shipping_provider?: string | null | undefined;
421
442
  return_label?: string | null | undefined;
422
443
  }[];
423
444
  external_id?: string | null | undefined;
@@ -245,11 +245,13 @@ export declare const ReturnItemInput: z.ZodObject<{
245
245
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
246
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
247
247
  } & {
248
+ name: z.ZodOptional<z.ZodString>;
248
249
  is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
249
250
  }, "strip", z.ZodTypeAny, {
250
251
  item: string;
251
252
  return_quantity: number;
252
253
  is_complaint: number;
254
+ name?: string | undefined;
253
255
  attachments?: string | null | undefined;
254
256
  internal_reasons?: string | null | undefined;
255
257
  line_item_id?: string | null | undefined;
@@ -265,6 +267,7 @@ export declare const ReturnItemInput: z.ZodObject<{
265
267
  }, {
266
268
  item: string;
267
269
  return_quantity: number;
270
+ name?: string | undefined;
268
271
  attachments?: string | null | undefined;
269
272
  internal_reasons?: string | null | undefined;
270
273
  line_item_id?: string | null | undefined;
@@ -443,16 +446,25 @@ export declare const ReturnShippingItemBase: z.ZodObject<{
443
446
  item: z.ZodString;
444
447
  return_item: z.ZodString;
445
448
  quantity: z.ZodNumber;
449
+ shipmentId: z.ZodString;
450
+ return_fee: z.ZodDefault<z.ZodNumber>;
446
451
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
452
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
447
453
  }, "strip", z.ZodTypeAny, {
448
454
  quantity: number;
449
455
  item: string;
456
+ return_fee: number;
450
457
  return_item: string;
458
+ shipmentId: string;
459
+ shipping_provider?: string | null | undefined;
451
460
  return_label?: string | null | undefined;
452
461
  }, {
453
462
  quantity: number;
454
463
  item: string;
455
464
  return_item: string;
465
+ shipmentId: string;
466
+ shipping_provider?: string | null | undefined;
467
+ return_fee?: number | undefined;
456
468
  return_label?: string | null | undefined;
457
469
  }>;
458
470
  export type ReturnShippingItemBaseType = z.infer<typeof ReturnShippingItemBase>;
@@ -460,7 +472,10 @@ export declare const ReturnShippingItem: z.ZodObject<{
460
472
  item: z.ZodString;
461
473
  return_item: z.ZodString;
462
474
  quantity: z.ZodNumber;
475
+ shipmentId: z.ZodString;
476
+ return_fee: z.ZodDefault<z.ZodNumber>;
463
477
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
478
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
464
479
  } & {
465
480
  name: z.ZodString;
466
481
  owner: z.ZodString;
@@ -477,7 +492,10 @@ export declare const ReturnShippingItem: z.ZodObject<{
477
492
  idx: number;
478
493
  quantity: number;
479
494
  item: string;
495
+ return_fee: number;
480
496
  return_item: string;
497
+ shipmentId: string;
498
+ shipping_provider?: string | null | undefined;
481
499
  return_label?: string | null | undefined;
482
500
  }, {
483
501
  name: string;
@@ -489,6 +507,9 @@ export declare const ReturnShippingItem: z.ZodObject<{
489
507
  quantity: number;
490
508
  item: string;
491
509
  return_item: string;
510
+ shipmentId: string;
511
+ shipping_provider?: string | null | undefined;
512
+ return_fee?: number | undefined;
492
513
  return_label?: string | null | undefined;
493
514
  }>;
494
515
  export type ReturnShippingItemType = z.infer<typeof ReturnShippingItem>;
@@ -626,7 +647,10 @@ export declare const Servicecase: z.ZodObject<{
626
647
  item: z.ZodString;
627
648
  return_item: z.ZodString;
628
649
  quantity: z.ZodNumber;
650
+ shipmentId: z.ZodString;
651
+ return_fee: z.ZodDefault<z.ZodNumber>;
629
652
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
653
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
630
654
  } & {
631
655
  name: z.ZodString;
632
656
  owner: z.ZodString;
@@ -643,7 +667,10 @@ export declare const Servicecase: z.ZodObject<{
643
667
  idx: number;
644
668
  quantity: number;
645
669
  item: string;
670
+ return_fee: number;
646
671
  return_item: string;
672
+ shipmentId: string;
673
+ shipping_provider?: string | null | undefined;
647
674
  return_label?: string | null | undefined;
648
675
  }, {
649
676
  name: string;
@@ -655,6 +682,9 @@ export declare const Servicecase: z.ZodObject<{
655
682
  quantity: number;
656
683
  item: string;
657
684
  return_item: string;
685
+ shipmentId: string;
686
+ shipping_provider?: string | null | undefined;
687
+ return_fee?: number | undefined;
658
688
  return_label?: string | null | undefined;
659
689
  }>, "many">;
660
690
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -705,7 +735,10 @@ export declare const Servicecase: z.ZodObject<{
705
735
  idx: number;
706
736
  quantity: number;
707
737
  item: string;
738
+ return_fee: number;
708
739
  return_item: string;
740
+ shipmentId: string;
741
+ shipping_provider?: string | null | undefined;
709
742
  return_label?: string | null | undefined;
710
743
  }[];
711
744
  external_id?: string | null | undefined;
@@ -758,6 +791,9 @@ export declare const Servicecase: z.ZodObject<{
758
791
  quantity: number;
759
792
  item: string;
760
793
  return_item: string;
794
+ shipmentId: string;
795
+ shipping_provider?: string | null | undefined;
796
+ return_fee?: number | undefined;
761
797
  return_label?: string | null | undefined;
762
798
  }[];
763
799
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
@@ -798,11 +834,13 @@ export declare const ServicecaseInput: z.ZodObject<{
798
834
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
799
835
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
800
836
  } & {
837
+ name: z.ZodOptional<z.ZodString>;
801
838
  is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
802
839
  }, "strip", z.ZodTypeAny, {
803
840
  item: string;
804
841
  return_quantity: number;
805
842
  is_complaint: number;
843
+ name?: string | undefined;
806
844
  attachments?: string | null | undefined;
807
845
  internal_reasons?: string | null | undefined;
808
846
  line_item_id?: string | null | undefined;
@@ -818,6 +856,7 @@ export declare const ServicecaseInput: z.ZodObject<{
818
856
  }, {
819
857
  item: string;
820
858
  return_quantity: number;
859
+ name?: string | undefined;
821
860
  attachments?: string | null | undefined;
822
861
  internal_reasons?: string | null | undefined;
823
862
  line_item_id?: string | null | undefined;
@@ -836,16 +875,25 @@ export declare const ServicecaseInput: z.ZodObject<{
836
875
  item: z.ZodString;
837
876
  return_item: z.ZodString;
838
877
  quantity: z.ZodNumber;
878
+ shipmentId: z.ZodString;
879
+ return_fee: z.ZodDefault<z.ZodNumber>;
839
880
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
881
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
840
882
  }, "strip", z.ZodTypeAny, {
841
883
  quantity: number;
842
884
  item: string;
885
+ return_fee: number;
843
886
  return_item: string;
887
+ shipmentId: string;
888
+ shipping_provider?: string | null | undefined;
844
889
  return_label?: string | null | undefined;
845
890
  }, {
846
891
  quantity: number;
847
892
  item: string;
848
893
  return_item: string;
894
+ shipmentId: string;
895
+ shipping_provider?: string | null | undefined;
896
+ return_fee?: number | undefined;
849
897
  return_label?: string | null | undefined;
850
898
  }>, "many">>;
851
899
  is_sent_to_client: z.ZodEffects<z.ZodNumber, number, unknown>;
@@ -863,6 +911,7 @@ export declare const ServicecaseInput: z.ZodObject<{
863
911
  item: string;
864
912
  return_quantity: number;
865
913
  is_complaint: number;
914
+ name?: string | undefined;
866
915
  attachments?: string | null | undefined;
867
916
  internal_reasons?: string | null | undefined;
868
917
  line_item_id?: string | null | undefined;
@@ -884,7 +933,10 @@ export declare const ServicecaseInput: z.ZodObject<{
884
933
  return_shipping_items?: {
885
934
  quantity: number;
886
935
  item: string;
936
+ return_fee: number;
887
937
  return_item: string;
938
+ shipmentId: string;
939
+ shipping_provider?: string | null | undefined;
888
940
  return_label?: string | null | undefined;
889
941
  }[] | undefined;
890
942
  }, {
@@ -895,6 +947,7 @@ export declare const ServicecaseInput: z.ZodObject<{
895
947
  return_items: {
896
948
  item: string;
897
949
  return_quantity: number;
950
+ name?: string | undefined;
898
951
  attachments?: string | null | undefined;
899
952
  internal_reasons?: string | null | undefined;
900
953
  line_item_id?: string | null | undefined;
@@ -922,6 +975,9 @@ export declare const ServicecaseInput: z.ZodObject<{
922
975
  quantity: number;
923
976
  item: string;
924
977
  return_item: string;
978
+ shipmentId: string;
979
+ shipping_provider?: string | null | undefined;
980
+ return_fee?: number | undefined;
925
981
  return_label?: string | null | undefined;
926
982
  }[] | undefined;
927
983
  }>;
@@ -1037,7 +1093,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
1037
1093
  item: z.ZodString;
1038
1094
  return_item: z.ZodString;
1039
1095
  quantity: z.ZodNumber;
1096
+ shipmentId: z.ZodString;
1097
+ return_fee: z.ZodDefault<z.ZodNumber>;
1040
1098
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1099
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1041
1100
  } & {
1042
1101
  name: z.ZodString;
1043
1102
  owner: z.ZodString;
@@ -1054,7 +1113,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
1054
1113
  idx: number;
1055
1114
  quantity: number;
1056
1115
  item: string;
1116
+ return_fee: number;
1057
1117
  return_item: string;
1118
+ shipmentId: string;
1119
+ shipping_provider?: string | null | undefined;
1058
1120
  return_label?: string | null | undefined;
1059
1121
  }, {
1060
1122
  name: string;
@@ -1066,6 +1128,9 @@ export declare const ServicecaseExtended: z.ZodObject<{
1066
1128
  quantity: number;
1067
1129
  item: string;
1068
1130
  return_item: string;
1131
+ shipmentId: string;
1132
+ shipping_provider?: string | null | undefined;
1133
+ return_fee?: number | undefined;
1069
1134
  return_label?: string | null | undefined;
1070
1135
  }>, "many">;
1071
1136
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -1121,7 +1186,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
1121
1186
  idx: number;
1122
1187
  quantity: number;
1123
1188
  item: string;
1189
+ return_fee: number;
1124
1190
  return_item: string;
1191
+ shipmentId: string;
1192
+ shipping_provider?: string | null | undefined;
1125
1193
  return_label?: string | null | undefined;
1126
1194
  }[];
1127
1195
  external_id?: string | null | undefined;
@@ -1179,6 +1247,9 @@ export declare const ServicecaseExtended: z.ZodObject<{
1179
1247
  quantity: number;
1180
1248
  item: string;
1181
1249
  return_item: string;
1250
+ shipmentId: string;
1251
+ shipping_provider?: string | null | undefined;
1252
+ return_fee?: number | undefined;
1182
1253
  return_label?: string | null | undefined;
1183
1254
  }[];
1184
1255
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
@@ -1301,7 +1372,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1301
1372
  item: z.ZodString;
1302
1373
  return_item: z.ZodString;
1303
1374
  quantity: z.ZodNumber;
1375
+ shipmentId: z.ZodString;
1376
+ return_fee: z.ZodDefault<z.ZodNumber>;
1304
1377
  return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1378
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1305
1379
  } & {
1306
1380
  name: z.ZodString;
1307
1381
  owner: z.ZodString;
@@ -1318,7 +1392,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1318
1392
  idx: number;
1319
1393
  quantity: number;
1320
1394
  item: string;
1395
+ return_fee: number;
1321
1396
  return_item: string;
1397
+ shipmentId: string;
1398
+ shipping_provider?: string | null | undefined;
1322
1399
  return_label?: string | null | undefined;
1323
1400
  }, {
1324
1401
  name: string;
@@ -1330,6 +1407,9 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1330
1407
  quantity: number;
1331
1408
  item: string;
1332
1409
  return_item: string;
1410
+ shipmentId: string;
1411
+ shipping_provider?: string | null | undefined;
1412
+ return_fee?: number | undefined;
1333
1413
  return_label?: string | null | undefined;
1334
1414
  }>, "many">;
1335
1415
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
@@ -1385,7 +1465,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1385
1465
  idx: number;
1386
1466
  quantity: number;
1387
1467
  item: string;
1468
+ return_fee: number;
1388
1469
  return_item: string;
1470
+ shipmentId: string;
1471
+ shipping_provider?: string | null | undefined;
1389
1472
  return_label?: string | null | undefined;
1390
1473
  }[];
1391
1474
  external_id?: string | null | undefined;
@@ -1443,6 +1526,9 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1443
1526
  quantity: number;
1444
1527
  item: string;
1445
1528
  return_item: string;
1529
+ shipmentId: string;
1530
+ shipping_provider?: string | null | undefined;
1531
+ return_fee?: number | undefined;
1446
1532
  return_label?: string | null | undefined;
1447
1533
  }[];
1448
1534
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
@@ -94,6 +94,7 @@ exports.ReturnItemBase = zod_1.z
94
94
  })
95
95
  .describe("ReturnItemBase");
96
96
  exports.ReturnItemInput = exports.ReturnItemBase.extend({
97
+ name: zod_1.z.string().optional(),
97
98
  is_complaint: zod_1.z.preprocess((i) => Number(i), zod_1.z.number()),
98
99
  }).describe("ReturnItemInput");
99
100
  exports.ReturnItem = exports.ReturnItemBase.extend({
@@ -123,7 +124,10 @@ exports.ReturnShippingItemBase = zod_1.z
123
124
  item: zod_1.z.string(),
124
125
  return_item: zod_1.z.string(),
125
126
  quantity: zod_1.z.number(),
127
+ shipmentId: zod_1.z.string(),
128
+ return_fee: zod_1.z.number().default(0),
126
129
  return_label: zod_1.z.string().optional().nullable(),
130
+ shipping_provider: zod_1.z.string().optional().nullable(),
127
131
  })
128
132
  .describe("ReturnShippingItemBase");
129
133
  exports.ReturnShippingItem = exports.ReturnShippingItemBase.extend({
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.4",
28
+ "version": "1.34.0",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",