erpnext-queue-client 1.1.2 → 1.2.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.
Files changed (63) hide show
  1. package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
  2. package/dist/erpnext/doctypeResourceRequest.js +2 -2
  3. package/dist/erpnext/doctypes/address.d.ts +48 -15
  4. package/dist/erpnext/doctypes/address.js +22 -0
  5. package/dist/erpnext/doctypes/contact.d.ts +13 -13
  6. package/dist/erpnext/doctypes/deliveryNote.d.ts +15 -15
  7. package/dist/erpnext/doctypes/deliveryNote.js +1 -1
  8. package/dist/erpnext/doctypes/item.d.ts +13 -13
  9. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +2161 -0
  10. package/dist/erpnext/doctypes/purchaseInvoice.js +79 -0
  11. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +493 -156
  12. package/dist/erpnext/doctypes/purchaseReceipt.js +24 -3
  13. package/dist/erpnext/doctypes/shipment.d.ts +11 -11
  14. package/dist/erpnext/doctypes/stock.d.ts +56 -0
  15. package/dist/erpnext/doctypes/stock.js +100 -0
  16. package/dist/erpnext/methodRequest.d.ts +2 -1
  17. package/dist/erpnext/methodRequest.js +7 -5
  18. package/dist/erpnext/model/Account.d.ts +44 -0
  19. package/dist/erpnext/model/Account.js +21 -0
  20. package/dist/erpnext/model/Address.d.ts +7 -7
  21. package/dist/erpnext/model/Address.js +6 -3
  22. package/dist/erpnext/model/Attachment.d.ts +17 -0
  23. package/dist/erpnext/model/Attachment.js +12 -0
  24. package/dist/erpnext/model/Contact.d.ts +6 -6
  25. package/dist/erpnext/model/Customer.d.ts +7 -7
  26. package/dist/erpnext/model/DeliveryNote.d.ts +8 -8
  27. package/dist/erpnext/model/DocInfo.d.ts +1149 -0
  28. package/dist/erpnext/model/DocInfo.js +46 -0
  29. package/dist/erpnext/model/DocTypeHelpers.d.ts +2 -0
  30. package/dist/erpnext/model/DocTypeHelpers.js +6 -0
  31. package/dist/erpnext/model/File.d.ts +4 -4
  32. package/dist/erpnext/model/Fulfiller.d.ts +5 -5
  33. package/dist/erpnext/model/Item.d.ts +14 -14
  34. package/dist/erpnext/model/Item.js +1 -1
  35. package/dist/erpnext/model/Logs.d.ts +20 -0
  36. package/dist/erpnext/model/Logs.js +13 -0
  37. package/dist/erpnext/model/PaymentEntry.d.ts +9 -9
  38. package/dist/erpnext/model/PaymentEntry.js +9 -5
  39. package/dist/erpnext/model/Permissions.d.ts +56 -0
  40. package/dist/erpnext/model/Permissions.js +23 -0
  41. package/dist/erpnext/model/PurchaseInvoice.d.ts +1773 -0
  42. package/dist/erpnext/model/PurchaseInvoice.js +215 -0
  43. package/dist/erpnext/model/PurchaseOrder.d.ts +56 -56
  44. package/dist/erpnext/model/Receipt.d.ts +50 -50
  45. package/dist/erpnext/model/ReceiptDraft.d.ts +38 -38
  46. package/dist/erpnext/model/Report.d.ts +24 -0
  47. package/dist/erpnext/model/Report.js +12 -0
  48. package/dist/erpnext/model/Shipment.d.ts +6 -6
  49. package/dist/erpnext/model/Stock.d.ts +555 -0
  50. package/dist/erpnext/model/Stock.js +101 -0
  51. package/dist/erpnext/model/StockEntry.d.ts +10 -10
  52. package/dist/erpnext/model/StockEntry.js +8 -4
  53. package/dist/erpnext/model/StockReconciliation.d.ts +2 -2
  54. package/dist/erpnext/model/Supplier.d.ts +95 -25
  55. package/dist/erpnext/model/Supplier.js +10 -7
  56. package/dist/erpnext/model/User.d.ts +20 -0
  57. package/dist/erpnext/model/User.js +13 -0
  58. package/dist/erpnext/model/Version.d.ts +17 -0
  59. package/dist/erpnext/model/Version.js +12 -0
  60. package/dist/erpnext/resourceRequest.js +1 -1
  61. package/dist/index.d.ts +4 -0
  62. package/dist/index.js +4 -0
  63. package/package.json +1 -1
