erpnext-queue-client 2.5.6 → 2.5.7

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.
@@ -129,7 +129,6 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
129
129
  value_of_goods: number;
130
130
  description_of_content: string;
131
131
  pickup_date: string;
132
- custom_delivery_country: string;
133
132
  amended_from?: string | null | undefined;
134
133
  _user_tags?: string | null | undefined;
135
134
  incoterm?: string | null | undefined;
@@ -154,6 +153,7 @@ export declare class ERPNextShipment extends ERPNextDoctypeSubmittableResourceRe
154
153
  custom_return_shipping_provider?: string | null | undefined;
155
154
  tracking_status_info?: string | null | undefined;
156
155
  tracking_url?: string | null | undefined;
156
+ custom_delivery_country?: string | null | undefined;
157
157
  custom_is_export?: number | null | undefined;
158
158
  custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
159
159
  }>;
@@ -12,31 +12,30 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
12
12
  net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
13
  base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
14
14
  base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
15
- delivered_by_supplier: z.ZodEffects<z.ZodNumber, boolean, number>;
15
+ delivered_by_supplier: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
16
+ __optionalForInput: true;
17
+ };
16
18
  weight_per_unit: z.ZodNumber;
17
19
  total_weight: z.ZodNumber;
18
20
  weight_uom: z.ZodString;
