erpnext-queue-client 2.3.6 → 2.4.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 (51) hide show
  1. package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
  2. package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -159
  3. package/dist/erpnext/doctypeSubmittableResourceRequest.js +2 -2
  4. package/dist/erpnext/doctypes/address.d.ts +75 -3
  5. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +64 -54
  6. package/dist/erpnext/doctypes/contact.d.ts +219 -3
  7. package/dist/erpnext/doctypes/deliveryNote.d.ts +205 -200
  8. package/dist/erpnext/doctypes/item.d.ts +17 -2
  9. package/dist/erpnext/doctypes/paymentEntry.d.ts +112 -4
  10. package/dist/erpnext/doctypes/productBundle.d.ts +4 -2
  11. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +140 -4
  12. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +10 -4
  13. package/dist/erpnext/doctypes/salesInvoice.d.ts +398 -4
  14. package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
  15. package/dist/erpnext/doctypes/shipment.d.ts +98 -91
  16. package/dist/erpnext/doctypes/shipment.js +2 -1
  17. package/dist/erpnext/erpnextRequestWrapper.d.ts +4 -2
  18. package/dist/erpnext/erpnextRequestWrapper.js +1 -1
  19. package/dist/erpnext/fileRequests.d.ts +2 -2
  20. package/dist/erpnext/fileRequests.js +2 -1
  21. package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +61 -23
  22. package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +20 -11
  23. package/dist/erpnext/model/Contact.d.ts +29 -0
  24. package/dist/erpnext/model/Contact.js +5 -5
  25. package/dist/erpnext/model/DeliveryNote.d.ts +300 -100
  26. package/dist/erpnext/model/DeliveryNote.js +101 -100
  27. package/dist/erpnext/model/DispatchRun.d.ts +3 -0
  28. package/dist/erpnext/model/DispatchRun.js +1 -0
  29. package/dist/erpnext/model/DocTypeHelpers.d.ts +12 -7
  30. package/dist/erpnext/model/DocTypeHelpers.js +43 -19
  31. package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +3 -0
  32. package/dist/erpnext/model/ERPNextDocTypeMeta.js +3 -2
  33. package/dist/erpnext/model/File.d.ts +50 -0
  34. package/dist/erpnext/model/File.js +3 -1
  35. package/dist/erpnext/model/FulfillerSettings.d.ts +52 -24
  36. package/dist/erpnext/model/FulfillerSettings.js +19 -7
  37. package/dist/erpnext/model/Item.d.ts +43 -0
  38. package/dist/erpnext/model/Item.js +2 -1
  39. package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
  40. package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
  41. package/dist/erpnext/model/PurchaseOrder.js +20 -38
  42. package/dist/erpnext/model/SalesInvoice.d.ts +196 -3
  43. package/dist/erpnext/model/Servicecase.d.ts +8 -0
  44. package/dist/erpnext/model/Shipment.d.ts +119 -162
  45. package/dist/erpnext/model/Shipment.js +17 -47
  46. package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
  47. package/dist/erpnext/model/ShippingProvider.js +6 -10
  48. package/dist/erpnext/resourceRequest.d.ts +1 -1
  49. package/dist/utils/zodContextOptionals.js +7 -3
  50. package/dist/utils/zodUtils.js +3 -2
  51. package/package.json +1 -1
@@ -10,7 +10,7 @@ export declare class ERPNextDoctypeResourceRequest<TModel extends AnyZodObject>
10
10
  protected resourceModel: TModel;
11
11
  protected baseRequest: ERPNextResourceRequest;
12
12
  constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
13
- getList<TFieldOptions extends KeysOfModel<TModel>, TSelectedFields extends TFieldOptions[] | readonly ["*"] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
13
+ getList<TFieldOptions extends KeysOfModel<TModel>, TSelectedFields extends readonly TFieldOptions[] | readonly ["*"] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
14
14
  fields?: TSelectedFields;
15
15
  filters?: (string | string[])[][];
16
16
  skip?: number;
