erpnext-queue-client 2.3.2 → 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 (53) 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 +76 -3
  5. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +65 -55
  6. package/dist/erpnext/doctypes/contact.d.ts +220 -3
  7. package/dist/erpnext/doctypes/deliveryNote.d.ts +207 -202
  8. package/dist/erpnext/doctypes/item.d.ts +19 -2
  9. package/dist/erpnext/doctypes/paymentEntry.d.ts +116 -6
  10. package/dist/erpnext/doctypes/productBundle.d.ts +5 -2
  11. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +141 -5
  12. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +11 -5
  13. package/dist/erpnext/doctypes/salesInvoice.d.ts +400 -6
  14. package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
  15. package/dist/erpnext/doctypes/shipment.d.ts +100 -93
  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 -25
  30. package/dist/erpnext/model/DocTypeHelpers.js +44 -23
  31. package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +4 -1
  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/PaymentEntry.d.ts +3 -0
  40. package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
  41. package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
  42. package/dist/erpnext/model/PurchaseOrder.js +20 -38
  43. package/dist/erpnext/model/SalesInvoice.d.ts +197 -4
  44. package/dist/erpnext/model/Servicecase.d.ts +8 -0
  45. package/dist/erpnext/model/Shipment.d.ts +119 -162
  46. package/dist/erpnext/model/Shipment.js +17 -47
  47. package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
  48. package/dist/erpnext/model/ShippingProvider.js +6 -10
  49. package/dist/erpnext/resourceRequest.d.ts +2 -2
  50. package/dist/utils/zodContextOptionals.d.ts +2 -0
  51. package/dist/utils/zodContextOptionals.js +8 -4
  52. package/dist/utils/zodUtils.js +3 -2
  53. 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>;
@@ -125,6 +161,7 @@ export declare class ERPNextAddress {
125
161
  pincode: string;
126
162
  city: string;
127
163
  country: string;
164
+ docstatus?: number | undefined;
128
165
  import_reference?: string | null | undefined;
129
166
  address_title?: string | null | undefined;
130
167
  address_line2?: string | null | undefined;
@@ -177,8 +214,20 @@ export declare class ERPNextAddress {
177
214
  county?: string | null | undefined;
178
215
  email_id?: string | null | undefined;
179
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;
180
228
  link_doctype: string;
181
229
  link_name: string;
230
+ _user_tags?: string | null | undefined;
182
231
  link_title?: string | null | undefined;
183
232
  }[] | undefined;
184
233
  }>;
@@ -216,12 +265,24 @@ export declare class ERPNextAddress {
216
265
  county?: string | null | undefined;
217
266
  email_id?: string | null | undefined;
218
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;
219
279
  link_doctype: string;
220
280
  link_name: string;
281
+ _user_tags?: string | null | undefined;
221
282
  link_title?: string | null | undefined;
222
283
  }[] | undefined;
223
284
  }>;
224
- 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") ? {
225
286
  docstatus: number;
226
287
  name: string;
227
288
  owner: string;
@@ -249,8 +310,20 @@ export declare class ERPNextAddress {
249
310
  county?: string | null | undefined;
250
311
  email_id?: string | null | undefined;
251
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;
252
324
  link_doctype: string;
253
325
  link_name: string;
326
+ _user_tags?: string | null | undefined;
254
327
  link_title?: string | null | undefined;
255
328
  }[] | undefined;
256
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>;