@@ -9,7 +9,7 @@ export declare class ERPNextDoctypeResourceRequest<TModel extends ZodObject<any>
9
9
  protected resourceModel: TModel;
10
10
  protected baseRequest: ERPNextResourceRequest;
11
11
  constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
12
- getList<TField extends KeysOf<TModel>, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }: {
12
+ getList<TField extends KeysOf<TModel>, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
13
13
  fields?: TField[] | undefined;
14
14
  filters?: string[][];
15
15
  skip?: number;
@@ -18,8 +18,8 @@ class ERPNextDoctypeResourceRequest {
18
18
  this.resourceModel = resourceModel;
19
19
  this.baseRequest = new resourceRequest_1.ERPNextResourceRequest(this.temporalClient);
20
20
  }
21
- getList(_a) {
22
- return __awaiter(this, arguments, void 0, function* ({ fields, filters, skip, limit, priority = 5, asDict, params, }) {
21
+ getList() {
22
+ return __awaiter(this, arguments, void 0, function* ({ fields, filters, skip, limit, priority = 5, asDict, params, } = {}) {
23
23
  return yield this.baseRequest.getList(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ resourceName: this.resourceName, resourceModel: this.resourceModel, priority }, (fields ? { fields } : {})), (filters ? { filters } : {})), (limit ? { limit } : {})), (skip ? { skip } : {})), (params ? { params } : {})), (asDict ? { asDict } : {})));
24
24
  });
25
25
  }
@@ -1,10 +1,13 @@
1
+ import { z } from "zod";
1
2
  import { TemporalClient } from "../../client";
2
3
  import { ERPNextDoctypeResourceRequest } from "../doctypeResourceRequest";
4
+ import { ERPNextMethodRequest } from "../methodRequest";
3
5
  import { Address, AddressPostBodyType } from "../model/Address";
