@unifetch/fortnox 2.1.0 → 2.2.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 (46) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/{create-fortnox-DiGzUeVa.d.mts → create-fortnox-C0kWSxNm.d.mts} +32 -26
  3. package/dist/create-fortnox-C0kWSxNm.d.mts.map +1 -0
  4. package/dist/{create-fortnox-BQgaBk5m.d.cts → create-fortnox-D9s3VXSg.d.cts} +32 -26
  5. package/dist/create-fortnox-D9s3VXSg.d.cts.map +1 -0
  6. package/dist/{create-fortnox-BB_0mFBL.mjs → create-fortnox-mini-CNEKEVs1.cjs} +32 -4
  7. package/dist/create-fortnox-mini-CNEKEVs1.cjs.map +1 -0
  8. package/dist/{create-fortnox-DGjVOKfm.cjs → create-fortnox-mini-zGxET1Vm.mjs} +20 -10
  9. package/dist/create-fortnox-mini-zGxET1Vm.mjs.map +1 -0
  10. package/dist/{index-CqOhNC_h.d.mts → index-B1gsa8-e.d.mts} +1 -1
  11. package/dist/{index-BWHJmubR.d.cts.map → index-B1gsa8-e.d.mts.map} +1 -1
  12. package/dist/{index-BWHJmubR.d.cts → index-C_4EXYAu.d.cts} +1 -1
  13. package/dist/{index-CqOhNC_h.d.mts.map → index-C_4EXYAu.d.cts.map} +1 -1
  14. package/dist/index.cjs +3 -2
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +2 -2
  18. package/dist/official.cjs +4 -2
  19. package/dist/official.cjs.map +1 -1
  20. package/dist/official.d.cts +12271 -2
  21. package/dist/official.d.cts.map +1 -0
  22. package/dist/official.d.mts +12271 -2
  23. package/dist/official.d.mts.map +1 -0
  24. package/dist/official.mjs +3 -2
  25. package/dist/official.mjs.map +1 -1
  26. package/dist/{official-BFBd-NeQ.d.cts → patched-C9Vb7H1N.d.cts} +455 -446
  27. package/dist/patched-C9Vb7H1N.d.cts.map +1 -0
  28. package/dist/{official-DeZGQsNS.d.mts → patched-CChAT2O0.d.mts} +455 -446
  29. package/dist/patched-CChAT2O0.d.mts.map +1 -0
  30. package/dist/patched.cjs +4 -2
  31. package/dist/patched.cjs.map +1 -1
  32. package/dist/patched.d.cts +2 -12256
  33. package/dist/patched.d.mts +2 -12256
  34. package/dist/patched.mjs +3 -2
  35. package/dist/patched.mjs.map +1 -1
  36. package/dist/types/custom/index.d.cts +1 -1
  37. package/dist/types/custom/index.d.mts +1 -1
  38. package/package.json +3 -2
  39. package/dist/create-fortnox-BB_0mFBL.mjs.map +0 -1
  40. package/dist/create-fortnox-BQgaBk5m.d.cts.map +0 -1
  41. package/dist/create-fortnox-DGjVOKfm.cjs.map +0 -1
  42. package/dist/create-fortnox-DiGzUeVa.d.mts.map +0 -1
  43. package/dist/official-BFBd-NeQ.d.cts.map +0 -1
  44. package/dist/official-DeZGQsNS.d.mts.map +0 -1
  45. package/dist/patched.d.cts.map +0 -1
  46. package/dist/patched.d.mts.map +0 -1
package/dist/patched.mjs CHANGED
@@ -1,8 +1,9 @@
1
- import { t as createInitFortnox } from "./create-fortnox-BB_0mFBL.mjs";
1
+ import { n as createInitFortnox, t as createInitFortnoxMini } from "./create-fortnox-mini-zGxET1Vm.mjs";
2
2
 
3
3
  //#region src/patched.ts
4
4
  const initFortnox = createInitFortnox();
5
+ const initFortnoxMini = createInitFortnoxMini();
5
6
 
6
7
  //#endregion
7
- export { initFortnox };
8
+ export { initFortnox, initFortnoxMini };
8
9
  //# sourceMappingURL=patched.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"patched.mjs","names":[],"sources":["../src/patched.ts"],"sourcesContent":["import { createInitFortnox } from \"./create-fortnox\";\r\nimport type { Routes } from \"./types/patched-routes.gen\";\r\n\r\nexport const initFortnox = createInitFortnox<Routes>();\r\n"],"mappings":";;;AAGA,MAAa,cAAc,mBAA2B"}
1
+ {"version":3,"file":"patched.mjs","names":[],"sources":["../src/patched.ts"],"sourcesContent":["import { createInitFortnox } from \"./create-fortnox\";\nimport { createInitFortnoxMini } from \"./create-fortnox-mini\";\nimport type { Routes } from \"./types/patched-routes.gen\";\n\nexport const initFortnox = createInitFortnox<Routes>();\nexport const initFortnoxMini = createInitFortnoxMini<Routes>();\n"],"mappings":";;;AAIA,MAAa,cAAc,mBAA2B;AACtD,MAAa,kBAAkB,uBAA+B"}
@@ -1,2 +1,2 @@
1
- import { a as InvoiceRow, i as InvoiceResponse, n as Invoice, o as InvoiceType, r as InvoiceListWrap, s as TaxReductionType, t as HouseWorkType } from "../../index-BWHJmubR.cjs";
1
+ import { a as InvoiceRow, i as InvoiceResponse, n as Invoice, o as InvoiceType, r as InvoiceListWrap, s as TaxReductionType, t as HouseWorkType } from "../../index-C_4EXYAu.cjs";
2
2
  export { HouseWorkType, Invoice, InvoiceListWrap, InvoiceResponse, InvoiceRow, InvoiceType, TaxReductionType };
@@ -1,2 +1,2 @@
1
- import { a as InvoiceRow, i as InvoiceResponse, n as Invoice, o as InvoiceType, r as InvoiceListWrap, s as TaxReductionType, t as HouseWorkType } from "../../index-CqOhNC_h.mjs";
1
+ import { a as InvoiceRow, i as InvoiceResponse, n as Invoice, o as InvoiceType, r as InvoiceListWrap, s as TaxReductionType, t as HouseWorkType } from "../../index-B1gsa8-e.mjs";
2
2
  export { HouseWorkType, Invoice, InvoiceListWrap, InvoiceResponse, InvoiceRow, InvoiceType, TaxReductionType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifetch/fortnox",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "TypeScript SDK for the Fortnox API, with full type safety generated from the official OpenAPI specification.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -17,7 +17,8 @@
17
17
  },
18
18
  "license": "ISC",
19
19
  "files": [
20
- "dist"
20
+ "dist",
21
+ "CHANGELOG.md"
21
22
  ],
