erpnext-queue-client 2.5.10 → 2.5.12

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.
@@ -44,6 +44,14 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
44
44
  priority?: number;
45
45
  }): Promise<{
46
46
  status: "EDITING" | "SUBMITTED" | "COMPLETED";
47
+ name: string;
48
+ docstatus: number;
49
+ owner: string;
50
+ creation: string;
51
+ modified: string;
52
+ modified_by: string;
53
+ idx: number;
54
+ doctype: string;
47
55
  country: string;
48
56
  title: string;
49
57
  order_number: string;
@@ -116,6 +124,7 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
116
124
  return_label?: string | null | undefined;
117
125
  shipping_provider?: string | null | undefined;
118
126
  }[];
127
+ _user_tags?: string | null | undefined;
119
128
  external_id?: string | null | undefined;
120
129
  customer_email?: string | null | undefined;
121
130
  complaint_date?: string | null | undefined;
@@ -613,31 +613,17 @@ export declare const ServicecaseExtended: z.ZodObject<{
613
613
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
614
614
  created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
615
615
  country: z.ZodString;
616
- return_shipping_items: z.ZodArray<z.ZodObject<{
617
- item: z.ZodString;
618
- return_item: z.ZodString;
619
- quantity: z.ZodNumber;
620
- shipment_id: z.ZodString;
621
- return_fee: z.ZodDefault<z.ZodNumber>;
622
- return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
623
- shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
624
- }, "strip", z.ZodTypeAny, {
625
- quantity: number;
626
- item: string;
627
- return_item: string;
628
- shipment_id: string;
629
- return_fee: number;
630
- return_label?: string | null | undefined;
631
- shipping_provider?: string | null | undefined;
632
- }, {
633
- quantity: number;
634
- item: string;
635
- return_item: string;
636
- shipment_id: string;
637
- return_fee?: number | undefined;
638
- return_label?: string | null | undefined;
639
- shipping_provider?: string | null | undefined;
640
- }>, "many">;
616
+ name: z.ZodString;
617
+ owner: z.ZodString;
618
+ creation: z.ZodString;
619
+ modified: z.ZodString;
620
+ modified_by: z.ZodString;
621
+ idx: z.ZodNumber;
622
+ docstatus: z.ZodDefault<z.ZodNumber> & {
623
+ __optionalForInput: true;
624
+ };
625
+ doctype: z.ZodString;
626
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
641
627
  } & {
642
628
  return_items: z.ZodArray<import("./DocTypeHelpers").DocModelType<z.ZodObject<{
643
629
  item: z.ZodString;
@@ -719,10 +705,43 @@ export declare const ServicecaseExtended: z.ZodObject<{
719
705
  attachments_collection_name?: string | null | undefined;
720
706
  internal_reasons_collection_name?: string | null | undefined;
721
707
  }>>, "many">;
708
+ return_shipping_items: z.ZodArray<z.ZodObject<{
709
+ item: z.ZodString;
710
+ return_item: z.ZodString;
711
+ quantity: z.ZodNumber;
712
+ shipment_id: z.ZodString;
713
+ return_fee: z.ZodDefault<z.ZodNumber>;
714
+ return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
715
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ quantity: number;
718
+ item: string;
719
+ return_item: string;
720
+ shipment_id: string;
721
+ return_fee: number;
722
+ return_label?: string | null | undefined;
723
+ shipping_provider?: string | null | undefined;
724
+ }, {
725
+ quantity: number;
726
+ item: string;
727
+ return_item: string;
728
+ shipment_id: string;
729
+ return_fee?: number | undefined;
730
+ return_label?: string | null | undefined;
731
+ shipping_provider?: string | null | undefined;
732
+ }>, "many">;
722
733
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
723
734
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
724
- }, "strip", z.ZodTypeAny, {
735
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
725
736
  status: "EDITING" | "SUBMITTED" | "COMPLETED";
737
+ name: string;
738
+ docstatus: number;
739
+ owner: string;
740
+ creation: string;
741
+ modified: string;
742
+ modified_by: string;
743
+ idx: number;
744
+ doctype: string;
726
745
  country: string;
727
746
  title: string;
728
747
  order_number: string;
@@ -795,12 +814,20 @@ export declare const ServicecaseExtended: z.ZodObject<{
795
814
  return_label?: string | null | undefined;
796
815
  shipping_provider?: string | null | undefined;
797
816
  }[];
817
+ _user_tags?: string | null | undefined;
798
818
  external_id?: string | null | undefined;
799
819
  customer_email?: string | null | undefined;
800
820
  complaint_date?: string | null | undefined;
801
821
  customer_message?: string | null | undefined;
802
822
  agreed_terms?: string | null | undefined;
803
823
  }, {
824
+ name: string;
825
+ owner: string;
826
+ creation: string;
827
+ modified: string;
828
+ modified_by: string;
829
+ idx: number;
830
+ doctype: string;
804
831
  country: string;
805
832
  title: string;
806
833
  order_number: string;
@@ -873,6 +900,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
873
900
  shipping_provider?: string | null | undefined;
874
901
  }[];
875
902
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
903
+ docstatus?: number | undefined;
904
+ _user_tags?: string | null | undefined;
876
905
  external_id?: string | null | undefined;
877
906
  customer_email?: string | null | undefined;
878
907
  complaint_date?: string | null | undefined;
@@ -893,31 +922,17 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
893
922
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
894
923
  created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
895
924
  country: z.ZodString;
896
- return_shipping_items: z.ZodArray<z.ZodObject<{
897
- item: z.ZodString;
898
- return_item: z.ZodString;
899
- quantity: z.ZodNumber;
900
- shipment_id: z.ZodString;
901
- return_fee: z.ZodDefault<z.ZodNumber>;
902
- return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
903
- shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
904
- }, "strip", z.ZodTypeAny, {
905
- quantity: number;
906
- item: string;
907
- return_item: string;
908
- shipment_id: string;
909
- return_fee: number;
910
- return_label?: string | null | undefined;
911
- shipping_provider?: string | null | undefined;
912
- }, {
913
- quantity: number;
914
- item: string;
915
- return_item: string;
916
- shipment_id: string;
917
- return_fee?: number | undefined;
918
- return_label?: string | null | undefined;
919
- shipping_provider?: string | null | undefined;
920
- }>, "many">;
925
+ name: z.ZodString;
926
+ owner: z.ZodString;
927
+ creation: z.ZodString;
928
+ modified: z.ZodString;
929
+ modified_by: z.ZodString;
930
+ idx: z.ZodNumber;
931
+ docstatus: z.ZodDefault<z.ZodNumber> & {
932
+ __optionalForInput: true;
933
+ };
934
+ doctype: z.ZodString;
935
+ _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
921
936
  } & {
922
937
  return_items: z.ZodArray<import("./DocTypeHelpers").DocModelType<z.ZodObject<{
923
938
  item: z.ZodString;
@@ -999,10 +1014,43 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
999
1014
  attachments_collection_name?: string | null | undefined;
1000
1015
  internal_reasons_collection_name?: string | null | undefined;
1001
1016
  }>>, "many">;
1017
+ return_shipping_items: z.ZodArray<z.ZodObject<{
1018
+ item: z.ZodString;
1019
+ return_item: z.ZodString;
1020
+ quantity: z.ZodNumber;
1021
+ shipment_id: z.ZodString;
1022
+ return_fee: z.ZodDefault<z.ZodNumber>;
1023
+ return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1024
+ shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ quantity: number;
1027
+ item: string;
1028
+ return_item: string;
1029
+ shipment_id: string;
1030
+ return_fee: number;
1031
+ return_label?: string | null | undefined;
1032
+ shipping_provider?: string | null | undefined;
1033
+ }, {
1034
+ quantity: number;
1035
+ item: string;
1036
+ return_item: string;
1037
+ shipment_id: string;
1038
+ return_fee?: number | undefined;
1039
+ return_label?: string | null | undefined;
1040
+ shipping_provider?: string | null | undefined;
1041
+ }>, "many">;
1002
1042
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
1003
1043
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
1004
- }, "strip", z.ZodTypeAny, {
1044
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1005
1045
  status: "EDITING" | "SUBMITTED" | "COMPLETED";
1046
+ name: string;
1047
+ docstatus: number;
1048
+ owner: string;
1049
+ creation: string;
1050
+ modified: string;
1051
+ modified_by: string;
1052
+ idx: number;
1053
+ doctype: string;
1006
1054
  country: string;
1007
1055
  title: string;
1008
1056
  order_number: string;
@@ -1075,12 +1123,20 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1075
1123
  return_label?: string | null | undefined;
1076
1124
  shipping_provider?: string | null | undefined;
1077
1125
  }[];
