erpnext-queue-client 1.0.4 → 1.0.6

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.d.ts +6 -16
  2. package/dist/client.js +14 -39
  3. package/dist/erpnext/decryptFromErpNext.server.js +1 -1
  4. package/dist/erpnext/decryptFromErpNext.server.test.js +3 -3
  5. package/dist/erpnext/doctypes/country.d.ts +9 -0
  6. package/dist/erpnext/doctypes/country.js +28 -0
  7. package/dist/erpnext/erpnextRequests.d.ts +1 -1786
  8. package/dist/erpnext/erpnextRequests.js +13 -337
  9. package/dist/erpnext/model/Address.d.ts +48 -48
  10. package/dist/erpnext/model/Contact.d.ts +106 -106
  11. package/dist/erpnext/model/Country.d.ts +2 -2
  12. package/dist/erpnext/model/Customer.d.ts +4 -4
  13. package/dist/erpnext/model/DeliveryNote.d.ts +176 -176
  14. package/dist/erpnext/model/DispatchRun.d.ts +90 -90
  15. package/dist/erpnext/model/DispatcherPreset.d.ts +26 -26
  16. package/dist/erpnext/model/ERPNextQueue.d.ts +8 -7
  17. package/dist/erpnext/model/ERPNextRequest.d.ts +17 -0
  18. package/dist/erpnext/model/File.d.ts +4 -4
  19. package/dist/erpnext/model/Fulfiller.d.ts +11 -11
  20. package/dist/erpnext/model/FulfillerSettings.d.ts +6 -6
  21. package/dist/erpnext/model/Item.d.ts +204 -204
  22. package/dist/erpnext/model/ProjectedQuantityReport.d.ts +14 -14
  23. package/dist/erpnext/model/PurchaseOrder.d.ts +112 -112
  24. package/dist/erpnext/model/Receipt.d.ts +104 -104
  25. package/dist/erpnext/model/ReceiptDraft.d.ts +88 -88
  26. package/dist/erpnext/model/Shipment.d.ts +157 -157
  27. package/dist/erpnext/model/ShippingProvider.d.ts +23 -23
  28. package/dist/erpnext/resourceRequest.d.ts +16 -0
  29. package/dist/erpnext/resourceRequest.js +34 -0
  30. package/dist/erpnext.d.ts +20 -0
  31. package/dist/erpnext.js +45 -0
  32. package/dist/index.d.ts +17 -1
  33. package/dist/index.js +21 -12
  34. package/package.json +1 -1
@@ -95,31 +95,31 @@ export declare const Contact: z.ZodObject<{
95
95
  doctype: z.ZodString;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  name?: string;
98
- email_id?: string;
99
- owner?: string;
100
98
  creation?: string;
101
99
  modified?: string;
102
100
  modified_by?: string;
103
- parent?: string;
104
- parentfield?: string;
105
- parenttype?: string;
106
101
  idx?: number;
107
102
  docstatus?: number;
108
103
  doctype?: string;
104
+ email_id?: string;
105
+ owner?: string;
106
+ parent?: string;
107
+ parentfield?: string;
108
+ parenttype?: string;
109
109
  is_primary?: boolean;
110
110
  }, {
111
111
  name?: string;
112
- email_id?: string;
113
- owner?: string;
114
112
  creation?: string;
115
113
  modified?: string;
116
114
  modified_by?: string;
117
- parent?: string;
118
- parentfield?: string;
119
- parenttype?: string;
120
115
  idx?: number;
121
116
  docstatus?: number;
122
117
  doctype?: string;
118
+ email_id?: string;
119
+ owner?: string;
120
+ parent?: string;
121
+ parentfield?: string;
122
+ parenttype?: string;
123
123
  is_primary?: number;
124
124
  }>, "many">;
