erpnext-queue-client 2.0.0-beta.0 → 2.0.0-beta.2
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.
- package/dist/client.js +1 -4
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +4 -4
- package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +56 -16
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +10 -8
- package/dist/erpnext/doctypes/address.d.ts +18 -18
- package/dist/erpnext/doctypes/contact.d.ts +18 -18
- package/dist/erpnext/doctypes/deliveryNote.d.ts +44 -33
- package/dist/erpnext/doctypes/item.d.ts +49 -49
- package/dist/erpnext/doctypes/paymentEntry.d.ts +820 -0
- package/dist/erpnext/doctypes/paymentEntry.js +72 -0
- package/dist/erpnext/doctypes/productBundle.d.ts +16 -16
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +99 -99
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +48 -49
- package/dist/erpnext/doctypes/salesInvoice.d.ts +2205 -2203
- package/dist/erpnext/doctypes/servicecase.d.ts +56 -56
- package/dist/erpnext/doctypes/shipment.d.ts +76 -44
- package/dist/erpnext/doctypes/stock.d.ts +2 -0
- package/dist/erpnext/doctypes/stock.js +19 -3
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +321 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +83 -0
- package/dist/erpnext/model/DeliveryNote.d.ts +3 -0
- package/dist/erpnext/model/DeliveryNote.js +1 -0
- package/dist/erpnext/model/DispatchRun.d.ts +3 -3
- package/dist/erpnext/model/DispatchRun.js +1 -1
- package/dist/erpnext/model/DocTypeHelpers.d.ts +26 -7
- package/dist/erpnext/model/DocTypeHelpers.js +0 -8
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +28 -15
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +12 -7
- package/dist/erpnext/model/FulfillmentStation.d.ts +3 -0
- package/dist/erpnext/model/FulfillmentStation.js +1 -0
- package/dist/erpnext/model/Item.d.ts +35 -25
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +57 -0
- package/dist/erpnext/model/ItemTaxTemplate.js +25 -0
- package/dist/erpnext/model/PaymentEntry.d.ts +183 -16
- package/dist/erpnext/model/PaymentEntry.js +6 -1
- package/dist/erpnext/model/PurchaseInvoice.d.ts +49 -47
- package/dist/erpnext/model/PurchaseInvoice.js +0 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +10 -10
- package/dist/erpnext/model/Receipt.d.ts +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +0 -3
- package/dist/erpnext/model/ReceiptDraft.js +0 -1
- package/dist/erpnext/model/SalesInvoice.d.ts +1530 -1526
- package/dist/erpnext/model/SalesInvoice.js +182 -178
- package/dist/erpnext/model/SalesOrder.d.ts +778 -748
- package/dist/erpnext/model/SalesOrder.js +151 -149
- package/dist/erpnext/model/Servicecase.d.ts +30 -30
- package/dist/erpnext/model/Servicecase.js +8 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +128 -3
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +34 -2
- package/dist/erpnext/model/Shipment.d.ts +14 -0
- package/dist/erpnext/model/Shipment.js +14 -1
- package/dist/erpnext/model/ShippingFees.d.ts +36 -0
- package/dist/erpnext/model/ShippingFees.js +18 -0
- package/dist/erpnext/model/ShippingProvider.d.ts +2 -2
- package/dist/erpnext/model/Stock.d.ts +6 -6
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/dist/erpnext/model/TaxCategory.d.ts +20 -0
- package/dist/erpnext/model/TaxCategory.js +16 -0
- package/dist/erpnext/resourceRequest.d.ts +1 -1
- package/dist/erpnext/resourceRequest.js +11 -5
- package/dist/index.d.ts +8 -2
- package/dist/index.js +9 -2
- package/dist/index.test.js +104 -70
- package/dist/utils/zodContextOptionals.js +7 -4
- package/dist/utils/zodUtils.js +14 -2
- package/package.json +7 -2
|
@@ -7,7 +7,7 @@ export declare class ERPNextShipment {
|
|
|
7
7
|
protected temporalClient: TemporalClient;
|
|
8
8
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof Shipment>;
|
|
9
9
|
protected methodRequest: ERPNextMethodRequest;
|
|
10
|
-
getList: <TFieldOptions extends ("status" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "
|
|
10
|
+
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "description_of_content" | "pickup_date") | ("amended_from" | "_user_tags" | "__onload" | "shipping_provider" | "delivery_contact" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_delivery_country" | "custom_is_export" | "custom_export_status"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
11
|
fields?: TSelectedFields;
|
|
12
12
|
filters?: (string | string[])[][];
|
|
13
13
|
skip?: number;
|
|
@@ -19,13 +19,13 @@ export declare class ERPNextShipment {
|
|
|
19
19
|
name: string;
|
|
20
20
|
}[] : TSelectedFields extends readonly ["*"] ? {
|
|
21
21
|
status: string;
|
|
22
|
+
docstatus: number;
|
|
22
23
|
name: string;
|
|
23
24
|
owner: string;
|
|
24
25
|
creation: string;
|
|
25
26
|
modified: string;
|
|
26
27
|
modified_by: string;
|
|
27
28
|
idx: number;
|
|
28
|
-
docstatus: number;
|
|
29
29
|
incoterm: string;
|
|
30
30
|
shipment_id: string;
|
|
31
31
|
delivery_address_name: string;
|
|
@@ -50,7 +50,7 @@ export declare class ERPNextShipment {
|
|
|
50
50
|
description_of_content: string;
|
|
51
51
|
pickup_date: string;
|
|
52
52
|
amended_from?: string | null | undefined;
|
|
53
|
-
_user_tags?: string | undefined;
|
|
53
|
+
_user_tags?: string | null | undefined;
|
|
54
54
|
__onload?: {
|
|
55
55
|
load_after_mapping: boolean;
|
|
56
56
|
} | null | undefined;
|
|
@@ -75,15 +75,18 @@ export declare class ERPNextShipment {
|
|
|
75
75
|
custom_return_shipping_provider?: string | null | undefined;
|
|
76
76
|
tracking_status_info?: string | null | undefined;
|
|
77
77
|
tracking_url?: string | null | undefined;
|
|
78
|
-
|
|
78
|
+
custom_delivery_country?: string | null | undefined;
|
|
79
|
+
custom_is_export?: number | null | undefined;
|
|
80
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
81
|
+
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "description_of_content" | "pickup_date") | ("amended_from" | "_user_tags" | "__onload" | "shipping_provider" | "delivery_contact" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_delivery_country" | "custom_is_export" | "custom_export_status") ? {
|
|
79
82
|
status: string;
|
|
83
|
+
docstatus: number;
|
|
80
84
|
name: string;
|
|
81
85
|
owner: string;
|
|
82
86
|
creation: string;
|
|
83
87
|
modified: string;
|
|
84
88
|
modified_by: string;
|
|
85
89
|
idx: number;
|
|
86
|
-
docstatus: number;
|
|
87
90
|
incoterm: string;
|
|
88
91
|
shipment_id: string;
|
|
89
92
|
delivery_address_name: string;
|
|
@@ -108,7 +111,7 @@ export declare class ERPNextShipment {
|
|
|
108
111
|
description_of_content: string;
|
|
109
112
|
pickup_date: string;
|
|
110
113
|
amended_from?: string | null | undefined;
|
|
111
|
-
_user_tags?: string | undefined;
|
|
114
|
+
_user_tags?: string | null | undefined;
|
|
112
115
|
__onload?: {
|
|
113
116
|
load_after_mapping: boolean;
|
|
114
117
|
} | null | undefined;
|
|
@@ -133,19 +136,22 @@ export declare class ERPNextShipment {
|
|
|
133
136
|
custom_return_shipping_provider?: string | null | undefined;
|
|
134
137
|
tracking_status_info?: string | null | undefined;
|
|
135
138
|
tracking_url?: string | null | undefined;
|
|
136
|
-
|
|
139
|
+
custom_delivery_country?: string | null | undefined;
|
|
140
|
+
custom_is_export?: number | null | undefined;
|
|
141
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
142
|
+
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "incoterm" | "shipment_id" | "delivery_address_name" | "delivery_address" | "delivery_customer" | "delivery_to_type" | "pallets" | "pickup_address_name" | "pickup_address" | "pickup_company" | "pickup_contact_email" | "pickup_contact_person" | "pickup_contact" | "pickup_from_type" | "pickup_from" | "pickup_to" | "pickup_type" | "shipment_amount" | "shipment_type" | "tracking_status" | "value_of_goods" | "description_of_content" | "pickup_date") | ("amended_from" | "_user_tags" | "__onload" | "shipping_provider" | "delivery_contact" | "awb_number" | "carrier_service" | "carrier" | "delivery_company" | "delivery_contact_email" | "delivery_contact_name" | "delivery_supplier" | "delivery_to" | "parcel_template" | "pickup_contact_name" | "pickup_customer" | "pickup_supplier" | "pickup" | "service_provider" | "shipping_label" | "custom_return_label" | "custom_return_shipping_provider" | "tracking_status_info" | "tracking_url" | "custom_delivery_country" | "custom_is_export" | "custom_export_status")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
137
143
|
getById: ({ resourceId, priority, }: {
|
|
138
144
|
resourceId: string;
|
|
139
145
|
priority?: number;
|
|
140
146
|
}) => Promise<{
|
|
141
147
|
status: string;
|
|
148
|
+
docstatus: number;
|
|
142
149
|
name: string;
|
|
143
150
|
owner: string;
|
|
144
151
|
creation: string;
|
|
145
152
|
modified: string;
|
|
146
153
|
modified_by: string;
|
|
147
154
|
idx: number;
|
|
148
|
-
docstatus: number;
|
|
149
155
|
doctype: string;
|
|
150
156
|
incoterm: string;
|
|
151
157
|
shipment_id: string;
|
|
@@ -166,30 +172,30 @@ export declare class ERPNextShipment {
|
|
|
166
172
|
pickup_type: string;
|
|
167
173
|
shipment_amount: number;
|
|
168
174
|
shipment_delivery_note: {
|
|
175
|
+
docstatus: number;
|
|
169
176
|
name: string;
|
|
170
177
|
owner: string;
|
|
171
178
|
creation: string;
|
|
172
179
|
modified: string;
|
|
173
180
|
modified_by: string;
|
|
174
181
|
idx: number;
|
|
175
|
-
docstatus: number;
|
|
176
182
|
doctype: string;
|
|
177
183
|
parenttype: string;
|
|
178
184
|
parentfield: string;
|
|
179
185
|
grand_total: number;
|
|
180
186
|
delivery_note: string;
|
|
181
|
-
_user_tags?: string | undefined;
|
|
187
|
+
_user_tags?: string | null | undefined;
|
|
182
188
|
__unsaved?: number | null | undefined;
|
|
183
189
|
}[];
|
|
184
190
|
shipment_parcel: {
|
|
185
191
|
length: number;
|
|
192
|
+
docstatus: number;
|
|
186
193
|
name: string;
|
|
187
194
|
owner: string;
|
|
188
195
|
creation: string;
|
|
189
196
|
modified: string;
|
|
190
197
|
modified_by: string;
|
|
191
198
|
idx: number;
|
|
192
|
-
docstatus: number;
|
|
193
199
|
doctype: string;
|
|
194
200
|
parenttype: string;
|
|
195
201
|
parentfield: string;
|
|
@@ -197,7 +203,7 @@ export declare class ERPNextShipment {
|
|
|
197
203
|
height: number;
|
|
198
204
|
weight: number;
|
|
199
205
|
count: number;
|
|
200
|
-
_user_tags?: string | undefined;
|
|
206
|
+
_user_tags?: string | null | undefined;
|
|
201
207
|
}[];
|
|
202
208
|
shipment_type: string;
|
|
203
209
|
tracking_status: string;
|
|
@@ -205,7 +211,7 @@ export declare class ERPNextShipment {
|
|
|
205
211
|
description_of_content: string;
|
|
206
212
|
pickup_date: string;
|
|
207
213
|
amended_from?: string | null | undefined;
|
|
208
|
-
_user_tags?: string | undefined;
|
|
214
|
+
_user_tags?: string | null | undefined;
|
|
209
215
|
__onload?: {
|
|
210
216
|
load_after_mapping: boolean;
|
|
211
217
|
} | null | undefined;
|
|
@@ -230,7 +236,10 @@ export declare class ERPNextShipment {
|
|
|
230
236
|
custom_return_shipping_provider?: string | null | undefined;
|
|
231
237
|
tracking_status_info?: string | null | undefined;
|
|
232
238
|
tracking_url?: string | null | undefined;
|
|
233
|
-
|
|
239
|
+
custom_delivery_country?: string | null | undefined;
|
|
240
|
+
custom_is_export?: number | null | undefined;
|
|
241
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
242
|
+
} | undefined>;
|
|
234
243
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
235
244
|
status: string;
|
|
236
245
|
creation: string;
|
|
@@ -270,6 +279,7 @@ export declare class ERPNextShipment {
|
|
|
270
279
|
description_of_content: string;
|
|
271
280
|
pickup_date: string;
|
|
272
281
|
amended_from?: string | null | undefined;
|
|
282
|
+
docstatus?: number | undefined;
|
|
273
283
|
__onload?: {
|
|
274
284
|
load_after_mapping: boolean;
|
|
275
285
|
} | null | undefined;
|
|
@@ -294,6 +304,9 @@ export declare class ERPNextShipment {
|
|
|
294
304
|
custom_return_shipping_provider?: string | null | undefined;
|
|
295
305
|
tracking_status_info?: string | null | undefined;
|
|
296
306
|
tracking_url?: string | null | undefined;
|
|
307
|
+
custom_delivery_country?: string | null | undefined;
|
|
308
|
+
custom_is_export?: number | null | undefined;
|
|
309
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
297
310
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
298
311
|
resourceId: string;
|
|
299
312
|
inputValidationModel?: TInputModel;
|
|
@@ -301,13 +314,13 @@ export declare class ERPNextShipment {
|
|
|
301
314
|
body: TInput;
|
|
302
315
|
}) => Promise<{
|
|
303
316
|
status: string;
|
|
317
|
+
docstatus: number;
|
|
304
318
|
name: string;
|
|
305
319
|
owner: string;
|
|
306
320
|
creation: string;
|
|
307
321
|
modified: string;
|
|
308
322
|
modified_by: string;
|
|
309
323
|
idx: number;
|
|
310
|
-
docstatus: number;
|
|
311
324
|
doctype: string;
|
|
312
325
|
incoterm: string;
|
|
313
326
|
shipment_id: string;
|
|
@@ -328,30 +341,30 @@ export declare class ERPNextShipment {
|
|
|
328
341
|
pickup_type: string;
|
|
329
342
|
shipment_amount: number;
|
|
330
343
|
shipment_delivery_note: {
|
|
344
|
+
docstatus: number;
|
|
331
345
|
name: string;
|
|
332
346
|
owner: string;
|
|
333
347
|
creation: string;
|
|
334
348
|
modified: string;
|
|
335
349
|
modified_by: string;
|
|
336
350
|
idx: number;
|
|
337
|
-
docstatus: number;
|
|
338
351
|
doctype: string;
|
|
339
352
|
parenttype: string;
|
|
340
353
|
parentfield: string;
|
|
341
354
|
grand_total: number;
|
|
342
355
|
delivery_note: string;
|
|
343
|
-
_user_tags?: string | undefined;
|
|
356
|
+
_user_tags?: string | null | undefined;
|
|
344
357
|
__unsaved?: number | null | undefined;
|
|
345
358
|
}[];
|
|
346
359
|
shipment_parcel: {
|
|
347
360
|
length: number;
|
|
361
|
+
docstatus: number;
|
|
348
362
|
name: string;
|
|
349
363
|
owner: string;
|
|
350
364
|
creation: string;
|
|
351
365
|
modified: string;
|
|
352
366
|
modified_by: string;
|
|
353
367
|
idx: number;
|
|
354
|
-
docstatus: number;
|
|
355
368
|
doctype: string;
|
|
356
369
|
parenttype: string;
|
|
357
370
|
parentfield: string;
|
|
@@ -359,7 +372,7 @@ export declare class ERPNextShipment {
|
|
|
359
372
|
height: number;
|
|
360
373
|
weight: number;
|
|
361
374
|
count: number;
|
|
362
|
-
_user_tags?: string | undefined;
|
|
375
|
+
_user_tags?: string | null | undefined;
|
|
363
376
|
}[];
|
|
364
377
|
shipment_type: string;
|
|
365
378
|
tracking_status: string;
|
|
@@ -367,7 +380,7 @@ export declare class ERPNextShipment {
|
|
|
367
380
|
description_of_content: string;
|
|
368
381
|
pickup_date: string;
|
|
369
382
|
amended_from?: string | null | undefined;
|
|
370
|
-
_user_tags?: string | undefined;
|
|
383
|
+
_user_tags?: string | null | undefined;
|
|
371
384
|
__onload?: {
|
|
372
385
|
load_after_mapping: boolean;
|
|
373
386
|
} | null | undefined;
|
|
@@ -392,6 +405,9 @@ export declare class ERPNextShipment {
|
|
|
392
405
|
custom_return_shipping_provider?: string | null | undefined;
|
|
393
406
|
tracking_status_info?: string | null | undefined;
|
|
394
407
|
tracking_url?: string | null | undefined;
|
|
408
|
+
custom_delivery_country?: string | null | undefined;
|
|
409
|
+
custom_is_export?: number | null | undefined;
|
|
410
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
395
411
|
}>;
|
|
396
412
|
deleteById: ({ resourceId, priority, }: {
|
|
397
413
|
resourceId: string;
|
|
@@ -436,6 +452,7 @@ export declare class ERPNextShipment {
|
|
|
436
452
|
description_of_content: string;
|
|
437
453
|
pickup_date: string;
|
|
438
454
|
amended_from?: string | null | undefined;
|
|
455
|
+
docstatus?: number | undefined;
|
|
439
456
|
__onload?: {
|
|
440
457
|
load_after_mapping: boolean;
|
|
441
458
|
} | null | undefined;
|
|
@@ -460,6 +477,9 @@ export declare class ERPNextShipment {
|
|
|
460
477
|
custom_return_shipping_provider?: string | null | undefined;
|
|
461
478
|
tracking_status_info?: string | null | undefined;
|
|
462
479
|
tracking_url?: string | null | undefined;
|
|
480
|
+
custom_delivery_country?: string | null | undefined;
|
|
481
|
+
custom_is_export?: number | null | undefined;
|
|
482
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
463
483
|
} : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
|
|
464
484
|
inputValidationModel?: TInputModel;
|
|
465
485
|
body: TInput;
|
|
@@ -467,13 +487,13 @@ export declare class ERPNextShipment {
|
|
|
467
487
|
priority?: number;
|
|
468
488
|
}) => Promise<{
|
|
469
489
|
status: string;
|
|
490
|
+
docstatus: number;
|
|
470
491
|
name: string;
|
|
471
492
|
owner: string;
|
|
472
493
|
creation: string;
|
|
473
494
|
modified: string;
|
|
474
495
|
modified_by: string;
|
|
475
496
|
idx: number;
|
|
476
|
-
docstatus: number;
|
|
477
497
|
doctype: string;
|
|
478
498
|
incoterm: string;
|
|
479
499
|
shipment_id: string;
|
|
@@ -494,30 +514,30 @@ export declare class ERPNextShipment {
|
|
|
494
514
|
pickup_type: string;
|
|
495
515
|
shipment_amount: number;
|
|
496
516
|
shipment_delivery_note: {
|
|
517
|
+
docstatus: number;
|
|
497
518
|
name: string;
|
|
498
519
|
owner: string;
|
|
499
520
|
creation: string;
|
|
500
521
|
modified: string;
|
|
501
522
|
modified_by: string;
|
|
502
523
|
idx: number;
|
|
503
|
-
docstatus: number;
|
|
504
524
|
doctype: string;
|
|
505
525
|
parenttype: string;
|
|
506
526
|
parentfield: string;
|
|
507
527
|
grand_total: number;
|
|
508
528
|
delivery_note: string;
|
|
509
|
-
_user_tags?: string | undefined;
|
|
529
|
+
_user_tags?: string | null | undefined;
|
|
510
530
|
__unsaved?: number | null | undefined;
|
|
511
531
|
}[];
|
|
512
532
|
shipment_parcel: {
|
|
513
533
|
length: number;
|
|
534
|
+
docstatus: number;
|
|
514
535
|
name: string;
|
|
515
536
|
owner: string;
|
|
516
537
|
creation: string;
|
|
517
538
|
modified: string;
|
|
518
539
|
modified_by: string;
|
|
519
540
|
idx: number;
|
|
520
|
-
docstatus: number;
|
|
521
541
|
doctype: string;
|
|
522
542
|
parenttype: string;
|
|
523
543
|
parentfield: string;
|
|
@@ -525,7 +545,7 @@ export declare class ERPNextShipment {
|
|
|
525
545
|
height: number;
|
|
526
546
|
weight: number;
|
|
527
547
|
count: number;
|
|
528
|
-
_user_tags?: string | undefined;
|
|
548
|
+
_user_tags?: string | null | undefined;
|
|
529
549
|
}[];
|
|
530
550
|
shipment_type: string;
|
|
531
551
|
tracking_status: string;
|
|
@@ -533,7 +553,7 @@ export declare class ERPNextShipment {
|
|
|
533
553
|
description_of_content: string;
|
|
534
554
|
pickup_date: string;
|
|
535
555
|
amended_from?: string | null | undefined;
|
|
536
|
-
_user_tags?: string | undefined;
|
|
556
|
+
_user_tags?: string | null | undefined;
|
|
537
557
|
__onload?: {
|
|
538
558
|
load_after_mapping: boolean;
|
|
539
559
|
} | null | undefined;
|
|
@@ -558,18 +578,21 @@ export declare class ERPNextShipment {
|
|
|
558
578
|
custom_return_shipping_provider?: string | null | undefined;
|
|
559
579
|
tracking_status_info?: string | null | undefined;
|
|
560
580
|
tracking_url?: string | null | undefined;
|
|
581
|
+
custom_delivery_country?: string | null | undefined;
|
|
582
|
+
custom_is_export?: number | null | undefined;
|
|
583
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
561
584
|
}>;
|
|
562
585
|
cancel: ({ resourceId }: {
|
|
563
586
|
resourceId: string;
|
|
564
587
|
}) => Promise<{
|
|
565
588
|
status: string;
|
|
589
|
+
docstatus: number;
|
|
566
590
|
name: string;
|
|
567
591
|
owner: string;
|
|
568
592
|
creation: string;
|
|
569
593
|
modified: string;
|
|
570
594
|
modified_by: string;
|
|
571
595
|
idx: number;
|
|
572
|
-
docstatus: number;
|
|
573
596
|
doctype: string;
|
|
574
597
|
incoterm: string;
|
|
575
598
|
shipment_id: string;
|
|
@@ -590,30 +613,30 @@ export declare class ERPNextShipment {
|
|
|
590
613
|
pickup_type: string;
|
|
591
614
|
shipment_amount: number;
|
|
592
615
|
shipment_delivery_note: {
|
|
616
|
+
docstatus: number;
|
|
593
617
|
name: string;
|
|
594
618
|
owner: string;
|
|
595
619
|
creation: string;
|
|
596
620
|
modified: string;
|
|
597
621
|
modified_by: string;
|
|
598
622
|
idx: number;
|
|
599
|
-
docstatus: number;
|
|
600
623
|
doctype: string;
|
|
601
624
|
parenttype: string;
|
|
602
625
|
parentfield: string;
|
|
603
626
|
grand_total: number;
|
|
604
627
|
delivery_note: string;
|
|
605
|
-
_user_tags?: string | undefined;
|
|
628
|
+
_user_tags?: string | null | undefined;
|
|
606
629
|
__unsaved?: number | null | undefined;
|
|
607
630
|
}[];
|
|
608
631
|
shipment_parcel: {
|
|
609
632
|
length: number;
|
|
633
|
+
docstatus: number;
|
|
610
634
|
name: string;
|
|
611
635
|
owner: string;
|
|
612
636
|
creation: string;
|
|
613
637
|
modified: string;
|
|
614
638
|
modified_by: string;
|
|
615
639
|
idx: number;
|
|
616
|
-
docstatus: number;
|
|
617
640
|
doctype: string;
|
|
618
641
|
parenttype: string;
|
|
619
642
|
parentfield: string;
|
|
@@ -621,7 +644,7 @@ export declare class ERPNextShipment {
|
|
|
621
644
|
height: number;
|
|
622
645
|
weight: number;
|
|
623
646
|
count: number;
|
|
624
|
-
_user_tags?: string | undefined;
|
|
647
|
+
_user_tags?: string | null | undefined;
|
|
625
648
|
}[];
|
|
626
649
|
shipment_type: string;
|
|
627
650
|
tracking_status: string;
|
|
@@ -629,7 +652,7 @@ export declare class ERPNextShipment {
|
|
|
629
652
|
description_of_content: string;
|
|
630
653
|
pickup_date: string;
|
|
631
654
|
amended_from?: string | null | undefined;
|
|
632
|
-
_user_tags?: string | undefined;
|
|
655
|
+
_user_tags?: string | null | undefined;
|
|
633
656
|
__onload?: {
|
|
634
657
|
load_after_mapping: boolean;
|
|
635
658
|
} | null | undefined;
|
|
@@ -654,18 +677,21 @@ export declare class ERPNextShipment {
|
|
|
654
677
|
custom_return_shipping_provider?: string | null | undefined;
|
|
655
678
|
tracking_status_info?: string | null | undefined;
|
|
656
679
|
tracking_url?: string | null | undefined;
|
|
680
|
+
custom_delivery_country?: string | null | undefined;
|
|
681
|
+
custom_is_export?: number | null | undefined;
|
|
682
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
657
683
|
}>;
|
|
658
684
|
submit: ({ resourceId }: {
|
|
659
685
|
resourceId: string;
|
|
660
686
|
}) => Promise<{
|
|
661
687
|
status: string;
|
|
688
|
+
docstatus: number;
|
|
662
689
|
name: string;
|
|
663
690
|
owner: string;
|
|
664
691
|
creation: string;
|
|
665
692
|
modified: string;
|
|
666
693
|
modified_by: string;
|
|
667
694
|
idx: number;
|
|
668
|
-
docstatus: number;
|
|
669
695
|
doctype: string;
|
|
670
696
|
incoterm: string;
|
|
671
697
|
shipment_id: string;
|
|
@@ -686,30 +712,30 @@ export declare class ERPNextShipment {
|
|
|
686
712
|
pickup_type: string;
|
|
687
713
|
shipment_amount: number;
|
|
688
714
|
shipment_delivery_note: {
|
|
715
|
+
docstatus: number;
|
|
689
716
|
name: string;
|
|
690
717
|
owner: string;
|
|
691
718
|
creation: string;
|
|
692
719
|
modified: string;
|
|
693
720
|
modified_by: string;
|
|
694
721
|
idx: number;
|
|
695
|
-
docstatus: number;
|
|
696
722
|
doctype: string;
|
|
697
723
|
parenttype: string;
|
|
698
724
|
parentfield: string;
|
|
699
725
|
grand_total: number;
|
|
700
726
|
delivery_note: string;
|
|
701
|
-
_user_tags?: string | undefined;
|
|
727
|
+
_user_tags?: string | null | undefined;
|
|
702
728
|
__unsaved?: number | null | undefined;
|
|
703
729
|
}[];
|
|
704
730
|
shipment_parcel: {
|
|
705
731
|
length: number;
|
|
732
|
+
docstatus: number;
|
|
706
733
|
name: string;
|
|
707
734
|
owner: string;
|
|
708
735
|
creation: string;
|
|
709
736
|
modified: string;
|
|
710
737
|
modified_by: string;
|
|
711
738
|
idx: number;
|
|
712
|
-
docstatus: number;
|
|
713
739
|
doctype: string;
|
|
714
740
|
parenttype: string;
|
|
715
741
|
parentfield: string;
|
|
@@ -717,7 +743,7 @@ export declare class ERPNextShipment {
|
|
|
717
743
|
height: number;
|
|
718
744
|
weight: number;
|
|
719
745
|
count: number;
|
|
720
|
-
_user_tags?: string | undefined;
|
|
746
|
+
_user_tags?: string | null | undefined;
|
|
721
747
|
}[];
|
|
722
748
|
shipment_type: string;
|
|
723
749
|
tracking_status: string;
|
|
@@ -725,7 +751,7 @@ export declare class ERPNextShipment {
|
|
|
725
751
|
description_of_content: string;
|
|
726
752
|
pickup_date: string;
|
|
727
753
|
amended_from?: string | null | undefined;
|
|
728
|
-
_user_tags?: string | undefined;
|
|
754
|
+
_user_tags?: string | null | undefined;
|
|
729
755
|
__onload?: {
|
|
730
756
|
load_after_mapping: boolean;
|
|
731
757
|
} | null | undefined;
|
|
@@ -750,6 +776,9 @@ export declare class ERPNextShipment {
|
|
|
750
776
|
custom_return_shipping_provider?: string | null | undefined;
|
|
751
777
|
tracking_status_info?: string | null | undefined;
|
|
752
778
|
tracking_url?: string | null | undefined;
|
|
779
|
+
custom_delivery_country?: string | null | undefined;
|
|
780
|
+
custom_is_export?: number | null | undefined;
|
|
781
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
753
782
|
}>;
|
|
754
783
|
constructor(temporalClient: TemporalClient);
|
|
755
784
|
createShipmentDraft(deliveryNoteName: string): Promise<{
|
|
@@ -806,13 +835,13 @@ export declare class ERPNextShipment {
|
|
|
806
835
|
}[]>;
|
|
807
836
|
addShippingLabelAndSubmit(shipmentErpNextName: string, body: ShipmentAddShippingLabelAndSubmitBodyType): Promise<{
|
|
808
837
|
status: string;
|
|
838
|
+
docstatus: number;
|
|
809
839
|
name: string;
|
|
810
840
|
owner: string;
|
|
811
841
|
creation: string;
|
|
812
842
|
modified: string;
|
|
813
843
|
modified_by: string;
|
|
814
844
|
idx: number;
|
|
815
|
-
docstatus: number;
|
|
816
845
|
doctype: string;
|
|
817
846
|
incoterm: string;
|
|
818
847
|
shipment_id: string;
|
|
@@ -833,30 +862,30 @@ export declare class ERPNextShipment {
|
|
|
833
862
|
pickup_type: string;
|
|
834
863
|
shipment_amount: number;
|
|
835
864
|
shipment_delivery_note: {
|
|
865
|
+
docstatus: number;
|
|
836
866
|
name: string;
|
|
837
867
|
owner: string;
|
|
838
868
|
creation: string;
|
|
839
869
|
modified: string;
|
|
840
870
|
modified_by: string;
|
|
841
871
|
idx: number;
|
|
842
|
-
docstatus: number;
|
|
843
872
|
doctype: string;
|
|
844
873
|
parenttype: string;
|
|
845
874
|
parentfield: string;
|
|
846
875
|
grand_total: number;
|
|
847
876
|
delivery_note: string;
|
|
848
|
-
_user_tags?: string | undefined;
|
|
877
|
+
_user_tags?: string | null | undefined;
|
|
849
878
|
__unsaved?: number | null | undefined;
|
|
850
879
|
}[];
|
|
851
880
|
shipment_parcel: {
|
|
852
881
|
length: number;
|
|
882
|
+
docstatus: number;
|
|
853
883
|
name: string;
|
|
854
884
|
owner: string;
|
|
855
885
|
creation: string;
|
|
856
886
|
modified: string;
|
|
857
887
|
modified_by: string;
|
|
858
888
|
idx: number;
|
|
859
|
-
docstatus: number;
|
|
860
889
|
doctype: string;
|
|
861
890
|
parenttype: string;
|
|
862
891
|
parentfield: string;
|
|
@@ -864,7 +893,7 @@ export declare class ERPNextShipment {
|
|
|
864
893
|
height: number;
|
|
865
894
|
weight: number;
|
|
866
895
|
count: number;
|
|
867
|
-
_user_tags?: string | undefined;
|
|
896
|
+
_user_tags?: string | null | undefined;
|
|
868
897
|
}[];
|
|
869
898
|
shipment_type: string;
|
|
870
899
|
tracking_status: string;
|
|
@@ -872,7 +901,7 @@ export declare class ERPNextShipment {
|
|
|
872
901
|
description_of_content: string;
|
|
873
902
|
pickup_date: string;
|
|
874
903
|
amended_from?: string | null | undefined;
|
|
875
|
-
_user_tags?: string | undefined;
|
|
904
|
+
_user_tags?: string | null | undefined;
|
|
876
905
|
__onload?: {
|
|
877
906
|
load_after_mapping: boolean;
|
|
878
907
|
} | null | undefined;
|
|
@@ -897,5 +926,8 @@ export declare class ERPNextShipment {
|
|
|
897
926
|
custom_return_shipping_provider?: string | null | undefined;
|
|
898
927
|
tracking_status_info?: string | null | undefined;
|
|
899
928
|
tracking_url?: string | null | undefined;
|
|
929
|
+
custom_delivery_country?: string | null | undefined;
|
|
930
|
+
custom_is_export?: number | null | undefined;
|
|
931
|
+
custom_export_status?: "Open" | "Customs Declaration in Progress" | "Customs Declaration Submitted" | "Customs Declaration Confirmed" | null | undefined;
|
|
900
932
|
}>;
|
|
901
933
|
}
|
|
@@ -11,6 +11,8 @@ export declare class ERPNextStock extends ERPNextReports {
|
|
|
11
11
|
getBundleStockFromBin(topLevelWarehouse: string): Promise<any>;
|
|
12
12
|
getStock(topLevelWarehouse: string, options?: {
|
|
13
13
|
includeBundleStock: boolean;
|
|
14
|
+
respectOversellAmount?: boolean;
|
|
15
|
+
respectStockReserve?: boolean;
|
|
14
16
|
}): Promise<any>;
|
|
15
17
|
getCompletedOrderItemAmounts(orderNumbers: string[]): Promise<Record<string, number>>;
|
|
16
18
|
getStockProjectedQuantityDict(warehouse?: string, sku?: string): Promise<Record<string, {
|
|
@@ -55,18 +55,34 @@ class ERPNextStock extends reports_1.ERPNextReports {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getStock(topLevelWarehouse_1) {
|
|
58
|
-
return __awaiter(this, arguments, void 0, function* (topLevelWarehouse, options = {
|
|
58
|
+
return __awaiter(this, arguments, void 0, function* (topLevelWarehouse, options = {
|
|
59
|
+
includeBundleStock: false,
|
|
60
|
+
respectOversellAmount: false,
|
|
61
|
+
respectStockReserve: false,
|
|
62
|
+
}) {
|
|
59
63
|
const stock = yield this.methodRequest.request({
|
|
60
64
|
methodName: `get_stock_from_bin`,
|
|
61
65
|
requestMethod: "GET",
|
|
62
|
-
params: {
|
|
66
|
+
params: {
|
|
67
|
+
warehouse: topLevelWarehouse,
|
|
68
|
+
respect_oversell_amount: options.respectOversellAmount
|
|
69
|
+
? "true"
|
|
70
|
+
: "false",
|
|
71
|
+
respect_stock_reserve: options.respectStockReserve ? "true" : "false",
|
|
72
|
+
},
|
|
63
73
|
});
|
|
64
74
|
if (!options.includeBundleStock)
|
|
65
75
|
return stock;
|
|
66
76
|
const bundleStock = yield this.methodRequest.request({
|
|
67
77
|
methodName: `get_bundle_stock_from_bin`,
|
|
68
78
|
requestMethod: "GET",
|
|
69
|
-
params: {
|
|
79
|
+
params: {
|
|
80
|
+
warehouse: topLevelWarehouse,
|
|
81
|
+
respect_oversell_amount: options.respectOversellAmount
|
|
82
|
+
? "true"
|
|
83
|
+
: "false",
|
|
84
|
+
respect_stock_reserve: options.respectStockReserve ? "true" : "false",
|
|
85
|
+
},
|
|
70
86
|
});
|
|
71
87
|
return Object.assign(Object.assign({}, stock), bundleStock);
|
|
72
88
|
});
|