@@ -1,169 +1,16 @@
1
1
  import z, { AnyZodObject, ZodObject } from "zod";
2
- import { ERPNextDoctypeResourceRequest } from "./doctypeResourceRequest";
3
2
  import { TemporalClient } from "../client";
3
+ import { ERPNextDoctypeResourceRequest } from "./doctypeResourceRequest";
4
+ import { DocModelType } from "./model/DocTypeHelpers";
4
5
  import { SubmittableMeta } from "./model/ERPNextDocTypeMeta";
5
6
  type MergedSubmittableModel<TModel extends AnyZodObject> = ZodObject<TModel["shape"] & typeof SubmittableMeta.shape>;
6
7
  export declare class ERPNextDoctypeSubmittableResourceRequest<TModel extends AnyZodObject> extends ERPNextDoctypeResourceRequest<MergedSubmittableModel<TModel>> {
7
8
  constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
8
- cancel({ resourceId }: {
9
+ cancel({ resourceId, }: {
9
10
  resourceId: string;
10
- }): Promise<z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ [K in keyof (TModel["shape"] & {
11
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
- docstatus: z.ZodDefault<z.ZodNumber> & {
13
- __optionalForInput: true;
14
- };
15
- })]: (TModel["shape"] & {
16
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
- docstatus: z.ZodDefault<z.ZodNumber> & {
18
- __optionalForInput: true;
19
- };
20
- })[K] extends z.ZodArray<infer Element extends z.ZodTypeAny, "many"> ? Element extends z.ZodObject<infer ElementShape extends z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<infer ElementShape extends z.ZodRawShape>, any> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never, z.baseObjectInputType<infer ElementShape extends z.ZodRawShape> extends infer T_2 ? { [k_2 in keyof T_2]: T_2[k_2]; } : never> ? z.ZodArray<z.ZodObject<ElementShape & {
21
- name: z.ZodString;
22
- owner: z.ZodString;
23
- creation: z.ZodString;
24
- modified: z.ZodString;
25
- modified_by: z.ZodString;
26
- idx: z.ZodNumber;
27
- docstatus: z.ZodDefault<z.ZodNumber> & {
28
- __optionalForInput: true;
29
- };
30
- doctype: z.ZodString;
31
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- } & {
33
- parenttype: z.ZodString;
34
- parentfield: z.ZodString;
35
- }, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<ElementShape & {
36
- name: z.ZodString;
37
- owner: z.ZodString;
38
- creation: z.ZodString;
39
- modified: z.ZodString;
40
- modified_by: z.ZodString;
41
- idx: z.ZodNumber;
42
- docstatus: z.ZodDefault<z.ZodNumber> & {
43
- __optionalForInput: true;
44
- };
45
- doctype: z.ZodString;
46
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
- } & {
48
- parenttype: z.ZodString;
49
- parentfield: z.ZodString;
50
- }>, any> extends infer T_3 ? { [k_3 in keyof T_3]: T_3[k_3]; } : never, z.baseObjectInputType<ElementShape & {
51
- name: z.ZodString;
52
- owner: z.ZodString;
53
- creation: z.ZodString;
54
- modified: z.ZodString;
55
- modified_by: z.ZodString;
56
- idx: z.ZodNumber;
57
- docstatus: z.ZodDefault<z.ZodNumber> & {
58
- __optionalForInput: true;
59
- };
60
- doctype: z.ZodString;
61
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
- } & {
63
- parenttype: z.ZodString;
64
- parentfield: z.ZodString;
65
- }> extends infer T_4 ? { [k_4 in keyof T_4]: T_4[k_4]; } : never>, "many"> : (TModel["shape"] & {
66
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
- docstatus: z.ZodDefault<z.ZodNumber> & {
68
- __optionalForInput: true;
69
- };
70
- })[K] : (TModel["shape"] & {
71
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
- docstatus: z.ZodDefault<z.ZodNumber> & {
73
- __optionalForInput: true;
74
- };
75
- })[K]; } & {
76
- name: z.ZodString;
77
- owner: z.ZodString;
78
- creation: z.ZodString;
79
- modified: z.ZodString;
80
- modified_by: z.ZodString;
81
- idx: z.ZodNumber;
82
- docstatus: z.ZodDefault<z.ZodNumber> & {
83
- __optionalForInput: true;
84
- };
85
- doctype: z.ZodString;
86
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never>;
88
- submit({ resourceId }: {
11
+ }): Promise<z.infer<DocModelType<MergedSubmittableModel<TModel>>>>;
12
+ submit({ resourceId, }: {
89
13
  resourceId: string;
90
- }): Promise<z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ [K in keyof (TModel["shape"] & {
91
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
92
- docstatus: z.ZodDefault<z.ZodNumber> & {
93
- __optionalForInput: true;
94
- };
95
- })]: (TModel["shape"] & {
96
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
97
- docstatus: z.ZodDefault<z.ZodNumber> & {
98
- __optionalForInput: true;
99
- };
100
- })[K] extends z.ZodArray<infer Element extends z.ZodTypeAny, "many"> ? Element extends z.ZodObject<infer ElementShape extends z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<infer ElementShape extends z.ZodRawShape>, any> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never, z.baseObjectInputType<infer ElementShape extends z.ZodRawShape> extends infer T_2 ? { [k_2 in keyof T_2]: T_2[k_2]; } : never> ? z.ZodArray<z.ZodObject<ElementShape & {
101
- name: z.ZodString;
102
- owner: z.ZodString;
103
- creation: z.ZodString;
104
- modified: z.ZodString;
105
- modified_by: z.ZodString;
106
- idx: z.ZodNumber;
107
- docstatus: z.ZodDefault<z.ZodNumber> & {
108
- __optionalForInput: true;
109
- };
110
- doctype: z.ZodString;
111
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- } & {
113
- parenttype: z.ZodString;
114
- parentfield: z.ZodString;
115
- }, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<ElementShape & {
116
- name: z.ZodString;
117
- owner: z.ZodString;
118
- creation: z.ZodString;
119
- modified: z.ZodString;
120
- modified_by: z.ZodString;
121
- idx: z.ZodNumber;
122
- docstatus: z.ZodDefault<z.ZodNumber> & {
123
- __optionalForInput: true;
124
- };
125
- doctype: z.ZodString;
126
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
127
- } & {
128
- parenttype: z.ZodString;
129
- parentfield: z.ZodString;
130
- }>, any> extends infer T_3 ? { [k_3 in keyof T_3]: T_3[k_3]; } : never, z.baseObjectInputType<ElementShape & {
131
- name: z.ZodString;
132
- owner: z.ZodString;
133
- creation: z.ZodString;
134
- modified: z.ZodString;
135
- modified_by: z.ZodString;
136
- idx: z.ZodNumber;
137
- docstatus: z.ZodDefault<z.ZodNumber> & {
138
- __optionalForInput: true;
139
- };
140
- doctype: z.ZodString;
141
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
142
- } & {
143
- parenttype: z.ZodString;
144
- parentfield: z.ZodString;
145
- }> extends infer T_4 ? { [k_4 in keyof T_4]: T_4[k_4]; } : never>, "many"> : (TModel["shape"] & {
146
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
147
- docstatus: z.ZodDefault<z.ZodNumber> & {
148
- __optionalForInput: true;
149
- };
150
- })[K] : (TModel["shape"] & {
151
- amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
- docstatus: z.ZodDefault<z.ZodNumber> & {
153
- __optionalForInput: true;
154
- };
155
- })[K]; } & {
156
- name: z.ZodString;
157
- owner: z.ZodString;
158
- creation: z.ZodString;
159
- modified: z.ZodString;
160
- modified_by: z.ZodString;
161
- idx: z.ZodNumber;
162
- docstatus: z.ZodDefault<z.ZodNumber> & {
163
- __optionalForInput: true;
164
- };
165
- doctype: z.ZodString;
166
- _user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
167
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never>;
14
+ }): Promise<z.infer<DocModelType<MergedSubmittableModel<TModel>>>>;
168
15
  }
