erpnext-queue-client 1.5.4 → 1.7.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 (34) hide show
  1. package/dist/client.js +1 -1
  2. package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
  3. package/dist/erpnext/doctypes/address.d.ts +14 -14
  4. package/dist/erpnext/doctypes/contact.d.ts +26 -26
  5. package/dist/erpnext/doctypes/deliveryNote.d.ts +16 -16
  6. package/dist/erpnext/doctypes/item.d.ts +26 -26
  7. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +34 -34
  8. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +20 -20
  9. package/dist/erpnext/doctypes/shipment.d.ts +31 -31
  10. package/dist/erpnext/model/Account.d.ts +2 -2
  11. package/dist/erpnext/model/Address.d.ts +8 -8
  12. package/dist/erpnext/model/Contact.d.ts +20 -20
  13. package/dist/erpnext/model/Country.d.ts +2 -2
  14. package/dist/erpnext/model/Customer.d.ts +2 -2
  15. package/dist/erpnext/model/DeliveryNote.d.ts +12 -12
  16. package/dist/erpnext/model/DispatchRun.d.ts +25 -25
  17. package/dist/erpnext/model/DispatcherPreset.d.ts +8 -8
  18. package/dist/erpnext/model/File.d.ts +4 -4
  19. package/dist/erpnext/model/Fulfiller.d.ts +2 -2
  20. package/dist/erpnext/model/Item.d.ts +44 -44
  21. package/dist/erpnext/model/PaymentEntry.d.ts +2 -2
  22. package/dist/erpnext/model/ProductBundle.d.ts +6 -6
  23. package/dist/erpnext/model/PurchaseInvoice.d.ts +26 -26
  24. package/dist/erpnext/model/PurchaseOrder.d.ts +10 -10
  25. package/dist/erpnext/model/Receipt.d.ts +6 -6
  26. package/dist/erpnext/model/ReceiptDraft.d.ts +4 -4
  27. package/dist/erpnext/model/Shipment.d.ts +32 -32
  28. package/dist/erpnext/model/ShippingProvider.d.ts +2 -2
  29. package/dist/erpnext/model/StockEntry.d.ts +2 -2
  30. package/dist/erpnext/model/StockReconciliation.d.ts +2 -2
  31. package/dist/erpnext/model/Supplier.d.ts +6 -6
  32. package/dist/erpnext/resourceRequest.d.ts +1 -1
  33. package/dist/erpnext/resourceRequest.js +38 -14
  34. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -83,7 +83,7 @@ class TemporalClient {
83
83
  return __awaiter(this, arguments, void 0, function* (requestName, options, queue, priority = 5) {
84
84
  if (process.env.NODE_ENV === "test")
85
85
  return;
86
- const runId = `${requestName}-${nanoid(6)}-${new Date().toISOString()}}`;
86
+ const runId = `${requestName}-${nanoid(6)}-${new Date().toISOString()}`;
87
87
  const client = yield this.getClient();
88
88
  logger_1.lg.info(`Enqueue to ERPNext Queue: ${("url" in options && options.url) ||
89
89
  ("uri" in options && options.uri) ||
@@ -11,7 +11,7 @@ export declare class ERPNextDoctypeResourceRequest<TModel extends ZodObject<any>
11
11
  constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
12
12
  getList<TField extends KeysOf<TModel>, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
13
13
  fields?: TField[] | undefined;
14
- filters?: string[][];
14
+ filters?: (string | string[])[][];
15
15
  skip?: number;
16
16
  limit?: number;
17
17
  priority?: number;
@@ -7,9 +7,9 @@ export declare class ERPNextAddress {
7
7
  protected temporalClient: TemporalClient;
8
8
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Address>;
9
9
  protected methodRequest: ERPNextMethodRequest;
10
- getList: <TField extends ("name" | "address_title" | "address_line1" | "address_type" | "city" | "pincode" | "country" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "email_id" | "parent" | "parentfield" | "parenttype" | "import_reference" | "state" | "phone" | "fax" | "tax_category" | "county"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
10
+ getList: <TField extends ("name" | "doctype" | "address_title" | "address_line1" | "address_type" | "city" | "pincode" | "country" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "email_id" | "parent" | "parentfield" | "parenttype" | "import_reference" | "state" | "phone" | "fax" | "tax_category" | "county"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
11
11
  fields?: TField[] | undefined;
12
- filters?: string[][];
12
+ filters?: (string | string[])[][];
13
13
  skip?: number;
14
14
  limit?: number;
15
15
  priority?: number;
@@ -17,6 +17,7 @@ export declare class ERPNextAddress {
17
17
  params?: Record<string, string>;
18
18
  }) => Promise<TAsDict extends false ? string[][] : Pick<{
19
19
  name: string;
20
+ doctype: string;
20
21
  address_title: string;
21
22
  address_line1: string;
22
23
  address_type: string;
@@ -26,6 +27,7 @@ export declare class ERPNextAddress {
26
27
  is_shipping_address: boolean;
27
28
  links: {
28
29
  name: string;
30
+ doctype: string;
29
31
  link_doctype: string;
30
32
  link_name: string;
31
33
  owner: string;
@@ -38,7 +40,6 @@ export declare class ERPNextAddress {
38
40
  idx: number;
39
41
  docstatus: number;
40
42
  link_title: string;
41
- doctype: string;
42
43
  }[];
43
44
  owner: string;
44
45
  creation: string;
@@ -46,7 +47,6 @@ export declare class ERPNextAddress {
46
47
  modified_by: string;
47
48
  idx: number;
48
49
  docstatus: number;
49
- doctype: string;
50
50
  is_primary_address: boolean;
51
51
  is_your_company_address: boolean;
52
52
  disabled: boolean;
@@ -67,6 +67,7 @@ export declare class ERPNextAddress {
67
67
  priority?: number;
68
68
  }) => Promise<{
69
69
  name: string;
70
+ doctype: string;
70
71
  address_title: string;
71
72
  address_line1: string;
72
73
  address_type: string;
@@ -76,6 +77,7 @@ export declare class ERPNextAddress {
76
77
  is_shipping_address: boolean;
77
78
  links: {
78
79
  name: string;
80
+ doctype: string;
79
81
  link_doctype: string;
80
82
  link_name: string;
81
83
  owner: string;
@@ -88,7 +90,6 @@ export declare class ERPNextAddress {
88
90
  idx: number;
89
91
  docstatus: number;
90
92
  link_title: string;
91
- doctype: string;
92
93
  }[];
93
94
  owner: string;
94
95
  creation: string;
@@ -96,7 +97,6 @@ export declare class ERPNextAddress {
96
97
  modified_by: string;
97
98
  idx: number;
98
99
  docstatus: number;
99
- doctype: string;
100
100
  is_primary_address: boolean;
101
101
  is_your_company_address: boolean;
102
102
  disabled: boolean;
@@ -114,6 +114,7 @@ export declare class ERPNextAddress {
114
114
  }>;
115
115
  updateById: <TInput extends TInputModel extends undefined ? Partial<{
116
116
  name: string;
117
+ doctype: string;
117
118
  address_title: string;
118
119
  address_line1: string;
119
120
  address_type: string;
@@ -123,6 +124,7 @@ export declare class ERPNextAddress {
123
124
  is_shipping_address: boolean;
124
125
  links: {
125
126
  name: string;
127
+ doctype: string;
126
128
  link_doctype: string;
127
129
  link_name: string;
128
130
  owner: string;
@@ -135,7 +137,6 @@ export declare class ERPNextAddress {
135
137
  idx: number;
136
138
  docstatus: number;
137
139
  link_title: string;
138
- doctype: string;
139
140
  }[];
140
141
  owner: string;
141
142
  creation: string;
@@ -143,7 +144,6 @@ export declare class ERPNextAddress {
143
144
  modified_by: string;
144
145
  idx: number;
145
146
  docstatus: number;
146
- doctype: string;
147
147
  is_primary_address: boolean;
148
148
  is_your_company_address: boolean;
149
149
  disabled: boolean;
@@ -165,6 +165,7 @@ export declare class ERPNextAddress {
165
165
  body: TInput;
166
166
  }) => Promise<{
167
167
  name: string;
168
+ doctype: string;
168
169
  address_title: string;
169
170
  address_line1: string;
170
171
  address_type: string;
@@ -174,6 +175,7 @@ export declare class ERPNextAddress {
174
175
  is_shipping_address: boolean;
175
176
  links: {
176
177
  name: string;
178
+ doctype: string;
177
179
  link_doctype: string;
178
180
  link_name: string;
179
181
  owner: string;
@@ -186,7 +188,6 @@ export declare class ERPNextAddress {
186
188
  idx: number;
187
189
  docstatus: number;
188
190
  link_title: string;
189
- doctype: string;
190
191
  }[];
191
192
  owner: string;
192
193
  creation: string;
@@ -194,7 +195,6 @@ export declare class ERPNextAddress {
194
195
  modified_by: string;
195
196
  idx: number;
196
197
  docstatus: number;
197
- doctype: string;
198
198
  is_primary_address: boolean;
199
199
  is_your_company_address: boolean;
200
200
  disabled: boolean;
@@ -217,6 +217,7 @@ export declare class ERPNextAddress {
217
217
  constructor(temporalClient: TemporalClient);
218
218
  create(address: Omit<AddressPostBodyType, "links">, customerName: string): Promise<{
219
219
  name: string;
220
+ doctype: string;
220
221
  address_title: string;
221
222
  address_line1: string;
222
223
  address_type: string;
@@ -226,6 +227,7 @@ export declare class ERPNextAddress {
226
227
  is_shipping_address: boolean;
227
228
  links: {
228
229
  name: string;
230
+ doctype: string;
229
231
  link_doctype: string;
230
232
  link_name: string;
231
233
  owner: string;
@@ -238,7 +240,6 @@ export declare class ERPNextAddress {
238
240
  idx: number;
239
241
  docstatus: number;
240
242
  link_title: string;
241
- doctype: string;
242
243
  }[];
243
244
  owner: string;
244
245
  creation: string;
@@ -246,7 +247,6 @@ export declare class ERPNextAddress {
246
247
  modified_by: string;
247
248
  idx: number;
248
249
  docstatus: number;
249
- doctype: string;
250
250
  is_primary_address: boolean;
251
251
  is_your_company_address: boolean;
252
252
  disabled: boolean;
@@ -264,6 +264,7 @@ export declare class ERPNextAddress {
264
264
  }>;
265
265
  getAddressesByEmail: <K extends keyof (typeof Address)["_type"]>(email: string, fields?: K[]) => Promise<Pick<{
266
266
  name: string;
267
+ doctype: string;
267
268
  address_title: string;
268
269
  address_line1: string;
269
270
  address_type: string;
@@ -273,6 +274,7 @@ export declare class ERPNextAddress {
273
274
  is_shipping_address: boolean;
274
275
  links: {
275
276
  name: string;
277
+ doctype: string;
276
278
  link_doctype: string;
277
279
  link_name: string;
278
280
  owner: string;
@@ -285,7 +287,6 @@ export declare class ERPNextAddress {
285
287
  idx: number;
286
288
  docstatus: number;
287
289
  link_title: string;
288
- doctype: string;
289
290
  }[];
290
291
  owner: string;
291
292
  creation: string;
@@ -293,7 +294,6 @@ export declare class ERPNextAddress {
293
294
  modified_by: string;
294
295
  idx: number;
295
296
  docstatus: number;
296
- doctype: string;
297
297
  is_primary_address: boolean;
298
298
  is_your_company_address: boolean;
299
299
  disabled: boolean;
@@ -4,9 +4,9 @@ import { Contact, ContactPostBodyType } from "../model/Contact";
4
4
  export declare class ERPNextContact {
5
5
  protected temporalClient: TemporalClient;
6
6
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Contact>;
7
- getList: <TField extends ("name" | "email_id" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "first_name" | "email_ids" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "links" | "phone" | "image" | "company" | "last_name" | "middle_name" | "mobile_no" | "phone_nos"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
7
+ getList: <TField extends ("name" | "doctype" | "email_id" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "first_name" | "email_ids" | "sync_with_google_contacts" | "pulled_from_google_contacts" | "is_primary_contact" | "is_billing_contact" | "unsubscribed") | ("status" | "links" | "phone" | "image" | "company" | "last_name" | "middle_name" | "mobile_no" | "phone_nos"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
8
8
  fields?: TField[] | undefined;
9
- filters?: string[][];
9
+ filters?: (string | string[])[][];
10
10
  skip?: number;
11
11
  limit?: number;
12
12
  priority?: number;
@@ -14,6 +14,7 @@ export declare class ERPNextContact {
14
14
  params?: Record<string, string>;
15
15
  }) => Promise<TAsDict extends false ? string[][] : Pick<{
16
16
  name: string;
17
+ doctype: string;
17
18
  email_id: string;
18
19
  owner: string;
19
20
  creation: string;
@@ -21,10 +22,10 @@ export declare class ERPNextContact {
21
22
  modified_by: string;
22
23
  idx: number;
23
24
  docstatus: number;
24
- doctype: string;
25
25
  first_name: string;
26
26
  email_ids: {
27
27
  name: string;
28
+ doctype: string;
28
29
  email_id: string;
29
30
  owner: string;
30
31
  creation: string;
@@ -35,7 +36,6 @@ export declare class ERPNextContact {
35
36
  parenttype: string;
36
37
  idx: number;
37
38
  docstatus: number;
38
- doctype: string;
39
39
  is_primary: boolean;
40
40
  }[];
41
41
  sync_with_google_contacts: number;
@@ -46,6 +46,7 @@ export declare class ERPNextContact {
46
46
  status?: string | null | undefined;
47
47
  links?: {
48
48
  name: string;
49
+ doctype: string;
49
50
  link_doctype: string;
50
51
  link_name: string;
51
52
  owner: string;
@@ -58,7 +59,6 @@ export declare class ERPNextContact {
58
59
  idx: number;
59
60
  docstatus: number;
60
61
  link_title: string;
61
- doctype: string;
62
62
  }[] | null | undefined;
63
63
  phone?: string | null | undefined;
64
64
  image?: string | null | undefined;
@@ -68,6 +68,7 @@ export declare class ERPNextContact {
68
68
  mobile_no?: string | null | undefined;
69
69
  phone_nos?: {
70
70
  name: string;
71
+ doctype: string;
71
72
  owner: string;
72
73
  creation: string;
73
74
  modified: string;
@@ -77,7 +78,6 @@ export declare class ERPNextContact {
77
78
  parenttype: string;
78
79
  idx: number;
79
80
  docstatus: number;
80
- doctype: string;
81
81
  phone: string;
82
82
  is_primary_phone: boolean;
83
83
  is_primary_mobile_no: boolean;
@@ -88,6 +88,7 @@ export declare class ERPNextContact {
88
88
  priority?: number;
89
89
  }) => Promise<{
90
90
  name: string;
91
+ doctype: string;
91
92
  email_id: string;
92
93
  owner: string;
93
94
  creation: string;
@@ -95,10 +96,10 @@ export declare class ERPNextContact {
95
96
  modified_by: string;
96
97
  idx: number;
97
98
  docstatus: number;
98
- doctype: string;
99
99
  first_name: string;
100
100
  email_ids: {
101
101
  name: string;
102
+ doctype: string;
102
103
  email_id: string;
103
104
  owner: string;
104
105
  creation: string;
@@ -109,7 +110,6 @@ export declare class ERPNextContact {
109
110
  parenttype: string;
110
111
  idx: number;
111
112
  docstatus: number;
112
- doctype: string;
113
113
  is_primary: boolean;
114
114
  }[];
115
115
  sync_with_google_contacts: number;
@@ -120,6 +120,7 @@ export declare class ERPNextContact {
120
120
  status?: string | null | undefined;
121
121
  links?: {
122
122
  name: string;
123
+ doctype: string;
123
124
  link_doctype: string;
124
125
  link_name: string;
125
126
  owner: string;
@@ -132,7 +133,6 @@ export declare class ERPNextContact {
132
133
  idx: number;
133
134
  docstatus: number;
134
135
  link_title: string;
135
- doctype: string;
136
136
  }[] | null | undefined;
137
137
  phone?: string | null | undefined;
138
138
  image?: string | null | undefined;
@@ -142,6 +142,7 @@ export declare class ERPNextContact {
142
142
  mobile_no?: string | null | undefined;
143
143
  phone_nos?: {
144
144
  name: string;
145
+ doctype: string;
145
146
  owner: string;
146
147
  creation: string;
147
148
  modified: string;
@@ -151,7 +152,6 @@ export declare class ERPNextContact {
151
152
  parenttype: string;
152
153
  idx: number;
153
154
  docstatus: number;
154
- doctype: string;
155
155
  phone: string;
156
156
  is_primary_phone: boolean;
157
157
  is_primary_mobile_no: boolean;
@@ -159,6 +159,7 @@ export declare class ERPNextContact {
159
159
  }>;
160
160
  updateById: <TInput extends TInputModel extends undefined ? Partial<{
161
161
  name: string;
162
+ doctype: string;
162
163
  email_id: string;
163
164
  owner: string;
164
165
  creation: string;
@@ -166,10 +167,10 @@ export declare class ERPNextContact {
166
167
  modified_by: string;
167
168
  idx: number;
168
169
  docstatus: number;
169
- doctype: string;
170
170
  first_name: string;
171
171
  email_ids: {
172
172
  name: string;
173
+ doctype: string;
173
174
  email_id: string;
174
175
  owner: string;
175
176
  creation: string;
@@ -180,7 +181,6 @@ export declare class ERPNextContact {
180
181
  parenttype: string;
181
182
  idx: number;
182
183
  docstatus: number;
183
- doctype: string;
184
184
  is_primary: boolean;
185
185
  }[];
186
186
  sync_with_google_contacts: number;
@@ -191,6 +191,7 @@ export declare class ERPNextContact {
191
191
  status?: string | null | undefined;
192
192
  links?: {
193
193
  name: string;
194
+ doctype: string;
194
195
  link_doctype: string;
195
196
  link_name: string;
196
197
  owner: string;
@@ -203,7 +204,6 @@ export declare class ERPNextContact {
203
204
  idx: number;
204
205
  docstatus: number;
205
206
  link_title: string;
206
- doctype: string;
207
207
  }[] | null | undefined;
208
208
  phone?: string | null | undefined;
209
209
  image?: string | null | undefined;
@@ -213,6 +213,7 @@ export declare class ERPNextContact {
213
213
  mobile_no?: string | null | undefined;
214
214
  phone_nos?: {
215
215
  name: string;
216
+ doctype: string;
216
217
  owner: string;
217
218
  creation: string;
218
219
  modified: string;
@@ -222,7 +223,6 @@ export declare class ERPNextContact {
222
223
  parenttype: string;
223
224
  idx: number;
224
225
  docstatus: number;
225
- doctype: string;
226
226
  phone: string;
227
227
  is_primary_phone: boolean;
228
228
  is_primary_mobile_no: boolean;
@@ -234,6 +234,7 @@ export declare class ERPNextContact {
234
234
  body: TInput;
235
235
  }) => Promise<{
236
236
  name: string;
237
+ doctype: string;
237
238
  email_id: string;
238
239
  owner: string;
239
240
  creation: string;
@@ -241,10 +242,10 @@ export declare class ERPNextContact {
241
242
  modified_by: string;
242
243
  idx: number;
243
244
  docstatus: number;
244
- doctype: string;
245
245
  first_name: string;
246
246
  email_ids: {
247
247
  name: string;
248
+ doctype: string;
248
249
  email_id: string;
249
250
  owner: string;
250
251
  creation: string;
@@ -255,7 +256,6 @@ export declare class ERPNextContact {
255
256
  parenttype: string;
256
257
  idx: number;
257
258
  docstatus: number;
258
- doctype: string;
259
259
  is_primary: boolean;
260
260
  }[];
261
261
  sync_with_google_contacts: number;
@@ -266,6 +266,7 @@ export declare class ERPNextContact {
266
266
  status?: string | null | undefined;
267
267
  links?: {
268
268
  name: string;
269
+ doctype: string;
269
270
  link_doctype: string;
270
271
  link_name: string;
271
272
  owner: string;
@@ -278,7 +279,6 @@ export declare class ERPNextContact {
278
279
  idx: number;
279
280
  docstatus: number;
280
281
  link_title: string;
281
- doctype: string;
282
282
  }[] | null | undefined;
283
283
  phone?: string | null | undefined;
284
284
  image?: string | null | undefined;
@@ -288,6 +288,7 @@ export declare class ERPNextContact {
288
288
  mobile_no?: string | null | undefined;
289
289
  phone_nos?: {
290
290
  name: string;
291
+ doctype: string;
291
292
  owner: string;
292
293
  creation: string;
293
294
  modified: string;
@@ -297,7 +298,6 @@ export declare class ERPNextContact {
297
298
  parenttype: string;
298
299
  idx: number;
299
300
  docstatus: number;
300
- doctype: string;
301
301
  phone: string;
302
302
  is_primary_phone: boolean;
303
303
  is_primary_mobile_no: boolean;
@@ -310,6 +310,7 @@ export declare class ERPNextContact {
310
310
  constructor(temporalClient: TemporalClient);
311
311
  getContactsByAddressEmail: <K extends keyof (typeof Contact)["_type"]>(email: string, fields?: K[]) => Promise<Pick<{
312
312
  name: string;
313
+ doctype: string;
313
314
  email_id: string;
314
315
  owner: string;
315
316
  creation: string;
@@ -317,10 +318,10 @@ export declare class ERPNextContact {
317
318
  modified_by: string;
318
319
  idx: number;
319
320
  docstatus: number;
320
- doctype: string;
321
321
  first_name: string;
322
322
  email_ids: {
323
323
  name: string;
324
+ doctype: string;
324
325
  email_id: string;
325
326
  owner: string;
326
327
  creation: string;
@@ -331,7 +332,6 @@ export declare class ERPNextContact {
331
332
  parenttype: string;
332
333
  idx: number;
333
334
  docstatus: number;
334
- doctype: string;
335
335
  is_primary: boolean;
336
336
  }[];
337
337
  sync_with_google_contacts: number;
@@ -342,6 +342,7 @@ export declare class ERPNextContact {
342
342
  status?: string | null | undefined;
343
343
  links?: {
344
344
  name: string;
345
+ doctype: string;
345
346
  link_doctype: string;
346
347
  link_name: string;
347
348
  owner: string;
@@ -354,7 +355,6 @@ export declare class ERPNextContact {
354
355
  idx: number;
355
356
  docstatus: number;
356
357
  link_title: string;
357
- doctype: string;
358
358
  }[] | null | undefined;
359
359
  phone?: string | null | undefined;
360
360
  image?: string | null | undefined;
@@ -364,6 +364,7 @@ export declare class ERPNextContact {
364
364
  mobile_no?: string | null | undefined;
365
365
  phone_nos?: {
366
366
  name: string;
367
+ doctype: string;
367
368
  owner: string;
368
369
  creation: string;
369
370
  modified: string;
@@ -373,7 +374,6 @@ export declare class ERPNextContact {
373
374
  parenttype: string;
374
375
  idx: number;
375
376
  docstatus: number;
376
- doctype: string;
377
377
  phone: string;
378
378
  is_primary_phone: boolean;
379
379
  is_primary_mobile_no: boolean;
@@ -381,6 +381,7 @@ export declare class ERPNextContact {
381
381
  }, K>[]>;
382
382
  create: (contact: Omit<ContactPostBodyType, "links">, customerName: string) => Promise<{
383
383
  name: string;
384
+ doctype: string;
384
385
  email_id: string;
385
386
  owner: string;
386
387
  creation: string;
@@ -388,10 +389,10 @@ export declare class ERPNextContact {
388
389
  modified_by: string;
389
390
  idx: number;
390
391
  docstatus: number;
391
- doctype: string;
392
392
  first_name: string;
393
393
  email_ids: {
394
394
  name: string;
395
+ doctype: string;
395
396
  email_id: string;
396
397
  owner: string;
397
398
  creation: string;
@@ -402,7 +403,6 @@ export declare class ERPNextContact {
402
403
  parenttype: string;
403
404
  idx: number;
404
405
  docstatus: number;
405
- doctype: string;
406
406
  is_primary: boolean;
407
407
  }[];
408
408
  sync_with_google_contacts: number;
@@ -413,6 +413,7 @@ export declare class ERPNextContact {
413
413
  status?: string | null | undefined;
414
414
  links?: {
415
415
  name: string;
416
+ doctype: string;
416
417
  link_doctype: string;
417
418
  link_name: string;
418
419
  owner: string;
@@ -425,7 +426,6 @@ export declare class ERPNextContact {
425
426
  idx: number;
426
427
  docstatus: number;
427
428
  link_title: string;
428
- doctype: string;
429
429
  }[] | null | undefined;
430
430
  phone?: string | null | undefined;
431
431
  image?: string | null | undefined;
@@ -435,6 +435,7 @@ export declare class ERPNextContact {
435
435
  mobile_no?: string | null | undefined;
436
436
  phone_nos?: {
437
437
  name: string;
438
+ doctype: string;
438
439
  owner: string;
439
440
  creation: string;
440
441
  modified: string;
@@ -444,7 +445,6 @@ export declare class ERPNextContact {
444
445
  parenttype: string;
445
446
  idx: number;
446
447
  docstatus: number;
447
- doctype: string;
448
448
  phone: string;
449
449
  is_primary_phone: boolean;
450
450
  is_primary_mobile_no: boolean;