1126
+ _user_tags?: string | null | undefined;
1078
1127
  external_id?: string | null | undefined;
1079
1128
  customer_email?: string | null | undefined;
1080
1129
  complaint_date?: string | null | undefined;
1081
1130
  customer_message?: string | null | undefined;
1082
1131
  agreed_terms?: string | null | undefined;
1083
1132
  }, {
1133
+ name: string;
1134
+ owner: string;
1135
+ creation: string;
1136
+ modified: string;
1137
+ modified_by: string;
1138
+ idx: number;
1139
+ doctype: string;
1084
1140
  country: string;
1085
1141
  title: string;
1086
1142
  order_number: string;
@@ -1153,6 +1209,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1153
1209
  shipping_provider?: string | null | undefined;
1154
1210
  }[];
1155
1211
  status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
1212
+ docstatus?: number | undefined;
1213
+ _user_tags?: string | null | undefined;
1156
1214
  external_id?: string | null | undefined;
1157
1215
  customer_email?: string | null | undefined;
1158
1216
  complaint_date?: string | null | undefined;
@@ -106,8 +106,9 @@ exports.ServicecaseInput = (0, zodContextOptionals_1.ResourceInput)(exports.Serv
106
106
  return_items: zod_1.z.array(exports.ReturnItemInput),
107
107
  return_shipping_items: zod_1.z.array(exports.ReturnShippingItem).optional(),
108
108
  })).describe("ServicecaseInput");