169
16
  export {};
@@ -25,7 +25,7 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
25
25
  super(temporalClient, resourceName, mergedModel);
26
26
  }
27
27
  cancel(_a) {
28
- return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
28
+ return __awaiter(this, arguments, void 0, function* ({ resourceId, }) {
29
29
  return this.updateById({
30
30
  resourceId,
31
31
  inputValidationModel: zod_1.default
@@ -38,7 +38,7 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
38
38
  });
39
39
  }
40
40
  submit(_a) {
41
- return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
41
+ return __awaiter(this, arguments, void 0, function* ({ resourceId, }) {
42
42
  return this.updateById({
43
43
  resourceId,
44
44
  inputValidationModel: zod_1.default
@@ -7,7 +7,7 @@ export declare class ERPNextAddress {
7
7
  protected temporalClient: TemporalClient;
8
8
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Address>;
9
9
  protected methodRequest: ERPNextMethodRequest;
10
- getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
10
+ getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links"), TSelectedFields extends readonly ["*"] | 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;
@@ -45,11 +45,23 @@ export declare class ERPNextAddress {
45
45
  county?: string | null | undefined;
46
46
  email_id?: string | null | undefined;
47
47
  links?: {
48
+ docstatus: number;
49
+ name: string;
50
+ owner: string;
51
+ creation: string;
52
+ modified: string;
53
+ modified_by: string;
54
+ idx: number;
55
+ doctype: string;
56
+ parent: string;
57
+ parenttype: string;
58
+ parentfield: string;
48
59
  link_doctype: string;
49
60
  link_name: string;
61
+ _user_tags?: string | null | undefined;
50
62
  link_title?: string | null | undefined;
51
63
  }[] | undefined;
52
- }[] : 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links") ? {
64
+ }[] : TSelectedFields extends readonly 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links") ? {
53
65
  docstatus: number;
54
66
  name: string;
55
67
  owner: string;
@@ -77,8 +89,20 @@ export declare class ERPNextAddress {
77
89
  county?: string | null | undefined;
78
90
  email_id?: string | null | undefined;
79
91
  links?: {
92
+ docstatus: number;
93
+ name: string;
94
+ owner: string;
95
+ creation: string;
96
+ modified: string;
97
+ modified_by: string;
98
+ idx: number;
99
+ doctype: string;
100
+ parent: string;
101
+ parenttype: string;
102
+ parentfield: string;
80
103
  link_doctype: string;
81
104
  link_name: string;
105
+ _user_tags?: string | null | undefined;
82
106
  link_title?: string | null | undefined;
83
107
  }[] | undefined;
84
108
  }[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
@@ -114,8 +138,20 @@ export declare class ERPNextAddress {
114
138
  county?: string | null | undefined;
115
139
  email_id?: string | null | undefined;
116
140
  links?: {
141
+ docstatus: number;
142
+ name: string;
143
+ owner: string;
144
+ creation: string;
145
+ modified: string;
146
+ modified_by: string;
147
+ idx: number;
148
+ doctype: string;
149
+ parent: string;
150
+ parenttype: string;
151
+ parentfield: string;
117
152
  link_doctype: string;
118
153
  link_name: string;
154
+ _user_tags?: string | null | undefined;
119
155
  link_title?: string | null | undefined;
120
156
  }[] | undefined;
121
157
  } | undefined>;
@@ -178,8 +214,20 @@ export declare class ERPNextAddress {
178
214
  county?: string | null | undefined;
179
215
  email_id?: string | null | undefined;
180
216
  links?: {
217
+ docstatus: number;
218
+ name: string;
219
+ owner: string;
220
+ creation: string;
221
+ modified: string;
222
+ modified_by: string;
223
+ idx: number;
224
+ doctype: string;
225
+ parent: string;
226
+ parenttype: string;
227
+ parentfield: string;
181
228
  link_doctype: string;
182
229
  link_name: string;
230
+ _user_tags?: string | null | undefined;
183
231
  link_title?: string | null | undefined;
184
232
  }[] | undefined;
185
233
  }>;
@@ -217,12 +265,24 @@ export declare class ERPNextAddress {
217
265
  county?: string | null | undefined;
218
266
  email_id?: string | null | undefined;
219
267
  links?: {
268
+ docstatus: number;
269
+ name: string;
270
+ owner: string;
271
+ creation: string;
272
+ modified: string;
273
+ modified_by: string;
274
+ idx: number;
275
+ doctype: string;
276
+ parent: string;
277
+ parenttype: string;
278
+ parentfield: string;
220
279
  link_doctype: string;
221
280
  link_name: string;
281
+ _user_tags?: string | null | undefined;
222
282
  link_title?: string | null | undefined;
223
283
  }[] | undefined;
224
284
  }>;
225
- getAddressesByEmail: <K extends keyof (typeof Address)["_type"]>(email: string, fields?: K[]) => Promise<(K[] extends infer T_1 ? T_1 extends K[] ? T_1 extends (("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links"))[] ? { [K_2 in T_1[number] as K_2 extends `${infer _Before} as ${infer Alias}` ? Alias : K_2]: (K_2 extends `${infer _Before} as ${infer Alias}` ? Alias : K_2) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links") ? {
285
+ getAddressesByEmail: <K extends keyof (typeof Address)["_type"]>(email: string, fields?: K[]) => Promise<(K[] extends infer T_1 ? T_1 extends K[] ? T_1 extends readonly (("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links"))[] ? { [K_2 in T_1[number] as K_2 extends `${infer _Before} as ${infer Alias}` ? Alias : K_2]: (K_2 extends `${infer _Before} as ${infer Alias}` ? Alias : K_2) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links") ? {
226
286
  docstatus: number;
227
287
  name: string;
228
288
  owner: string;
@@ -250,8 +310,20 @@ export declare class ERPNextAddress {
250
310
  county?: string | null | undefined;
251
311
  email_id?: string | null | undefined;
252
312
  links?: {
313
+ docstatus: number;
314
+ name: string;
315
+ owner: string;
316
+ creation: string;
317
+ modified: string;
318
+ modified_by: string;
319
+ idx: number;
320
+ doctype: string;
321
+ parent: string;
322
+ parenttype: string;
323
+ parentfield: string;
253
324
  link_doctype: string;
254
325
  link_name: string;
326
+ _user_tags?: string | null | undefined;
255
327
  link_title?: string | null | undefined;
256
328
  }[] | undefined;
257
329
  }[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "address_type" | "address_line1" | "pincode" | "city" | "country" | "is_primary_address" | "is_shipping_address" | "is_your_company_address" | "disabled") | ("_user_tags" | "import_reference" | "address_title" | "address_line2" | "state" | "phone" | "fax" | "tax_category" | "county" | "email_id" | "links")) & (K_2 extends `${infer _Before} as ${infer Alias}` ? Alias : K_2)] : never; }[] : any : never : never) extends infer T ? { [K_1 in keyof T]: T[K_1]; } : never>;
@@ -6,7 +6,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
6
6
  protected temporalClient: TemporalClient;
7
7
  protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof ConsolidatedCustomsInvoice>;
8
8
  protected methodRequest: ERPNextMethodRequest;
9
- getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "currency" | "conversion_rate" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "export_approval_status" | "mrn" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
9
+ getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
10
10
  fields?: TSelectedFields;
11
11
  filters?: (string | string[])[][];
12
12
  skip?: number;
@@ -26,8 +26,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
26
26
  idx: number;
27
27
  posting_date: string;
28
28
  set_posting_time: boolean;
29
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
29
30
  currency: string;
30
31
  conversion_rate: number;
32
+ total_qty: number;
33
+ total_net_weight: number;
34
+ base_total: number;
35
+ base_net_total: number;
36
+ total: number;
37
+ net_total: number;
31
38
  dispatch_address_name: string;
32
39
  importer_address: string;
33
40
  importer_contact: string;
@@ -39,14 +46,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
39
46
  naming_series?: string | null | undefined;
40
47
  posting_time?: string | null | undefined;
41
48
  company_tax_id?: string | null | undefined;
42
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
43
49
  mrn?: string | null | undefined;
44
- total_qty?: number | null | undefined;
45
- total_net_weight?: number | null | undefined;
46
- base_total?: number | null | undefined;
47
- base_net_total?: number | null | undefined;
48
- total?: number | null | undefined;
49
- net_total?: number | null | undefined;
50
50
  dispatch_address?: string | null | undefined;
51
51
  importer_address_display?: string | null | undefined;
52
52
  importer_contact_phone?: string | null | undefined;
@@ -54,7 +54,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
54
54
  exporter_address_display?: string | null | undefined;
55
55
  exporter_contact_phone?: string | null | undefined;
56
56
  exporter_contact_email?: string | null | undefined;
57
- }[] : 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "currency" | "conversion_rate" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "export_approval_status" | "mrn" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email") ? {
57
+ }[] : TSelectedFields extends readonly 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 ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email") ? {
58
58
  docstatus: number;
59
59
  name: string;
60
60
  owner: string;
@@ -64,8 +64,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
64
64
  idx: number;
65
65
  posting_date: string;
66
66
  set_posting_time: boolean;
67
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
67
68
  currency: string;
68
69
  conversion_rate: number;
70
+ total_qty: number;
71
+ total_net_weight: number;
72
+ base_total: number;
73
+ base_net_total: number;
74
+ total: number;
75
+ net_total: number;
69
76
  dispatch_address_name: string;
70
77
  importer_address: string;
71
78
  importer_contact: string;
@@ -77,14 +84,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
77
84
  naming_series?: string | null | undefined;
78
85
  posting_time?: string | null | undefined;
79
86
  company_tax_id?: string | null | undefined;
80
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
81
87
  mrn?: string | null | undefined;
82
- total_qty?: number | null | undefined;
83
- total_net_weight?: number | null | undefined;
84
- base_total?: number | null | undefined;
85
- base_net_total?: number | null | undefined;
86
- total?: number | null | undefined;
87
- net_total?: number | null | undefined;
88
88
  dispatch_address?: string | null | undefined;
89
89
  importer_address_display?: string | null | undefined;
90
90
  importer_contact_phone?: string | null | undefined;
@@ -92,7 +92,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
92
92
  exporter_address_display?: string | null | undefined;
93
93
  exporter_contact_phone?: string | null | undefined;
94
94
  exporter_contact_email?: string | null | undefined;
95
- }[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "currency" | "conversion_rate" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "export_approval_status" | "mrn" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
95
+ }[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "posting_date" | "set_posting_time" | "export_approval_status" | "currency" | "conversion_rate" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "importer_address" | "importer_contact" | "exporter_address" | "exporter_contact") | ("amended_from" | "_user_tags" | "company" | "naming_series" | "posting_time" | "company_tax_id" | "mrn" | "dispatch_address" | "importer_address_display" | "importer_contact_phone" | "importer_contact_email" | "exporter_address_display" | "exporter_contact_phone" | "exporter_contact_email")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
96
96
  getById: ({ resourceId, priority, }: {
97
97
  resourceId: string;
98
98
  priority?: number;
@@ -107,8 +107,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
107
107
  doctype: string;
108
108
  posting_date: string;
109
109
  set_posting_time: boolean;
110
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
110
111
  currency: string;
111
112
  conversion_rate: number;
113
+ total_qty: number;
114
+ total_net_weight: number;
115
+ base_total: number;
116
+ base_net_total: number;
117
+ total: number;
118
+ net_total: number;
112
119
  dispatch_address_name: string;
113
120
  importer_address: string;
114
121
  importer_contact: string;
@@ -123,6 +130,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
123
130
  modified_by: string;
124
131
  idx: number;
125
132
  doctype: string;
133
+ parent: string;
126
134
  parenttype: string;
127
135
  parentfield: string;
128
136
  item_code: string;
@@ -159,14 +167,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
159
167
  naming_series?: string | null | undefined;
160
168
  posting_time?: string | null | undefined;
161
169
  company_tax_id?: string | null | undefined;
162
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
163
170
  mrn?: string | null | undefined;
164
- total_qty?: number | null | undefined;
165
- total_net_weight?: number | null | undefined;
166
- base_total?: number | null | undefined;
167
- base_net_total?: number | null | undefined;
168
- total?: number | null | undefined;
169
- net_total?: number | null | undefined;
170
171
  dispatch_address?: string | null | undefined;
171
172
  importer_address_display?: string | null | undefined;
172
173
  importer_contact_phone?: string | null | undefined;
@@ -219,14 +220,14 @@ export declare class ERPNextConsolidatedCustomsInvoice {
219
220
  naming_series?: string | null | undefined;
220
221
  posting_time?: string | null | undefined;
221
222
  company_tax_id?: string | null | undefined;
222
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
223
+ export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | undefined;
223
224
  mrn?: string | null | undefined;
224
- total_qty?: number | null | undefined;
225
- total_net_weight?: number | null | undefined;
226
- base_total?: number | null | undefined;
227
- base_net_total?: number | null | undefined;
228
- total?: number | null | undefined;
229
- net_total?: number | null | undefined;
225
+ total_qty?: number | undefined;
226
+ total_net_weight?: number | undefined;
227
+ base_total?: number | undefined;
228
+ base_net_total?: number | undefined;
229
+ total?: number | undefined;
230
+ net_total?: number | undefined;
230
231
  dispatch_address?: string | null | undefined;
231
232
  importer_address_display?: string | null | undefined;
232
233
  importer_contact_phone?: string | null | undefined;
@@ -250,8 +251,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
250
251
  doctype: string;
251
252
  posting_date: string;
252
253
  set_posting_time: boolean;
254
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
253
255
  currency: string;
254
256
  conversion_rate: number;
257
+ total_qty: number;
258
+ total_net_weight: number;
259
+ base_total: number;
260
+ base_net_total: number;
261
+ total: number;
262
+ net_total: number;
255
263
  dispatch_address_name: string;
256
264
  importer_address: string;
257
265
  importer_contact: string;
@@ -266,6 +274,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
266
274
  modified_by: string;
267
275
  idx: number;
268
276
  doctype: string;
277
+ parent: string;
269
278
  parenttype: string;
270
279
  parentfield: string;
271
280
  item_code: string;
@@ -302,14 +311,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
302
311
  naming_series?: string | null | undefined;
303
312
  posting_time?: string | null | undefined;
304
313
  company_tax_id?: string | null | undefined;
305
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
306
314
  mrn?: string | null | undefined;
307
- total_qty?: number | null | undefined;
308
- total_net_weight?: number | null | undefined;
309
- base_total?: number | null | undefined;
310
- base_net_total?: number | null | undefined;
311
- total?: number | null | undefined;
312
- net_total?: number | null | undefined;
313
315
  dispatch_address?: string | null | undefined;
314
316
  importer_address_display?: string | null | undefined;
315
317
  importer_contact_phone?: string | null | undefined;
@@ -322,7 +324,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
322
324
  resourceId: string;
323
325
  priority?: number;
324
326
  }) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
325
- cancel: ({ resourceId }: {
327
+ cancel: ({ resourceId, }: {
326
328
  resourceId: string;
327
329
  }) => Promise<{
328
330
  docstatus: number;
@@ -335,8 +337,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
335
337
  doctype: string;
336
338
  posting_date: string;
337
339
  set_posting_time: boolean;
340
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
338
341
  currency: string;
339
342
  conversion_rate: number;
343
+ total_qty: number;
344
+ total_net_weight: number;
345
+ base_total: number;
346
+ base_net_total: number;
347
+ total: number;
348
+ net_total: number;
340
349
  dispatch_address_name: string;
341
350
  importer_address: string;
342
351
  importer_contact: string;
@@ -351,6 +360,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
351
360
  modified_by: string;
352
361
  idx: number;
353
362
  doctype: string;
363
+ parent: string;
354
364
  parenttype: string;
355
365
  parentfield: string;
356
366
  item_code: string;
@@ -387,14 +397,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
387
397
  naming_series?: string | null | undefined;
388
398
  posting_time?: string | null | undefined;
389
399
  company_tax_id?: string | null | undefined;
390
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
391
400
  mrn?: string | null | undefined;
392
- total_qty?: number | null | undefined;
393
- total_net_weight?: number | null | undefined;
394
- base_total?: number | null | undefined;
395
- base_net_total?: number | null | undefined;
396
- total?: number | null | undefined;
397
- net_total?: number | null | undefined;
398
401
  dispatch_address?: string | null | undefined;
399
402
  importer_address_display?: string | null | undefined;
400
403
  importer_contact_phone?: string | null | undefined;
@@ -403,7 +406,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
403
406
  exporter_contact_phone?: string | null | undefined;
404
407
  exporter_contact_email?: string | null | undefined;
405
408
  }>;
406
- submit: ({ resourceId }: {
409
+ submit: ({ resourceId, }: {
407
410
  resourceId: string;
408
411
  }) => Promise<{
409
412
  docstatus: number;
@@ -416,8 +419,15 @@ export declare class ERPNextConsolidatedCustomsInvoice {
416
419
  doctype: string;
417
420
  posting_date: string;
418
421
  set_posting_time: boolean;
422
+ export_approval_status: "" | "Waiting for Approval" | "Approved" | "Declined";
419
423
  currency: string;
420
424
  conversion_rate: number;
425
+ total_qty: number;
426
+ total_net_weight: number;
427
+ base_total: number;
428
+ base_net_total: number;
429
+ total: number;
430
+ net_total: number;
421
431
  dispatch_address_name: string;
422
432
  importer_address: string;
423
433
  importer_contact: string;
@@ -432,6 +442,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
432
442
  modified_by: string;
433
443
  idx: number;
434
444
  doctype: string;
445
+ parent: string;
435
446
  parenttype: string;
436
447
  parentfield: string;
437
448
  item_code: string;
@@ -468,14 +479,7 @@ export declare class ERPNextConsolidatedCustomsInvoice {
468
479
  naming_series?: string | null | undefined;
469
480
  posting_time?: string | null | undefined;
470
481
  company_tax_id?: string | null | undefined;
471
- export_approval_status?: "" | "Waiting for Approval" | "Approved" | "Declined" | null | undefined;
472
482
  mrn?: string | null | undefined;
473
- total_qty?: number | null | undefined;
474
- total_net_weight?: number | null | undefined;
475
- base_total?: number | null | undefined;
476
- base_net_total?: number | null | undefined;
477
- total?: number | null | undefined;
478
- net_total?: number | null | undefined;
479
483
  dispatch_address?: string | null | undefined;
480
484
  importer_address_display?: string | null | undefined;
481
485
  importer_contact_phone?: string | null | undefined;
@@ -488,8 +492,14 @@ export declare class ERPNextConsolidatedCustomsInvoice {
488
492
  create({ shipments, }: ConsolidatedCustomsInvoiceCreateMethodInputType): Promise<{
489
493
  name: string;
490
494
  importer_info: {
495
+ address_line1: string;
496
+ pincode: string;
497
+ city: string;
498
+ country: string;
491
499
  tax_id: string;
492
500
  address_title?: string | null | undefined;
501
+ address_line2?: string | null | undefined;
502
+ state?: string | null | undefined;
493
503
  phone?: string | null | undefined;
494
504
  email_id?: string | null | undefined;
495
505
  };