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