19
- sales_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
- so_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
- sales_invoice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22
- sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
- customer: z.ZodString;
24
- shipment: z.ZodString;
25
- delivery_note: z.ZodString;
26
- dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
- customs_tariff_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
- country_of_origin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
+ sales_order: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ so_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ sales_invoice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ sales_invoice_item: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ delivery_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ dn_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ customs_tariff_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  }, "strip", z.ZodTypeAny, {
30
32
  item_code: string;
31
33
  qty: number;
32
34
  rate: number;
33
- delivered_by_supplier: boolean;
35
+ delivered_by_supplier: 0 | 1;
34
36
  weight_per_unit: number;
35
37
  total_weight: number;
36
38
  weight_uom: string;
37
- customer: string;
38
- shipment: string;
39
- delivery_note: string;
40
39
  description?: string | null | undefined;
41
40
  item_tax_template?: string | null | undefined;
42
41
  amount?: number | null | undefined;
@@ -50,6 +49,9 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
50
49
  so_detail?: string | null | undefined;
51
50
  sales_invoice?: string | null | undefined;
52
51
  sales_invoice_item?: string | null | undefined;
52
+ customer?: string | null | undefined;
53
+ shipment?: string | null | undefined;
54
+ delivery_note?: string | null | undefined;
53
55
  dn_detail?: string | null | undefined;
54
56
  customs_tariff_number?: string | null | undefined;
55
57
  country_of_origin?: string | null | undefined;
@@ -57,13 +59,9 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
57
59
  item_code: string;
58
60
  qty: number;
59
61
  rate: number;
60
- delivered_by_supplier: number;
61
62
  weight_per_unit: number;
62
63
  total_weight: number;
63
64
  weight_uom: string;
64
- customer: string;
65
- shipment: string;
66
- delivery_note: string;
67
65
  description?: string | null | undefined;
68
66
  item_tax_template?: string | null | undefined;
69
67
  amount?: number | null | undefined;
@@ -73,10 +71,14 @@ export declare const ConsolidatedCustomsInvoiceItem: z.ZodObject<{
73
71
  net_amount?: number | null | undefined;
74
72
  base_net_rate?: number | null | undefined;
75
73
  base_net_amount?: number | null | undefined;
74
+ delivered_by_supplier?: unknown;
76
75
  sales_order?: string | null | undefined;
77
76
  so_detail?: string | null | undefined;
78
77
  sales_invoice?: string | null | undefined;
79
78
  sales_invoice_item?: string | null | undefined;
79
+ customer?: string | null | undefined;
80
+ shipment?: string | null | undefined;
81
+ delivery_note?: string | null | undefined;
80
82
  dn_detail?: string | null | undefined;
81
83
  customs_tariff_number?: string | null | undefined;
82
84
  country_of_origin?: string | null | undefined;
@@ -141,31 +143,30 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
141
143
  net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
142
144
  base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
143
145
  base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
144
- delivered_by_supplier: z.ZodEffects<z.ZodNumber, boolean, number>;
146
+ delivered_by_supplier: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
147
+ __optionalForInput: true;
148
+ };
145
149
  weight_per_unit: z.ZodNumber;
146
150
  total_weight: z.ZodNumber;
147
151
  weight_uom: z.ZodString;
148
- sales_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
- so_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
150
- sales_invoice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
151
- sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
- customer: z.ZodString;
153
- shipment: z.ZodString;
154
- delivery_note: z.ZodString;
155
- dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
156
- customs_tariff_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
157
- country_of_origin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
+ sales_order: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ so_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ sales_invoice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ sales_invoice_item: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ delivery_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
+ dn_detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ customs_tariff_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ country_of_origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
162
  }, "strip", z.ZodTypeAny, {
159
163
  item_code: string;
160
164
  qty: number;
161
165
  rate: number;
162
- delivered_by_supplier: boolean;
166
+ delivered_by_supplier: 0 | 1;
163
167
  weight_per_unit: number;
164
168
  total_weight: number;
165
169
  weight_uom: string;
166
- customer: string;
167
- shipment: string;
168
- delivery_note: string;
169
170
  description?: string | null | undefined;
170
171
  item_tax_template?: string | null | undefined;
171
172
  amount?: number | null | undefined;
@@ -179,6 +180,9 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
179
180
  so_detail?: string | null | undefined;
180
181
  sales_invoice?: string | null | undefined;
181
182
  sales_invoice_item?: string | null | undefined;
183
+ customer?: string | null | undefined;
184
+ shipment?: string | null | undefined;
185
+ delivery_note?: string | null | undefined;
182
186
  dn_detail?: string | null | undefined;
183
187
  customs_tariff_number?: string | null | undefined;
184
188
  country_of_origin?: string | null | undefined;
@@ -186,13 +190,9 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
186
190
  item_code: string;
187
191
  qty: number;
188
192
  rate: number;
189
- delivered_by_supplier: number;
190
193
  weight_per_unit: number;
191
194
  total_weight: number;
192
195
  weight_uom: string;
193
- customer: string;
194
- shipment: string;
195
- delivery_note: string;
196
196
  description?: string | null | undefined;
197
197
  item_tax_template?: string | null | undefined;
198
198
  amount?: number | null | undefined;
@@ -202,10 +202,14 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
202
202
  net_amount?: number | null | undefined;
203
203
  base_net_rate?: number | null | undefined;
204
204
  base_net_amount?: number | null | undefined;
205
+ delivered_by_supplier?: unknown;
205
206
  sales_order?: string | null | undefined;
206
207
  so_detail?: string | null | undefined;
207
208
  sales_invoice?: string | null | undefined;
208
209
  sales_invoice_item?: string | null | undefined;
210
+ customer?: string | null | undefined;
211
+ shipment?: string | null | undefined;
212
+ delivery_note?: string | null | undefined;
209
213
  dn_detail?: string | null | undefined;
210
214
  customs_tariff_number?: string | null | undefined;
211
215
  country_of_origin?: string | null | undefined;
@@ -231,13 +235,10 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
231
235
  item_code: string;
232
236
  qty: number;
233
237
  rate: number;
234
- delivered_by_supplier: boolean;
238
+ delivered_by_supplier: 0 | 1;
235
239
  weight_per_unit: number;
236
240
  total_weight: number;
237
241
  weight_uom: string;
238
- customer: string;
239
- shipment: string;
240
- delivery_note: string;
241
242
  description?: string | null | undefined;
242
243
  item_tax_template?: string | null | undefined;
243
244
  amount?: number | null | undefined;
@@ -251,6 +252,9 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
251
252
  so_detail?: string | null | undefined;
252
253
  sales_invoice?: string | null | undefined;
253
254
  sales_invoice_item?: string | null | undefined;
255
+ customer?: string | null | undefined;
256
+ shipment?: string | null | undefined;
257
+ delivery_note?: string | null | undefined;
254
258
  dn_detail?: string | null | undefined;
255
259
  customs_tariff_number?: string | null | undefined;
256
260
  country_of_origin?: string | null | undefined;
@@ -289,13 +293,9 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
289
293
  item_code: string;
290
294
  qty: number;
291
295
  rate: number;
292
- delivered_by_supplier: number;
293
296
  weight_per_unit: number;
294
297
  total_weight: number;
295
298
  weight_uom: string;
296
- customer: string;
297
- shipment: string;
298
- delivery_note: string;
299
299
  description?: string | null | undefined;
300
300
  item_tax_template?: string | null | undefined;
301
301
  amount?: number | null | undefined;
@@ -305,10 +305,14 @@ export declare const ConsolidatedCustomsInvoice: z.ZodObject<{
305
305
  net_amount?: number | null | undefined;
306
306
  base_net_rate?: number | null | undefined;
307
307
  base_net_amount?: number | null | undefined;
308
+ delivered_by_supplier?: unknown;
308
309
  sales_order?: string | null | undefined;
309
310
  so_detail?: string | null | undefined;
310
311
  sales_invoice?: string | null | undefined;
311
312
  sales_invoice_item?: string | null | undefined;
313
+ customer?: string | null | undefined;
314
+ shipment?: string | null | undefined;
315
+ delivery_note?: string | null | undefined;
312
316
  dn_detail?: string | null | undefined;
313
317
  customs_tariff_number?: string | null | undefined;
314
318
  country_of_origin?: string | null | undefined;
@@ -4,6 +4,7 @@ exports.ConsolidatedCustomsInvoiceCreateMethodResponseSchema = exports.Consolida
4
4
  const zod_1 = require("zod");
5
5
  const Address_1 = require("./Address");
6
6
  const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
7
+ const Boolean_1 = require("./Boolean");
7
8
  // Child table: Consolidated Customs Invoice Item
8
9
  exports.ConsolidatedCustomsInvoiceItem = zod_1.z
9
10
  .object({
@@ -22,23 +23,23 @@ exports.ConsolidatedCustomsInvoiceItem = zod_1.z
22
23
  base_net_rate: zod_1.z.number().optional().nullable(),
23
24
  base_net_amount: zod_1.z.number().optional().nullable(),
24
25
  // Drop ship
25
- delivered_by_supplier: zod_1.z.number().transform(Boolean),
26
+ delivered_by_supplier: Boolean_1.ERPNextBoolean,
26
27
  // Weight details
27
28
  weight_per_unit: zod_1.z.number(),
28
29
  total_weight: zod_1.z.number(),
29
30
  weight_uom: zod_1.z.string(),
30
31
  // References
31
- sales_order: zod_1.z.string().optional().nullable(),
32
- so_detail: zod_1.z.string().optional().nullable(),
33
- sales_invoice: zod_1.z.string().optional().nullable(),
34
- sales_invoice_item: zod_1.z.string().optional().nullable(),
35
- customer: zod_1.z.string(),
36
- shipment: zod_1.z.string(),
37
- delivery_note: zod_1.z.string(),
38
- dn_detail: zod_1.z.string().optional().nullable(),
32
+ sales_order: zod_1.z.string().nullish(),
33
+ so_detail: zod_1.z.string().nullish(),
34
+ sales_invoice: zod_1.z.string().nullish(),
35
+ sales_invoice_item: zod_1.z.string().nullish(),
36
+ customer: zod_1.z.string().nullish(),
37
+ shipment: zod_1.z.string().nullish(),
38
+ delivery_note: zod_1.z.string().nullish(),
39
+ dn_detail: zod_1.z.string().nullish(),
39
40
  // Customs
40
- customs_tariff_number: zod_1.z.string().optional().nullable(),
41
- country_of_origin: zod_1.z.string().optional().nullable(),
41
+ customs_tariff_number: zod_1.z.string().nullish(),
42
+ country_of_origin: zod_1.z.string().nullish(),
42
43
  })
43
44
  .describe("Consolidated Customs Invoice Item");
44
45
  exports.ConsolidatedCustomsInvoiceExportApprovalStatus = zod_1.z.enum([
@@ -232,9 +232,7 @@ export declare const Shipment: z.ZodObject<{
232
232
  tracking_status: z.ZodString;
233
233
  tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
234
234
  value_of_goods: z.ZodNumber;
235
- custom_delivery_country: z.ZodString & {
236
- __optionalForInput: true;
237
- };
235
+ custom_delivery_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
236
  custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
239
237
  custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
240
238
  }, "strip", z.ZodTypeAny, {
@@ -273,7 +271,6 @@ export declare const Shipment: z.ZodObject<{
273
271
  value_of_goods: number;
274
272
  description_of_content: string;
275
273
  pickup_date: string;
276
- custom_delivery_country: string;
277
274
  incoterm?: string | null | undefined;
278
275
  shipping_provider?: string | null | undefined;
279
276
  delivery_contact?: string | null | undefined;
@@ -296,6 +293,7 @@ export declare const Shipment: z.ZodObject<{
296
293
  custom_return_shipping_provider?: string | null | undefined;
297
294
  tracking_status_info?: string | null | undefined;
298
295
  tracking_url?: string | null | undefined;
296
+ custom_delivery_country?: string | null | undefined;
299
297
  custom_is_export?: number | null | undefined;
300
298
  custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
301
299
  }, {
@@ -334,7 +332,6 @@ export declare const Shipment: z.ZodObject<{
334
332
  value_of_goods: number;
335
333
  description_of_content: string;
336
334
  pickup_date: string;
337
- custom_delivery_country: string;
338
335
  incoterm?: string | null | undefined;
339
336
  shipping_provider?: string | null | undefined;
340
337
  delivery_contact?: string | null | undefined;
@@ -357,6 +354,7 @@ export declare const Shipment: z.ZodObject<{
357
354
  custom_return_shipping_provider?: string | null | undefined;
358
355
  tracking_status_info?: string | null | undefined;
359
356
  tracking_url?: string | null | undefined;
357
+ custom_delivery_country?: string | null | undefined;
360
358
  custom_is_export?: number | null | undefined;
361
359
  custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
362
360
  }>;
@@ -521,9 +519,7 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
521
519
  tracking_status: z.ZodString;
522
520
  tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
523
521
  value_of_goods: z.ZodNumber;
524
- custom_delivery_country: z.ZodString & {
525
- __optionalForInput: true;
526
- };
522
+ custom_delivery_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
527
523
  custom_is_export: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
528
524
  custom_export_status: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
529
525
  } & {
@@ -128,7 +128,7 @@ exports.Shipment = zod_1.z
128
128
  tracking_status: zod_1.z.string(),
129
129
  tracking_url: zod_1.z.string().optional().nullable(),
130
130
  value_of_goods: zod_1.z.number(),
131
- custom_delivery_country: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.string()),
131
+ custom_delivery_country: zod_1.z.string().nullish(),
132
132
  custom_is_export: zod_1.z.number().optional().nullable(),
133
133
  custom_export_status: exports.ShipmentExportStatus,
134
134
  })
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.6",
33
+ "version": "2.5.7",
34
34
  "devDependencies": {
35
35
  "@types/crypto-js": "^4.2.2",
36
36
  "@types/lodash": "^4.17.13",