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