109
- exports.ServicecaseExtended = exports.Servicecase.extend({
109
+ exports.ServicecaseExtended = (0, DocTypeHelpers_1.DocModel)(exports.Servicecase).extend({
110
110
  return_items: zod_1.z.array(exports.ReturnItemExtended),
111
+ return_shipping_items: zod_1.z.array(exports.ReturnShippingItem),
111
112
  is_sent_to_client: zod_1.z.number().transform(Boolean),
112
113
  is_sent_to_cc: zod_1.z.number().transform(Boolean),
113
114
  }).describe("ServicecaseExtended");
@@ -161,10 +161,20 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
161
161
  doctype: z.ZodString;
162
162
  _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
163
163
  }, never>, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, "many">;
164
+ internal_reasons: z.ZodArray<z.ZodObject<Pick<{
165
+ internal_reason: z.ZodString;
166
+ }, "internal_reason">, "strip", z.ZodTypeAny, {
167
+ internal_reason: string;
168
+ }, {
169
+ internal_reason: string;
170
+ }>, "many">;
164
171
  }, z.UnknownKeysParam, z.ZodTypeAny, {
165
172
  name: string;
166
173
  doctype: string;
167
174
  title: string;
175
+ internal_reasons: {
176
+ internal_reason: string;
177
+ }[];
168
178
  return_fee: number;
169
179
  return_fees: {}[];
170
180
  is_ask_for_batch_number: number;
@@ -178,6 +188,9 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
178
188
  name: string;
179
189
  doctype: string;
180
190
  title: string;
191
+ internal_reasons: {
192
+ internal_reason: string;
193
+ }[];
181
194
  return_fee: number;
182
195
  return_fees: {}[];
183
196
  is_ask_for_batch_number: number;
@@ -41,6 +41,7 @@ exports.ServiceportalProductConfigurationMethodResponse = (0, DocTypeHelpers_1.D
41
41
  batch_number_location_description: true,
42
42
  return_conditions: true,
43
43
  batch_numbers: true,
44
+ internal_reasons: true,
44
45
  return_shipping_provider: true,
45
46
  return_instructions: true,
46
47
  })
@@ -58,4 +59,7 @@ exports.ServiceportalProductConfigurationMethodResponse = (0, DocTypeHelpers_1.D
58
59
  parenttype: true,
59
60
  doctype: true,
60
61
  })),
62
+ internal_reasons: zod_1.z.array(exports.InternalReasonList.pick({
63
+ internal_reason: true,
64
+ })),
61
65
  });
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "winston": "^3.15.0",
31
31
  "zod": "3.25.76"
32
32
  },
33
- "version": "2.5.10",
33
+ "version": "2.5.12",
34
34
  "devDependencies": {
35
35
  "@types/crypto-js": "^4.2.2",
36
36
  "@types/lodash": "^4.17.13",