22
23
  "devDependencies": {
23
24
  "@biomejs/biome": "^2.4.10",
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-fortnox-BB_0mFBL.mjs","names":[],"sources":["../src/request.ts","../src/types/resource-operations.gen.ts","../src/create-fortnox.ts"],"sourcesContent":["export const METHODS = [\"get\", \"post\", \"put\", \"delete\", \"patch\"] as const;\r\n\r\ntype RequestMethod = (typeof METHODS)[number];\r\n\r\ntype RequestOptions = {\r\n\tpath: string;\r\n\tmethod: RequestMethod;\r\n\tquery?: Record<string, unknown>;\r\n\tparams?: Record<string, unknown>;\r\n\tbody?: unknown;\r\n};\r\n\r\ntype FortnoxErrorResponse = {\r\n\tErrorInformation: {\r\n\t\terror: number;\r\n\t\tmessage: string;\r\n\t\tcode: number;\r\n\t};\r\n};\r\n\r\nexport type ErrorResponse = {\r\n\tErrorSource: \"fortnox\" | \"unknown\";\r\n\tErrorInformation: {\r\n\t\terror: number;\r\n\t\tmessage: string;\r\n\t\tcode: number;\r\n\t};\r\n};\r\n\r\nexport type InitFortnoxOptions =\r\n\t| { accessToken: string }\r\n\t| { proxy: { baseUrl: string; apiKey: string; tenantId: string } };\r\n\r\nexport async function request(\r\n\treqOptions: RequestOptions,\r\n\tinitOptions: InitFortnoxOptions,\r\n) {\r\n\ttry {\r\n\t\tlet headers: Record<string, string>;\r\n\t\tlet baseUrl: string;\r\n\r\n\t\tif (\"accessToken\" in initOptions) {\r\n\t\t\theaders = {\r\n\t\t\t\tAuthorization: `Bearer ${initOptions.accessToken}`,\r\n\t\t\t};\r\n\t\t\tbaseUrl = \"https://api.fortnox.se\";\r\n\t\t} else {\r\n\t\t\theaders = {\r\n\t\t\t\t\"x-api-key\": initOptions.proxy.apiKey,\r\n\t\t\t\t\"x-tenant-id\": initOptions.proxy.tenantId,\r\n\t\t\t};\r\n\t\t\tbaseUrl = initOptions.proxy.baseUrl;\r\n\t\t}\r\n\r\n\t\tconst searchParams = new URLSearchParams();\r\n\t\tif (reqOptions.query) {\r\n\t\t\tObject.entries(reqOptions.query).forEach(([key, value]) => {\r\n\t\t\t\tsearchParams.append(key, String(value));\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tlet path = reqOptions.path;\r\n\t\tif (reqOptions.params) {\r\n\t\t\tObject.entries(reqOptions.params).forEach(([key, value]) => {\r\n\t\t\t\tpath = path.replace(`{${key}}`, encodeURIComponent(String(value)));\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst url = `${baseUrl}${path}${searchParams.size > 0 ? `?${searchParams.toString()}` : \"\"}`;\r\n\r\n\t\tconst response = await fetch(url, {\r\n\t\t\tmethod: reqOptions.method.toUpperCase(),\r\n\t\t\tbody: reqOptions.body ? JSON.stringify(reqOptions.body) : null,\r\n\t\t\theaders,\r\n\t\t});\r\n\r\n\t\tconst responseData = await response.json();\r\n\r\n\t\tif (response.status < 300) {\r\n\t\t\treturn { error: null, data: responseData };\r\n\t\t} else {\r\n\t\t\treturn {\r\n\t\t\t\terror: {\r\n\t\t\t\t\tErrorSource: \"fortnox\" as const,\r\n\t\t\t\t\tErrorInformation: (responseData as FortnoxErrorResponse)\r\n\t\t\t\t\t\t.ErrorInformation,\r\n\t\t\t\t} satisfies ErrorResponse,\r\n\t\t\t\tdata: null,\r\n\t\t\t};\r\n\t\t}\r\n\t} catch (e: unknown) {\r\n\t\treturn {\r\n\t\t\terror: {\r\n\t\t\t\tErrorSource: \"unknown\" as const,\r\n\t\t\t\tErrorInformation: {\r\n\t\t\t\t\tmessage: e instanceof Error ? e.message : String(e),\r\n\t\t\t\t\terror: -1,\r\n\t\t\t\t\tcode: -1,\r\n\t\t\t\t},\r\n\t\t\t} satisfies ErrorResponse,\r\n\t\t\tdata: null,\r\n\t\t};\r\n\t}\r\n}\r\n","// This file is auto-generated. Do not edit manually.\n// Run scripts/generate.ts to regenerate.\n\nexport const RESOURCE_OPERATIONS = {\n\tabsencetransactions: {\n\t\tgetList: {\n\t\t\tpath: \"/3/absencetransactions\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/absencetransactions\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistByEmployeeDateCode: {\n\t\t\tpath: \"/3/absencetransactions/{id}/{Date}/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\taccountcharts: {\n\t\tgetList: { path: \"/3/accountcharts\" as const, method: \"get\" as const },\n\t},\n\taccounts: {\n\t\tgetList: { path: \"/3/accounts\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/accounts\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/accounts/{Number}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/accounts/{Number}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/accounts/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarchive: {\n\t\tgetByPath: { path: \"/3/archive\" as const, method: \"get\" as const },\n\t\tupload: { path: \"/3/archive\" as const, method: \"post\" as const },\n\t\tdeleteByPath: { path: \"/3/archive\" as const, method: \"delete\" as const },\n\t\tgetById: { path: \"/3/archive/{id}\" as const, method: \"get\" as const },\n\t\tdeleteById: { path: \"/3/archive/{id}\" as const, method: \"delete\" as const },\n\t},\n\tarticlefileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/articlefileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/articlefileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/articlefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articlefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarticles: {\n\t\tgetList: { path: \"/3/articles\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/articles\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarticleurlconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/articleurlconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/articleurlconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tassetfileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/assetfileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/assetfileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/assetfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tassets: {\n\t\tgetList: { path: \"/3/assets\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/assets\" as const, method: \"post\" as const },\n\t\tchangeOb: {\n\t\t\tpath: \"/3/assets/changeob/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdepreciate: {\n\t\t\tpath: \"/3/assets/depreciate\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tlistDepreciations: {\n\t\t\tpath: \"/3/assets/depreciations/{ToDate}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tscrap: { path: \"/3/assets/scrap/{Id}\" as const, method: \"put\" as const },\n\t\tsell: { path: \"/3/assets/sell/{Id}\" as const, method: \"put\" as const },\n\t\tlistTypes: { path: \"/3/assets/types\" as const, method: \"get\" as const },\n\t\tcreateType: { path: \"/3/assets/types\" as const, method: \"post\" as const },\n\t\tgetType: { path: \"/3/assets/types/{id}\" as const, method: \"get\" as const },\n\t\tupdateType: {\n\t\t\tpath: \"/3/assets/types/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteType: {\n\t\t\tpath: \"/3/assets/types/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\twriteDown: {\n\t\t\tpath: \"/3/assets/writedown/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\twriteUp: {\n\t\t\tpath: \"/3/assets/writeup/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tget: { path: \"/3/assets/{Id}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/assets/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/assets/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tattendancetransactions: {\n\t\tgetList: {\n\t\t\tpath: \"/3/attendancetransactions\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/attendancetransactions\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistByEmployeeDateCode: {\n\t\t\tpath: \"/3/attendancetransactions/{id}/{Date}/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tcompanyinformation: {\n\t\tget: { path: \"/3/companyinformation\" as const, method: \"get\" as const },\n\t},\n\tcontractaccruals: {\n\t\tgetList: { path: \"/3/contractaccruals\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contractaccruals\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcontracts: {\n\t\tgetList: { path: \"/3/contracts\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contracts\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tfinish: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/finish\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tincreaseInvoiceCount: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/increaseinvoicecount\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tcontracttemplates: {\n\t\tgetList: { path: \"/3/contracttemplates\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contracttemplates\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contracttemplates/{TemplateNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contracttemplates/{TemplateNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tcostcenters: {\n\t\tgetList: { path: \"/3/costcenters\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/costcenters\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/costcenters/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/costcenters/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/costcenters/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcurrencies: {\n\t\tgetList: { path: \"/3/currencies\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/currencies\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/currencies/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/currencies/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/currencies/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcustomerreferences: {\n\t\tgetList: { path: \"/3/customerreferences\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/customerreferences\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcustomers: {\n\t\tgetList: { path: \"/3/customers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/customers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\temailsenders: {\n\t\tgetList: { path: \"/3/emailsenders\" as const, method: \"get\" as const },\n\t\taddTrusted: {\n\t\t\tpath: \"/3/emailsenders/trusted\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tremoveTrusted: {\n\t\t\tpath: \"/3/emailsenders/trusted/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\temployees: {\n\t\tgetList: { path: \"/3/employees\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/employees\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/employees/{EmployeeId}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/employees/{EmployeeId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\teuvatlimitregulation: {\n\t\tget: { path: \"/3/euvatlimitregulation\" as const, method: \"get\" as const },\n\t},\n\texpenses: {\n\t\tgetList: { path: \"/3/expenses\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/expenses\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/expenses/{ExpenseCode}\" as const, method: \"get\" as const },\n\t},\n\tfileattachments: {\n\t\tgetList: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tattach: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetNumberOfAttachments: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/numberofattachments\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tvalidateIncludedOnSend: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/validateincludedonsend\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/{attachmentId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdetach: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/{attachmentId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tfinancialyears: {\n\t\tgetList: { path: \"/3/financialyears\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/financialyears\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/financialyears/{Id}\" as const, method: \"get\" as const },\n\t},\n\tinbox: {\n\t\tgetList: { path: \"/3/inbox\" as const, method: \"get\" as const },\n\t\tupload: { path: \"/3/inbox\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/inbox/{Id}\" as const, method: \"get\" as const },\n\t\tdelete: { path: \"/3/inbox/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tintegrationDeveloper: {\n\t\tlistRatings: {\n\t\t\tpath: \"/api/integration-developer/ratings-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSalesForIntegration: {\n\t\t\tpath: \"/api/integration-developer/sales-v1/{integrationId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetUsersForIntegrationAndTenant: {\n\t\t\tpath: \"/api/integration-developer/users/users-v1/{integrationId}/{tenantId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tintegrationPartner: {\n\t\tgetSalesForApp: {\n\t\t\tpath: \"/api/integration-partner/apps/sales-v1/{appId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSalesForAppAndTenant: {\n\t\t\tpath: \"/api/integration-partner/apps/sales-v1/{appId}/{tenantId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tinvoiceaccruals: {\n\t\tgetList: { path: \"/3/invoiceaccruals\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoiceaccruals\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tinvoicepayments: {\n\t\tgetList: { path: \"/3/invoicepayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoicepayments\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/invoicepayments/{Number}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tinvoices: {\n\t\tgetList: { path: \"/3/invoices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcredit: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/credit\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEinvoice: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/einvoice\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsendEprint: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/eprint\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprintReminder: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/printreminder\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsetWarehouseReady: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/warehouseready\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tlabels: {\n\t\tgetList: { path: \"/3/labels\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/labels\" as const, method: \"post\" as const },\n\t\tupdate: { path: \"/3/labels/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/labels/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tme: {\n\t\tget: { path: \"/3/me\" as const, method: \"get\" as const },\n\t},\n\tmodesofpayments: {\n\t\tgetList: { path: \"/3/modesofpayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/modesofpayments\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/modesofpayments/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/modesofpayments/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/modesofpayments/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tnoxfinansinvoices: {\n\t\tsend: { path: \"/3/noxfinansinvoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tpause: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/pause\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treportPayment: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/report-payment\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tstop: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/stop\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\ttakeFees: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/take-fees\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tunpause: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/unpause\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\toffers: {\n\t\tgetList: { path: \"/3/offers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/offers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateOrder: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/createorder\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\torders: {\n\t\tgetList: { path: \"/3/orders\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/orders\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tpredefinedaccounts: {\n\t\tgetList: { path: \"/3/predefinedaccounts\" as const, method: \"get\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/predefinedaccounts/{name}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/predefinedaccounts/{name}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tpredefinedvoucherseries: {\n\t\tgetList: {\n\t\t\tpath: \"/3/predefinedvoucherseries\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/predefinedvoucherseries/{Name}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/predefinedvoucherseries/{Name}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tpricelists: {\n\t\tgetList: { path: \"/3/pricelists\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/pricelists\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/pricelists/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/pricelists/{Code}\" as const, method: \"put\" as const },\n\t},\n\tprices: {\n\t\tgetList: { path: \"/3/prices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/prices\" as const, method: \"post\" as const },\n\t\tgetSubList: {\n\t\t\tpath: \"/3/prices/sublist/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tprinttemplates: {\n\t\tgetList: { path: \"/3/printtemplates\" as const, method: \"get\" as const },\n\t},\n\tprojects: {\n\t\tgetList: { path: \"/3/projects\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/projects\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsalarytransactions: {\n\t\tgetList: { path: \"/3/salarytransactions\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/salarytransactions\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tscheduletimes: {\n\t\tget: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tresetDay: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}/resetday\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsettings: {\n\t\tgetCompanySettings: {\n\t\t\tpath: \"/3/settings/company\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetLockedPeriod: {\n\t\t\tpath: \"/3/settings/lockedperiod\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tsie: {\n\t\tget: { path: \"/3/sie/{Type}\" as const, method: \"get\" as const },\n\t},\n\tsupplierinvoiceaccruals: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoiceexternalurlconnections: {\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoicefileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoicepayments: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoicepayments\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoicepayments\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsupplierinvoices: {\n\t\tgetList: { path: \"/3/supplierinvoices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/supplierinvoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tapprovalBookkeep: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/approvalbookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tapprovalPayment: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/approvalpayment\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcredit: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/credit\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsuppliers: {\n\t\tgetList: { path: \"/3/suppliers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/suppliers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/suppliers/{SupplierNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/suppliers/{SupplierNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\ttaxreductions: {\n\t\tgetList: { path: \"/3/taxreductions\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/taxreductions\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/taxreductions/{Id}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/taxreductions/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/taxreductions/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\ttermsofdeliveries: {\n\t\tgetList: { path: \"/3/termsofdeliveries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/termsofdeliveries\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/termsofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/termsofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\ttermsofpayments: {\n\t\tgetList: { path: \"/3/termsofpayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/termsofpayments\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/termsofpayments/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/termsofpayments/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/termsofpayments/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\ttime: {\n\t\tlistArticles: {\n\t\t\tpath: \"/api/time/articles-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistRegistrations: {\n\t\t\tpath: \"/api/time/registrations-v2\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tunits: {\n\t\tgetList: { path: \"/3/units\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/units\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/units/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/units/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/units/{Code}\" as const, method: \"delete\" as const },\n\t},\n\tvacationdebtbasis: {\n\t\tget: {\n\t\t\tpath: \"/3/vacationdebtbasis/{Year}/{Month}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tvoucherfileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/voucherfileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/voucherfileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/voucherfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/voucherfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tvouchers: {\n\t\tgetList: { path: \"/3/vouchers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/vouchers\" as const, method: \"post\" as const },\n\t\tgetSubList: {\n\t\t\tpath: \"/3/vouchers/sublist\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSubListBySeries: {\n\t\t\tpath: \"/3/vouchers/sublist/{VoucherSeries}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/vouchers/{VoucherSeries}/{VoucherNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tvoucherseries: {\n\t\tgetList: { path: \"/3/voucherseries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/voucherseries\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/voucherseries/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/voucherseries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\twarehouse: {\n\t\tlistDeliveries: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateInboundNote: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\treleaseInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateOutboundNote: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\treleaseOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistDocumentTypes: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateDocumentType: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetDocumentType: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1/{type}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateIncomingGoodsNote: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tsetIncomingGoodsCompleted: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/completed\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistProductionOrders: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetBillOfMaterials: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/billofmaterials/{itemId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\treleaseProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/release/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/void/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateProductionOrderNote: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tlistPurchaseOrders: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreatePurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetCsvReport: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/csv\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tbatchUpdateResponseState: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/response\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendMany: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/sendpurchaseorders\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetPurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdatePurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsetManuallyCompleted: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/complete\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsetDropshipCompleted: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/dropshipcomplete\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetMatchedDocuments: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/matches\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetNotes: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/notes\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdatePartial: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/partial\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tupdateResponseState: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/response\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsend: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/send\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tvoidPurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetStockBalance: {\n\t\t\tpath: \"/api/warehouse/status-v1/stockbalance\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistStockPoints: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetManyStockPoints: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/multi\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tappendStockLocations: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tupdateStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistStockLocations: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}/stocklocations\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistStockTakings: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\taddRowsByFilter: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/addrows\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetCandidateRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/candidates\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\treleaseStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\taddRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tdeleteRowsByFilter: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tdeleteRow: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows/{rowId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tvoidStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetActivationStatus: {\n\t\t\tpath: \"/api/warehouse/tenants-v4\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\twayofdeliveries: {\n\t\tgetList: { path: \"/3/wayofdeliveries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/wayofdeliveries\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/wayofdeliveries/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/wayofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/wayofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n} as const;\n\nexport type ResourceOperations = typeof RESOURCE_OPERATIONS;\n","import {\r\n\ttype ErrorResponse,\r\n\ttype InitFortnoxOptions,\r\n\tMETHODS,\r\n\trequest,\r\n} from \"./request\";\r\nimport {\r\n\tRESOURCE_OPERATIONS,\r\n\ttype ResourceOperations,\r\n} from \"./types/resource-operations.gen\";\r\nimport type { OmitNever } from \"./types/utility-types\";\r\n\r\ntype FortnoxInput<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = TRoutes[TPath][TMethod] extends { request: infer R } ? R : never;\r\n\r\ntype FortnoxInputCleaned<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;\r\n\r\ntype FortnoxOutput<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = TRoutes[TPath][TMethod] extends { response: { body: infer B } } ? B : never;\r\n\r\ntype FortnoxResult<TData> = Promise<\r\n\t{ error: ErrorResponse; data: null } | { error: null; data: TData }\r\n>;\r\n\r\ntype FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = {\r\n\t[TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {\r\n\t\trequest: { params: never; body: never };\r\n\t}\r\n\t\t? (\r\n\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t: (\r\n\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>;\r\n};\r\n\r\n/** Resolves the callable type for a single resource operation (path + method pair). */\r\ntype FortnoxOpMethod<\r\n\tTRoutes extends object,\r\n\tTPath,\r\n\tTMethod,\r\n> = TPath extends keyof TRoutes\r\n\t? TMethod extends keyof TRoutes[TPath]\r\n\t\t? TRoutes[TPath][TMethod] extends {\r\n\t\t\t\trequest: { params: never; body: never };\r\n\t\t\t}\r\n\t\t\t? (\r\n\t\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t\t: (\r\n\t\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t: never\r\n\t: never;\r\n\r\n/** Methods for a single resource, keyed by operation ID, filtered to only those present in TRoutes. */\r\ntype FortnoxResourceMethods<\r\n\tTRoutes extends object,\r\n\tTResource extends keyof ResourceOperations,\r\n> = OmitNever<{\r\n\t[TOp in keyof ResourceOperations[TResource]]: ResourceOperations[TResource][TOp] extends {\r\n\t\tpath: infer P;\r\n\t\tmethod: infer M;\r\n\t}\r\n\t\t? FortnoxOpMethod<TRoutes, P, M>\r\n\t\t: never;\r\n}>;\r\n\r\n/** Resource-based accessor shape: fortnox.invoices.getList(...) */\r\ntype FortnoxResources<TRoutes extends object> = {\r\n\t[TResource in keyof ResourceOperations]: FortnoxResourceMethods<\r\n\t\tTRoutes,\r\n\t\tTResource\r\n\t>;\r\n};\r\n\r\n/** Path-based accessor: fortnox.path(\"/3/invoices\").get(...) */\r\nexport type FortnoxPathFn<TRoutes extends object> = <\r\n\tTPath extends keyof TRoutes,\r\n>(\r\n\tpath: TPath,\r\n) => FortnoxMethods<TRoutes, TPath>;\r\n\r\n/** Full Fortnox client with both resource accessors and path-based fallback. */\r\nexport type FortnoxClient<TRoutes extends object> =\r\n\tFortnoxResources<TRoutes> & {\r\n\t\tpath: FortnoxPathFn<TRoutes>;\r\n\t};\r\n\r\nexport function createInitFortnox<TRoutes extends object>(): {\r\n\t(options: { accessToken: string }): FortnoxClient<TRoutes>;\r\n\t(options: {\r\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\r\n\t}): FortnoxClient<TRoutes>;\r\n} {\r\n\tfunction initFortnox(options: {\r\n\t\taccessToken: string;\r\n\t}): FortnoxClient<TRoutes>;\r\n\tfunction initFortnox(options: {\r\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\r\n\t}): FortnoxClient<TRoutes>;\r\n\tfunction initFortnox(\r\n\t\tinitOptions: InitFortnoxOptions,\r\n\t): FortnoxClient<TRoutes> {\r\n\t\tconst pathFn = <TPath extends keyof TRoutes>(\r\n\t\t\tpath: TPath,\r\n\t\t): FortnoxMethods<TRoutes, TPath> => {\r\n\t\t\treturn Object.fromEntries(\r\n\t\t\t\tMETHODS.map((method) => [\r\n\t\t\t\t\tmethod,\r\n\t\t\t\t\t(options: Record<string, unknown>) =>\r\n\t\t\t\t\t\trequest({ path: path as string, method, ...options }, initOptions),\r\n\t\t\t\t]),\r\n\t\t\t) as unknown as FortnoxMethods<TRoutes, TPath>;\r\n\t\t};\r\n\r\n\t\tconst client = { path: pathFn } as unknown as FortnoxClient<TRoutes>;\r\n\r\n\t\tfor (const [resource, ops] of Object.entries(RESOURCE_OPERATIONS)) {\r\n\t\t\tconst resourceMethods: Record<string, unknown> = {};\r\n\t\t\tfor (const [opId, { path, method }] of Object.entries(\r\n\t\t\t\tops as Record<string, { path: string; method: string }>,\r\n\t\t\t)) {\r\n\t\t\t\tresourceMethods[opId] = (options: Record<string, unknown> = {}) =>\r\n\t\t\t\t\trequest(\r\n\t\t\t\t\t\t{ path, method: method as (typeof METHODS)[number], ...options },\r\n\t\t\t\t\t\tinitOptions,\r\n\t\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t(client as unknown as Record<string, unknown>)[resource] =\r\n\t\t\t\tresourceMethods;\r\n\t\t}\r\n\r\n\t\treturn client;\r\n\t}\r\n\treturn initFortnox;\r\n}\r\n"],"mappings":";AAAA,MAAa,UAAU;CAAC;CAAO;CAAQ;CAAO;CAAU;CAAQ;AAiChE,eAAsB,QACrB,YACA,aACC;AACD,KAAI;EACH,IAAI;EACJ,IAAI;AAEJ,MAAI,iBAAiB,aAAa;AACjC,aAAU,EACT,eAAe,UAAU,YAAY,eACrC;AACD,aAAU;SACJ;AACN,aAAU;IACT,aAAa,YAAY,MAAM;IAC/B,eAAe,YAAY,MAAM;IACjC;AACD,aAAU,YAAY,MAAM;;EAG7B,MAAM,eAAe,IAAI,iBAAiB;AAC1C,MAAI,WAAW,MACd,QAAO,QAAQ,WAAW,MAAM,CAAC,SAAS,CAAC,KAAK,WAAW;AAC1D,gBAAa,OAAO,KAAK,OAAO,MAAM,CAAC;IACtC;EAGH,IAAI,OAAO,WAAW;AACtB,MAAI,WAAW,OACd,QAAO,QAAQ,WAAW,OAAO,CAAC,SAAS,CAAC,KAAK,WAAW;AAC3D,UAAO,KAAK,QAAQ,IAAI,IAAI,IAAI,mBAAmB,OAAO,MAAM,CAAC,CAAC;IACjE;EAGH,MAAM,MAAM,GAAG,UAAU,OAAO,aAAa,OAAO,IAAI,IAAI,aAAa,UAAU,KAAK;EAExF,MAAM,WAAW,MAAM,MAAM,KAAK;GACjC,QAAQ,WAAW,OAAO,aAAa;GACvC,MAAM,WAAW,OAAO,KAAK,UAAU,WAAW,KAAK,GAAG;GAC1D;GACA,CAAC;EAEF,MAAM,eAAe,MAAM,SAAS,MAAM;AAE1C,MAAI,SAAS,SAAS,IACrB,QAAO;GAAE,OAAO;GAAM,MAAM;GAAc;MAE1C,QAAO;GACN,OAAO;I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oBAKd;CAOD,SAAS,YACR,aACyB;EACzB,MAAM,UACL,SACoC;AACpC,UAAO,OAAO,YACb,QAAQ,KAAK,WAAW,CACvB,SACC,YACA,QAAQ;IAAQ;IAAgB;IAAQ,GAAG;IAAS,EAAE,YAAY,CACnE,CAAC,CACF;;EAGF,MAAM,SAAS,EAAE,MAAM,QAAQ;AAE/B,OAAK,MAAM,CAAC,UAAU,QAAQ,OAAO,QAAQ,oBAAoB,EAAE;GAClE,MAAM,kBAA2C,EAAE;AACnD,QAAK,MAAM,CAAC,MAAM,EAAE,MAAM,aAAa,OAAO,QAC7C,IACA,CACA,iBAAgB,SAAS,UAAmC,EAAE,KAC7D,QACC;IAAE;IAAc;IAAoC,GAAG;IAAS,EAChE,YACA;AAEH,GAAC,OAA8C,YAC9C;;AAGF,SAAO;;AAER,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-fortnox-BQgaBk5m.d.cts","names":[],"sources":["../src/request.ts","../src/types/resource-operations.gen.ts","../src/create-fortnox.ts"],"mappings":";;;KAoBY,aAAA;EACX,WAAA;EACA,gBAAA;IACC,KAAA;IACA,OAAA;IACA,IAAA;EAAA;AAAA;;;cCtBW,mBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ACrB,OAAA,eAAsB,OAAA,CAAQ,KAAA,IAC7B,OAAA,CAAQ,KAAA,EAAO,OAAA;EACf,OAAA;IAAW,MAAA;IAAe,IAAA;EAAA;AAAA,KAGzB,OAAA,GAAU,mBAAA,CAAoB,OAAA,EAAS,KAAA,EAAO,OAAA,MAC1C,aAAA,CAAc,aAAA,CAAc,OAAA,EAAS,KAAA,EAAO,OAAA,MAEhD,OAAA,EAAS,mBAAA,CAAoB,OAAA,EAAS,KAAA,EAAO,OAAA,MACzC,aAAA,CAAc,aAAA,CAAc,OAAA,EAAS,KAAA,EAAO,OAAA;;KAKhD,sBAAA,iDAEoB,kBAAA,IACrB,SAAA,iBACW,kBAAA,CAAmB,SAAA,IAAa,kBAAA,CAAmB,SAAA,EAAW,GAAA;EAC3E,IAAA;EACA,MAAA;AAAA,IAEE,eAAA,CAAgB,OAAA,EAAS,CAAA,EAAG,CAAA;;KAK3B,gBAAA,iDACgB,kBAAA,GAAqB,sBAAA,CACxC,OAAA,EACA,SAAA;;KAKU,aAAA,gDACS,OAAA,EAEpB,IAAA,EAAM,KAAA,KACF,cAAA,CAAe,OAAA,EAAS,KAAA;;KAGjB,aAAA,2BACX,gBAAA,CAAiB,OAAA;EAChB,IAAA,EAAM,aAAA,CAAc,OAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-fortnox-DGjVOKfm.cjs","names":[],"sources":["../src/request.ts","../src/types/resource-operations.gen.ts","../src/create-fortnox.ts"],"sourcesContent":["export const METHODS = [\"get\", \"post\", \"put\", \"delete\", \"patch\"] as const;\r\n\r\ntype RequestMethod = (typeof METHODS)[number];\r\n\r\ntype RequestOptions = {\r\n\tpath: string;\r\n\tmethod: RequestMethod;\r\n\tquery?: Record<string, unknown>;\r\n\tparams?: Record<string, unknown>;\r\n\tbody?: unknown;\r\n};\r\n\r\ntype FortnoxErrorResponse = {\r\n\tErrorInformation: {\r\n\t\terror: number;\r\n\t\tmessage: string;\r\n\t\tcode: number;\r\n\t};\r\n};\r\n\r\nexport type ErrorResponse = {\r\n\tErrorSource: \"fortnox\" | \"unknown\";\r\n\tErrorInformation: {\r\n\t\terror: number;\r\n\t\tmessage: string;\r\n\t\tcode: number;\r\n\t};\r\n};\r\n\r\nexport type InitFortnoxOptions =\r\n\t| { accessToken: string }\r\n\t| { proxy: { baseUrl: string; apiKey: string; tenantId: string } };\r\n\r\nexport async function request(\r\n\treqOptions: RequestOptions,\r\n\tinitOptions: InitFortnoxOptions,\r\n) {\r\n\ttry {\r\n\t\tlet headers: Record<string, string>;\r\n\t\tlet baseUrl: string;\r\n\r\n\t\tif (\"accessToken\" in initOptions) {\r\n\t\t\theaders = {\r\n\t\t\t\tAuthorization: `Bearer ${initOptions.accessToken}`,\r\n\t\t\t};\r\n\t\t\tbaseUrl = \"https://api.fortnox.se\";\r\n\t\t} else {\r\n\t\t\theaders = {\r\n\t\t\t\t\"x-api-key\": initOptions.proxy.apiKey,\r\n\t\t\t\t\"x-tenant-id\": initOptions.proxy.tenantId,\r\n\t\t\t};\r\n\t\t\tbaseUrl = initOptions.proxy.baseUrl;\r\n\t\t}\r\n\r\n\t\tconst searchParams = new URLSearchParams();\r\n\t\tif (reqOptions.query) {\r\n\t\t\tObject.entries(reqOptions.query).forEach(([key, value]) => {\r\n\t\t\t\tsearchParams.append(key, String(value));\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tlet path = reqOptions.path;\r\n\t\tif (reqOptions.params) {\r\n\t\t\tObject.entries(reqOptions.params).forEach(([key, value]) => {\r\n\t\t\t\tpath = path.replace(`{${key}}`, encodeURIComponent(String(value)));\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tconst url = `${baseUrl}${path}${searchParams.size > 0 ? `?${searchParams.toString()}` : \"\"}`;\r\n\r\n\t\tconst response = await fetch(url, {\r\n\t\t\tmethod: reqOptions.method.toUpperCase(),\r\n\t\t\tbody: reqOptions.body ? JSON.stringify(reqOptions.body) : null,\r\n\t\t\theaders,\r\n\t\t});\r\n\r\n\t\tconst responseData = await response.json();\r\n\r\n\t\tif (response.status < 300) {\r\n\t\t\treturn { error: null, data: responseData };\r\n\t\t} else {\r\n\t\t\treturn {\r\n\t\t\t\terror: {\r\n\t\t\t\t\tErrorSource: \"fortnox\" as const,\r\n\t\t\t\t\tErrorInformation: (responseData as FortnoxErrorResponse)\r\n\t\t\t\t\t\t.ErrorInformation,\r\n\t\t\t\t} satisfies ErrorResponse,\r\n\t\t\t\tdata: null,\r\n\t\t\t};\r\n\t\t}\r\n\t} catch (e: unknown) {\r\n\t\treturn {\r\n\t\t\terror: {\r\n\t\t\t\tErrorSource: \"unknown\" as const,\r\n\t\t\t\tErrorInformation: {\r\n\t\t\t\t\tmessage: e instanceof Error ? e.message : String(e),\r\n\t\t\t\t\terror: -1,\r\n\t\t\t\t\tcode: -1,\r\n\t\t\t\t},\r\n\t\t\t} satisfies ErrorResponse,\r\n\t\t\tdata: null,\r\n\t\t};\r\n\t}\r\n}\r\n","// This file is auto-generated. Do not edit manually.\n// Run scripts/generate.ts to regenerate.\n\nexport const RESOURCE_OPERATIONS = {\n\tabsencetransactions: {\n\t\tgetList: {\n\t\t\tpath: \"/3/absencetransactions\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/absencetransactions\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/absencetransactions/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistByEmployeeDateCode: {\n\t\t\tpath: \"/3/absencetransactions/{id}/{Date}/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\taccountcharts: {\n\t\tgetList: { path: \"/3/accountcharts\" as const, method: \"get\" as const },\n\t},\n\taccounts: {\n\t\tgetList: { path: \"/3/accounts\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/accounts\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/accounts/{Number}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/accounts/{Number}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/accounts/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarchive: {\n\t\tgetByPath: { path: \"/3/archive\" as const, method: \"get\" as const },\n\t\tupload: { path: \"/3/archive\" as const, method: \"post\" as const },\n\t\tdeleteByPath: { path: \"/3/archive\" as const, method: \"delete\" as const },\n\t\tgetById: { path: \"/3/archive/{id}\" as const, method: \"get\" as const },\n\t\tdeleteById: { path: \"/3/archive/{id}\" as const, method: \"delete\" as const },\n\t},\n\tarticlefileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/articlefileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/articlefileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/articlefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articlefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarticles: {\n\t\tgetList: { path: \"/3/articles\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/articles\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articles/{ArticleNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tarticleurlconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/articleurlconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/articleurlconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/articleurlconnections/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tassetfileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/assetfileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/assetfileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/assetfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tassets: {\n\t\tgetList: { path: \"/3/assets\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/assets\" as const, method: \"post\" as const },\n\t\tchangeOb: {\n\t\t\tpath: \"/3/assets/changeob/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdepreciate: {\n\t\t\tpath: \"/3/assets/depreciate\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tlistDepreciations: {\n\t\t\tpath: \"/3/assets/depreciations/{ToDate}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tscrap: { path: \"/3/assets/scrap/{Id}\" as const, method: \"put\" as const },\n\t\tsell: { path: \"/3/assets/sell/{Id}\" as const, method: \"put\" as const },\n\t\tlistTypes: { path: \"/3/assets/types\" as const, method: \"get\" as const },\n\t\tcreateType: { path: \"/3/assets/types\" as const, method: \"post\" as const },\n\t\tgetType: { path: \"/3/assets/types/{id}\" as const, method: \"get\" as const },\n\t\tupdateType: {\n\t\t\tpath: \"/3/assets/types/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteType: {\n\t\t\tpath: \"/3/assets/types/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\twriteDown: {\n\t\t\tpath: \"/3/assets/writedown/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\twriteUp: {\n\t\t\tpath: \"/3/assets/writeup/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tget: { path: \"/3/assets/{Id}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/assets/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/assets/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tattendancetransactions: {\n\t\tgetList: {\n\t\t\tpath: \"/3/attendancetransactions\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/attendancetransactions\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/attendancetransactions/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistByEmployeeDateCode: {\n\t\t\tpath: \"/3/attendancetransactions/{id}/{Date}/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tcompanyinformation: {\n\t\tget: { path: \"/3/companyinformation\" as const, method: \"get\" as const },\n\t},\n\tcontractaccruals: {\n\t\tgetList: { path: \"/3/contractaccruals\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contractaccruals\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/contractaccruals/{DocumentNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcontracts: {\n\t\tgetList: { path: \"/3/contracts\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contracts\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tfinish: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/finish\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tincreaseInvoiceCount: {\n\t\t\tpath: \"/3/contracts/{DocumentNumber}/increaseinvoicecount\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tcontracttemplates: {\n\t\tgetList: { path: \"/3/contracttemplates\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/contracttemplates\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/contracttemplates/{TemplateNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/contracttemplates/{TemplateNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tcostcenters: {\n\t\tgetList: { path: \"/3/costcenters\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/costcenters\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/costcenters/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/costcenters/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/costcenters/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcurrencies: {\n\t\tgetList: { path: \"/3/currencies\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/currencies\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/currencies/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/currencies/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/currencies/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcustomerreferences: {\n\t\tgetList: { path: \"/3/customerreferences\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/customerreferences\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/customerreferences/{CustomerReferenceRowId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tcustomers: {\n\t\tgetList: { path: \"/3/customers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/customers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/customers/{CustomerNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\temailsenders: {\n\t\tgetList: { path: \"/3/emailsenders\" as const, method: \"get\" as const },\n\t\taddTrusted: {\n\t\t\tpath: \"/3/emailsenders/trusted\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tremoveTrusted: {\n\t\t\tpath: \"/3/emailsenders/trusted/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\temployees: {\n\t\tgetList: { path: \"/3/employees\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/employees\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/employees/{EmployeeId}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/employees/{EmployeeId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\teuvatlimitregulation: {\n\t\tget: { path: \"/3/euvatlimitregulation\" as const, method: \"get\" as const },\n\t},\n\texpenses: {\n\t\tgetList: { path: \"/3/expenses\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/expenses\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/expenses/{ExpenseCode}\" as const, method: \"get\" as const },\n\t},\n\tfileattachments: {\n\t\tgetList: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tattach: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetNumberOfAttachments: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/numberofattachments\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tvalidateIncludedOnSend: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/validateincludedonsend\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/{attachmentId}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdetach: {\n\t\t\tpath: \"/api/fileattachments/attachments-v1/{attachmentId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tfinancialyears: {\n\t\tgetList: { path: \"/3/financialyears\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/financialyears\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/financialyears/{Id}\" as const, method: \"get\" as const },\n\t},\n\tinbox: {\n\t\tgetList: { path: \"/3/inbox\" as const, method: \"get\" as const },\n\t\tupload: { path: \"/3/inbox\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/inbox/{Id}\" as const, method: \"get\" as const },\n\t\tdelete: { path: \"/3/inbox/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tintegrationDeveloper: {\n\t\tlistRatings: {\n\t\t\tpath: \"/api/integration-developer/ratings-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSalesForIntegration: {\n\t\t\tpath: \"/api/integration-developer/sales-v1/{integrationId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetUsersForIntegrationAndTenant: {\n\t\t\tpath: \"/api/integration-developer/users/users-v1/{integrationId}/{tenantId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tintegrationPartner: {\n\t\tgetSalesForApp: {\n\t\t\tpath: \"/api/integration-partner/apps/sales-v1/{appId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSalesForAppAndTenant: {\n\t\t\tpath: \"/api/integration-partner/apps/sales-v1/{appId}/{tenantId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tinvoiceaccruals: {\n\t\tgetList: { path: \"/3/invoiceaccruals\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoiceaccruals\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/invoiceaccruals/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tinvoicepayments: {\n\t\tgetList: { path: \"/3/invoicepayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoicepayments\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/invoicepayments/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/invoicepayments/{Number}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tinvoices: {\n\t\tgetList: { path: \"/3/invoices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/invoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcredit: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/credit\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEinvoice: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/einvoice\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsendEprint: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/eprint\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprintReminder: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/printreminder\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsetWarehouseReady: {\n\t\t\tpath: \"/3/invoices/{DocumentNumber}/warehouseready\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tlabels: {\n\t\tgetList: { path: \"/3/labels\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/labels\" as const, method: \"post\" as const },\n\t\tupdate: { path: \"/3/labels/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/labels/{Id}\" as const, method: \"delete\" as const },\n\t},\n\tme: {\n\t\tget: { path: \"/3/me\" as const, method: \"get\" as const },\n\t},\n\tmodesofpayments: {\n\t\tgetList: { path: \"/3/modesofpayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/modesofpayments\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/modesofpayments/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/modesofpayments/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/modesofpayments/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tnoxfinansinvoices: {\n\t\tsend: { path: \"/3/noxfinansinvoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tpause: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/pause\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treportPayment: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/report-payment\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tstop: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/stop\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\ttakeFees: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/take-fees\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tunpause: {\n\t\t\tpath: \"/3/noxfinansinvoices/{InvoiceNumber}/unpause\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\toffers: {\n\t\tgetList: { path: \"/3/offers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/offers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateOrder: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/createorder\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/offers/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\torders: {\n\t\tgetList: { path: \"/3/orders\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/orders\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateInvoice: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/createinvoice\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendEmail: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/email\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tmarkAsSent: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/externalprint\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetPreview: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/preview\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tprint: {\n\t\t\tpath: \"/3/orders/{DocumentNumber}/print\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tpredefinedaccounts: {\n\t\tgetList: { path: \"/3/predefinedaccounts\" as const, method: \"get\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/predefinedaccounts/{name}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/predefinedaccounts/{name}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tpredefinedvoucherseries: {\n\t\tgetList: {\n\t\t\tpath: \"/3/predefinedvoucherseries\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/predefinedvoucherseries/{Name}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/predefinedvoucherseries/{Name}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tpricelists: {\n\t\tgetList: { path: \"/3/pricelists\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/pricelists\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/pricelists/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/pricelists/{Code}\" as const, method: \"put\" as const },\n\t},\n\tprices: {\n\t\tgetList: { path: \"/3/prices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/prices\" as const, method: \"post\" as const },\n\t\tgetSubList: {\n\t\t\tpath: \"/3/prices/sublist/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteByFromQuantity: {\n\t\t\tpath: \"/3/prices/{PriceList}/{ArticleNumber}/{FromQuantity}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tprinttemplates: {\n\t\tgetList: { path: \"/3/printtemplates\" as const, method: \"get\" as const },\n\t},\n\tprojects: {\n\t\tgetList: { path: \"/3/projects\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/projects\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/projects/{ProjectNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsalarytransactions: {\n\t\tgetList: { path: \"/3/salarytransactions\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/salarytransactions\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/salarytransactions/{SalaryRow}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tscheduletimes: {\n\t\tget: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tresetDay: {\n\t\t\tpath: \"/3/scheduletimes/{EmployeeId}/{Date}/resetday\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsettings: {\n\t\tgetCompanySettings: {\n\t\t\tpath: \"/3/settings/company\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetLockedPeriod: {\n\t\t\tpath: \"/3/settings/lockedperiod\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tsie: {\n\t\tget: { path: \"/3/sie/{Type}\" as const, method: \"get\" as const },\n\t},\n\tsupplierinvoiceaccruals: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoiceaccruals/{SupplierInvoiceNumber}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoiceexternalurlconnections: {\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoiceexternalurlconnections/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoicefileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoicefileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tsupplierinvoicepayments: {\n\t\tgetList: {\n\t\t\tpath: \"/3/supplierinvoicepayments\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/supplierinvoicepayments\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/supplierinvoicepayments/{Number}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsupplierinvoices: {\n\t\tgetList: { path: \"/3/supplierinvoices\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/supplierinvoices\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tapprovalBookkeep: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/approvalbookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tapprovalPayment: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/approvalpayment\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tbookkeep: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/bookkeep\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcancel: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/cancel\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcredit: {\n\t\t\tpath: \"/3/supplierinvoices/{GivenNumber}/credit\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\tsuppliers: {\n\t\tgetList: { path: \"/3/suppliers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/suppliers\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/suppliers/{SupplierNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/suppliers/{SupplierNumber}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\ttaxreductions: {\n\t\tgetList: { path: \"/3/taxreductions\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/taxreductions\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/taxreductions/{Id}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/taxreductions/{Id}\" as const, method: \"put\" as const },\n\t\tdelete: {\n\t\t\tpath: \"/3/taxreductions/{Id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\ttermsofdeliveries: {\n\t\tgetList: { path: \"/3/termsofdeliveries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/termsofdeliveries\" as const, method: \"post\" as const },\n\t\tget: {\n\t\t\tpath: \"/3/termsofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdate: {\n\t\t\tpath: \"/3/termsofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\ttermsofpayments: {\n\t\tgetList: { path: \"/3/termsofpayments\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/termsofpayments\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/termsofpayments/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/termsofpayments/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/termsofpayments/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\ttime: {\n\t\tlistArticles: {\n\t\t\tpath: \"/api/time/articles-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistRegistrations: {\n\t\t\tpath: \"/api/time/registrations-v2\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tunits: {\n\t\tgetList: { path: \"/3/units\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/units\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/units/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: { path: \"/3/units/{Code}\" as const, method: \"put\" as const },\n\t\tdelete: { path: \"/3/units/{Code}\" as const, method: \"delete\" as const },\n\t},\n\tvacationdebtbasis: {\n\t\tget: {\n\t\t\tpath: \"/3/vacationdebtbasis/{Year}/{Month}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tvoucherfileconnections: {\n\t\tgetList: {\n\t\t\tpath: \"/3/voucherfileconnections\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreate: {\n\t\t\tpath: \"/3/voucherfileconnections\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/voucherfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/voucherfileconnections/{FileId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n\tvouchers: {\n\t\tgetList: { path: \"/3/vouchers\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/vouchers\" as const, method: \"post\" as const },\n\t\tgetSubList: {\n\t\t\tpath: \"/3/vouchers/sublist\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetSubListBySeries: {\n\t\t\tpath: \"/3/vouchers/sublist/{VoucherSeries}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tget: {\n\t\t\tpath: \"/3/vouchers/{VoucherSeries}/{VoucherNumber}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\tvoucherseries: {\n\t\tgetList: { path: \"/3/voucherseries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/voucherseries\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/voucherseries/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/voucherseries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t},\n\twarehouse: {\n\t\tlistDeliveries: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateInboundNote: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\treleaseInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidInbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/inbounddeliveries/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateOutboundNote: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\treleaseOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidOutbound: {\n\t\t\tpath: \"/api/warehouse/deliveries-v1/outbounddeliveries/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistDocumentTypes: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateDocumentType: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetDocumentType: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/documenttypes-v1/{type}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidCustomInbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/inbound-v1/{type}/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidCustomOutbound: {\n\t\t\tpath: \"/api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tsaveIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateIncomingGoodsNote: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tsetIncomingGoodsCompleted: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/completed\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidIncomingGoods: {\n\t\t\tpath: \"/api/warehouse/incominggoods-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistProductionOrders: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetBillOfMaterials: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/billofmaterials/{itemId}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\treleaseProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/release/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/void/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateProductionOrder: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tupdateProductionOrderNote: {\n\t\t\tpath: \"/api/warehouse/productionorders-v1/{id}\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tlistPurchaseOrders: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreatePurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetCsvReport: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/csv\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tbatchUpdateResponseState: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/response\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsendMany: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/sendpurchaseorders\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetPurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdatePurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsetManuallyCompleted: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/complete\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsetDropshipCompleted: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/dropshipcomplete\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetMatchedDocuments: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/matches\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetNotes: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/notes\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdatePartial: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/partial\" as const,\n\t\t\tmethod: \"patch\" as const,\n\t\t},\n\t\tupdateResponseState: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/response\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tsend: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/send\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tvoidPurchaseOrder: {\n\t\t\tpath: \"/api/warehouse/purchaseorders-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetStockBalance: {\n\t\t\tpath: \"/api/warehouse/status-v1/stockbalance\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistStockPoints: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetManyStockPoints: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/multi\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tgetStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tappendStockLocations: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tupdateStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteStockPoint: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tlistStockLocations: {\n\t\t\tpath: \"/api/warehouse/stockpoints-v1/{id}/stocklocations\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tlistStockTakings: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tcreateStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdeleteStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\taddRowsByFilter: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/addrows\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetCandidateRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/candidates\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\treleaseStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tlistRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\taddRows: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tdeleteRowsByFilter: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tdeleteRow: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/rows/{rowId}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t\tvoidStockTaking: {\n\t\t\tpath: \"/api/warehouse/stocktaking-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tcreateStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1\" as const,\n\t\t\tmethod: \"post\" as const,\n\t\t},\n\t\tgetStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t\tupdateStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\treleaseStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}/release\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tvoidStockTransfer: {\n\t\t\tpath: \"/api/warehouse/stocktransfer-v1/{id}/void\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tgetActivationStatus: {\n\t\t\tpath: \"/api/warehouse/tenants-v4\" as const,\n\t\t\tmethod: \"get\" as const,\n\t\t},\n\t},\n\twayofdeliveries: {\n\t\tgetList: { path: \"/3/wayofdeliveries\" as const, method: \"get\" as const },\n\t\tcreate: { path: \"/3/wayofdeliveries\" as const, method: \"post\" as const },\n\t\tget: { path: \"/3/wayofdeliveries/{Code}\" as const, method: \"get\" as const },\n\t\tupdate: {\n\t\t\tpath: \"/3/wayofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"put\" as const,\n\t\t},\n\t\tdelete: {\n\t\t\tpath: \"/3/wayofdeliveries/{Code}\" as const,\n\t\t\tmethod: \"delete\" as const,\n\t\t},\n\t},\n} as const;\n\nexport type ResourceOperations = typeof RESOURCE_OPERATIONS;\n","import {\r\n\ttype ErrorResponse,\r\n\ttype InitFortnoxOptions,\r\n\tMETHODS,\r\n\trequest,\r\n} from \"./request\";\r\nimport {\r\n\tRESOURCE_OPERATIONS,\r\n\ttype ResourceOperations,\r\n} from \"./types/resource-operations.gen\";\r\nimport type { OmitNever } from \"./types/utility-types\";\r\n\r\ntype FortnoxInput<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = TRoutes[TPath][TMethod] extends { request: infer R } ? R : never;\r\n\r\ntype FortnoxInputCleaned<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;\r\n\r\ntype FortnoxOutput<\r\n\tTRoutes extends object,\r\n\tTPath extends keyof TRoutes,\r\n\tTMethod extends keyof TRoutes[TPath],\r\n> = TRoutes[TPath][TMethod] extends { response: { body: infer B } } ? B : never;\r\n\r\ntype FortnoxResult<TData> = Promise<\r\n\t{ error: ErrorResponse; data: null } | { error: null; data: TData }\r\n>;\r\n\r\ntype FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = {\r\n\t[TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {\r\n\t\trequest: { params: never; body: never };\r\n\t}\r\n\t\t? (\r\n\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t: (\r\n\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>;\r\n};\r\n\r\n/** Resolves the callable type for a single resource operation (path + method pair). */\r\ntype FortnoxOpMethod<\r\n\tTRoutes extends object,\r\n\tTPath,\r\n\tTMethod,\r\n> = TPath extends keyof TRoutes\r\n\t? TMethod extends keyof TRoutes[TPath]\r\n\t\t? TRoutes[TPath][TMethod] extends {\r\n\t\t\t\trequest: { params: never; body: never };\r\n\t\t\t}\r\n\t\t\t? (\r\n\t\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t\t: (\r\n\t\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\r\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\r\n\t\t: never\r\n\t: never;\r\n\r\n/** Methods for a single resource, keyed by operation ID, filtered to only those present in TRoutes. */\r\ntype FortnoxResourceMethods<\r\n\tTRoutes extends object,\r\n\tTResource extends keyof ResourceOperations,\r\n> = OmitNever<{\r\n\t[TOp in keyof ResourceOperations[TResource]]: ResourceOperations[TResource][TOp] extends {\r\n\t\tpath: infer P;\r\n\t\tmethod: infer M;\r\n\t}\r\n\t\t? FortnoxOpMethod<TRoutes, P, M>\r\n\t\t: never;\r\n}>;\r\n\r\n/** Resource-based accessor shape: fortnox.invoices.getList(...) */\r\ntype FortnoxResources<TRoutes extends object> = {\r\n\t[TResource in keyof ResourceOperations]: FortnoxResourceMethods<\r\n\t\tTRoutes,\r\n\t\tTResource\r\n\t>;\r\n};\r\n\r\n/** Path-based accessor: fortnox.path(\"/3/invoices\").get(...) */\r\nexport type FortnoxPathFn<TRoutes extends object> = <\r\n\tTPath extends keyof TRoutes,\r\n>(\r\n\tpath: TPath,\r\n) => FortnoxMethods<TRoutes, TPath>;\r\n\r\n/** Full Fortnox client with both resource accessors and path-based fallback. */\r\nexport type FortnoxClient<TRoutes extends object> =\r\n\tFortnoxResources<TRoutes> & {\r\n\t\tpath: FortnoxPathFn<TRoutes>;\r\n\t};\r\n\r\nexport function createInitFortnox<TRoutes extends object>(): {\r\n\t(options: { accessToken: string }): FortnoxClient<TRoutes>;\r\n\t(options: {\r\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\r\n\t}): FortnoxClient<TRoutes>;\r\n} {\r\n\tfunction initFortnox(options: {\r\n\t\taccessToken: string;\r\n\t}): FortnoxClient<TRoutes>;\r\n\tfunction initFortnox(options: {\r\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\r\n\t}): FortnoxClient<TRoutes>;\r\n\tfunction initFortnox(\r\n\t\tinitOptions: InitFortnoxOptions,\r\n\t): FortnoxClient<TRoutes> {\r\n\t\tconst pathFn = <TPath extends keyof TRoutes>(\r\n\t\t\tpath: TPath,\r\n\t\t): FortnoxMethods<TRoutes, TPath> => {\r\n\t\t\treturn Object.fromEntries(\r\n\t\t\t\tMETHODS.map((method) => [\r\n\t\t\t\t\tmethod,\r\n\t\t\t\t\t(options: Record<string, unknown>) =>\r\n\t\t\t\t\t\trequest({ path: path as string, method, ...options }, initOptions),\r\n\t\t\t\t]),\r\n\t\t\t) as unknown as FortnoxMethods<TRoutes, TPath>;\r\n\t\t};\r\n\r\n\t\tconst client = { path: pathFn } as unknown as FortnoxClient<TRoutes>;\r\n\r\n\t\tfor (const [resource, ops] of Object.entries(RESOURCE_OPERATIONS)) {\r\n\t\t\tconst resourceMethods: Record<string, unknown> = {};\r\n\t\t\tfor (const [opId, { path, method }] of Object.entries(\r\n\t\t\t\tops as Record<string, { path: string; method: string }>,\r\n\t\t\t)) {\r\n\t\t\t\tresourceMethods[opId] = (options: Record<string, unknown> = {}) =>\r\n\t\t\t\t\trequest(\r\n\t\t\t\t\t\t{ path, method: method as (typeof METHODS)[number], ...options },\r\n\t\t\t\t\t\tinitOptions,\r\n\t\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t(client as unknown as Record<string, unknown>)[resource] =\r\n\t\t\t\tresourceMethods;\r\n\t\t}\r\n\r\n\t\treturn client;\r\n\t}\r\n\treturn initFortnox;\r\n}\r\n"],"mappings":";;AAAA,MAAa,UAAU;CAAC;CAAO;CAAQ;CAAO;CAAU;CAAQ;AAiChE,eAAsB,QACrB,YACA,aACC;AACD,KAAI;EACH,IAAI;EACJ,IAAI;AAEJ,MAAI,iBAAiB,aAAa;AACjC,aAAU,EACT,eAAe,U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