125
125
  phone_nos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -139,31 +139,31 @@ export declare const Contact: z.ZodObject<{
139
139
  doctype: z.ZodString;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  name?: string;
142
- owner?: string;
143
142
  creation?: string;
144
143
  modified?: string;
145
144
  modified_by?: string;
146
- parent?: string;
147
- parentfield?: string;
148
- parenttype?: string;
149
145
  idx?: number;
150
146
  docstatus?: number;
151
147
  doctype?: string;
148
+ owner?: string;
149
+ parent?: string;
150
+ parentfield?: string;
151
+ parenttype?: string;
152
152
  phone?: string;
153
153
  is_primary_phone?: boolean;
154
154
  is_primary_mobile_no?: boolean;
155
155
  }, {
156
156
  name?: string;
157
- owner?: string;
158
157
  creation?: string;
159
158
  modified?: string;
160
159
  modified_by?: string;
161
- parent?: string;
162
- parentfield?: string;
163
- parenttype?: string;
164
160
  idx?: number;
165
161
  docstatus?: number;
166
162
  doctype?: string;
163
+ owner?: string;
164
+ parent?: string;
165
+ parentfield?: string;
166
+ parenttype?: string;
167
167
  phone?: string;
168
168
  is_primary_phone?: number;
169
169
  is_primary_mobile_no?: number;
@@ -185,82 +185,82 @@ export declare const Contact: z.ZodObject<{
185
185
  doctype: z.ZodString;
186
186
  }, "strip", z.ZodTypeAny, {
187
187
  name?: string;
188
- link_doctype?: string;
189
- link_name?: string;
190
- owner?: string;
191
188
  creation?: string;
192
189
  modified?: string;
193
190
  modified_by?: string;
194
- parent?: string;
195
- parentfield?: string;
196
- parenttype?: string;
197
191
  idx?: number;
198
192
  docstatus?: number;
199
- link_title?: string;
200
193
  doctype?: string;
201
- }, {
202
- name?: string;
203
194
  link_doctype?: string;
204
195
  link_name?: string;
205
196
  owner?: string;
197
+ parent?: string;
198
+ parentfield?: string;
199
+ parenttype?: string;
200
+ link_title?: string;
201
+ }, {
202
+ name?: string;
206
203
  creation?: string;
207
204
  modified?: string;
208
205
  modified_by?: string;
206
+ idx?: number;
207
+ docstatus?: number;
208
+ doctype?: string;
209
+ link_doctype?: string;
210
+ link_name?: string;
211
+ owner?: string;
209
212
  parent?: string;
210
213
  parentfield?: string;
211
214
  parenttype?: string;
212
- idx?: number;
213
- docstatus?: number;
214
215
  link_title?: string;
215
- doctype?: string;
216
216
  }>, "many">>>;
217
217
  }, "strip", z.ZodTypeAny, {
218
218
  status?: string;
219
219
  name?: string;
220
+ creation?: string;
221
+ modified?: string;
222
+ modified_by?: string;
223
+ idx?: number;
224
+ docstatus?: number;
225
+ doctype?: string;
220
226
  email_id?: string;
221
227
  links?: {
222
228
  name?: string;
223
- link_doctype?: string;
224
- link_name?: string;
225
- owner?: string;
226
229
  creation?: string;
227
230
  modified?: string;
228
231
  modified_by?: string;
232
+ idx?: number;
233
+ docstatus?: number;
234
+ doctype?: string;
235
+ link_doctype?: string;
236
+ link_name?: string;
237
+ owner?: string;
229
238
  parent?: string;
230
239
  parentfield?: string;
231
240
  parenttype?: string;
232
- idx?: number;
233
- docstatus?: number;
234
241
  link_title?: string;
235
- doctype?: string;
236
242
  }[];
237
243
  owner?: string;
238
- creation?: string;
239
- modified?: string;
240
- modified_by?: string;
241
- idx?: number;
242
- docstatus?: number;
243
- doctype?: string;
244
244
  phone?: string;
245
- company?: string;
246
245
  first_name?: string;
247
246
  last_name?: string;
248
247
  email_ids?: {
249
248
  name?: string;
250
- email_id?: string;
251
- owner?: string;
252
249
  creation?: string;
253
250
  modified?: string;
254
251
  modified_by?: string;
255
- parent?: string;
256
- parentfield?: string;
257
- parenttype?: string;
258
252
  idx?: number;
259
253
  docstatus?: number;
260
254
  doctype?: string;
255
+ email_id?: string;
256
+ owner?: string;
257
+ parent?: string;
258
+ parentfield?: string;
259
+ parenttype?: string;
261
260
  is_primary?: boolean;
262
261
  }[];
263
262
  middle_name?: string;
263
+ company?: string;
264
264
  sync_with_google_contacts?: number;
265
265
  mobile_no?: string;
266
266
  image?: string;
@@ -270,16 +270,16 @@ export declare const Contact: z.ZodObject<{
270
270
  unsubscribed?: boolean;
271
271
  phone_nos?: {
272
272
  name?: string;
273
- owner?: string;
274
273
  creation?: string;
275
274
  modified?: string;
276
275
  modified_by?: string;
277
- parent?: string;
278
- parentfield?: string;
279
- parenttype?: string;
280
276
  idx?: number;
281
277
  docstatus?: number;
282
278
  doctype?: string;
279
+ owner?: string;
280
+ parent?: string;
281
+ parentfield?: string;
282
+ parenttype?: string;
283
283
  phone?: string;
284
284
  is_primary_phone?: boolean;
285
285
  is_primary_mobile_no?: boolean;
@@ -287,50 +287,50 @@ export declare const Contact: z.ZodObject<{
287
287
  }, {
288
288
  status?: string;
289
289
  name?: string;
290
+ creation?: string;
291
+ modified?: string;
292
+ modified_by?: string;
293
+ idx?: number;
294
+ docstatus?: number;
295
+ doctype?: string;
290
296
  email_id?: string;
291
297
  links?: {
292
298
  name?: string;
293
- link_doctype?: string;
294
- link_name?: string;
295
- owner?: string;
296
299
  creation?: string;
297
300
  modified?: string;
298
301
  modified_by?: string;
302
+ idx?: number;
303
+ docstatus?: number;
304
+ doctype?: string;
305
+ link_doctype?: string;
306
+ link_name?: string;
307
+ owner?: string;
299
308
  parent?: string;
300
309
  parentfield?: string;
301
310
  parenttype?: string;
302
- idx?: number;
303
- docstatus?: number;
304
311
  link_title?: string;
305
- doctype?: string;
306
312
  }[];
307
313
  owner?: string;
308
- creation?: string;
309
- modified?: string;
310
- modified_by?: string;
311
- idx?: number;
312
- docstatus?: number;
313
- doctype?: string;
314
314
  phone?: string;
315
- company?: string;
316
315
  first_name?: string;
317
316
  last_name?: string;
318
317
  email_ids?: {
319
318
  name?: string;
320
- email_id?: string;
321
- owner?: string;
322
319
  creation?: string;
323
320
  modified?: string;
324
321
  modified_by?: string;
325
- parent?: string;
326
- parentfield?: string;
327
- parenttype?: string;
328
322
  idx?: number;
329
323
  docstatus?: number;
330
324
  doctype?: string;
325
+ email_id?: string;
326
+ owner?: string;
327
+ parent?: string;
328
+ parentfield?: string;
329
+ parenttype?: string;
331
330
  is_primary?: number;
332
331
  }[];
333
332
  middle_name?: string;
333
+ company?: string;
334
334
  sync_with_google_contacts?: number;
335
335
  mobile_no?: string;
336
336
  image?: string;
@@ -340,16 +340,16 @@ export declare const Contact: z.ZodObject<{
340
340
  unsubscribed?: number;
341
341
  phone_nos?: {
342
342
  name?: string;
343
- owner?: string;
344
343
  creation?: string;
345
344
  modified?: string;
346
345
  modified_by?: string;
347
- parent?: string;
348
- parentfield?: string;
349
- parenttype?: string;
350
346
  idx?: number;
351
347
  docstatus?: number;
352
348
  doctype?: string;
349
+ owner?: string;
350
+ parent?: string;
351
+ parentfield?: string;
352
+ parenttype?: string;
353
353
  phone?: string;
354
354
  is_primary_phone?: number;
355
355
  is_primary_mobile_no?: number;
@@ -394,31 +394,31 @@ export declare const ContactListName: z.ZodArray<z.ZodObject<Pick<{
394
394
  doctype: z.ZodString;
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  name?: string;
397
- email_id?: string;
398
- owner?: string;
399
397
  creation?: string;
400
398
  modified?: string;
401
399
  modified_by?: string;
402
- parent?: string;
403
- parentfield?: string;
404
- parenttype?: string;
405
400
  idx?: number;
406
401
  docstatus?: number;
407
402
  doctype?: string;
403
+ email_id?: string;
404
+ owner?: string;
405
+ parent?: string;
406
+ parentfield?: string;
407
+ parenttype?: string;
408
408
  is_primary?: boolean;
409
409
  }, {
410
410
  name?: string;
411
- email_id?: string;
412
- owner?: string;
413
411
  creation?: string;
414
412
  modified?: string;
415
413
  modified_by?: string;
416
- parent?: string;
417
- parentfield?: string;
418
- parenttype?: string;
419
414
  idx?: number;
420
415
  docstatus?: number;
421
416
  doctype?: string;
417
+ email_id?: string;
418
+ owner?: string;
419
+ parent?: string;
420
+ parentfield?: string;
421
+ parenttype?: string;
422
422
  is_primary?: number;
423
423
  }>, "many">;
424
424
  phone_nos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -438,31 +438,31 @@ export declare const ContactListName: z.ZodArray<z.ZodObject<Pick<{
438
438
  doctype: z.ZodString;
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  name?: string;
441
- owner?: string;
442
441
  creation?: string;
443
442
  modified?: string;
444
443
  modified_by?: string;
445
- parent?: string;
446
- parentfield?: string;
447
- parenttype?: string;
448
444
  idx?: number;
449
445
  docstatus?: number;
450
446
  doctype?: string;
447
+ owner?: string;
448
+ parent?: string;
449
+ parentfield?: string;
450
+ parenttype?: string;
451
451
  phone?: string;
452
452
  is_primary_phone?: boolean;
453
453
  is_primary_mobile_no?: boolean;
454
454
  }, {
455
455
  name?: string;
456
- owner?: string;
457
456
  creation?: string;
458
457
  modified?: string;
459
458
  modified_by?: string;
460
- parent?: string;
461
- parentfield?: string;
462
- parenttype?: string;
463
459
  idx?: number;
464
460
  docstatus?: number;
465
461
  doctype?: string;
462
+ owner?: string;
463
+ parent?: string;
464
+ parentfield?: string;
465
+ parenttype?: string;
466
466
  phone?: string;
467
467
  is_primary_phone?: number;
468
468
  is_primary_mobile_no?: number;
@@ -484,34 +484,34 @@ export declare const ContactListName: z.ZodArray<z.ZodObject<Pick<{
484
484
  doctype: z.ZodString;
485
485
  }, "strip", z.ZodTypeAny, {
486
486
  name?: string;
487
- link_doctype?: string;
488
- link_name?: string;
489
- owner?: string;
490
487
  creation?: string;
491
488
  modified?: string;
492
489
  modified_by?: string;
493
- parent?: string;
494
- parentfield?: string;
495
- parenttype?: string;
496
490
  idx?: number;
497
491
  docstatus?: number;
498
- link_title?: string;
499
492
  doctype?: string;
500
- }, {
501
- name?: string;
502
493
  link_doctype?: string;
503
494
  link_name?: string;
504
495
  owner?: string;
496
+ parent?: string;
497
+ parentfield?: string;
498
+ parenttype?: string;
499
+ link_title?: string;
500
+ }, {
501
+ name?: string;
505
502
  creation?: string;
506
503
  modified?: string;
507
504
  modified_by?: string;
505
+ idx?: number;
506
+ docstatus?: number;
507
+ doctype?: string;
508
+ link_doctype?: string;
509
+ link_name?: string;
510
+ owner?: string;
508
511
  parent?: string;
509
512
  parentfield?: string;
510
513
  parenttype?: string;
511
- idx?: number;
512
- docstatus?: number;
513
514
  link_title?: string;
514
- doctype?: string;
515
515
  }>, "many">>>;
516
516
  }, "name">, "strip", z.ZodTypeAny, {
517
517
  name?: string;
@@ -530,16 +530,16 @@ export declare const ShipstormContact: z.ZodObject<{
530
530
  }, "strip", z.ZodTypeAny, {
531
531
  email_id?: string;
532
532
  phone?: string;
533
- company?: string;
534
533
  first_name?: string;
535
534
  last_name?: string;
535
+ company?: string;
536
536
  mobile_no?: string;
537
537
  }, {
538
538
  email_id?: string;
539
539
  phone?: string;
540
- company?: string;
541
540
  first_name?: string;
542
541
  last_name?: string;
542
+ company?: string;
543
543
  mobile_no?: string;
544
544
  }>;
545
545
  export type ShipstormContactType = z.infer<typeof ShipstormContact>;
@@ -20,11 +20,11 @@ export declare const Country: z.ZodObject<{
20
20
  modified_by?: string;
21
21
  idx?: number;
22
22
  docstatus?: number;
23
- doctype?: string;
24
23
  country_name?: string;
25
24
  date_format?: string;
26
25
  time_format?: string;
27
26
  time_zones?: string;
27
+ doctype?: string;
28
28
  }, {
29
29
  code?: string;
30
30
  name?: string;
@@ -33,11 +33,11 @@ export declare const Country: z.ZodObject<{
33
33
  modified_by?: string;
34
34
  idx?: number;
35
35
  docstatus?: number;
36
- doctype?: string;
37
36
  country_name?: string;
38
37
  date_format?: string;
39
38
  time_format?: string;
40
39
  time_zones?: string;
40
+ doctype?: string;
41
41
  }>;
42
42
  export declare const CountryList: (fields: string[]) => z.ZodArray<z.ZodObject<Pick<{
43
43
  name: z.ZodString;
@@ -42,18 +42,18 @@ export declare const Customer: z.ZodObject<{
42
42
  sales_team: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodString>, "many">>>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  name?: string;
45
- owner?: string;
46
45
  creation?: string;
47
46
  modified?: string;
48
47
  modified_by?: string;
49
48
  idx?: number;
50
49
  docstatus?: number;
51
50
  doctype?: string;
51
+ owner?: string;
52
52
  disabled?: boolean;
53
- naming_series?: string;
54
53
  customer_name?: string;
55
54
  customer_type?: string;
56
55
  customer_group?: string;
56
+ naming_series?: string;
57
57
  territory?: string;
58
58
  so_required?: boolean;
59
59
  dn_required?: boolean;
@@ -69,18 +69,18 @@ export declare const Customer: z.ZodObject<{
69
69
  sales_team?: string[];
70
70
  }, {
71
71
  name?: string;
72
- owner?: string;
73
72
  creation?: string;
74
73
  modified?: string;
75
74
  modified_by?: string;
76
75
  idx?: number;
77
76
  docstatus?: number;
78
77
  doctype?: string;
78
+ owner?: string;
79
79
  disabled?: number;
80
- naming_series?: string;
81
80
  customer_name?: string;
82
81
  customer_type?: string;
83
82
  customer_group?: string;
83
+ naming_series?: string;
84
84
  territory?: string;
85
85
  so_required?: number;
86
86
  dn_required?: number;