erpnext-queue-client 2.0.0-beta.1 → 2.1.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.
@@ -24,14 +24,56 @@ export declare const Supplier: z.ZodObject<{
24
24
  is_frozen: z.ZodNumber;
25
25
  companies: z.ZodArray<z.ZodString, "many">;
26
26
  accounts: z.ZodArray<z.ZodObject<{
27
+ account_name: z.ZodString;
28
+ account_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
+ is_group: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
30
+ __optionalForInput: true;
31
+ };
27
32
  company: z.ZodString;
28
- account: z.ZodString;
33
+ root_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Asset", "Liability", "Income", "Expense", "Equity"]>>>;
34
+ report_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Balance Sheet", "Profit and Loss"]>>>;
35
+ account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ parent_account: z.ZodString;
37
+ account_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Accumulated Depreciation", "Asset Received But Not Billed", "Bank", "Cash", "Chargeable", "Capital Work in Progress", "Cost of Goods Sold", "Current Asset", "Current Liability", "Depreciation", "Direct Expense", "Direct Income", "Equity", "Expense Account", "Expenses Included In Asset Valuation", "Expenses Included In Valuation", "Fixed Asset", "Income Account", "Indirect Expense", "Indirect Income", "Liability", "Payable", "Receivable", "Round Off", "Stock", "Stock Adjustment", "Stock Received But Not Billed", "Service Received But Not Billed", "Tax", "Temporary"]>>>;
38
+ tax_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
39
+ freeze_account: z.ZodNullable<z.ZodOptional<z.ZodEnum<["No", "Yes"]>>>;
40
+ balance_must_be: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Debit", "Credit"]>>>;
41
+ include_in_gross: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
42
+ __optionalForInput: true;
43
+ };
44
+ disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
45
+ __optionalForInput: true;
46
+ };
29
47
  }, "strip", z.ZodTypeAny, {
48
+ is_group: 0 | 1;
49
+ disabled: 0 | 1;
50
+ account_name: string;
30
51
  company: string;
31
- account: string;
52
+ parent_account: string;
53
+ include_in_gross: 0 | 1;
54
+ account_number?: string | null | undefined;
55
+ root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
56
+ report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
57
+ account_currency?: string | null | undefined;
58
+ account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
59
+ tax_rate?: number | null | undefined;
60
+ freeze_account?: "No" | "Yes" | null | undefined;
61
+ balance_must_be?: "Debit" | "Credit" | null | undefined;
32
62
  }, {
63
+ account_name: string;
33
64
  company: string;
34
- account: string;
65
+ parent_account: string;
66
+ is_group?: unknown;
67
+ disabled?: unknown;
68
+ account_number?: string | null | undefined;
69
+ root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
70
+ report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
71
+ account_currency?: string | null | undefined;
72
+ account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
73
+ tax_rate?: number | null | undefined;
74
+ freeze_account?: "No" | "Yes" | null | undefined;
75
+ balance_must_be?: "Debit" | "Credit" | null | undefined;
76
+ include_in_gross?: unknown;
35
77
  }>, "many">;
36
78
  supplier_number_code: z.ZodOptional<z.ZodString>;
37
79
  }, "strip", z.ZodTypeAny, {
@@ -54,8 +96,20 @@ export declare const Supplier: z.ZodObject<{
54
96
  is_frozen: number;
55
97
  companies: string[];
56
98
  accounts: {
99
+ is_group: 0 | 1;
100
+ disabled: 0 | 1;
101
+ account_name: string;
57
102
  company: string;
58
- account: string;
103
+ parent_account: string;
104
+ include_in_gross: 0 | 1;
105
+ account_number?: string | null | undefined;
106
+ root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
107
+ report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
108
+ account_currency?: string | null | undefined;
109
+ account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
110
+ tax_rate?: number | null | undefined;
111
+ freeze_account?: "No" | "Yes" | null | undefined;
112
+ balance_must_be?: "Debit" | "Credit" | null | undefined;
59
113
  }[];
60
114
  import_reference?: string | null | undefined;
61
115
  supplier_contact?: string | null | undefined;
@@ -83,8 +137,20 @@ export declare const Supplier: z.ZodObject<{
83
137
  is_frozen: number;
84
138
  companies: string[];
85
139
  accounts: {
140
+ account_name: string;
86
141
  company: string;
87
- account: string;
142
+ parent_account: string;
143
+ is_group?: unknown;
144
+ disabled?: unknown;
145
+ account_number?: string | null | undefined;
146
+ root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
147
+ report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
148
+ account_currency?: string | null | undefined;
149
+ account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
150
+ tax_rate?: number | null | undefined;
151
+ freeze_account?: "No" | "Yes" | null | undefined;
152
+ balance_must_be?: "Debit" | "Credit" | null | undefined;
153
+ include_in_gross?: unknown;
88
154
  }[];
89
155
  import_reference?: string | null | undefined;
90
156
  supplier_contact?: string | null | undefined;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import { ERPNextTags } from "./erpnext/doctypes/tags";
16
16
  import { ERPNextDoctypeSubmittableResourceRequest } from "./erpnext/doctypeSubmittableResourceRequest";
17
17
  import { ERPNextFileRequests } from "./erpnext/fileRequests";
18
18
  import { ERPNextMethodRequest } from "./erpnext/methodRequest";
19
+ import { Account } from "./erpnext/model/Account";
19
20
  import { Compliance } from "./erpnext/model/Compliance";
20
21
  import { ConsolidatedCustomsInvoice } from "./erpnext/model/ConsolidatedCustomsInvoice";
21
22
  import { Country } from "./erpnext/model/Country";
@@ -44,6 +45,7 @@ export declare class ERPNextQueueClient {
44
45
  private credentials?;
45
46
  resourceRequest: ERPNextResourceRequest;
46
47
  methodRequest: ERPNextMethodRequest;
48
+ account: ERPNextDoctypeResourceRequest<typeof Account>;
47
49
  country: ERPNextDoctypeResourceRequest<typeof Country>;
48
50
  address: ERPNextAddress;
49
51
  contact: ERPNextContact;
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ const tags_1 = require("./erpnext/doctypes/tags");
20
20
  const doctypeSubmittableResourceRequest_1 = require("./erpnext/doctypeSubmittableResourceRequest");
21
21
  const fileRequests_1 = require("./erpnext/fileRequests");
22
22
  const methodRequest_1 = require("./erpnext/methodRequest");
23
+ const Account_1 = require("./erpnext/model/Account");
23
24
  const Compliance_1 = require("./erpnext/model/Compliance");
24
25
  const ConsolidatedCustomsInvoice_1 = require("./erpnext/model/ConsolidatedCustomsInvoice");
25
26
  const Country_1 = require("./erpnext/model/Country");
@@ -55,6 +56,7 @@ class ERPNextQueueClient {
55
56
  this.temporalClient = new client_1.TemporalClient(options.temporalCredentials);
56
57
  this.resourceRequest = new resourceRequest_1.ERPNextResourceRequest(this.temporalClient);
57
58
  this.methodRequest = new methodRequest_1.ERPNextMethodRequest(this.temporalClient);
59
+ this.account = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Account", Account_1.Account);
58
60
  this.country = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Country", Country_1.Country);
59
61
  this.address = new address_1.ERPNextAddress(this.temporalClient);
60
62
  this.contact = new contact_1.ERPNextContact(this.temporalClient);
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.0.0-beta.1",
33
+ "version": "2.1.0",
34
34
  "devDependencies": {
35
35
  "@types/crypto-js": "^4.2.2",
36
36
  "@types/lodash": "^4.17.13",