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.
- package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -159
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +2 -2
- package/dist/erpnext/doctypes/address.d.ts +76 -3
- package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +65 -55
- package/dist/erpnext/doctypes/contact.d.ts +220 -3
- package/dist/erpnext/doctypes/deliveryNote.d.ts +207 -202
- package/dist/erpnext/doctypes/item.d.ts +19 -2
- package/dist/erpnext/doctypes/paymentEntry.d.ts +116 -6
- package/dist/erpnext/doctypes/productBundle.d.ts +5 -2
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +141 -5
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +11 -5
- package/dist/erpnext/doctypes/salesInvoice.d.ts +400 -6
- package/dist/erpnext/doctypes/servicecase.d.ts +38 -2
- package/dist/erpnext/doctypes/shipment.d.ts +100 -93
- package/dist/erpnext/doctypes/shipment.js +2 -1
- package/dist/erpnext/erpnextRequestWrapper.d.ts +4 -2
- package/dist/erpnext/erpnextRequestWrapper.js +1 -1
- package/dist/erpnext/fileRequests.d.ts +2 -2
- package/dist/erpnext/fileRequests.js +2 -1
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +61 -23
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +20 -11
- package/dist/erpnext/model/Contact.d.ts +29 -0
- package/dist/erpnext/model/Contact.js +5 -5
- package/dist/erpnext/model/DeliveryNote.d.ts +300 -100
- package/dist/erpnext/model/DeliveryNote.js +101 -100
- package/dist/erpnext/model/DispatchRun.d.ts +3 -0
- package/dist/erpnext/model/DispatchRun.js +1 -0
- package/dist/erpnext/model/DocTypeHelpers.d.ts +12 -25
- package/dist/erpnext/model/DocTypeHelpers.js +44 -23
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +4 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +3 -2
- package/dist/erpnext/model/File.d.ts +50 -0
- package/dist/erpnext/model/File.js +3 -1
- package/dist/erpnext/model/FulfillerSettings.d.ts +52 -24
- package/dist/erpnext/model/FulfillerSettings.js +19 -7
- package/dist/erpnext/model/Item.d.ts +43 -0
- package/dist/erpnext/model/Item.js +2 -1
- package/dist/erpnext/model/PaymentEntry.d.ts +3 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +75 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +52 -63
- package/dist/erpnext/model/PurchaseOrder.js +20 -38
- package/dist/erpnext/model/SalesInvoice.d.ts +197 -4
- package/dist/erpnext/model/Servicecase.d.ts +8 -0
- package/dist/erpnext/model/Shipment.d.ts +119 -162
- package/dist/erpnext/model/Shipment.js +17 -47
- package/dist/erpnext/model/ShippingProvider.d.ts +55 -65
- package/dist/erpnext/model/ShippingProvider.js +6 -10
- package/dist/erpnext/resourceRequest.d.ts +2 -2
- package/dist/utils/zodContextOptionals.d.ts +2 -0
- package/dist/utils/zodContextOptionals.js +8 -4
- package/dist/utils/zodUtils.js +3 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { Contact, ContactInputType } from "../model/Contact";
|
|
|
4
4
|
export declare class ERPNextContact {
|
|
5
5
|
protected temporalClient: TemporalClient;
|
|
6
6
|
protected baseRequest: ERPNextDoctypeResourceRequest<typeof Contact>;
|
|
7
|
-
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
7
|
+
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
8
8
|
fields?: TSelectedFields;
|
|
9
9
|
filters?: (string | string[])[][];
|
|
10
10
|
skip?: number;
|
|
@@ -33,9 +33,21 @@ export declare class ERPNextContact {
|
|
|
33
33
|
phone?: string | null | undefined;
|
|
34
34
|
email_id?: string | null | undefined;
|
|
35
35
|
links?: {
|
|
36
|
+
docstatus: number;
|
|
37
|
+
name: string;
|
|
38
|
+
owner: string;
|
|
39
|
+
creation: string;
|
|
40
|
+
modified: string;
|
|
41
|
+
modified_by: string;
|
|
42
|
+
idx: number;
|
|
43
|
+
doctype: string;
|
|
44
|
+
parent: string;
|
|
45
|
+
parenttype: string;
|
|
46
|
+
parentfield: string;
|
|
36
47
|
link_doctype: string;
|
|
37
48
|
link_name: string;
|
|
38
49
|
link_title: string;
|
|
50
|
+
_user_tags?: string | null | undefined;
|
|
39
51
|
}[] | null | undefined;
|
|
40
52
|
image?: string | null | undefined;
|
|
41
53
|
company?: string | null | undefined;
|
|
@@ -44,15 +56,39 @@ export declare class ERPNextContact {
|
|
|
44
56
|
last_name?: string | null | undefined;
|
|
45
57
|
mobile_no?: string | null | undefined;
|
|
46
58
|
email_ids?: {
|
|
59
|
+
docstatus: number;
|
|
60
|
+
name: string;
|
|
61
|
+
owner: string;
|
|
62
|
+
creation: string;
|
|
63
|
+
modified: string;
|
|
64
|
+
modified_by: string;
|
|
65
|
+
idx: number;
|
|
66
|
+
doctype: string;
|
|
67
|
+
parent: string;
|
|
68
|
+
parenttype: string;
|
|
69
|
+
parentfield: string;
|
|
47
70
|
email_id: string;
|
|
48
71
|
is_primary: 0 | 1;
|
|
72
|
+
_user_tags?: string | null | undefined;
|
|
49
73
|
}[] | null | undefined;
|
|
50
74
|
phone_nos?: {
|
|
75
|
+
docstatus: number;
|
|
76
|
+
name: string;
|
|
77
|
+
owner: string;
|
|
78
|
+
creation: string;
|
|
79
|
+
modified: string;
|
|
80
|
+
modified_by: string;
|
|
81
|
+
idx: number;
|
|
82
|
+
doctype: string;
|
|
83
|
+
parent: string;
|
|
84
|
+
parenttype: string;
|
|
85
|
+
parentfield: string;
|
|
51
86
|
phone: string;
|
|
52
87
|
is_primary_phone: 0 | 1;
|
|
53
88
|
is_primary_mobile_no: 0 | 1;
|
|
89
|
+
_user_tags?: string | null | undefined;
|
|
54
90
|
}[] | null | undefined;
|
|
55
|
-
}[] : 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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos") ? {
|
|
91
|
+
}[] : 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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos") ? {
|
|
56
92
|
docstatus: number;
|
|
57
93
|
name: string;
|
|
58
94
|
owner: string;
|
|
@@ -71,9 +107,21 @@ export declare class ERPNextContact {
|
|
|
71
107
|
phone?: string | null | undefined;
|
|
72
108
|
email_id?: string | null | undefined;
|
|
73
109
|
links?: {
|
|
110
|
+
docstatus: number;
|
|
111
|
+
name: string;
|
|
112
|
+
owner: string;
|
|
113
|
+
creation: string;
|
|
114
|
+
modified: string;
|
|
115
|
+
modified_by: string;
|
|
116
|
+
idx: number;
|
|
117
|
+
doctype: string;
|
|
118
|
+
parent: string;
|
|
119
|
+
parenttype: string;
|
|
120
|
+
parentfield: string;
|
|
74
121
|
link_doctype: string;
|
|
75
122
|
link_name: string;
|
|
76
123
|
link_title: string;
|
|
124
|
+
_user_tags?: string | null | undefined;
|
|
77
125
|
}[] | null | undefined;
|
|
78
126
|
image?: string | null | undefined;
|
|
79
127
|
company?: string | null | undefined;
|
|
@@ -82,13 +130,37 @@ export declare class ERPNextContact {
|
|
|
82
130
|
last_name?: string | null | undefined;
|
|
83
131
|
mobile_no?: string | null | undefined;
|
|
84
132
|
email_ids?: {
|
|
133
|
+
docstatus: number;
|
|
134
|
+
name: string;
|
|
135
|
+
owner: string;
|
|
136
|
+
creation: string;
|
|
137
|
+
modified: string;
|
|
138
|
+
modified_by: string;
|
|
139
|
+
idx: number;
|
|
140
|
+
doctype: string;
|
|
141
|
+
parent: string;
|
|
142
|
+
parenttype: string;
|
|
143
|
+
parentfield: string;
|
|
85
144
|
email_id: string;
|
|
86
145
|
is_primary: 0 | 1;
|
|
146
|
+
_user_tags?: string | null | undefined;
|
|
87
147
|
}[] | null | undefined;
|
|
88
148
|
phone_nos?: {
|
|
149
|
+
docstatus: number;
|
|
150
|
+
name: string;
|
|
151
|
+
owner: string;
|
|
152
|
+
creation: string;
|
|
153
|
+
modified: string;
|
|
154
|
+
modified_by: string;
|
|
155
|
+
idx: number;
|
|
156
|
+
doctype: string;
|
|
157
|
+
parent: string;
|
|
158
|
+
parenttype: string;
|
|
159
|
+
parentfield: string;
|
|
89
160
|
phone: string;
|
|
90
161
|
is_primary_phone: 0 | 1;
|
|
91
162
|
is_primary_mobile_no: 0 | 1;
|
|
163
|
+
_user_tags?: string | null | undefined;
|
|
92
164
|
}[] | null | undefined;
|
|
93
165
|
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
94
166
|
getById: ({ resourceId, priority, }: {
|
|
@@ -114,9 +186,21 @@ export declare class ERPNextContact {
|
|
|
114
186
|
phone?: string | null | undefined;
|
|
115
187
|
email_id?: string | null | undefined;
|
|
116
188
|
links?: {
|
|
189
|
+
docstatus: number;
|
|
190
|
+
name: string;
|
|
191
|
+
owner: string;
|
|
192
|
+
creation: string;
|
|
193
|
+
modified: string;
|
|
194
|
+
modified_by: string;
|
|
195
|
+
idx: number;
|
|
196
|
+
doctype: string;
|
|
197
|
+
parent: string;
|
|
198
|
+
parenttype: string;
|
|
199
|
+
parentfield: string;
|
|
117
200
|
link_doctype: string;
|
|
118
201
|
link_name: string;
|
|
119
202
|
link_title: string;
|
|
203
|
+
_user_tags?: string | null | undefined;
|
|
120
204
|
}[] | null | undefined;
|
|
121
205
|
image?: string | null | undefined;
|
|
122
206
|
company?: string | null | undefined;
|
|
@@ -125,18 +209,43 @@ export declare class ERPNextContact {
|
|
|
125
209
|
last_name?: string | null | undefined;
|
|
126
210
|
mobile_no?: string | null | undefined;
|
|
127
211
|
email_ids?: {
|
|
212
|
+
docstatus: number;
|
|
213
|
+
name: string;
|
|
214
|
+
owner: string;
|
|
215
|
+
creation: string;
|
|
216
|
+
modified: string;
|
|
217
|
+
modified_by: string;
|
|
218
|
+
idx: number;
|
|
219
|
+
doctype: string;
|
|
220
|
+
parent: string;
|
|
221
|
+
parenttype: string;
|
|
222
|
+
parentfield: string;
|
|
128
223
|
email_id: string;
|
|
129
224
|
is_primary: 0 | 1;
|
|
225
|
+
_user_tags?: string | null | undefined;
|
|
130
226
|
}[] | null | undefined;
|
|
131
227
|
phone_nos?: {
|
|
228
|
+
docstatus: number;
|
|
229
|
+
name: string;
|
|
230
|
+
owner: string;
|
|
231
|
+
creation: string;
|
|
232
|
+
modified: string;
|
|
233
|
+
modified_by: string;
|
|
234
|
+
idx: number;
|
|
235
|
+
doctype: string;
|
|
236
|
+
parent: string;
|
|
237
|
+
parenttype: string;
|
|
238
|
+
parentfield: string;
|
|
132
239
|
phone: string;
|
|
133
240
|
is_primary_phone: 0 | 1;
|
|
134
241
|
is_primary_mobile_no: 0 | 1;
|
|
242
|
+
_user_tags?: string | null | undefined;
|
|
135
243
|
}[] | null | undefined;
|
|
136
244
|
} | undefined>;
|
|
137
245
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
138
246
|
status?: string | null | undefined;
|
|
139
247
|
address?: string | null | undefined;
|
|
248
|
+
docstatus?: number | undefined;
|
|
140
249
|
phone?: string | null | undefined;
|
|
141
250
|
email_id?: string | null | undefined;
|
|
142
251
|
links?: {
|
|
@@ -189,9 +298,21 @@ export declare class ERPNextContact {
|
|
|
189
298
|
phone?: string | null | undefined;
|
|
190
299
|
email_id?: string | null | undefined;
|
|
191
300
|
links?: {
|
|
301
|
+
docstatus: number;
|
|
302
|
+
name: string;
|
|
303
|
+
owner: string;
|
|
304
|
+
creation: string;
|
|
305
|
+
modified: string;
|
|
306
|
+
modified_by: string;
|
|
307
|
+
idx: number;
|
|
308
|
+
doctype: string;
|
|
309
|
+
parent: string;
|
|
310
|
+
parenttype: string;
|
|
311
|
+
parentfield: string;
|
|
192
312
|
link_doctype: string;
|
|
193
313
|
link_name: string;
|
|
194
314
|
link_title: string;
|
|
315
|
+
_user_tags?: string | null | undefined;
|
|
195
316
|
}[] | null | undefined;
|
|
196
317
|
image?: string | null | undefined;
|
|
197
318
|
company?: string | null | undefined;
|
|
@@ -200,13 +321,37 @@ export declare class ERPNextContact {
|
|
|
200
321
|
last_name?: string | null | undefined;
|
|
201
322
|
mobile_no?: string | null | undefined;
|
|
202
323
|
email_ids?: {
|
|
324
|
+
docstatus: number;
|
|
325
|
+
name: string;
|
|
326
|
+
owner: string;
|
|
327
|
+
creation: string;
|
|
328
|
+
modified: string;
|
|
329
|
+
modified_by: string;
|
|
330
|
+
idx: number;
|
|
331
|
+
doctype: string;
|
|
332
|
+
parent: string;
|
|
333
|
+
parenttype: string;
|
|
334
|
+
parentfield: string;
|
|
203
335
|
email_id: string;
|
|
204
336
|
is_primary: 0 | 1;
|
|
337
|
+
_user_tags?: string | null | undefined;
|
|
205
338
|
}[] | null | undefined;
|
|
206
339
|
phone_nos?: {
|
|
340
|
+
docstatus: number;
|
|
341
|
+
name: string;
|
|
342
|
+
owner: string;
|
|
343
|
+
creation: string;
|
|
344
|
+
modified: string;
|
|
345
|
+
modified_by: string;
|
|
346
|
+
idx: number;
|
|
347
|
+
doctype: string;
|
|
348
|
+
parent: string;
|
|
349
|
+
parenttype: string;
|
|
350
|
+
parentfield: string;
|
|
207
351
|
phone: string;
|
|
208
352
|
is_primary_phone: 0 | 1;
|
|
209
353
|
is_primary_mobile_no: 0 | 1;
|
|
354
|
+
_user_tags?: string | null | undefined;
|
|
210
355
|
}[] | null | undefined;
|
|
211
356
|
}>;
|
|
212
357
|
deleteById: ({ resourceId, priority, }: {
|
|
@@ -214,7 +359,7 @@ export declare class ERPNextContact {
|
|
|
214
359
|
priority?: number;
|
|
215
360
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
216
361
|
constructor(temporalClient: TemporalClient);
|
|
217
|
-
getContactsByAddressEmail: <K extends keyof (typeof Contact)["_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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos"))[] ? { [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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos") ? {
|
|
362
|
+
getContactsByAddressEmail: <K extends keyof (typeof Contact)["_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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos"))[] ? { [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" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos") ? {
|
|
218
363
|
docstatus: number;
|
|
219
364
|
name: string;
|
|
220
365
|
owner: string;
|
|
@@ -233,9 +378,21 @@ export declare class ERPNextContact {
|
|
|
233
378
|
phone?: string | null | undefined;
|
|
234
379
|
email_id?: string | null | undefined;
|
|
235
380
|
links?: {
|
|
381
|
+
docstatus: number;
|
|
382
|
+
name: string;
|
|
383
|
+
owner: string;
|
|
384
|
+
creation: string;
|
|
385
|
+
modified: string;
|
|
386
|
+
modified_by: string;
|
|
387
|
+
idx: number;
|
|
388
|
+
doctype: string;
|
|
389
|
+
parent: string;
|
|
390
|
+
parenttype: string;
|
|
391
|
+
parentfield: string;
|
|
236
392
|
link_doctype: string;
|
|
237
393
|
link_name: string;
|
|
238
394
|
link_title: string;
|
|
395
|
+
_user_tags?: string | null | undefined;
|
|
239
396
|
}[] | null | undefined;
|
|
240
397
|
image?: string | null | undefined;
|
|
241
398
|
company?: string | null | undefined;
|
|
@@ -244,13 +401,37 @@ export declare class ERPNextContact {
|
|
|
244
401
|
last_name?: string | null | undefined;
|
|
245
402
|
mobile_no?: string | null | undefined;
|
|
246
403
|
email_ids?: {
|
|
404
|
+
docstatus: number;
|
|
405
|
+
name: string;
|
|
406
|
+
owner: string;
|
|
407
|
+
creation: string;
|
|
408
|
+
modified: string;
|
|
409
|
+
modified_by: string;
|
|
410
|
+
idx: number;
|
|
411
|
+
doctype: string;
|
|
412
|
+
parent: string;
|
|
413
|
+
parenttype: string;
|
|
414
|
+
parentfield: string;
|
|
247
415
|
email_id: string;
|
|
248
416
|
is_primary: 0 | 1;
|
|
417
|
+
_user_tags?: string | null | undefined;
|
|
249
418
|
}[] | null | undefined;
|
|
250
419
|
phone_nos?: {
|
|
420
|
+
docstatus: number;
|
|
421
|
+
name: string;
|
|
422
|
+
owner: string;
|
|
423
|
+
creation: string;
|
|
424
|
+
modified: string;
|
|
425
|
+
modified_by: string;
|
|
426
|
+
idx: number;
|
|
427
|
+
doctype: string;
|
|
428
|
+
parent: string;
|
|
429
|
+
parenttype: string;
|
|
430
|
+
parentfield: string;
|
|
251
431
|
phone: string;
|
|
252
432
|
is_primary_phone: 0 | 1;
|
|
253
433
|
is_primary_mobile_no: 0 | 1;
|
|
434
|
+
_user_tags?: string | null | undefined;
|
|
254
435
|
}[] | null | undefined;
|
|
255
436
|
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "address" | "_user_tags" | "phone" | "email_id" | "links" | "image" | "company" | "first_name" | "middle_name" | "last_name" | "mobile_no" | "email_ids" | "phone_nos")) & (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>;
|
|
256
437
|
create: (contact: Omit<ContactInputType, "links">, customerName: string) => Promise<{
|
|
@@ -273,9 +454,21 @@ export declare class ERPNextContact {
|
|
|
273
454
|
phone?: string | null | undefined;
|
|
274
455
|
email_id?: string | null | undefined;
|
|
275
456
|
links?: {
|
|
457
|
+
docstatus: number;
|
|
458
|
+
name: string;
|
|
459
|
+
owner: string;
|
|
460
|
+
creation: string;
|
|
461
|
+
modified: string;
|
|
462
|
+
modified_by: string;
|
|
463
|
+
idx: number;
|
|
464
|
+
doctype: string;
|
|
465
|
+
parent: string;
|
|
466
|
+
parenttype: string;
|
|
467
|
+
parentfield: string;
|
|
276
468
|
link_doctype: string;
|
|
277
469
|
link_name: string;
|
|
278
470
|
link_title: string;
|
|
471
|
+
_user_tags?: string | null | undefined;
|
|
279
472
|
}[] | null | undefined;
|
|
280
473
|
image?: string | null | undefined;
|
|
281
474
|
company?: string | null | undefined;
|
|
@@ -284,13 +477,37 @@ export declare class ERPNextContact {
|
|
|
284
477
|
last_name?: string | null | undefined;
|
|
285
478
|
mobile_no?: string | null | undefined;
|
|
286
479
|
email_ids?: {
|
|
480
|
+
docstatus: number;
|
|
481
|
+
name: string;
|
|
482
|
+
owner: string;
|
|
483
|
+
creation: string;
|
|
484
|
+
modified: string;
|
|
485
|
+
modified_by: string;
|
|
486
|
+
idx: number;
|
|
487
|
+
doctype: string;
|
|
488
|
+
parent: string;
|
|
489
|
+
parenttype: string;
|
|
490
|
+
parentfield: string;
|
|
287
491
|
email_id: string;
|
|
288
492
|
is_primary: 0 | 1;
|
|
493
|
+
_user_tags?: string | null | undefined;
|
|
289
494
|
}[] | null | undefined;
|
|
290
495
|
phone_nos?: {
|
|
496
|
+
docstatus: number;
|
|
497
|
+
name: string;
|
|
498
|
+
owner: string;
|
|
499
|
+
creation: string;
|
|
500
|
+
modified: string;
|
|
501
|
+
modified_by: string;
|
|
502
|
+
idx: number;
|
|
503
|
+
doctype: string;
|
|
504
|
+
parent: string;
|
|
505
|
+
parenttype: string;
|
|
506
|
+
parentfield: string;
|
|
291
507
|
phone: string;
|
|
292
508
|
is_primary_phone: 0 | 1;
|
|
293
509
|
is_primary_mobile_no: 0 | 1;
|
|
510
|
+
_user_tags?: string | null | undefined;
|
|
294
511
|
}[] | null | undefined;
|
|
295
512
|
}>;
|
|
296
513
|
}
|