@unifetch/fortnox 2.2.0 → 2.3.1

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 (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +241 -183
  3. package/dist/create-fortnox-mini-COurqL1e.d.mts +24524 -0
  4. package/dist/create-fortnox-mini-COurqL1e.d.mts.map +1 -0
  5. package/dist/create-fortnox-mini-DfNjIlYm.d.cts +24524 -0
  6. package/dist/create-fortnox-mini-DfNjIlYm.d.cts.map +1 -0
  7. package/dist/{index-B1gsa8-e.d.mts → index-IeYuLkvO.d.mts} +15 -4
  8. package/dist/index-IeYuLkvO.d.mts.map +1 -0
  9. package/dist/{index-C_4EXYAu.d.cts → index-hOzXwnXm.d.cts} +15 -4
  10. package/dist/index-hOzXwnXm.d.cts.map +1 -0
  11. package/dist/index.cjs +1660 -3
  12. package/dist/index.cjs.map +1 -0
  13. package/dist/index.d.cts +1676 -2
  14. package/dist/index.d.cts.map +1 -0
  15. package/dist/index.d.mts +1676 -2
  16. package/dist/index.d.mts.map +1 -0
  17. package/dist/index.mjs +1660 -2
  18. package/dist/index.mjs.map +1 -0
  19. package/dist/mini.cjs +27 -0
  20. package/dist/mini.cjs.map +1 -0
  21. package/dist/mini.d.cts +16 -0
  22. package/dist/mini.d.cts.map +1 -0
  23. package/dist/mini.d.mts +16 -0
  24. package/dist/mini.d.mts.map +1 -0
  25. package/dist/mini.mjs +26 -0
  26. package/dist/mini.mjs.map +1 -0
  27. package/dist/request-DyylPAyE.mjs +66 -0
  28. package/dist/request-DyylPAyE.mjs.map +1 -0
  29. package/dist/request-QlzK3EWz.cjs +78 -0
  30. package/dist/request-QlzK3EWz.cjs.map +1 -0
  31. package/dist/types/custom/index.d.cts +1 -1
  32. package/dist/types/custom/index.d.mts +1 -1
  33. package/package.json +4 -9
  34. package/dist/create-fortnox-C0kWSxNm.d.mts +0 -1703
  35. package/dist/create-fortnox-C0kWSxNm.d.mts.map +0 -1
  36. package/dist/create-fortnox-D9s3VXSg.d.cts +0 -1703
  37. package/dist/create-fortnox-D9s3VXSg.d.cts.map +0 -1
  38. package/dist/create-fortnox-mini-CNEKEVs1.cjs +0 -1745
  39. package/dist/create-fortnox-mini-CNEKEVs1.cjs.map +0 -1
  40. package/dist/create-fortnox-mini-zGxET1Vm.mjs +0 -1733
  41. package/dist/create-fortnox-mini-zGxET1Vm.mjs.map +0 -1
  42. package/dist/index-B1gsa8-e.d.mts.map +0 -1
  43. package/dist/index-C_4EXYAu.d.cts.map +0 -1
  44. package/dist/official.cjs +0 -11
  45. package/dist/official.cjs.map +0 -1
  46. package/dist/official.d.cts +0 -12271
  47. package/dist/official.d.cts.map +0 -1
  48. package/dist/official.d.mts +0 -12271
  49. package/dist/official.d.mts.map +0 -1
  50. package/dist/official.mjs +0 -9
  51. package/dist/official.mjs.map +0 -1
  52. package/dist/patched-C9Vb7H1N.d.cts +0 -12268
  53. package/dist/patched-C9Vb7H1N.d.cts.map +0 -1
  54. package/dist/patched-CChAT2O0.d.mts +0 -12268
  55. package/dist/patched-CChAT2O0.d.mts.map +0 -1
  56. package/dist/patched.cjs +0 -11
  57. package/dist/patched.cjs.map +0 -1
  58. package/dist/patched.d.cts +0 -2
  59. package/dist/patched.d.mts +0 -2
  60. package/dist/patched.mjs +0 -9
  61. package/dist/patched.mjs.map +0 -1
  62. package/dist/utility-types-CXs8tUw_.d.mts +0 -15
  63. package/dist/utility-types-CXs8tUw_.d.mts.map +0 -1
  64. package/dist/utility-types-DLzshE5r.d.cts +0 -15
  65. package/dist/utility-types-DLzshE5r.d.cts.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,5 +1,1662 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_patched = require('./patched.cjs');
2
+ const require_request = require('./request-QlzK3EWz.cjs');
3
3
 
4
- exports.initFortnox = require_patched.initFortnox;
5
- exports.initFortnoxMini = require_patched.initFortnoxMini;
4
+ //#region src/types/resource-operations.gen.ts
5
+ const RESOURCE_OPERATIONS = {
6
+ absencetransactions: {
7
+ getList: {
8
+ path: "/3/absencetransactions",
9
+ method: "get"
10
+ },
11
+ create: {
12
+ path: "/3/absencetransactions",
13
+ method: "post"
14
+ },
15
+ get: {
16
+ path: "/3/absencetransactions/{id}",
17
+ method: "get"
18
+ },
19
+ update: {
20
+ path: "/3/absencetransactions/{id}",
21
+ method: "put"
22
+ },
23
+ delete: {
24
+ path: "/3/absencetransactions/{id}",
25
+ method: "delete"
26
+ },
27
+ listByEmployeeDateCode: {
28
+ path: "/3/absencetransactions/{id}/{Date}/{Code}",
29
+ method: "get"
30
+ }
31
+ },
32
+ accountcharts: { getList: {
33
+ path: "/3/accountcharts",
34
+ method: "get"
35
+ } },
36
+ accounts: {
37
+ getList: {
38
+ path: "/3/accounts",
39
+ method: "get"
40
+ },
41
+ create: {
42
+ path: "/3/accounts",
43
+ method: "post"
44
+ },
45
+ get: {
46
+ path: "/3/accounts/{Number}",
47
+ method: "get"
48
+ },
49
+ update: {
50
+ path: "/3/accounts/{Number}",
51
+ method: "put"
52
+ },
53
+ delete: {
54
+ path: "/3/accounts/{Number}",
55
+ method: "delete"
56
+ }
57
+ },
58
+ archive: {
59
+ getByPath: {
60
+ path: "/3/archive",
61
+ method: "get"
62
+ },
63
+ upload: {
64
+ path: "/3/archive",
65
+ method: "post"
66
+ },
67
+ deleteByPath: {
68
+ path: "/3/archive",
69
+ method: "delete"
70
+ },
71
+ getById: {
72
+ path: "/3/archive/{id}",
73
+ method: "get"
74
+ },
75
+ deleteById: {
76
+ path: "/3/archive/{id}",
77
+ method: "delete"
78
+ }
79
+ },
80
+ articlefileconnections: {
81
+ getList: {
82
+ path: "/3/articlefileconnections",
83
+ method: "get"
84
+ },
85
+ create: {
86
+ path: "/3/articlefileconnections",
87
+ method: "post"
88
+ },
89
+ get: {
90
+ path: "/3/articlefileconnections/{FileId}",
91
+ method: "get"
92
+ },
93
+ delete: {
94
+ path: "/3/articlefileconnections/{FileId}",
95
+ method: "delete"
96
+ }
97
+ },
98
+ articles: {
99
+ getList: {
100
+ path: "/3/articles",
101
+ method: "get"
102
+ },
103
+ create: {
104
+ path: "/3/articles",
105
+ method: "post"
106
+ },
107
+ get: {
108
+ path: "/3/articles/{ArticleNumber}",
109
+ method: "get"
110
+ },
111
+ update: {
112
+ path: "/3/articles/{ArticleNumber}",
113
+ method: "put"
114
+ },
115
+ delete: {
116
+ path: "/3/articles/{ArticleNumber}",
117
+ method: "delete"
118
+ }
119
+ },
120
+ articleurlconnections: {
121
+ getList: {
122
+ path: "/3/articleurlconnections",
123
+ method: "get"
124
+ },
125
+ create: {
126
+ path: "/3/articleurlconnections",
127
+ method: "post"
128
+ },
129
+ get: {
130
+ path: "/3/articleurlconnections/{id}",
131
+ method: "get"
132
+ },
133
+ update: {
134
+ path: "/3/articleurlconnections/{id}",
135
+ method: "put"
136
+ },
137
+ delete: {
138
+ path: "/3/articleurlconnections/{id}",
139
+ method: "delete"
140
+ }
141
+ },
142
+ assetfileconnections: {
143
+ getList: {
144
+ path: "/3/assetfileconnections",
145
+ method: "get"
146
+ },
147
+ create: {
148
+ path: "/3/assetfileconnections",
149
+ method: "post"
150
+ },
151
+ delete: {
152
+ path: "/3/assetfileconnections/{FileId}",
153
+ method: "delete"
154
+ }
155
+ },
156
+ assets: {
157
+ getList: {
158
+ path: "/3/assets",
159
+ method: "get"
160
+ },
161
+ create: {
162
+ path: "/3/assets",
163
+ method: "post"
164
+ },
165
+ changeOb: {
166
+ path: "/3/assets/changeob/{Id}",
167
+ method: "put"
168
+ },
169
+ depreciate: {
170
+ path: "/3/assets/depreciate",
171
+ method: "post"
172
+ },
173
+ listDepreciations: {
174
+ path: "/3/assets/depreciations/{ToDate}",
175
+ method: "get"
176
+ },
177
+ scrap: {
178
+ path: "/3/assets/scrap/{Id}",
179
+ method: "put"
180
+ },
181
+ sell: {
182
+ path: "/3/assets/sell/{Id}",
183
+ method: "put"
184
+ },
185
+ listTypes: {
186
+ path: "/3/assets/types",
187
+ method: "get"
188
+ },
189
+ createType: {
190
+ path: "/3/assets/types",
191
+ method: "post"
192
+ },
193
+ getType: {
194
+ path: "/3/assets/types/{id}",
195
+ method: "get"
196
+ },
197
+ updateType: {
198
+ path: "/3/assets/types/{id}",
199
+ method: "put"
200
+ },
201
+ deleteType: {
202
+ path: "/3/assets/types/{id}",
203
+ method: "delete"
204
+ },
205
+ writeDown: {
206
+ path: "/3/assets/writedown/{Id}",
207
+ method: "put"
208
+ },
209
+ writeUp: {
210
+ path: "/3/assets/writeup/{Id}",
211
+ method: "put"
212
+ },
213
+ get: {
214
+ path: "/3/assets/{Id}",
215
+ method: "get"
216
+ },
217
+ update: {
218
+ path: "/3/assets/{Id}",
219
+ method: "put"
220
+ },
221
+ delete: {
222
+ path: "/3/assets/{Id}",
223
+ method: "delete"
224
+ }
225
+ },
226
+ attendancetransactions: {
227
+ getList: {
228
+ path: "/3/attendancetransactions",
229
+ method: "get"
230
+ },
231
+ create: {
232
+ path: "/3/attendancetransactions",
233
+ method: "post"
234
+ },
235
+ get: {
236
+ path: "/3/attendancetransactions/{id}",
237
+ method: "get"
238
+ },
239
+ update: {
240
+ path: "/3/attendancetransactions/{id}",
241
+ method: "put"
242
+ },
243
+ delete: {
244
+ path: "/3/attendancetransactions/{id}",
245
+ method: "delete"
246
+ },
247
+ listByEmployeeDateCode: {
248
+ path: "/3/attendancetransactions/{id}/{Date}/{Code}",
249
+ method: "get"
250
+ }
251
+ },
252
+ companyinformation: { get: {
253
+ path: "/3/companyinformation",
254
+ method: "get"
255
+ } },
256
+ contractaccruals: {
257
+ getList: {
258
+ path: "/3/contractaccruals",
259
+ method: "get"
260
+ },
261
+ create: {
262
+ path: "/3/contractaccruals",
263
+ method: "post"
264
+ },
265
+ get: {
266
+ path: "/3/contractaccruals/{DocumentNumber}",
267
+ method: "get"
268
+ },
269
+ update: {
270
+ path: "/3/contractaccruals/{DocumentNumber}",
271
+ method: "put"
272
+ },
273
+ delete: {
274
+ path: "/3/contractaccruals/{DocumentNumber}",
275
+ method: "delete"
276
+ }
277
+ },
278
+ contracts: {
279
+ getList: {
280
+ path: "/3/contracts",
281
+ method: "get"
282
+ },
283
+ create: {
284
+ path: "/3/contracts",
285
+ method: "post"
286
+ },
287
+ get: {
288
+ path: "/3/contracts/{DocumentNumber}",
289
+ method: "get"
290
+ },
291
+ update: {
292
+ path: "/3/contracts/{DocumentNumber}",
293
+ method: "put"
294
+ },
295
+ createInvoice: {
296
+ path: "/3/contracts/{DocumentNumber}/createinvoice",
297
+ method: "put"
298
+ },
299
+ finish: {
300
+ path: "/3/contracts/{DocumentNumber}/finish",
301
+ method: "put"
302
+ },
303
+ increaseInvoiceCount: {
304
+ path: "/3/contracts/{DocumentNumber}/increaseinvoicecount",
305
+ method: "put"
306
+ }
307
+ },
308
+ contracttemplates: {
309
+ getList: {
310
+ path: "/3/contracttemplates",
311
+ method: "get"
312
+ },
313
+ create: {
314
+ path: "/3/contracttemplates",
315
+ method: "post"
316
+ },
317
+ get: {
318
+ path: "/3/contracttemplates/{TemplateNumber}",
319
+ method: "get"
320
+ },
321
+ update: {
322
+ path: "/3/contracttemplates/{TemplateNumber}",
323
+ method: "put"
324
+ }
325
+ },
326
+ costcenters: {
327
+ getList: {
328
+ path: "/3/costcenters",
329
+ method: "get"
330
+ },
331
+ create: {
332
+ path: "/3/costcenters",
333
+ method: "post"
334
+ },
335
+ get: {
336
+ path: "/3/costcenters/{Code}",
337
+ method: "get"
338
+ },
339
+ update: {
340
+ path: "/3/costcenters/{Code}",
341
+ method: "put"
342
+ },
343
+ delete: {
344
+ path: "/3/costcenters/{Code}",
345
+ method: "delete"
346
+ }
347
+ },
348
+ currencies: {
349
+ getList: {
350
+ path: "/3/currencies",
351
+ method: "get"
352
+ },
353
+ create: {
354
+ path: "/3/currencies",
355
+ method: "post"
356
+ },
357
+ get: {
358
+ path: "/3/currencies/{Code}",
359
+ method: "get"
360
+ },
361
+ update: {
362
+ path: "/3/currencies/{Code}",
363
+ method: "put"
364
+ },
365
+ delete: {
366
+ path: "/3/currencies/{Code}",
367
+ method: "delete"
368
+ }
369
+ },
370
+ customerreferences: {
371
+ getList: {
372
+ path: "/3/customerreferences",
373
+ method: "get"
374
+ },
375
+ create: {
376
+ path: "/3/customerreferences",
377
+ method: "post"
378
+ },
379
+ get: {
380
+ path: "/3/customerreferences/{CustomerReferenceRowId}",
381
+ method: "get"
382
+ },
383
+ update: {
384
+ path: "/3/customerreferences/{CustomerReferenceRowId}",
385
+ method: "put"
386
+ },
387
+ delete: {
388
+ path: "/3/customerreferences/{CustomerReferenceRowId}",
389
+ method: "delete"
390
+ }
391
+ },
392
+ customers: {
393
+ getList: {
394
+ path: "/3/customers",
395
+ method: "get"
396
+ },
397
+ create: {
398
+ path: "/3/customers",
399
+ method: "post"
400
+ },
401
+ get: {
402
+ path: "/3/customers/{CustomerNumber}",
403
+ method: "get"
404
+ },
405
+ update: {
406
+ path: "/3/customers/{CustomerNumber}",
407
+ method: "put"
408
+ },
409
+ delete: {
410
+ path: "/3/customers/{CustomerNumber}",
411
+ method: "delete"
412
+ }
413
+ },
414
+ emailsenders: {
415
+ getList: {
416
+ path: "/3/emailsenders",
417
+ method: "get"
418
+ },
419
+ addTrusted: {
420
+ path: "/3/emailsenders/trusted",
421
+ method: "post"
422
+ },
423
+ removeTrusted: {
424
+ path: "/3/emailsenders/trusted/{Id}",
425
+ method: "delete"
426
+ }
427
+ },
428
+ employees: {
429
+ getList: {
430
+ path: "/3/employees",
431
+ method: "get"
432
+ },
433
+ create: {
434
+ path: "/3/employees",
435
+ method: "post"
436
+ },
437
+ get: {
438
+ path: "/3/employees/{EmployeeId}",
439
+ method: "get"
440
+ },
441
+ update: {
442
+ path: "/3/employees/{EmployeeId}",
443
+ method: "put"
444
+ }
445
+ },
446
+ euvatlimitregulation: { get: {
447
+ path: "/3/euvatlimitregulation",
448
+ method: "get"
449
+ } },
450
+ expenses: {
451
+ getList: {
452
+ path: "/3/expenses",
453
+ method: "get"
454
+ },
455
+ create: {
456
+ path: "/3/expenses",
457
+ method: "post"
458
+ },
459
+ get: {
460
+ path: "/3/expenses/{ExpenseCode}",
461
+ method: "get"
462
+ }
463
+ },
464
+ fileattachments: {
465
+ getList: {
466
+ path: "/api/fileattachments/attachments-v1",
467
+ method: "get"
468
+ },
469
+ attach: {
470
+ path: "/api/fileattachments/attachments-v1",
471
+ method: "post"
472
+ },
473
+ getNumberOfAttachments: {
474
+ path: "/api/fileattachments/attachments-v1/numberofattachments",
475
+ method: "get"
476
+ },
477
+ validateIncludedOnSend: {
478
+ path: "/api/fileattachments/attachments-v1/validateincludedonsend",
479
+ method: "post"
480
+ },
481
+ update: {
482
+ path: "/api/fileattachments/attachments-v1/{attachmentId}",
483
+ method: "put"
484
+ },
485
+ detach: {
486
+ path: "/api/fileattachments/attachments-v1/{attachmentId}",
487
+ method: "delete"
488
+ }
489
+ },
490
+ financialyears: {
491
+ getList: {
492
+ path: "/3/financialyears",
493
+ method: "get"
494
+ },
495
+ create: {
496
+ path: "/3/financialyears",
497
+ method: "post"
498
+ },
499
+ get: {
500
+ path: "/3/financialyears/{Id}",
501
+ method: "get"
502
+ }
503
+ },
504
+ inbox: {
505
+ getList: {
506
+ path: "/3/inbox",
507
+ method: "get"
508
+ },
509
+ upload: {
510
+ path: "/3/inbox",
511
+ method: "post"
512
+ },
513
+ get: {
514
+ path: "/3/inbox/{Id}",
515
+ method: "get"
516
+ },
517
+ delete: {
518
+ path: "/3/inbox/{Id}",
519
+ method: "delete"
520
+ }
521
+ },
522
+ integrationDeveloper: {
523
+ listRatings: {
524
+ path: "/api/integration-developer/ratings-v1",
525
+ method: "get"
526
+ },
527
+ getSalesForIntegration: {
528
+ path: "/api/integration-developer/sales-v1/{integrationId}",
529
+ method: "get"
530
+ },
531
+ getUsersForIntegrationAndTenant: {
532
+ path: "/api/integration-developer/users/users-v1/{integrationId}/{tenantId}",
533
+ method: "get"
534
+ }
535
+ },
536
+ integrationPartner: {
537
+ getSalesForApp: {
538
+ path: "/api/integration-partner/apps/sales-v1/{appId}",
539
+ method: "get"
540
+ },
541
+ getSalesForAppAndTenant: {
542
+ path: "/api/integration-partner/apps/sales-v1/{appId}/{tenantId}",
543
+ method: "get"
544
+ }
545
+ },
546
+ invoiceaccruals: {
547
+ getList: {
548
+ path: "/3/invoiceaccruals",
549
+ method: "get"
550
+ },
551
+ create: {
552
+ path: "/3/invoiceaccruals",
553
+ method: "post"
554
+ },
555
+ get: {
556
+ path: "/3/invoiceaccruals/{InvoiceNumber}",
557
+ method: "get"
558
+ },
559
+ update: {
560
+ path: "/3/invoiceaccruals/{InvoiceNumber}",
561
+ method: "put"
562
+ },
563
+ delete: {
564
+ path: "/3/invoiceaccruals/{InvoiceNumber}",
565
+ method: "delete"
566
+ }
567
+ },
568
+ invoicepayments: {
569
+ getList: {
570
+ path: "/3/invoicepayments",
571
+ method: "get"
572
+ },
573
+ create: {
574
+ path: "/3/invoicepayments",
575
+ method: "post"
576
+ },
577
+ get: {
578
+ path: "/3/invoicepayments/{Number}",
579
+ method: "get"
580
+ },
581
+ update: {
582
+ path: "/3/invoicepayments/{Number}",
583
+ method: "put"
584
+ },
585
+ delete: {
586
+ path: "/3/invoicepayments/{Number}",
587
+ method: "delete"
588
+ },
589
+ bookkeep: {
590
+ path: "/3/invoicepayments/{Number}/bookkeep",
591
+ method: "put"
592
+ }
593
+ },
594
+ invoices: {
595
+ getList: {
596
+ path: "/3/invoices",
597
+ method: "get"
598
+ },
599
+ create: {
600
+ path: "/3/invoices",
601
+ method: "post"
602
+ },
603
+ get: {
604
+ path: "/3/invoices/{DocumentNumber}",
605
+ method: "get"
606
+ },
607
+ update: {
608
+ path: "/3/invoices/{DocumentNumber}",
609
+ method: "put"
610
+ },
611
+ bookkeep: {
612
+ path: "/3/invoices/{DocumentNumber}/bookkeep",
613
+ method: "put"
614
+ },
615
+ cancel: {
616
+ path: "/3/invoices/{DocumentNumber}/cancel",
617
+ method: "put"
618
+ },
619
+ credit: {
620
+ path: "/3/invoices/{DocumentNumber}/credit",
621
+ method: "put"
622
+ },
623
+ sendEinvoice: {
624
+ path: "/3/invoices/{DocumentNumber}/einvoice",
625
+ method: "get"
626
+ },
627
+ sendEmail: {
628
+ path: "/3/invoices/{DocumentNumber}/email",
629
+ method: "get"
630
+ },
631
+ sendEprint: {
632
+ path: "/3/invoices/{DocumentNumber}/eprint",
633
+ method: "get"
634
+ },
635
+ markAsSent: {
636
+ path: "/3/invoices/{DocumentNumber}/externalprint",
637
+ method: "put"
638
+ },
639
+ getPreview: {
640
+ path: "/3/invoices/{DocumentNumber}/preview",
641
+ method: "get"
642
+ },
643
+ print: {
644
+ path: "/3/invoices/{DocumentNumber}/print",
645
+ method: "get"
646
+ },
647
+ printReminder: {
648
+ path: "/3/invoices/{DocumentNumber}/printreminder",
649
+ method: "get"
650
+ },
651
+ setWarehouseReady: {
652
+ path: "/3/invoices/{DocumentNumber}/warehouseready",
653
+ method: "put"
654
+ }
655
+ },
656
+ labels: {
657
+ getList: {
658
+ path: "/3/labels",
659
+ method: "get"
660
+ },
661
+ create: {
662
+ path: "/3/labels",
663
+ method: "post"
664
+ },
665
+ update: {
666
+ path: "/3/labels/{Id}",
667
+ method: "put"
668
+ },
669
+ delete: {
670
+ path: "/3/labels/{Id}",
671
+ method: "delete"
672
+ }
673
+ },
674
+ me: { get: {
675
+ path: "/3/me",
676
+ method: "get"
677
+ } },
678
+ modesofpayments: {
679
+ getList: {
680
+ path: "/3/modesofpayments",
681
+ method: "get"
682
+ },
683
+ create: {
684
+ path: "/3/modesofpayments",
685
+ method: "post"
686
+ },
687
+ get: {
688
+ path: "/3/modesofpayments/{Code}",
689
+ method: "get"
690
+ },
691
+ update: {
692
+ path: "/3/modesofpayments/{Code}",
693
+ method: "put"
694
+ },
695
+ delete: {
696
+ path: "/3/modesofpayments/{Code}",
697
+ method: "delete"
698
+ }
699
+ },
700
+ noxfinansinvoices: {
701
+ send: {
702
+ path: "/3/noxfinansinvoices",
703
+ method: "post"
704
+ },
705
+ get: {
706
+ path: "/3/noxfinansinvoices/{InvoiceNumber}",
707
+ method: "get"
708
+ },
709
+ pause: {
710
+ path: "/3/noxfinansinvoices/{InvoiceNumber}/pause",
711
+ method: "put"
712
+ },
713
+ reportPayment: {
714
+ path: "/3/noxfinansinvoices/{InvoiceNumber}/report-payment",
715
+ method: "put"
716
+ },
717
+ stop: {
718
+ path: "/3/noxfinansinvoices/{InvoiceNumber}/stop",
719
+ method: "put"
720
+ },
721
+ takeFees: {
722
+ path: "/3/noxfinansinvoices/{InvoiceNumber}/take-fees",
723
+ method: "put"
724
+ },
725
+ unpause: {
726
+ path: "/3/noxfinansinvoices/{InvoiceNumber}/unpause",
727
+ method: "put"
728
+ }
729
+ },
730
+ offers: {
731
+ getList: {
732
+ path: "/3/offers",
733
+ method: "get"
734
+ },
735
+ create: {
736
+ path: "/3/offers",
737
+ method: "post"
738
+ },
739
+ get: {
740
+ path: "/3/offers/{DocumentNumber}",
741
+ method: "get"
742
+ },
743
+ update: {
744
+ path: "/3/offers/{DocumentNumber}",
745
+ method: "put"
746
+ },
747
+ cancel: {
748
+ path: "/3/offers/{DocumentNumber}/cancel",
749
+ method: "put"
750
+ },
751
+ createInvoice: {
752
+ path: "/3/offers/{DocumentNumber}/createinvoice",
753
+ method: "put"
754
+ },
755
+ createOrder: {
756
+ path: "/3/offers/{DocumentNumber}/createorder",
757
+ method: "put"
758
+ },
759
+ sendEmail: {
760
+ path: "/3/offers/{DocumentNumber}/email",
761
+ method: "get"
762
+ },
763
+ markAsSent: {
764
+ path: "/3/offers/{DocumentNumber}/externalprint",
765
+ method: "put"
766
+ },
767
+ getPreview: {
768
+ path: "/3/offers/{DocumentNumber}/preview",
769
+ method: "get"
770
+ },
771
+ print: {
772
+ path: "/3/offers/{DocumentNumber}/print",
773
+ method: "get"
774
+ }
775
+ },
776
+ orders: {
777
+ getList: {
778
+ path: "/3/orders",
779
+ method: "get"
780
+ },
781
+ create: {
782
+ path: "/3/orders",
783
+ method: "post"
784
+ },
785
+ get: {
786
+ path: "/3/orders/{DocumentNumber}",
787
+ method: "get"
788
+ },
789
+ update: {
790
+ path: "/3/orders/{DocumentNumber}",
791
+ method: "put"
792
+ },
793
+ cancel: {
794
+ path: "/3/orders/{DocumentNumber}/cancel",
795
+ method: "put"
796
+ },
797
+ createInvoice: {
798
+ path: "/3/orders/{DocumentNumber}/createinvoice",
799
+ method: "put"
800
+ },
801
+ sendEmail: {
802
+ path: "/3/orders/{DocumentNumber}/email",
803
+ method: "get"
804
+ },
805
+ markAsSent: {
806
+ path: "/3/orders/{DocumentNumber}/externalprint",
807
+ method: "put"
808
+ },
809
+ getPreview: {
810
+ path: "/3/orders/{DocumentNumber}/preview",
811
+ method: "get"
812
+ },
813
+ print: {
814
+ path: "/3/orders/{DocumentNumber}/print",
815
+ method: "get"
816
+ }
817
+ },
818
+ predefinedaccounts: {
819
+ getList: {
820
+ path: "/3/predefinedaccounts",
821
+ method: "get"
822
+ },
823
+ get: {
824
+ path: "/3/predefinedaccounts/{name}",
825
+ method: "get"
826
+ },
827
+ update: {
828
+ path: "/3/predefinedaccounts/{name}",
829
+ method: "put"
830
+ }
831
+ },
832
+ predefinedvoucherseries: {
833
+ getList: {
834
+ path: "/3/predefinedvoucherseries",
835
+ method: "get"
836
+ },
837
+ get: {
838
+ path: "/3/predefinedvoucherseries/{Name}",
839
+ method: "get"
840
+ },
841
+ update: {
842
+ path: "/3/predefinedvoucherseries/{Name}",
843
+ method: "put"
844
+ }
845
+ },
846
+ pricelists: {
847
+ getList: {
848
+ path: "/3/pricelists",
849
+ method: "get"
850
+ },
851
+ create: {
852
+ path: "/3/pricelists",
853
+ method: "post"
854
+ },
855
+ get: {
856
+ path: "/3/pricelists/{Code}",
857
+ method: "get"
858
+ },
859
+ update: {
860
+ path: "/3/pricelists/{Code}",
861
+ method: "put"
862
+ }
863
+ },
864
+ prices: {
865
+ getList: {
866
+ path: "/3/prices",
867
+ method: "get"
868
+ },
869
+ create: {
870
+ path: "/3/prices",
871
+ method: "post"
872
+ },
873
+ getSubList: {
874
+ path: "/3/prices/sublist/{PriceList}/{ArticleNumber}",
875
+ method: "get"
876
+ },
877
+ get: {
878
+ path: "/3/prices/{PriceList}/{ArticleNumber}",
879
+ method: "get"
880
+ },
881
+ update: {
882
+ path: "/3/prices/{PriceList}/{ArticleNumber}",
883
+ method: "put"
884
+ },
885
+ getByFromQuantity: {
886
+ path: "/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}",
887
+ method: "get"
888
+ },
889
+ updateByFromQuantity: {
890
+ path: "/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}",
891
+ method: "put"
892
+ },
893
+ deleteByFromQuantity: {
894
+ path: "/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}",
895
+ method: "delete"
896
+ }
897
+ },
898
+ printtemplates: { getList: {
899
+ path: "/3/printtemplates",
900
+ method: "get"
901
+ } },
902
+ projects: {
903
+ getList: {
904
+ path: "/3/projects",
905
+ method: "get"
906
+ },
907
+ create: {
908
+ path: "/3/projects",
909
+ method: "post"
910
+ },
911
+ get: {
912
+ path: "/3/projects/{ProjectNumber}",
913
+ method: "get"
914
+ },
915
+ update: {
916
+ path: "/3/projects/{ProjectNumber}",
917
+ method: "put"
918
+ },
919
+ delete: {
920
+ path: "/3/projects/{ProjectNumber}",
921
+ method: "delete"
922
+ }
923
+ },
924
+ salarytransactions: {
925
+ getList: {
926
+ path: "/3/salarytransactions",
927
+ method: "get"
928
+ },
929
+ create: {
930
+ path: "/3/salarytransactions",
931
+ method: "post"
932
+ },
933
+ get: {
934
+ path: "/3/salarytransactions/{SalaryRow}",
935
+ method: "get"
936
+ },
937
+ update: {
938
+ path: "/3/salarytransactions/{SalaryRow}",
939
+ method: "put"
940
+ },
941
+ delete: {
942
+ path: "/3/salarytransactions/{SalaryRow}",
943
+ method: "delete"
944
+ }
945
+ },
946
+ scheduletimes: {
947
+ get: {
948
+ path: "/3/scheduletimes/{EmployeeId}/{Date}",
949
+ method: "get"
950
+ },
951
+ update: {
952
+ path: "/3/scheduletimes/{EmployeeId}/{Date}",
953
+ method: "put"
954
+ },
955
+ resetDay: {
956
+ path: "/3/scheduletimes/{EmployeeId}/{Date}/resetday",
957
+ method: "put"
958
+ }
959
+ },
960
+ settings: {
961
+ getCompanySettings: {
962
+ path: "/3/settings/company",
963
+ method: "get"
964
+ },
965
+ getLockedPeriod: {
966
+ path: "/3/settings/lockedperiod",
967
+ method: "get"
968
+ }
969
+ },
970
+ sie: { get: {
971
+ path: "/3/sie/{Type}",
972
+ method: "get"
973
+ } },
974
+ supplierinvoiceaccruals: {
975
+ getList: {
976
+ path: "/3/supplierinvoiceaccruals",
977
+ method: "get"
978
+ },
979
+ create: {
980
+ path: "/3/supplierinvoiceaccruals",
981
+ method: "post"
982
+ },
983
+ get: {
984
+ path: "/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}",
985
+ method: "get"
986
+ },
987
+ update: {
988
+ path: "/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}",
989
+ method: "put"
990
+ },
991
+ delete: {
992
+ path: "/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}",
993
+ method: "delete"
994
+ }
995
+ },
996
+ supplierinvoiceexternalurlconnections: {
997
+ create: {
998
+ path: "/3/supplierinvoiceexternalurlconnections",
999
+ method: "post"
1000
+ },
1001
+ get: {
1002
+ path: "/3/supplierinvoiceexternalurlconnections/{Id}",
1003
+ method: "get"
1004
+ },
1005
+ update: {
1006
+ path: "/3/supplierinvoiceexternalurlconnections/{Id}",
1007
+ method: "put"
1008
+ },
1009
+ delete: {
1010
+ path: "/3/supplierinvoiceexternalurlconnections/{Id}",
1011
+ method: "delete"
1012
+ }
1013
+ },
1014
+ supplierinvoicefileconnections: {
1015
+ getList: {
1016
+ path: "/3/supplierinvoicefileconnections",
1017
+ method: "get"
1018
+ },
1019
+ create: {
1020
+ path: "/3/supplierinvoicefileconnections",
1021
+ method: "post"
1022
+ },
1023
+ get: {
1024
+ path: "/3/supplierinvoicefileconnections/{FileId}",
1025
+ method: "get"
1026
+ },
1027
+ delete: {
1028
+ path: "/3/supplierinvoicefileconnections/{FileId}",
1029
+ method: "delete"
1030
+ }
1031
+ },
1032
+ supplierinvoicepayments: {
1033
+ getList: {
1034
+ path: "/3/supplierinvoicepayments",
1035
+ method: "get"
1036
+ },
1037
+ create: {
1038
+ path: "/3/supplierinvoicepayments",
1039
+ method: "post"
1040
+ },
1041
+ get: {
1042
+ path: "/3/supplierinvoicepayments/{Number}",
1043
+ method: "get"
1044
+ },
1045
+ update: {
1046
+ path: "/3/supplierinvoicepayments/{Number}",
1047
+ method: "put"
1048
+ },
1049
+ delete: {
1050
+ path: "/3/supplierinvoicepayments/{Number}",
1051
+ method: "delete"
1052
+ },
1053
+ bookkeep: {
1054
+ path: "/3/supplierinvoicepayments/{Number}/bookkeep",
1055
+ method: "put"
1056
+ }
1057
+ },
1058
+ supplierinvoices: {
1059
+ getList: {
1060
+ path: "/3/supplierinvoices",
1061
+ method: "get"
1062
+ },
1063
+ create: {
1064
+ path: "/3/supplierinvoices",
1065
+ method: "post"
1066
+ },
1067
+ get: {
1068
+ path: "/3/supplierinvoices/{GivenNumber}",
1069
+ method: "get"
1070
+ },
1071
+ update: {
1072
+ path: "/3/supplierinvoices/{GivenNumber}",
1073
+ method: "put"
1074
+ },
1075
+ approvalBookkeep: {
1076
+ path: "/3/supplierinvoices/{GivenNumber}/approvalbookkeep",
1077
+ method: "put"
1078
+ },
1079
+ approvalPayment: {
1080
+ path: "/3/supplierinvoices/{GivenNumber}/approvalpayment",
1081
+ method: "put"
1082
+ },
1083
+ bookkeep: {
1084
+ path: "/3/supplierinvoices/{GivenNumber}/bookkeep",
1085
+ method: "put"
1086
+ },
1087
+ cancel: {
1088
+ path: "/3/supplierinvoices/{GivenNumber}/cancel",
1089
+ method: "put"
1090
+ },
1091
+ credit: {
1092
+ path: "/3/supplierinvoices/{GivenNumber}/credit",
1093
+ method: "put"
1094
+ }
1095
+ },
1096
+ suppliers: {
1097
+ getList: {
1098
+ path: "/3/suppliers",
1099
+ method: "get"
1100
+ },
1101
+ create: {
1102
+ path: "/3/suppliers",
1103
+ method: "post"
1104
+ },
1105
+ get: {
1106
+ path: "/3/suppliers/{SupplierNumber}",
1107
+ method: "get"
1108
+ },
1109
+ update: {
1110
+ path: "/3/suppliers/{SupplierNumber}",
1111
+ method: "put"
1112
+ }
1113
+ },
1114
+ taxreductions: {
1115
+ getList: {
1116
+ path: "/3/taxreductions",
1117
+ method: "get"
1118
+ },
1119
+ create: {
1120
+ path: "/3/taxreductions",
1121
+ method: "post"
1122
+ },
1123
+ get: {
1124
+ path: "/3/taxreductions/{Id}",
1125
+ method: "get"
1126
+ },
1127
+ update: {
1128
+ path: "/3/taxreductions/{Id}",
1129
+ method: "put"
1130
+ },
1131
+ delete: {
1132
+ path: "/3/taxreductions/{Id}",
1133
+ method: "delete"
1134
+ }
1135
+ },
1136
+ termsofdeliveries: {
1137
+ getList: {
1138
+ path: "/3/termsofdeliveries",
1139
+ method: "get"
1140
+ },
1141
+ create: {
1142
+ path: "/3/termsofdeliveries",
1143
+ method: "post"
1144
+ },
1145
+ get: {
1146
+ path: "/3/termsofdeliveries/{Code}",
1147
+ method: "get"
1148
+ },
1149
+ update: {
1150
+ path: "/3/termsofdeliveries/{Code}",
1151
+ method: "put"
1152
+ }
1153
+ },
1154
+ termsofpayments: {
1155
+ getList: {
1156
+ path: "/3/termsofpayments",
1157
+ method: "get"
1158
+ },
1159
+ create: {
1160
+ path: "/3/termsofpayments",
1161
+ method: "post"
1162
+ },
1163
+ get: {
1164
+ path: "/3/termsofpayments/{Code}",
1165
+ method: "get"
1166
+ },
1167
+ update: {
1168
+ path: "/3/termsofpayments/{Code}",
1169
+ method: "put"
1170
+ },
1171
+ delete: {
1172
+ path: "/3/termsofpayments/{Code}",
1173
+ method: "delete"
1174
+ }
1175
+ },
1176
+ time: {
1177
+ listArticles: {
1178
+ path: "/api/time/articles-v1",
1179
+ method: "get"
1180
+ },
1181
+ listRegistrations: {
1182
+ path: "/api/time/registrations-v2",
1183
+ method: "get"
1184
+ }
1185
+ },
1186
+ units: {
1187
+ getList: {
1188
+ path: "/3/units",
1189
+ method: "get"
1190
+ },
1191
+ create: {
1192
+ path: "/3/units",
1193
+ method: "post"
1194
+ },
1195
+ get: {
1196
+ path: "/3/units/{Code}",
1197
+ method: "get"
1198
+ },
1199
+ update: {
1200
+ path: "/3/units/{Code}",
1201
+ method: "put"
1202
+ },
1203
+ delete: {
1204
+ path: "/3/units/{Code}",
1205
+ method: "delete"
1206
+ }
1207
+ },
1208
+ vacationdebtbasis: { get: {
1209
+ path: "/3/vacationdebtbasis/{Year}/{Month}",
1210
+ method: "get"
1211
+ } },
1212
+ voucherfileconnections: {
1213
+ getList: {
1214
+ path: "/3/voucherfileconnections",
1215
+ method: "get"
1216
+ },
1217
+ create: {
1218
+ path: "/3/voucherfileconnections",
1219
+ method: "post"
1220
+ },
1221
+ get: {
1222
+ path: "/3/voucherfileconnections/{FileId}",
1223
+ method: "get"
1224
+ },
1225
+ delete: {
1226
+ path: "/3/voucherfileconnections/{FileId}",
1227
+ method: "delete"
1228
+ }
1229
+ },
1230
+ vouchers: {
1231
+ getList: {
1232
+ path: "/3/vouchers",
1233
+ method: "get"
1234
+ },
1235
+ create: {
1236
+ path: "/3/vouchers",
1237
+ method: "post"
1238
+ },
1239
+ getSubList: {
1240
+ path: "/3/vouchers/sublist",
1241
+ method: "get"
1242
+ },
1243
+ getSubListBySeries: {
1244
+ path: "/3/vouchers/sublist/{VoucherSeries}",
1245
+ method: "get"
1246
+ },
1247
+ get: {
1248
+ path: "/3/vouchers/{VoucherSeries}/{VoucherNumber}",
1249
+ method: "get"
1250
+ }
1251
+ },
1252
+ voucherseries: {
1253
+ getList: {
1254
+ path: "/3/voucherseries",
1255
+ method: "get"
1256
+ },
1257
+ create: {
1258
+ path: "/3/voucherseries",
1259
+ method: "post"
1260
+ },
1261
+ get: {
1262
+ path: "/3/voucherseries/{Code}",
1263
+ method: "get"
1264
+ },
1265
+ update: {
1266
+ path: "/3/voucherseries/{Code}",
1267
+ method: "put"
1268
+ }
1269
+ },
1270
+ warehouse: {
1271
+ listDeliveries: {
1272
+ path: "/api/warehouse/deliveries-v1",
1273
+ method: "get"
1274
+ },
1275
+ createInbound: {
1276
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries",
1277
+ method: "post"
1278
+ },
1279
+ getInbound: {
1280
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries/{id}",
1281
+ method: "get"
1282
+ },
1283
+ updateInbound: {
1284
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries/{id}",
1285
+ method: "put"
1286
+ },
1287
+ updateInboundNote: {
1288
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries/{id}",
1289
+ method: "patch"
1290
+ },
1291
+ releaseInbound: {
1292
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries/{id}/release",
1293
+ method: "put"
1294
+ },
1295
+ voidInbound: {
1296
+ path: "/api/warehouse/deliveries-v1/inbounddeliveries/{id}/void",
1297
+ method: "put"
1298
+ },
1299
+ createOutbound: {
1300
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries",
1301
+ method: "post"
1302
+ },
1303
+ getOutbound: {
1304
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries/{id}",
1305
+ method: "get"
1306
+ },
1307
+ updateOutbound: {
1308
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries/{id}",
1309
+ method: "put"
1310
+ },
1311
+ updateOutboundNote: {
1312
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries/{id}",
1313
+ method: "patch"
1314
+ },
1315
+ releaseOutbound: {
1316
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries/{id}/release",
1317
+ method: "put"
1318
+ },
1319
+ voidOutbound: {
1320
+ path: "/api/warehouse/deliveries-v1/outbounddeliveries/{id}/void",
1321
+ method: "put"
1322
+ },
1323
+ listDocumentTypes: {
1324
+ path: "/api/warehouse/documentdeliveries/custom/documenttypes-v1",
1325
+ method: "get"
1326
+ },
1327
+ createDocumentType: {
1328
+ path: "/api/warehouse/documentdeliveries/custom/documenttypes-v1",
1329
+ method: "post"
1330
+ },
1331
+ getDocumentType: {
1332
+ path: "/api/warehouse/documentdeliveries/custom/documenttypes-v1/{type}",
1333
+ method: "get"
1334
+ },
1335
+ getCustomInbound: {
1336
+ path: "/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}",
1337
+ method: "get"
1338
+ },
1339
+ saveCustomInbound: {
1340
+ path: "/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}",
1341
+ method: "put"
1342
+ },
1343
+ releaseCustomInbound: {
1344
+ path: "/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/release",
1345
+ method: "put"
1346
+ },
1347
+ voidCustomInbound: {
1348
+ path: "/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/void",
1349
+ method: "put"
1350
+ },
1351
+ getCustomOutbound: {
1352
+ path: "/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}",
1353
+ method: "get"
1354
+ },
1355
+ saveCustomOutbound: {
1356
+ path: "/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}",
1357
+ method: "put"
1358
+ },
1359
+ releaseCustomOutbound: {
1360
+ path: "/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/release",
1361
+ method: "put"
1362
+ },
1363
+ voidCustomOutbound: {
1364
+ path: "/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/void",
1365
+ method: "put"
1366
+ },
1367
+ listIncomingGoods: {
1368
+ path: "/api/warehouse/incominggoods-v1",
1369
+ method: "get"
1370
+ },
1371
+ createIncomingGoods: {
1372
+ path: "/api/warehouse/incominggoods-v1",
1373
+ method: "post"
1374
+ },
1375
+ getIncomingGoods: {
1376
+ path: "/api/warehouse/incominggoods-v1/{id}",
1377
+ method: "get"
1378
+ },
1379
+ saveIncomingGoods: {
1380
+ path: "/api/warehouse/incominggoods-v1/{id}",
1381
+ method: "put"
1382
+ },
1383
+ updateIncomingGoodsNote: {
1384
+ path: "/api/warehouse/incominggoods-v1/{id}",
1385
+ method: "patch"
1386
+ },
1387
+ setIncomingGoodsCompleted: {
1388
+ path: "/api/warehouse/incominggoods-v1/{id}/completed",
1389
+ method: "put"
1390
+ },
1391
+ releaseIncomingGoods: {
1392
+ path: "/api/warehouse/incominggoods-v1/{id}/release",
1393
+ method: "put"
1394
+ },
1395
+ voidIncomingGoods: {
1396
+ path: "/api/warehouse/incominggoods-v1/{id}/void",
1397
+ method: "put"
1398
+ },
1399
+ listProductionOrders: {
1400
+ path: "/api/warehouse/productionorders-v1",
1401
+ method: "get"
1402
+ },
1403
+ createProductionOrder: {
1404
+ path: "/api/warehouse/productionorders-v1",
1405
+ method: "post"
1406
+ },
1407
+ getBillOfMaterials: {
1408
+ path: "/api/warehouse/productionorders-v1/billofmaterials/{itemId}",
1409
+ method: "get"
1410
+ },
1411
+ releaseProductionOrder: {
1412
+ path: "/api/warehouse/productionorders-v1/release/{id}",
1413
+ method: "put"
1414
+ },
1415
+ voidProductionOrder: {
1416
+ path: "/api/warehouse/productionorders-v1/void/{id}",
1417
+ method: "put"
1418
+ },
1419
+ getProductionOrder: {
1420
+ path: "/api/warehouse/productionorders-v1/{id}",
1421
+ method: "get"
1422
+ },
1423
+ updateProductionOrder: {
1424
+ path: "/api/warehouse/productionorders-v1/{id}",
1425
+ method: "put"
1426
+ },
1427
+ updateProductionOrderNote: {
1428
+ path: "/api/warehouse/productionorders-v1/{id}",
1429
+ method: "patch"
1430
+ },
1431
+ listPurchaseOrders: {
1432
+ path: "/api/warehouse/purchaseorders-v1",
1433
+ method: "get"
1434
+ },
1435
+ createPurchaseOrder: {
1436
+ path: "/api/warehouse/purchaseorders-v1",
1437
+ method: "post"
1438
+ },
1439
+ getCsvReport: {
1440
+ path: "/api/warehouse/purchaseorders-v1/csv",
1441
+ method: "get"
1442
+ },
1443
+ batchUpdateResponseState: {
1444
+ path: "/api/warehouse/purchaseorders-v1/response",
1445
+ method: "put"
1446
+ },
1447
+ sendMany: {
1448
+ path: "/api/warehouse/purchaseorders-v1/sendpurchaseorders",
1449
+ method: "post"
1450
+ },
1451
+ getPurchaseOrder: {
1452
+ path: "/api/warehouse/purchaseorders-v1/{id}",
1453
+ method: "get"
1454
+ },
1455
+ updatePurchaseOrder: {
1456
+ path: "/api/warehouse/purchaseorders-v1/{id}",
1457
+ method: "put"
1458
+ },
1459
+ setManuallyCompleted: {
1460
+ path: "/api/warehouse/purchaseorders-v1/{id}/complete",
1461
+ method: "put"
1462
+ },
1463
+ setDropshipCompleted: {
1464
+ path: "/api/warehouse/purchaseorders-v1/{id}/dropshipcomplete",
1465
+ method: "put"
1466
+ },
1467
+ getMatchedDocuments: {
1468
+ path: "/api/warehouse/purchaseorders-v1/{id}/matches",
1469
+ method: "get"
1470
+ },
1471
+ getNotes: {
1472
+ path: "/api/warehouse/purchaseorders-v1/{id}/notes",
1473
+ method: "get"
1474
+ },
1475
+ updatePartial: {
1476
+ path: "/api/warehouse/purchaseorders-v1/{id}/partial",
1477
+ method: "patch"
1478
+ },
1479
+ updateResponseState: {
1480
+ path: "/api/warehouse/purchaseorders-v1/{id}/response",
1481
+ method: "put"
1482
+ },
1483
+ send: {
1484
+ path: "/api/warehouse/purchaseorders-v1/{id}/send",
1485
+ method: "post"
1486
+ },
1487
+ voidPurchaseOrder: {
1488
+ path: "/api/warehouse/purchaseorders-v1/{id}/void",
1489
+ method: "put"
1490
+ },
1491
+ getStockBalance: {
1492
+ path: "/api/warehouse/status-v1/stockbalance",
1493
+ method: "get"
1494
+ },
1495
+ listStockPoints: {
1496
+ path: "/api/warehouse/stockpoints-v1",
1497
+ method: "get"
1498
+ },
1499
+ createStockPoint: {
1500
+ path: "/api/warehouse/stockpoints-v1",
1501
+ method: "post"
1502
+ },
1503
+ getManyStockPoints: {
1504
+ path: "/api/warehouse/stockpoints-v1/multi",
1505
+ method: "get"
1506
+ },
1507
+ getStockPoint: {
1508
+ path: "/api/warehouse/stockpoints-v1/{id}",
1509
+ method: "get"
1510
+ },
1511
+ appendStockLocations: {
1512
+ path: "/api/warehouse/stockpoints-v1/{id}",
1513
+ method: "post"
1514
+ },
1515
+ updateStockPoint: {
1516
+ path: "/api/warehouse/stockpoints-v1/{id}",
1517
+ method: "put"
1518
+ },
1519
+ deleteStockPoint: {
1520
+ path: "/api/warehouse/stockpoints-v1/{id}",
1521
+ method: "delete"
1522
+ },
1523
+ listStockLocations: {
1524
+ path: "/api/warehouse/stockpoints-v1/{id}/stocklocations",
1525
+ method: "get"
1526
+ },
1527
+ listStockTakings: {
1528
+ path: "/api/warehouse/stocktaking-v1",
1529
+ method: "get"
1530
+ },
1531
+ createStockTaking: {
1532
+ path: "/api/warehouse/stocktaking-v1",
1533
+ method: "post"
1534
+ },
1535
+ getStockTaking: {
1536
+ path: "/api/warehouse/stocktaking-v1/{id}",
1537
+ method: "get"
1538
+ },
1539
+ updateStockTaking: {
1540
+ path: "/api/warehouse/stocktaking-v1/{id}",
1541
+ method: "put"
1542
+ },
1543
+ deleteStockTaking: {
1544
+ path: "/api/warehouse/stocktaking-v1/{id}",
1545
+ method: "delete"
1546
+ },
1547
+ addRowsByFilter: {
1548
+ path: "/api/warehouse/stocktaking-v1/{id}/addrows",
1549
+ method: "post"
1550
+ },
1551
+ getCandidateRows: {
1552
+ path: "/api/warehouse/stocktaking-v1/{id}/candidates",
1553
+ method: "get"
1554
+ },
1555
+ releaseStockTaking: {
1556
+ path: "/api/warehouse/stocktaking-v1/{id}/release",
1557
+ method: "put"
1558
+ },
1559
+ listRows: {
1560
+ path: "/api/warehouse/stocktaking-v1/{id}/rows",
1561
+ method: "get"
1562
+ },
1563
+ addRows: {
1564
+ path: "/api/warehouse/stocktaking-v1/{id}/rows",
1565
+ method: "post"
1566
+ },
1567
+ deleteRowsByFilter: {
1568
+ path: "/api/warehouse/stocktaking-v1/{id}/rows",
1569
+ method: "delete"
1570
+ },
1571
+ deleteRow: {
1572
+ path: "/api/warehouse/stocktaking-v1/{id}/rows/{rowId}",
1573
+ method: "delete"
1574
+ },
1575
+ voidStockTaking: {
1576
+ path: "/api/warehouse/stocktaking-v1/{id}/void",
1577
+ method: "put"
1578
+ },
1579
+ createStockTransfer: {
1580
+ path: "/api/warehouse/stocktransfer-v1",
1581
+ method: "post"
1582
+ },
1583
+ getStockTransfer: {
1584
+ path: "/api/warehouse/stocktransfer-v1/{id}",
1585
+ method: "get"
1586
+ },
1587
+ updateStockTransfer: {
1588
+ path: "/api/warehouse/stocktransfer-v1/{id}",
1589
+ method: "put"
1590
+ },
1591
+ releaseStockTransfer: {
1592
+ path: "/api/warehouse/stocktransfer-v1/{id}/release",
1593
+ method: "put"
1594
+ },
1595
+ voidStockTransfer: {
1596
+ path: "/api/warehouse/stocktransfer-v1/{id}/void",
1597
+ method: "put"
1598
+ },
1599
+ getActivationStatus: {
1600
+ path: "/api/warehouse/tenants-v4",
1601
+ method: "get"
1602
+ }
1603
+ },
1604
+ wayofdeliveries: {
1605
+ getList: {
1606
+ path: "/3/wayofdeliveries",
1607
+ method: "get"
1608
+ },
1609
+ create: {
1610
+ path: "/3/wayofdeliveries",
1611
+ method: "post"
1612
+ },
1613
+ get: {
1614
+ path: "/3/wayofdeliveries/{Code}",
1615
+ method: "get"
1616
+ },
1617
+ update: {
1618
+ path: "/3/wayofdeliveries/{Code}",
1619
+ method: "put"
1620
+ },
1621
+ delete: {
1622
+ path: "/3/wayofdeliveries/{Code}",
1623
+ method: "delete"
1624
+ }
1625
+ }
1626
+ };
1627
+
1628
+ //#endregion
1629
+ //#region src/create-fortnox.ts
1630
+ function createInitFortnox() {
1631
+ function initFortnox(initOptions) {
1632
+ const pathFn = (p) => {
1633
+ return Object.fromEntries(require_request.METHODS.map((method) => [method, (options) => require_request.request({
1634
+ path: p,
1635
+ method,
1636
+ ...options
1637
+ }, initOptions)]));
1638
+ };
1639
+ const client = { path: pathFn };
1640
+ for (const [resource, ops] of Object.entries(RESOURCE_OPERATIONS)) {
1641
+ const resourceMethods = {};
1642
+ for (const [opId, { path, method }] of Object.entries(ops)) resourceMethods[opId] = (options = {}) => require_request.request({
1643
+ path,
1644
+ method,
1645
+ ...options
1646
+ }, initOptions);
1647
+ client[resource] = resourceMethods;
1648
+ }
1649
+ return client;
1650
+ }
1651
+ return initFortnox;
1652
+ }
1653
+
1654
+ //#endregion
1655
+ //#region src/index.ts
1656
+ function initFortnox(options) {
1657
+ return createInitFortnox()(options);
1658
+ }
1659
+
1660
+ //#endregion
1661
+ exports.initFortnox = initFortnox;
1662
+ //# sourceMappingURL=index.cjs.map