@unifetch/fortnox 2.0.0 → 2.1.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.
- package/README.md +2 -0
- package/dist/{create-fortnox-CSULrMkm.mjs → create-fortnox-BB_0mFBL.mjs} +434 -434
- package/dist/create-fortnox-BB_0mFBL.mjs.map +1 -0
- package/dist/{create-fortnox-D9a-YhJ-.d.cts → create-fortnox-BQgaBk5m.d.cts} +3 -4
- package/dist/create-fortnox-BQgaBk5m.d.cts.map +1 -0
- package/dist/{create-fortnox-BRQXlzrc.cjs → create-fortnox-DGjVOKfm.cjs} +434 -434
- package/dist/create-fortnox-DGjVOKfm.cjs.map +1 -0
- package/dist/{create-fortnox-CIWMiQTF.d.mts → create-fortnox-DiGzUeVa.d.mts} +3 -4
- package/dist/create-fortnox-DiGzUeVa.d.mts.map +1 -0
- package/dist/index-BWHJmubR.d.cts +150 -0
- package/dist/index-BWHJmubR.d.cts.map +1 -0
- package/dist/index-CqOhNC_h.d.mts +150 -0
- package/dist/index-CqOhNC_h.d.mts.map +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{official-COyUx9dP.d.cts → official-BFBd-NeQ.d.cts} +2 -2
- package/dist/{official-COyUx9dP.d.cts.map → official-BFBd-NeQ.d.cts.map} +1 -1
- package/dist/{official-Lpmk8gr7.d.mts → official-DeZGQsNS.d.mts} +2 -2
- package/dist/{official-Lpmk8gr7.d.mts.map → official-DeZGQsNS.d.mts.map} +1 -1
- package/dist/official.cjs +1 -1
- package/dist/official.d.cts +1 -1
- package/dist/official.d.mts +1 -1
- package/dist/official.mjs +1 -1
- package/dist/patched.cjs +1 -1
- package/dist/patched.d.cts +4 -142
- package/dist/patched.d.cts.map +1 -1
- package/dist/patched.d.mts +4 -142
- package/dist/patched.d.mts.map +1 -1
- package/dist/patched.mjs +1 -1
- package/dist/types/custom/index.cjs +0 -0
- package/dist/types/custom/index.d.cts +2 -0
- package/dist/types/custom/index.d.mts +2 -0
- package/dist/types/custom/index.mjs +1 -0
- package/dist/utility-types-CXs8tUw_.d.mts +15 -0
- package/dist/utility-types-CXs8tUw_.d.mts.map +1 -0
- package/dist/utility-types-DLzshE5r.d.cts +15 -0
- package/dist/utility-types-DLzshE5r.d.cts.map +1 -0
- package/package.json +6 -2
- package/dist/create-fortnox-BRQXlzrc.cjs.map +0 -1
- package/dist/create-fortnox-CIWMiQTF.d.mts.map +0 -1
- package/dist/create-fortnox-CSULrMkm.mjs.map +0 -1
- package/dist/create-fortnox-D9a-YhJ-.d.cts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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,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,Q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ACN,QAAQ;GACR;EACD,sBAAsB;GACrB,MAAM;GACN,QAAQ;GACR;EACD,mBAAmB;GAClB,MAAM;GACN,QAAQ;GACR;EACD,qBAAqB;GACpB,MAAM;GACN,QAAQ;GACR;EACD;CACD,iBAAiB;EAChB,SAAS;GAAE,MAAM;GAA+B,QAAQ;GAAgB;EACxE,QAAQ;GAAE,MAAM;GAA+B,QAAQ;GAAiB;EACxE,KAAK;GAAE,MAAM;GAAsC,QAAQ;GAAgB;EAC3E,QAAQ;GACP,MAAM;GACN,QAAQ;GACR;EACD,QAAQ;GACP,MAAM;GACN,QAAQ;GACR;EACD;CACD;;;;AC7qCD,SAAgB,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,3 +1,5 @@
|
|
|
1
|
+
import { n as OmitNever } from "./utility-types-CXs8tUw_.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/request.d.ts
|
|
2
4
|
type ErrorResponse = {
|
|
3
5
|
ErrorSource: "fortnox" | "unknown";
|
|
@@ -1647,9 +1649,6 @@ declare const RESOURCE_OPERATIONS: {
|
|
|
1647
1649
|
};
|
|
1648
1650
|
type ResourceOperations = typeof RESOURCE_OPERATIONS;
|
|
1649
1651
|
//#endregion
|
|
1650
|
-
//#region src/types/utility-types.d.ts
|
|
1651
|
-
type OmitNever<T> = { [K in keyof T as T[K] extends never ? never : K]: T[K] };
|
|
1652
|
-
//#endregion
|
|
1653
1652
|
//#region src/create-fortnox.d.ts
|
|
1654
1653
|
type FortnoxInput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
1655
1654
|
request: infer R;
|
|
@@ -1695,4 +1694,4 @@ type FortnoxClient<TRoutes extends object> = FortnoxResources<TRoutes> & {
|
|
|
1695
1694
|
};
|
|
1696
1695
|
//#endregion
|
|
1697
1696
|
export { FortnoxClient as t };
|
|
1698
|
-
//# sourceMappingURL=create-fortnox-
|
|
1697
|
+
//# sourceMappingURL=create-fortnox-DiGzUeVa.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-fortnox-DiGzUeVa.d.mts","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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AAoB,OAAA,GACrB,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"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { t as FortnoxListWrap } from "./utility-types-DLzshE5r.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/custom/invoice.type.d.ts
|
|
4
|
+
type HouseWorkType = "CONSTRUCTION" | "ELECTRICITY" | "GLASSMETALWORK" | "GROUNDDRAINAGEWORK" | "MASONRY" | "PAINTINGWALLPAPERING" | "HVAC" | "MAJORAPPLIANCEREPAIR" | "MOVINGSERVICES" | "ITSERVICES" | "CLEANING" | "TEXTILECLOTHING" | "SNOWPLOWING" | "GARDENING" | "BABYSITTING" | "OTHERCARE" | "OTHERCOSTS" | "SOLARCELLS" | "STORAGESELFPRODUCEDELECTRICITY" | "CHARGINGSTATIONELECTRICVEHICLE" | "HOMEMAINTENANCE" | "FURNISHING" | "TRANSPORTATIONSERVICES" | "WASHINGANDCAREOFCLOTHING";
|
|
5
|
+
type InvoiceType = "INVOICE" | "AGREEMENTINVOICE" | "INTRESTINVOICE" | "SUMMARYINVOICE" | "CASHINVOICE";
|
|
6
|
+
type TaxReductionType = "none" | "rot" | "rut" | "green";
|
|
7
|
+
type InvoiceRow = {
|
|
8
|
+
AccountNumber: number;
|
|
9
|
+
ArticleNumber: string;
|
|
10
|
+
ContributionPercent: string;
|
|
11
|
+
ContributionValue: string;
|
|
12
|
+
Cost: number;
|
|
13
|
+
CostCenter: string | null;
|
|
14
|
+
DeliveredQuantity: string;
|
|
15
|
+
Description: string;
|
|
16
|
+
Discount: number;
|
|
17
|
+
DiscountType: "AMOUNT" | "PERCENT";
|
|
18
|
+
HouseWork: boolean;
|
|
19
|
+
HouseWorkHoursToReport: number | null;
|
|
20
|
+
HouseWorkType: HouseWorkType | null;
|
|
21
|
+
Price: number;
|
|
22
|
+
PriceExcludingVAT: number;
|
|
23
|
+
Project: string;
|
|
24
|
+
RowId: number;
|
|
25
|
+
StockPointCode: string | null;
|
|
26
|
+
Total: number;
|
|
27
|
+
TotalExcludingVAT: number;
|
|
28
|
+
Unit: string;
|
|
29
|
+
VAT: number;
|
|
30
|
+
VATCode: string;
|
|
31
|
+
};
|
|
32
|
+
type EDIInformation = {
|
|
33
|
+
EDIGlobalLocationNumber: string;
|
|
34
|
+
EDIGlobalLocationNumberDelivery: string;
|
|
35
|
+
EDIInvoiceExtra1: string;
|
|
36
|
+
EDIInvoiceExtra2: string;
|
|
37
|
+
EDIOurElectronicReference: string;
|
|
38
|
+
EDIStatus: string;
|
|
39
|
+
EDIYourElectronicReference: string;
|
|
40
|
+
};
|
|
41
|
+
type EmailInformation = {
|
|
42
|
+
EmailAddressBCC: string;
|
|
43
|
+
EmailAddressCC: string;
|
|
44
|
+
EmailAddressFrom: string | null;
|
|
45
|
+
EmailAddressTo: string;
|
|
46
|
+
EmailBody: string;
|
|
47
|
+
EmailSubject: string;
|
|
48
|
+
};
|
|
49
|
+
type Invoice = {
|
|
50
|
+
"@url": string;
|
|
51
|
+
"@urlTaxReductionList": string;
|
|
52
|
+
AccountingMethod: "ACCRUAL" | "CASH";
|
|
53
|
+
Address1: string;
|
|
54
|
+
Address2: string;
|
|
55
|
+
AdministrationFee: number;
|
|
56
|
+
AdministrationFeeVAT: number;
|
|
57
|
+
Balance: number;
|
|
58
|
+
BasisTaxReduction: number;
|
|
59
|
+
Booked: boolean;
|
|
60
|
+
Cancelled: boolean;
|
|
61
|
+
City: string;
|
|
62
|
+
Comments: string;
|
|
63
|
+
ContractReference: number;
|
|
64
|
+
ContributionPercent: number;
|
|
65
|
+
ContributionValue: number;
|
|
66
|
+
CostCenter: string;
|
|
67
|
+
Country: string;
|
|
68
|
+
Credit: string;
|
|
69
|
+
CreditInvoiceReference: string;
|
|
70
|
+
Currency: string;
|
|
71
|
+
CurrencyRate: number;
|
|
72
|
+
CurrencyUnit: number;
|
|
73
|
+
CustomerName: string;
|
|
74
|
+
CustomerNumber: string;
|
|
75
|
+
DeliveryAddress1: string;
|
|
76
|
+
DeliveryAddress2: string;
|
|
77
|
+
DeliveryCity: string;
|
|
78
|
+
DeliveryCountry: string;
|
|
79
|
+
DeliveryDate: string | null;
|
|
80
|
+
DeliveryName: string;
|
|
81
|
+
DeliveryZipCode: string;
|
|
82
|
+
DocumentNumber: string;
|
|
83
|
+
DueDate: string;
|
|
84
|
+
EDIInformation: EDIInformation;
|
|
85
|
+
EUQuarterlyReport: boolean;
|
|
86
|
+
EmailInformation: EmailInformation;
|
|
87
|
+
ExternalInvoiceReference1: string;
|
|
88
|
+
ExternalInvoiceReference2: string;
|
|
89
|
+
FinalPayDate: string | null;
|
|
90
|
+
Freight: number;
|
|
91
|
+
FreightVAT: number;
|
|
92
|
+
Gross: number;
|
|
93
|
+
HouseWork: boolean;
|
|
94
|
+
InvoiceDate: string;
|
|
95
|
+
InvoicePeriodEnd: string;
|
|
96
|
+
InvoicePeriodReference: string;
|
|
97
|
+
InvoicePeriodStart: string;
|
|
98
|
+
InvoiceReference: string;
|
|
99
|
+
InvoiceRows: InvoiceRow[];
|
|
100
|
+
InvoiceType: InvoiceType;
|
|
101
|
+
Labels: {
|
|
102
|
+
Id: number;
|
|
103
|
+
}[];
|
|
104
|
+
Language: "SV" | "EN";
|
|
105
|
+
LastRemindDate: string | null;
|
|
106
|
+
Net: number;
|
|
107
|
+
NotCompleted: boolean;
|
|
108
|
+
NoxFinans: boolean;
|
|
109
|
+
OCR: string;
|
|
110
|
+
OfferReference: string;
|
|
111
|
+
OrderReference: string;
|
|
112
|
+
OrganisationNumber: string;
|
|
113
|
+
OurReference: string;
|
|
114
|
+
OutboundDate: string;
|
|
115
|
+
PaymentWay: "CASH" | "CARD" | "AG";
|
|
116
|
+
Phone1: string;
|
|
117
|
+
Phone2: string;
|
|
118
|
+
PriceList: string;
|
|
119
|
+
PrintTemplate: string;
|
|
120
|
+
Project: string;
|
|
121
|
+
Remarks: string;
|
|
122
|
+
Reminders: number;
|
|
123
|
+
RoundOff: number;
|
|
124
|
+
Sent: boolean;
|
|
125
|
+
TaxReduction: number | null;
|
|
126
|
+
TaxReductionType: TaxReductionType;
|
|
127
|
+
TermsOfDelivery: string;
|
|
128
|
+
TermsOfPayment: string;
|
|
129
|
+
TimeBasisReference: number | null;
|
|
130
|
+
Total: number;
|
|
131
|
+
TotalToPay: number;
|
|
132
|
+
TotalVAT: number;
|
|
133
|
+
VATIncluded: boolean;
|
|
134
|
+
VoucherNumber: number | null;
|
|
135
|
+
VoucherSeries: string | null;
|
|
136
|
+
VoucherYear: number | null;
|
|
137
|
+
WarehouseReady: boolean;
|
|
138
|
+
WayOfDelivery: string;
|
|
139
|
+
YourOrderNumber: string;
|
|
140
|
+
YourReference: string;
|
|
141
|
+
ZipCode: string;
|
|
142
|
+
};
|
|
143
|
+
type InvoiceResponse = {
|
|
144
|
+
Invoice: Invoice;
|
|
145
|
+
};
|
|
146
|
+
type InvoiceListItem = Pick<Invoice, "@url" | "Balance" | "Booked" | "Cancelled" | "CostCenter" | "Currency" | "CurrencyRate" | "CurrencyUnit" | "CustomerName" | "CustomerNumber" | "DocumentNumber" | "DueDate" | "ExternalInvoiceReference1" | "ExternalInvoiceReference2" | "InvoiceDate" | "InvoiceType" | "NoxFinans" | "OCR" | "VoucherNumber" | "VoucherSeries" | "VoucherYear" | "WayOfDelivery" | "TermsOfPayment" | "Project" | "Sent" | "Total" | "FinalPayDate">;
|
|
147
|
+
type InvoiceListWrap = FortnoxListWrap<"Invoices", InvoiceListItem>;
|
|
148
|
+
//#endregion
|
|
149
|
+
export { InvoiceRow as a, InvoiceResponse as i, Invoice as n, InvoiceType as o, InvoiceListWrap as r, TaxReductionType as s, HouseWorkType as t };
|
|
150
|
+
//# sourceMappingURL=index-BWHJmubR.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BWHJmubR.d.cts","names":[],"sources":["../src/types/custom/invoice.type.ts"],"mappings":";;;KAEY,aAAA;AAAA,KA0BA,WAAA;AAAA,KAOA,gBAAA;AAAA,KAEA,UAAA;EACX,aAAA;EACA,aAAA;EACA,mBAAA;EACA,iBAAA;EACA,IAAA;EACA,UAAA;EACA,iBAAA;EACA,WAAA;EACA,QAAA;EACA,YAAA;EACA,SAAA;EACA,sBAAA;EACA,aAAA,EAAe,aAAA;EACf,KAAA;EACA,iBAAA;EACA,OAAA;EACA,KAAA;EACA,cAAA;EACA,KAAA;EACA,iBAAA;EACA,IAAA;EACA,GAAA;EACA,OAAA;AAAA;AAAA,KAGI,cAAA;EACJ,uBAAA;EACA,+BAAA;EACA,gBAAA;EACA,gBAAA;EACA,yBAAA;EACA,SAAA;EACA,0BAAA;AAAA;AAAA,KAGI,gBAAA;EACJ,eAAA;EACA,cAAA;EACA,gBAAA;EACA,cAAA;EACA,SAAA;EACA,YA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AA,GAAkB,eAAA,aAA4B,eAAA"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { t as FortnoxListWrap } from "./utility-types-CXs8tUw_.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/custom/invoice.type.d.ts
|
|
4
|
+
type HouseWorkType = "CONSTRUCTION" | "ELECTRICITY" | "GLASSMETALWORK" | "GROUNDDRAINAGEWORK" | "MASONRY" | "PAINTINGWALLPAPERING" | "HVAC" | "MAJORAPPLIANCEREPAIR" | "MOVINGSERVICES" | "ITSERVICES" | "CLEANING" | "TEXTILECLOTHING" | "SNOWPLOWING" | "GARDENING" | "BABYSITTING" | "OTHERCARE" | "OTHERCOSTS" | "SOLARCELLS" | "STORAGESELFPRODUCEDELECTRICITY" | "CHARGINGSTATIONELECTRICVEHICLE" | "HOMEMAINTENANCE" | "FURNISHING" | "TRANSPORTATIONSERVICES" | "WASHINGANDCAREOFCLOTHING";
|
|
5
|
+
type InvoiceType = "INVOICE" | "AGREEMENTINVOICE" | "INTRESTINVOICE" | "SUMMARYINVOICE" | "CASHINVOICE";
|
|
6
|
+
type TaxReductionType = "none" | "rot" | "rut" | "green";
|
|
7
|
+
type InvoiceRow = {
|
|
8
|
+
AccountNumber: number;
|
|
9
|
+
ArticleNumber: string;
|
|
10
|
+
ContributionPercent: string;
|
|
11
|
+
ContributionValue: string;
|
|
12
|
+
Cost: number;
|
|
13
|
+
CostCenter: string | null;
|
|
14
|
+
DeliveredQuantity: string;
|
|
15
|
+
Description: string;
|
|
16
|
+
Discount: number;
|
|
17
|
+
DiscountType: "AMOUNT" | "PERCENT";
|
|
18
|
+
HouseWork: boolean;
|
|
19
|
+
HouseWorkHoursToReport: number | null;
|
|
20
|
+
HouseWorkType: HouseWorkType | null;
|
|
21
|
+
Price: number;
|
|
22
|
+
PriceExcludingVAT: number;
|
|
23
|
+
Project: string;
|
|
24
|
+
RowId: number;
|
|
25
|
+
StockPointCode: string | null;
|
|
26
|
+
Total: number;
|
|
27
|
+
TotalExcludingVAT: number;
|
|
28
|
+
Unit: string;
|
|
29
|
+
VAT: number;
|
|
30
|
+
VATCode: string;
|
|
31
|
+
};
|
|
32
|
+
type EDIInformation = {
|
|
33
|
+
EDIGlobalLocationNumber: string;
|
|
34
|
+
EDIGlobalLocationNumberDelivery: string;
|
|
35
|
+
EDIInvoiceExtra1: string;
|
|
36
|
+
EDIInvoiceExtra2: string;
|
|
37
|
+
EDIOurElectronicReference: string;
|
|
38
|
+
EDIStatus: string;
|
|
39
|
+
EDIYourElectronicReference: string;
|
|
40
|
+
};
|
|
41
|
+
type EmailInformation = {
|
|
42
|
+
EmailAddressBCC: string;
|
|
43
|
+
EmailAddressCC: string;
|
|
44
|
+
EmailAddressFrom: string | null;
|
|
45
|
+
EmailAddressTo: string;
|
|
46
|
+
EmailBody: string;
|
|
47
|
+
EmailSubject: string;
|
|
48
|
+
};
|
|
49
|
+
type Invoice = {
|
|
50
|
+
"@url": string;
|
|
51
|
+
"@urlTaxReductionList": string;
|
|
52
|
+
AccountingMethod: "ACCRUAL" | "CASH";
|
|
53
|
+
Address1: string;
|
|
54
|
+
Address2: string;
|
|
55
|
+
AdministrationFee: number;
|
|
56
|
+
AdministrationFeeVAT: number;
|
|
57
|
+
Balance: number;
|
|
58
|
+
BasisTaxReduction: number;
|
|
59
|
+
Booked: boolean;
|
|
60
|
+
Cancelled: boolean;
|
|
61
|
+
City: string;
|
|
62
|
+
Comments: string;
|
|
63
|
+
ContractReference: number;
|
|
64
|
+
ContributionPercent: number;
|
|
65
|
+
ContributionValue: number;
|
|
66
|
+
CostCenter: string;
|
|
67
|
+
Country: string;
|
|
68
|
+
Credit: string;
|
|
69
|
+
CreditInvoiceReference: string;
|
|
70
|
+
Currency: string;
|
|
71
|
+
CurrencyRate: number;
|
|
72
|
+
CurrencyUnit: number;
|
|
73
|
+
CustomerName: string;
|
|
74
|
+
CustomerNumber: string;
|
|
75
|
+
DeliveryAddress1: string;
|
|
76
|
+
DeliveryAddress2: string;
|
|
77
|
+
DeliveryCity: string;
|
|
78
|
+
DeliveryCountry: string;
|
|
79
|
+
DeliveryDate: string | null;
|
|
80
|
+
DeliveryName: string;
|
|
81
|
+
DeliveryZipCode: string;
|
|
82
|
+
DocumentNumber: string;
|
|
83
|
+
DueDate: string;
|
|
84
|
+
EDIInformation: EDIInformation;
|
|
85
|
+
EUQuarterlyReport: boolean;
|
|
86
|
+
EmailInformation: EmailInformation;
|
|
87
|
+
ExternalInvoiceReference1: string;
|
|
88
|
+
ExternalInvoiceReference2: string;
|
|
89
|
+
FinalPayDate: string | null;
|
|
90
|
+
Freight: number;
|
|
91
|
+
FreightVAT: number;
|
|
92
|
+
Gross: number;
|
|
93
|
+
HouseWork: boolean;
|
|
94
|
+
InvoiceDate: string;
|
|
95
|
+
InvoicePeriodEnd: string;
|
|
96
|
+
InvoicePeriodReference: string;
|
|
97
|
+
InvoicePeriodStart: string;
|
|
98
|
+
InvoiceReference: string;
|
|
99
|
+
InvoiceRows: InvoiceRow[];
|
|
100
|
+
InvoiceType: InvoiceType;
|
|
101
|
+
Labels: {
|
|
102
|
+
Id: number;
|
|
103
|
+
}[];
|
|
104
|
+
Language: "SV" | "EN";
|
|
105
|
+
LastRemindDate: string | null;
|
|
106
|
+
Net: number;
|
|
107
|
+
NotCompleted: boolean;
|
|
108
|
+
NoxFinans: boolean;
|
|
109
|
+
OCR: string;
|
|
110
|
+
OfferReference: string;
|
|
111
|
+
OrderReference: string;
|
|
112
|
+
OrganisationNumber: string;
|
|
113
|
+
OurReference: string;
|
|
114
|
+
OutboundDate: string;
|
|
115
|
+
PaymentWay: "CASH" | "CARD" | "AG";
|
|
116
|
+
Phone1: string;
|
|
117
|
+
Phone2: string;
|
|
118
|
+
PriceList: string;
|
|
119
|
+
PrintTemplate: string;
|
|
120
|
+
Project: string;
|
|
121
|
+
Remarks: string;
|
|
122
|
+
Reminders: number;
|
|
123
|
+
RoundOff: number;
|
|
124
|
+
Sent: boolean;
|
|
125
|
+
TaxReduction: number | null;
|
|
126
|
+
TaxReductionType: TaxReductionType;
|
|
127
|
+
TermsOfDelivery: string;
|
|
128
|
+
TermsOfPayment: string;
|
|
129
|
+
TimeBasisReference: number | null;
|
|
130
|
+
Total: number;
|
|
131
|
+
TotalToPay: number;
|
|
132
|
+
TotalVAT: number;
|
|
133
|
+
VATIncluded: boolean;
|
|
134
|
+
VoucherNumber: number | null;
|
|
135
|
+
VoucherSeries: string | null;
|
|
136
|
+
VoucherYear: number | null;
|
|
137
|
+
WarehouseReady: boolean;
|
|
138
|
+
WayOfDelivery: string;
|
|
139
|
+
YourOrderNumber: string;
|
|
140
|
+
YourReference: string;
|
|
141
|
+
ZipCode: string;
|
|
142
|
+
};
|
|
143
|
+
type InvoiceResponse = {
|
|
144
|
+
Invoice: Invoice;
|
|
145
|
+
};
|
|
146
|
+
type InvoiceListItem = Pick<Invoice, "@url" | "Balance" | "Booked" | "Cancelled" | "CostCenter" | "Currency" | "CurrencyRate" | "CurrencyUnit" | "CustomerName" | "CustomerNumber" | "DocumentNumber" | "DueDate" | "ExternalInvoiceReference1" | "ExternalInvoiceReference2" | "InvoiceDate" | "InvoiceType" | "NoxFinans" | "OCR" | "VoucherNumber" | "VoucherSeries" | "VoucherYear" | "WayOfDelivery" | "TermsOfPayment" | "Project" | "Sent" | "Total" | "FinalPayDate">;
|
|
147
|
+
type InvoiceListWrap = FortnoxListWrap<"Invoices", InvoiceListItem>;
|
|
148
|
+
//#endregion
|
|
149
|
+
export { InvoiceRow as a, InvoiceResponse as i, Invoice as n, InvoiceType as o, InvoiceListWrap as r, TaxReductionType as s, HouseWorkType as t };
|
|
150
|
+
//# sourceMappingURL=index-CqOhNC_h.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CqOhNC_h.d.mts","names":[],"sources":["../src/types/custom/invoice.type.ts"],"mappings":";;;KAEY,aAAA;AAAA,KA0BA,WAAA;AAAA,KAOA,gBAAA;AAAA,KAEA,UAAA;EACX,aAA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A,kBAAA;EACA,YAAA;EACA,YAAA;EACA,UAAA;EACA,MAAA;EACA,MAAA;EACA,SAAA;EACA,aAAA;EACA,OAAA;EACA,OAAA;EACA,SAAA;EACA,QAAA;EACA,IAAA;EACA,YAAA;EACA,gBAAA,EAAkB,gBAAA;EAClB,eAAA;EACA,cAAA;EACA,kBAAA;EACA,KAAA;EACA,UAAA;EACA,QAAA;EACA,WAAA;EACA,aAAA;EACA,aAAA;EACA,WAAA;EACA,cAAA;EACA,aAAA;EACA,eAAA;EACA,aAAA;EACA,OAAA;AAAA;AAAA,KAGW,eAAA;EAAoB,OAAA,EAAS,OAAA;AAAA;AAAA,KAEpC,eAAA,GAAkB,IAAA,CACtB,OAAA;AAAA,KA8BW,eAAA,GAAkB,eAAA,aAA4B,eAAA"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as initFortnox } from "./official-
|
|
1
|
+
import { t as initFortnox } from "./official-BFBd-NeQ.cjs";
|
|
2
2
|
export { initFortnox };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as initFortnox } from "./official-
|
|
1
|
+
import { t as initFortnox } from "./official-DeZGQsNS.mjs";
|
|
2
2
|
export { initFortnox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FortnoxClient } from "./create-fortnox-
|
|
1
|
+
import { t as FortnoxClient } from "./create-fortnox-BQgaBk5m.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/types/official-schemas.gen.d.ts
|
|
4
4
|
interface FileattachmentsAttachment {
|
|
@@ -12256,4 +12256,4 @@ declare const initFortnox: {
|
|
|
12256
12256
|
};
|
|
12257
12257
|
//#endregion
|
|
12258
12258
|
export { initFortnox as t };
|
|
12259
|
-
//# sourceMappingURL=official-
|
|
12259
|
+
//# sourceMappingURL=official-BFBd-NeQ.d.cts.map
|