erpnext-queue-client 2.5.0 → 2.5.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 -1
- package/dist/erpnext/doctypeResourceRequest.d.ts +12 -1
- package/dist/erpnext/doctypeResourceRequest.js +3 -3
- package/dist/erpnext/doctypes/address.d.ts +3 -233
- package/dist/erpnext/doctypes/address.js +5 -16
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +3 -486
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.js +4 -18
- package/dist/erpnext/doctypes/contact.d.ts +3 -358
- package/dist/erpnext/doctypes/contact.js +6 -17
- package/dist/erpnext/doctypes/deliveryNote.d.ts +1 -1575
- package/dist/erpnext/doctypes/deliveryNote.js +2 -19
- package/dist/erpnext/doctypes/item.d.ts +1 -1019
- package/dist/erpnext/doctypes/item.js +3 -16
- package/dist/erpnext/doctypes/paymentEntry.d.ts +1 -728
- package/dist/erpnext/doctypes/paymentEntry.js +4 -21
- package/dist/erpnext/doctypes/productBundle.d.ts +1 -143
- package/dist/erpnext/doctypes/productBundle.js +2 -13
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +1 -1395
- package/dist/erpnext/doctypes/purchaseInvoice.js +4 -19
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1 -1204
- package/dist/erpnext/doctypes/purchaseReceipt.js +4 -19
- package/dist/erpnext/doctypes/salesInvoice.d.ts +1 -2517
- package/dist/erpnext/doctypes/salesInvoice.js +4 -21
- package/dist/erpnext/doctypes/servicecase.d.ts +24 -425
- package/dist/erpnext/doctypes/servicecase.js +14 -15
- package/dist/erpnext/doctypes/shipment.d.ts +3 -760
- package/dist/erpnext/doctypes/shipment.js +3 -20
- package/dist/erpnext/item.getList.alias-parsing.test.d.ts +1 -0
- package/dist/erpnext/item.getList.alias-parsing.test.js +66 -0
- package/dist/erpnext/model/Shipment.d.ts +4 -4
- package/dist/erpnext/model/Shipment.js +1 -1
- package/dist/index.test.js +3 -2
- package/dist/utils/zodUtils.js +14 -6
- package/package.json +1 -1
|
@@ -9,27 +9,14 @@ const methodRequest_1 = require("../methodRequest");
|
|
|
9
9
|
const Item_1 = require("../model/Item");
|
|
10
10
|
const ProjectedQuantityReport_1 = require("../model/ProjectedQuantityReport");
|
|
11
11
|
const StockDict_1 = require("../model/StockDict");
|
|
12
|
-
class ERPNextItem {
|
|
13
|
-
temporalClient;
|
|
14
|
-
baseRequest;
|
|
12
|
+
class ERPNextItem extends doctypeResourceRequest_1.ERPNextDoctypeResourceRequest {
|
|
15
13
|
methodRequest;
|
|
16
|
-
getList;
|
|
17
|
-
getById;
|
|
18
|
-
updateById;
|
|
19
|
-
deleteById;
|
|
20
|
-
create;
|
|
21
14
|
constructor(temporalClient) {
|
|
22
|
-
|
|
23
|
-
this.baseRequest = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(temporalClient, "Item", Item_1.Item);
|
|
24
|
-
this.getList = this.baseRequest.getList;
|
|
25
|
-
this.getById = this.baseRequest.getById;
|
|
26
|
-
this.updateById = this.baseRequest.updateById;
|
|
27
|
-
this.deleteById = this.baseRequest.deleteById;
|
|
28
|
-
this.create = this.baseRequest.create;
|
|
15
|
+
super(temporalClient, "Item", Item_1.Item);
|
|
29
16
|
this.methodRequest = new methodRequest_1.ERPNextMethodRequest(temporalClient);
|
|
30
17
|
}
|
|
31
18
|
async getNoneStockItems(params) {
|
|
32
|
-
const result = await this.
|
|
19
|
+
const result = await this.getList({
|
|
33
20
|
filters: [["is_stock_item", "=", "0"]],
|
|
34
21
|
asDict: false,
|
|
35
22
|
...(params ? { params } : {}),
|