4
6
  export declare class ERPNextAddress {
5
7
  protected temporalClient: TemporalClient;
6
8
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Address>;
7
- getList: <TField extends ("name" | "address_title" | "address_line1" | "address_type" | "city" | "pincode" | "country" | "email_id" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "parent" | "parentfield" | "parenttype" | "import_reference" | "state" | "phone" | "fax" | "tax_category" | "county"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }: {
9
+ protected methodRequest: ERPNextMethodRequest;
10
+ getList: <TField extends ("name" | "address_title" | "address_line1" | "address_type" | "city" | "country" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "pincode" | "email_id" | "parent" | "parentfield" | "parenttype" | "import_reference" | "state" | "phone" | "fax" | "tax_category" | "county"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
8
11
  fields?: TField[] | undefined;
9
12
  filters?: string[][];
10
13
  skip?: number;
@@ -18,9 +21,7 @@ export declare class ERPNextAddress {
18
21
  address_line1: string;
19
22
  address_type: string;
20
23
  city: string;
21
- pincode: string;
22
24
  country: string;
23
- email_id: string;
24
25
  is_shipping_address: boolean;
25
26
  links: {
26
27
  name: string;
@@ -49,6 +50,8 @@ export declare class ERPNextAddress {
49
50
  is_your_company_address: boolean;
50
51
  disabled: boolean;
51
52
  address_line2?: string | null | undefined;
53
+ pincode?: string | null | undefined;
54
+ email_id?: string | null | undefined;
52
55
  parent?: string | null | undefined;
53
56
  parentfield?: string | null | undefined;
54
57
  parenttype?: string | null | undefined;
@@ -68,9 +71,7 @@ export declare class ERPNextAddress {
68
71
  address_line1: string;
69
72
  address_type: string;
70
73
  city: string;
71
- pincode: string;
72
74
  country: string;
73
- email_id: string;
74
75
  is_shipping_address: boolean;
75
76
  links: {
76
77
  name: string;
@@ -99,6 +100,8 @@ export declare class ERPNextAddress {
99
100
  is_your_company_address: boolean;
100
101
  disabled: boolean;
101
102
  address_line2?: string | null | undefined;
103
+ pincode?: string | null | undefined;
104
+ email_id?: string | null | undefined;
102
105
  parent?: string | null | undefined;
103
106
  parentfield?: string | null | undefined;
104
107
  parenttype?: string | null | undefined;
@@ -115,9 +118,7 @@ export declare class ERPNextAddress {
115
118
  address_line1: string;
116
119
  address_type: string;
117
120
  city: string;
118
- pincode: string;
119
121
  country: string;
120
- email_id: string;
121
122
  is_shipping_address: boolean;
122
123
  links: {
123
124
  name: string;
@@ -146,6 +147,8 @@ export declare class ERPNextAddress {
146
147
  is_your_company_address: boolean;
147
148
  disabled: boolean;
148
149
  address_line2?: string | null | undefined;
150
+ pincode?: string | null | undefined;
151
+ email_id?: string | null | undefined;
149
152
  parent?: string | null | undefined;
150
153
  parentfield?: string | null | undefined;
151
154
  parenttype?: string | null | undefined;
@@ -155,7 +158,7 @@ export declare class ERPNextAddress {
155
158
  fax?: string | null | undefined;
156
159
  tax_category?: string | null | undefined;
157
160
  county?: string | null | undefined;
158
- }> : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
161
+ }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
159
162
  resourceId: string;
160
163
  inputValidationModel?: TInputModel;
161
164
  priority?: number;
@@ -166,9 +169,7 @@ export declare class ERPNextAddress {
166
169
  address_line1: string;
167
170
  address_type: string;
168
171
  city: string;
169
- pincode: string;
170
172
  country: string;
171
- email_id: string;
172
173
  is_shipping_address: boolean;
173
174
  links: {
174
175
  name: string;
@@ -197,6 +198,8 @@ export declare class ERPNextAddress {
197
198
  is_your_company_address: boolean;
198
199
  disabled: boolean;
199
200
  address_line2?: string | null | undefined;
201
+ pincode?: string | null | undefined;
202
+ email_id?: string | null | undefined;
200
203
  parent?: string | null | undefined;
201
204
  parentfield?: string | null | undefined;
202
205
  parenttype?: string | null | undefined;
@@ -210,7 +213,7 @@ export declare class ERPNextAddress {
210
213
  deleteById: ({ resourceId, priority, }: {
211
214
  resourceId: string;
212
215
  priority?: number;
213
- }) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
216
+ }) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
214
217
  constructor(temporalClient: TemporalClient);
215
218
  create(address: Omit<AddressPostBodyType, "links">, customerName: string): Promise<{
216
219
  name: string;
@@ -218,9 +221,7 @@ export declare class ERPNextAddress {
218
221
  address_line1: string;
219
222
  address_type: string;
220
223
  city: string;
221
- pincode: string;
222
224
  country: string;
223
- email_id: string;
224
225
  is_shipping_address: boolean;
225
226
  links: {
226
227
  name: string;
@@ -249,6 +250,8 @@ export declare class ERPNextAddress {
249
250
  is_your_company_address: boolean;
250
251
  disabled: boolean;
251
252
  address_line2?: string | null | undefined;
253
+ pincode?: string | null | undefined;
254
+ email_id?: string | null | undefined;
252
255
  parent?: string | null | undefined;
253
256
  parentfield?: string | null | undefined;
254
257
  parenttype?: string | null | undefined;
@@ -265,9 +268,7 @@ export declare class ERPNextAddress {
265
268
  address_line1: string;
266
269
  address_type: string;
267
270
  city: string;
268
- pincode: string;
269
271
  country: string;
270
- email_id: string;
271
272
  is_shipping_address: boolean;
272
273
  links: {
273
274
  name: string;
@@ -296,6 +297,8 @@ export declare class ERPNextAddress {
296
297
  is_your_company_address: boolean;
297
298
  disabled: boolean;
298
299
  address_line2?: string | null | undefined;
300
+ pincode?: string | null | undefined;
301
+ email_id?: string | null | undefined;
299
302
  parent?: string | null | undefined;
300
303
  parentfield?: string | null | undefined;
301
304
  parenttype?: string | null | undefined;
@@ -306,4 +309,34 @@ export declare class ERPNextAddress {
306
309
  tax_category?: string | null | undefined;
307
310
  county?: string | null | undefined;
308
311
  }, K>[]>;
312
+ getAddressesBySupplier: (supplierName: string) => Promise<{
313
+ name: string;
314
+ address_title: string;
315
+ address_line1: string;
316
+ address_type: string;
317
+ city: string;
318
+ country: string;
319
+ is_shipping_address: boolean;
320
+ owner: string;
321
+ creation: string;
322
+ modified: string;
323
+ modified_by: string;
324
+ idx: number;
325
+ docstatus: number;
326
+ is_primary_address: boolean;
327
+ is_your_company_address: boolean;
328
+ disabled: boolean;
329
+ address_line2?: string | null | undefined;
330
+ pincode?: string | null | undefined;
331
+ email_id?: string | null | undefined;
332
+ parent?: string | null | undefined;
333
+ parentfield?: string | null | undefined;
334
+ parenttype?: string | null | undefined;
335
+ import_reference?: string | null | undefined;
336
+ state?: string | null | undefined;
337
+ phone?: string | null | undefined;
338
+ fax?: string | null | undefined;
339
+ tax_category?: string | null | undefined;
340
+ county?: string | null | undefined;
341
+ }[]>;
309
342
  }
@@ -10,8 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ERPNextAddress = void 0;
13
+ const zod_1 = require("zod");
14
+ const zodUtils_1 = require("../../utils/zodUtils");
13
15
  const doctypeResourceRequest_1 = require("../doctypeResourceRequest");
16
+ const methodRequest_1 = require("../methodRequest");
14
17
  const Address_1 = require("../model/Address");
18
+ const DocInfo_1 = require("../model/DocInfo");
19
+ const DocTypeHelpers_1 = require("../model/DocTypeHelpers");
20
+ const Supplier_1 = require("../model/Supplier");
15
21
  class ERPNextAddress {
16
22
  constructor(temporalClient) {
17
23
  this.getAddressesByEmail = (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, fields = ["name"]) {
@@ -21,8 +27,24 @@ class ERPNextAddress {
21
27
  });
22
28
  return result;
23
29
  });
30
+ this.getAddressesBySupplier = (supplierName) => __awaiter(this, void 0, void 0, function* () {
31
+ const response = yield this.methodRequest.request({
32
+ methodName: `frappe.desk.form.load.getdoc?doctype=Supplier&name=${supplierName}`,
33
+ requestMethod: "GET",
34
+ responseValidationModel: (0, DocInfo_1.GetDocResponse)((0, DocTypeHelpers_1.LoadDocumentWrapper)(Supplier_1.Supplier)),
35
+ isAutoWrapResponseValidationWithMessage: false,
36
+ });
37
+ const validatedAddressList = (0, zodUtils_1.validateData)(response.docs[0].__onload.addr_list, zod_1.z
38
+ .array(Address_1.Address.omit({
39
+ links: true,
40
+ doctype: true,
41
+ }))
42
+ .describe("Linked Address List"));
43
+ return validatedAddressList;
44
+ });
24
45
  this.temporalClient = temporalClient;
25
46
  this.baseRequest = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(temporalClient, "Address", Address_1.Address);
47
+ this.methodRequest = new methodRequest_1.ERPNextMethodRequest(temporalClient);
26
48
  this.getList = this.baseRequest.getList;
27
49
  this.getById = this.baseRequest.getById;
28
50
  this.updateById = this.baseRequest.updateById;
@@ -4,7 +4,7 @@ import { Contact, ContactPostBodyType } from "../model/Contact";
4
4
  export declare class ERPNextContact {
5
5
  protected temporalClient: TemporalClient;
6
6
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Contact>;
7
- getList: <TField extends ("name" | "email_id" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "first_name" | "email_ids" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "links" | "phone" | "last_name" | "middle_name" | "company" | "mobile_no" | "image" | "phone_nos"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }: {
7
+ getList: <TField extends ("name" | "email_id" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "first_name" | "email_ids" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "links" | "phone" | "image" | "company" | "last_name" | "middle_name" | "mobile_no" | "phone_nos"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
8
8
  fields?: TField[] | undefined;
9
9
  filters?: string[][];
10
10
  skip?: number;
@@ -61,11 +61,11 @@ export declare class ERPNextContact {
61
61
  doctype: string;
62
62
  }[] | null | undefined;
63
63
  phone?: string | null | undefined;
64
+ image?: string | null | undefined;
65
+ company?: string | null | undefined;
64
66
  last_name?: string | null | undefined;
65
67
  middle_name?: string | null | undefined;
66
- company?: string | null | undefined;
67
68
  mobile_no?: string | null | undefined;
68
- image?: string | null | undefined;
69
69
  phone_nos?: {
70
70
  name: string;
71
71
  owner: string;
@@ -135,11 +135,11 @@ export declare class ERPNextContact {
135
135
  doctype: string;
136
136
  }[] | null | undefined;
137
137
  phone?: string | null | undefined;
138
+ image?: string | null | undefined;
139
+ company?: string | null | undefined;
138
140
  last_name?: string | null | undefined;
139
141
  middle_name?: string | null | undefined;
140
- company?: string | null | undefined;
141
142
  mobile_no?: string | null | undefined;
142
- image?: string | null | undefined;
143
143
  phone_nos?: {
144
144
  name: string;
145
145
  owner: string;
@@ -206,11 +206,11 @@ export declare class ERPNextContact {
206
206
  doctype: string;
207
207
  }[] | null | undefined;
208
208
  phone?: string | null | undefined;
209
+ image?: string | null | undefined;
210
+ company?: string | null | undefined;
209
211
  last_name?: string | null | undefined;
210
212
  middle_name?: string | null | undefined;
211
- company?: string | null | undefined;
212
213
  mobile_no?: string | null | undefined;
213
- image?: string | null | undefined;
214
214
  phone_nos?: {
215
215
  name: string;
216
216
  owner: string;
@@ -281,11 +281,11 @@ export declare class ERPNextContact {
281
281
  doctype: string;
282
282
  }[] | null | undefined;
283
283
  phone?: string | null | undefined;
284
+ image?: string | null | undefined;
285
+ company?: string | null | undefined;
284
286
  last_name?: string | null | undefined;
285
287
  middle_name?: string | null | undefined;
286
- company?: string | null | undefined;
287
288
  mobile_no?: string | null | undefined;
288
- image?: string | null | undefined;
289
289
  phone_nos?: {
290
290
  name: string;
291
291
  owner: string;
@@ -357,11 +357,11 @@ export declare class ERPNextContact {
357
357
  doctype: string;
358
358
  }[] | null | undefined;
359
359
  phone?: string | null | undefined;
360
+ image?: string | null | undefined;
361
+ company?: string | null | undefined;
360
362
  last_name?: string | null | undefined;
361
363
  middle_name?: string | null | undefined;
362
- company?: string | null | undefined;
363
364
  mobile_no?: string | null | undefined;
364
- image?: string | null | undefined;
365
365
  phone_nos?: {
366
366
  name: string;
367
367
  owner: string;
@@ -428,11 +428,11 @@ export declare class ERPNextContact {
428
428
  doctype: string;
429
429
  }[] | null | undefined;
430
430
  phone?: string | null | undefined;
431
+ image?: string | null | undefined;
432
+ company?: string | null | undefined;
431
433
  last_name?: string | null | undefined;
432
434
  middle_name?: string | null | undefined;
433
- company?: string | null | undefined;
434
435
  mobile_no?: string | null | undefined;
435
- image?: string | null | undefined;
436
436
  phone_nos?: {
437
437
  name: string;
438
438
  owner: string;
@@ -18,6 +18,8 @@ export declare class ERPNextDeliveryNote {
18
18
  doctype: string;
19
19
  tax_category: string;
20
20
  company: string;
21
+ naming_series: string;
22
+ language: string;
21
23
  customer: string;
22
24
  items: {
23
25
  description: string;
@@ -97,7 +99,6 @@ export declare class ERPNextDeliveryNote {
97
99
  discount_amount: number;
98
100
  pricing_rules: string[];
99
101
  title: string;
100
- naming_series: string;
101
102
  customer_name: string;
102
103
  posting_date: string;
103
104
  posting_time: string;
@@ -135,7 +136,6 @@ export declare class ERPNextDeliveryNote {
135
136
  per_billed: number;
136
137
  customer_group: string;
137
138
  territory: string;
138
- language: string;
139
139
  print_without_amount: number;
140
140
  group_same_items: number;
141
141
  per_installed: number;
@@ -211,6 +211,8 @@ export declare class ERPNextDeliveryNote {
211
211
  doctype: string;
212
212
  tax_category: string;
213
213
  company: string;
214
+ naming_series: string;
215
+ language: string;
214
216
  customer: string;
215
217
  items: {
216
218
  description: string;
@@ -290,7 +292,6 @@ export declare class ERPNextDeliveryNote {
290
292
  discount_amount: number;
291
293
  pricing_rules: string[];
292
294
  title: string;
293
- naming_series: string;
294
295
  customer_name: string;
295
296
  posting_date: string;
296
297
  posting_time: string;
@@ -328,7 +329,6 @@ export declare class ERPNextDeliveryNote {
328
329
  per_billed: number;
329
330
  customer_group: string;
330
331
  territory: string;
331
- language: string;
332
332
  print_without_amount: number;
333
333
  group_same_items: number;
334
334
  per_installed: number;
@@ -389,7 +389,7 @@ export declare class ERPNextDeliveryNote {
389
389
  sales_partner?: string | null | undefined;
390
390
  dispatch_run?: string | null | undefined;
391
391
  }>;
392
- getList: <TField extends ("status" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "tax_category" | "company" | "customer" | "items" | "discount_amount" | "pricing_rules" | "title" | "naming_series" | "customer_name" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "issue_credit_note" | "po_no" | "currency" | "conversion_rate" | "selling_price_list" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "is_internal_customer" | "per_billed" | "customer_group" | "territory" | "language" | "print_without_amount" | "group_same_items" | "per_installed" | "installation_status" | "per_returned" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team") | ("parent" | "parentfield" | "parenttype" | "cost_center" | "project" | "amended_from" | "return_against" | "po_date" | "pick_list" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "tc_name" | "terms" | "transporter" | "driver" | "lr_no" | "vehicle_no" | "transporter_name" | "driver_name" | "lr_date" | "campaign" | "source" | "represents_company" | "inter_company_reference" | "letter_head" | "select_print_heading" | "excise_page" | "instructions" | "auto_repeat" | "sales_partner" | "dispatch_run"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }: {
392
+ getList: <TField extends ("status" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "tax_category" | "company" | "naming_series" | "language" | "customer" | "items" | "discount_amount" | "pricing_rules" | "title" | "customer_name" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "issue_credit_note" | "po_no" | "currency" | "conversion_rate" | "selling_price_list" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "is_internal_customer" | "per_billed" | "customer_group" | "territory" | "print_without_amount" | "group_same_items" | "per_installed" | "installation_status" | "per_returned" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team") | ("parent" | "parentfield" | "parenttype" | "cost_center" | "project" | "amended_from" | "return_against" | "po_date" | "pick_list" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "shipping_rule" | "taxes_and_charges" | "other_charges_calculation" | "tc_name" | "terms" | "transporter" | "driver" | "lr_no" | "vehicle_no" | "transporter_name" | "driver_name" | "lr_date" | "campaign" | "source" | "represents_company" | "inter_company_reference" | "letter_head" | "select_print_heading" | "excise_page" | "instructions" | "auto_repeat" | "sales_partner" | "dispatch_run"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
393
393
  fields?: TField[] | undefined;
394
394
  filters?: string[][];
395
395
  skip?: number;
@@ -409,6 +409,8 @@ export declare class ERPNextDeliveryNote {
409
409
  doctype: string;
410
410
  tax_category: string;
411
411
  company: string;
412
+ naming_series: string;
413
+ language: string;
412
414
  customer: string;
413
415
  items: {
414
416
  description: string;
@@ -488,7 +490,6 @@ export declare class ERPNextDeliveryNote {
488
490
  discount_amount: number;
489
491
  pricing_rules: string[];
490
492
  title: string;
491
- naming_series: string;
492
493
  customer_name: string;
493
494
  posting_date: string;
494
495
  posting_time: string;
@@ -526,7 +527,6 @@ export declare class ERPNextDeliveryNote {
526
527
  per_billed: number;
527
528
  customer_group: string;
528
529
  territory: string;
529
- language: string;
530
530
  print_without_amount: number;
531
531
  group_same_items: number;
532
532
  per_installed: number;
@@ -602,6 +602,8 @@ export declare class ERPNextDeliveryNote {
602
602
  doctype: string;
603
603
  tax_category: string;
604
604
  company: string;
605
+ naming_series: string;
606
+ language: string;
605
607
  customer: string;
606
608
  items: {
607
609
  description: string;
@@ -681,7 +683,6 @@ export declare class ERPNextDeliveryNote {
681
683
  discount_amount: number;
682
684
  pricing_rules: string[];
683
685
  title: string;
684
- naming_series: string;
685
686
  customer_name: string;
686
687
  posting_date: string;
687
688
  posting_time: string;
@@ -719,7 +720,6 @@ export declare class ERPNextDeliveryNote {
719
720
  per_billed: number;
720
721
  customer_group: string;
721
722
  territory: string;
722
- language: string;
723
723
  print_without_amount: number;
724
724
  group_same_items: number;
725
725
  per_installed: number;
@@ -792,6 +792,8 @@ export declare class ERPNextDeliveryNote {
792
792
  doctype: string;
793
793
  tax_category: string;
794
794
  company: string;
795
+ naming_series: string;
796
+ language: string;
795
797
  customer: string;
796
798
  items: {
797
799
  description: string;
@@ -871,7 +873,6 @@ export declare class ERPNextDeliveryNote {
871
873
  discount_amount: number;
872
874
  pricing_rules: string[];
873
875
  title: string;
874
- naming_series: string;
875
876
  customer_name: string;
876
877
  posting_date: string;
877
878
  posting_time: string;
@@ -909,7 +910,6 @@ export declare class ERPNextDeliveryNote {
909
910
  per_billed: number;
910
911
  customer_group: string;
911
912
  territory: string;
912
- language: string;
913
913
  print_without_amount: number;
914
914
  group_same_items: number;
915
915
  per_installed: number;
@@ -986,6 +986,8 @@ export declare class ERPNextDeliveryNote {
986
986
  doctype: string;
987
987
  tax_category: string;
988
988
  company: string;
989
+ naming_series: string;
990
+ language: string;
989
991
  customer: string;
990
992
  items: {
991
993
  description: string;
@@ -1065,7 +1067,6 @@ export declare class ERPNextDeliveryNote {
1065
1067
  discount_amount: number;
1066
1068
  pricing_rules: string[];
1067
1069
  title: string;
1068
- naming_series: string;
1069
1070
  customer_name: string;
1070
1071
  posting_date: string;
1071
1072
  posting_time: string;
@@ -1103,7 +1104,6 @@ export declare class ERPNextDeliveryNote {
1103
1104
  per_billed: number;
1104
1105
  customer_group: string;
1105
1106
  territory: string;
1106
- language: string;
1107
1107
  print_without_amount: number;
1108
1108
  group_same_items: number;
1109
1109
  per_installed: number;
@@ -1182,6 +1182,8 @@ export declare class ERPNextDeliveryNote {
1182
1182
  doctype: string;
1183
1183
  tax_category: string;
1184
1184
  company: string;
1185
+ naming_series: string;
1186
+ language: string;
1185
1187
  customer: string;
1186
1188
  items: {
1187
1189
  description: string;
@@ -1261,7 +1263,6 @@ export declare class ERPNextDeliveryNote {
1261
1263
  discount_amount: number;
1262
1264
  pricing_rules: string[];
1263
1265
  title: string;
1264
- naming_series: string;
1265
1266
  customer_name: string;
1266
1267
  posting_date: string;
1267
1268
  posting_time: string;
@@ -1299,7 +1300,6 @@ export declare class ERPNextDeliveryNote {
1299
1300
  per_billed: number;
1300
1301
  customer_group: string;
1301
1302
  territory: string;
1302
- language: string;
1303
1303
  print_without_amount: number;
1304
1304
  group_same_items: number;
1305
1305
  per_installed: number;
@@ -27,7 +27,7 @@ class ERPNextDeliveryNote {
27
27
  });
28
28
  this.fileRequests = fileRequests;
29
29
  this.temporalClient = temporalClient;
30
- this.baseRequest = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(temporalClient, "DeliveryNote", DeliveryNote_1.DeliveryNote);
30
+ this.baseRequest = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(temporalClient, "Delivery Note", DeliveryNote_1.DeliveryNote);
31
31
  this.create = this.baseRequest.create;
32
32
  this.getList = this.baseRequest.getList;
33
33
  this.getById = this.baseRequest.getById;