@unifetch/fortnox 2.1.1 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/{create-fortnox-DiGzUeVa.d.mts → create-fortnox-C0kWSxNm.d.mts} +32 -26
- package/dist/create-fortnox-C0kWSxNm.d.mts.map +1 -0
- package/dist/{create-fortnox-BQgaBk5m.d.cts → create-fortnox-D9s3VXSg.d.cts} +32 -26
- package/dist/create-fortnox-D9s3VXSg.d.cts.map +1 -0
- package/dist/{create-fortnox-BB_0mFBL.mjs → create-fortnox-mini-CNEKEVs1.cjs} +32 -4
- package/dist/create-fortnox-mini-CNEKEVs1.cjs.map +1 -0
- package/dist/{create-fortnox-DGjVOKfm.cjs → create-fortnox-mini-zGxET1Vm.mjs} +20 -10
- package/dist/create-fortnox-mini-zGxET1Vm.mjs.map +1 -0
- package/dist/{index-CqOhNC_h.d.mts → index-B1gsa8-e.d.mts} +1 -1
- package/dist/{index-BWHJmubR.d.cts.map → index-B1gsa8-e.d.mts.map} +1 -1
- package/dist/{index-BWHJmubR.d.cts → index-C_4EXYAu.d.cts} +1 -1
- package/dist/{index-CqOhNC_h.d.mts.map → index-C_4EXYAu.d.cts.map} +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/official.cjs +4 -2
- package/dist/official.cjs.map +1 -1
- package/dist/official.d.cts +12271 -2
- package/dist/official.d.cts.map +1 -0
- package/dist/official.d.mts +12271 -2
- package/dist/official.d.mts.map +1 -0
- package/dist/official.mjs +3 -2
- package/dist/official.mjs.map +1 -1
- package/dist/{official-BFBd-NeQ.d.cts → patched-C9Vb7H1N.d.cts} +455 -446
- package/dist/patched-C9Vb7H1N.d.cts.map +1 -0
- package/dist/{official-DeZGQsNS.d.mts → patched-CChAT2O0.d.mts} +455 -446
- package/dist/patched-CChAT2O0.d.mts.map +1 -0
- package/dist/patched.cjs +4 -2
- package/dist/patched.cjs.map +1 -1
- package/dist/patched.d.cts +2 -12256
- package/dist/patched.d.mts +2 -12256
- package/dist/patched.mjs +3 -2
- package/dist/patched.mjs.map +1 -1
- package/dist/types/custom/index.d.cts +1 -1
- package/dist/types/custom/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/create-fortnox-BB_0mFBL.mjs.map +0 -1
- package/dist/create-fortnox-BQgaBk5m.d.cts.map +0 -1
- package/dist/create-fortnox-DGjVOKfm.cjs.map +0 -1
- package/dist/create-fortnox-DiGzUeVa.d.mts.map +0 -1
- package/dist/official-BFBd-NeQ.d.cts.map +0 -1
- package/dist/official-DeZGQsNS.d.mts.map +0 -1
- package/dist/patched.d.cts.map +0 -1
- package/dist/patched.d.mts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @unifetch/fortnox
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add new initializer - createFortnoxMini() which only exposes the .path() method. It still has full type safety but results in very small bundle size compared to initFortnox()
|
|
8
|
+
|
|
3
9
|
## 2.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -10,6 +10,36 @@ type ErrorResponse = {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
|
+
//#region src/create-fortnox-mini.d.ts
|
|
14
|
+
type FortnoxInput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
15
|
+
request: infer R;
|
|
16
|
+
} ? R : never;
|
|
17
|
+
type FortnoxInputCleaned<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;
|
|
18
|
+
type FortnoxOutput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
19
|
+
response: {
|
|
20
|
+
body: infer B;
|
|
21
|
+
};
|
|
22
|
+
} ? B : never;
|
|
23
|
+
type FortnoxResult<TData> = Promise<{
|
|
24
|
+
error: ErrorResponse;
|
|
25
|
+
data: null;
|
|
26
|
+
} | {
|
|
27
|
+
error: null;
|
|
28
|
+
data: TData;
|
|
29
|
+
}>;
|
|
30
|
+
type FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = { [TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {
|
|
31
|
+
request: {
|
|
32
|
+
params: never;
|
|
33
|
+
body: never;
|
|
34
|
+
};
|
|
35
|
+
} ? (options?: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> : (options: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> };
|
|
36
|
+
/** Path-based accessor: fortnox.path("/3/invoices").get(...) */
|
|
37
|
+
type FortnoxPathFn<TRoutes extends object> = <TPath extends keyof TRoutes>(path: TPath) => FortnoxMethods<TRoutes, TPath>;
|
|
38
|
+
/** Minimal Fortnox client with only the path-based accessor. Ideal for edge runtimes. */
|
|
39
|
+
type FortnoxPathClient<TRoutes extends object> = {
|
|
40
|
+
path: FortnoxPathFn<TRoutes>;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
13
43
|
//#region src/types/resource-operations.gen.d.ts
|
|
14
44
|
declare const RESOURCE_OPERATIONS: {
|
|
15
45
|
readonly absencetransactions: {
|
|
@@ -1650,28 +1680,6 @@ declare const RESOURCE_OPERATIONS: {
|
|
|
1650
1680
|
type ResourceOperations = typeof RESOURCE_OPERATIONS;
|
|
1651
1681
|
//#endregion
|
|
1652
1682
|
//#region src/create-fortnox.d.ts
|
|
1653
|
-
type FortnoxInput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
1654
|
-
request: infer R;
|
|
1655
|
-
} ? R : never;
|
|
1656
|
-
type FortnoxInputCleaned<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;
|
|
1657
|
-
type FortnoxOutput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
1658
|
-
response: {
|
|
1659
|
-
body: infer B;
|
|
1660
|
-
};
|
|
1661
|
-
} ? B : never;
|
|
1662
|
-
type FortnoxResult<TData> = Promise<{
|
|
1663
|
-
error: ErrorResponse;
|
|
1664
|
-
data: null;
|
|
1665
|
-
} | {
|
|
1666
|
-
error: null;
|
|
1667
|
-
data: TData;
|
|
1668
|
-
}>;
|
|
1669
|
-
type FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = { [TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {
|
|
1670
|
-
request: {
|
|
1671
|
-
params: never;
|
|
1672
|
-
body: never;
|
|
1673
|
-
};
|
|
1674
|
-
} ? (options?: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> : (options: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> };
|
|
1675
1683
|
/** Resolves the callable type for a single resource operation (path + method pair). */
|
|
1676
1684
|
type FortnoxOpMethod<TRoutes extends object, TPath, TMethod> = TPath extends keyof TRoutes ? TMethod extends keyof TRoutes[TPath] ? TRoutes[TPath][TMethod] extends {
|
|
1677
1685
|
request: {
|
|
@@ -1686,12 +1694,10 @@ type FortnoxResourceMethods<TRoutes extends object, TResource extends keyof Reso
|
|
|
1686
1694
|
} ? FortnoxOpMethod<TRoutes, P, M> : never }>;
|
|
1687
1695
|
/** Resource-based accessor shape: fortnox.invoices.getList(...) */
|
|
1688
1696
|
type FortnoxResources<TRoutes extends object> = { [TResource in keyof ResourceOperations]: FortnoxResourceMethods<TRoutes, TResource> };
|
|
1689
|
-
/** Path-based accessor: fortnox.path("/3/invoices").get(...) */
|
|
1690
|
-
type FortnoxPathFn<TRoutes extends object> = <TPath extends keyof TRoutes>(path: TPath) => FortnoxMethods<TRoutes, TPath>;
|
|
1691
1697
|
/** Full Fortnox client with both resource accessors and path-based fallback. */
|
|
1692
1698
|
type FortnoxClient<TRoutes extends object> = FortnoxResources<TRoutes> & {
|
|
1693
1699
|
path: FortnoxPathFn<TRoutes>;
|
|
1694
1700
|
};
|
|
1695
1701
|
//#endregion
|
|
1696
|
-
export { FortnoxClient as t };
|
|
1697
|
-
//# sourceMappingURL=create-fortnox-
|
|
1702
|
+
export { FortnoxPathClient as n, FortnoxClient as t };
|
|
1703
|
+
//# sourceMappingURL=create-fortnox-C0kWSxNm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-fortnox-C0kWSxNm.d.mts","names":[],"sources":["../src/request.ts","../src/create-fortnox-mini.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;;;KCjBU,YAAA,6CAES,OAAA,wBACE,OAAA,CAAQ,KAAA,KAC3B,OAAA,CAAQ,KAAA,EAAO,OAAA;EAAmB,OAAA;AAAA,IAAqB,CAAA;AAAA,KAE/C,mBAAA,6CAES,OAAA,wBACE,OAAA,CAAQ,KAAA,KAC3B,SAAA,CAAU,YAAA,CAAa,OAAA,EAAS,KAAA,EAAO,OAAA;AAAA,KAE/B,aAAA,6CAES,OAAA,wBACE,OAAA,CAAQ,KAAA,KAC3B,OAAA,CAAQ,KAAA,EAAO,OAAA;EAAmB,QAAA;IAAY,IAAA;EAAA;AAAA,IAAoB,CAAA;AAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+wCD,kBAAA,UAA4B,mBAAA;;;AF9vCxC;AAAA,KGLK,eAAA,2CAID,KAAA,eAAoB,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;AFlChC;AAAA,KEuCK,gBAAA,iDACgB,kBAAA,GAAqB,sBAAA,CACxC,OAAA,EACA,SAAA;;KAKU,aAAA,2BACX,gBAAA,CAAiB,OAAA;EAChB,IAAA,EAAM,aAAA,CAAc,OAAA;AAAA"}
|
|
@@ -10,6 +10,36 @@ type ErrorResponse = {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
|
+
//#region src/create-fortnox-mini.d.ts
|
|
14
|
+
type FortnoxInput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
15
|
+
request: infer R;
|
|
16
|
+
} ? R : never;
|
|
17
|
+
type FortnoxInputCleaned<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;
|
|
18
|
+
type FortnoxOutput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
19
|
+
response: {
|
|
20
|
+
body: infer B;
|
|
21
|
+
};
|
|
22
|
+
} ? B : never;
|
|
23
|
+
type FortnoxResult<TData> = Promise<{
|
|
24
|
+
error: ErrorResponse;
|
|
25
|
+
data: null;
|
|
26
|
+
} | {
|
|
27
|
+
error: null;
|
|
28
|
+
data: TData;
|
|
29
|
+
}>;
|
|
30
|
+
type FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = { [TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {
|
|
31
|
+
request: {
|
|
32
|
+
params: never;
|
|
33
|
+
body: never;
|
|
34
|
+
};
|
|
35
|
+
} ? (options?: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> : (options: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> };
|
|
36
|
+
/** Path-based accessor: fortnox.path("/3/invoices").get(...) */
|
|
37
|
+
type FortnoxPathFn<TRoutes extends object> = <TPath extends keyof TRoutes>(path: TPath) => FortnoxMethods<TRoutes, TPath>;
|
|
38
|
+
/** Minimal Fortnox client with only the path-based accessor. Ideal for edge runtimes. */
|
|
39
|
+
type FortnoxPathClient<TRoutes extends object> = {
|
|
40
|
+
path: FortnoxPathFn<TRoutes>;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
13
43
|
//#region src/types/resource-operations.gen.d.ts
|
|
14
44
|
declare const RESOURCE_OPERATIONS: {
|
|
15
45
|
readonly absencetransactions: {
|
|
@@ -1650,28 +1680,6 @@ declare const RESOURCE_OPERATIONS: {
|
|
|
1650
1680
|
type ResourceOperations = typeof RESOURCE_OPERATIONS;
|
|
1651
1681
|
//#endregion
|
|
1652
1682
|
//#region src/create-fortnox.d.ts
|
|
1653
|
-
type FortnoxInput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
1654
|
-
request: infer R;
|
|
1655
|
-
} ? R : never;
|
|
1656
|
-
type FortnoxInputCleaned<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;
|
|
1657
|
-
type FortnoxOutput<TRoutes extends object, TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]> = TRoutes[TPath][TMethod] extends {
|
|
1658
|
-
response: {
|
|
1659
|
-
body: infer B;
|
|
1660
|
-
};
|
|
1661
|
-
} ? B : never;
|
|
1662
|
-
type FortnoxResult<TData> = Promise<{
|
|
1663
|
-
error: ErrorResponse;
|
|
1664
|
-
data: null;
|
|
1665
|
-
} | {
|
|
1666
|
-
error: null;
|
|
1667
|
-
data: TData;
|
|
1668
|
-
}>;
|
|
1669
|
-
type FortnoxMethods<TRoutes extends object, TPath extends keyof TRoutes> = { [TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {
|
|
1670
|
-
request: {
|
|
1671
|
-
params: never;
|
|
1672
|
-
body: never;
|
|
1673
|
-
};
|
|
1674
|
-
} ? (options?: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> : (options: FortnoxInputCleaned<TRoutes, TPath, TMethod>) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>> };
|
|
1675
1683
|
/** Resolves the callable type for a single resource operation (path + method pair). */
|
|
1676
1684
|
type FortnoxOpMethod<TRoutes extends object, TPath, TMethod> = TPath extends keyof TRoutes ? TMethod extends keyof TRoutes[TPath] ? TRoutes[TPath][TMethod] extends {
|
|
1677
1685
|
request: {
|
|
@@ -1686,12 +1694,10 @@ type FortnoxResourceMethods<TRoutes extends object, TResource extends keyof Reso
|
|
|
1686
1694
|
} ? FortnoxOpMethod<TRoutes, P, M> : never }>;
|
|
1687
1695
|
/** Resource-based accessor shape: fortnox.invoices.getList(...) */
|
|
1688
1696
|
type FortnoxResources<TRoutes extends object> = { [TResource in keyof ResourceOperations]: FortnoxResourceMethods<TRoutes, TResource> };
|
|
1689
|
-
/** Path-based accessor: fortnox.path("/3/invoices").get(...) */
|
|
1690
|
-
type FortnoxPathFn<TRoutes extends object> = <TPath extends keyof TRoutes>(path: TPath) => FortnoxMethods<TRoutes, TPath>;
|
|
1691
1697
|
/** Full Fortnox client with both resource accessors and path-based fallback. */
|
|
1692
1698
|
type FortnoxClient<TRoutes extends object> = FortnoxResources<TRoutes> & {
|
|
1693
1699
|
path: FortnoxPathFn<TRoutes>;
|
|
1694
1700
|
};
|
|
1695
1701
|
//#endregion
|
|
1696
|
-
export { FortnoxClient as t };
|
|
1697
|
-
//# sourceMappingURL=create-fortnox-
|
|
1702
|
+
export { FortnoxPathClient as n, FortnoxClient as t };
|
|
1703
|
+
//# sourceMappingURL=create-fortnox-D9s3VXSg.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-fortnox-D9s3VXSg.d.cts","names":[],"sources":["../src/request.ts","../src/create-fortnox-mini.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;;;KCjBU,YAAA,6CAES,OAAA,wBACE,OAAA,CAAQ,KAAA,KAC3B,OAAA,CAAQ,KAAA,EAAO,OAAA;EAAmB,OAAA;AAAA,IAAqB,CAAA;AAAA,KAE/C,mBAAA,6CAES,OAAA,wBACE,OAAA,CAAQ,KAAA,KAC3B,SAAA,CAAU,YAAA,CAAa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2
3
|
const METHODS = [
|
|
3
4
|
"get",
|
|
@@ -1690,9 +1691,9 @@ const RESOURCE_OPERATIONS = {
|
|
|
1690
1691
|
//#region src/create-fortnox.ts
|
|
1691
1692
|
function createInitFortnox() {
|
|
1692
1693
|
function initFortnox(initOptions) {
|
|
1693
|
-
const pathFn = (
|
|
1694
|
+
const pathFn = (p) => {
|
|
1694
1695
|
return Object.fromEntries(METHODS.map((method) => [method, (options) => request({
|
|
1695
|
-
path,
|
|
1696
|
+
path: p,
|
|
1696
1697
|
method,
|
|
1697
1698
|
...options
|
|
1698
1699
|
}, initOptions)]));
|
|
@@ -1713,5 +1714,32 @@ function createInitFortnox() {
|
|
|
1713
1714
|
}
|
|
1714
1715
|
|
|
1715
1716
|
//#endregion
|
|
1716
|
-
|
|
1717
|
-
|
|
1717
|
+
//#region src/create-fortnox-mini.ts
|
|
1718
|
+
function createInitFortnoxMini() {
|
|
1719
|
+
function initFortnoxMini(initOptions) {
|
|
1720
|
+
const path = (p) => {
|
|
1721
|
+
return Object.fromEntries(METHODS.map((method) => [method, (options) => request({
|
|
1722
|
+
path: p,
|
|
1723
|
+
method,
|
|
1724
|
+
...options
|
|
1725
|
+
}, initOptions)]));
|
|
1726
|
+
};
|
|
1727
|
+
return { path };
|
|
1728
|
+
}
|
|
1729
|
+
return initFortnoxMini;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
//#endregion
|
|
1733
|
+
Object.defineProperty(exports, 'createInitFortnox', {
|
|
1734
|
+
enumerable: true,
|
|
1735
|
+
get: function () {
|
|
1736
|
+
return createInitFortnox;
|
|
1737
|
+
}
|
|
1738
|
+
});
|
|
1739
|
+
Object.defineProperty(exports, 'createInitFortnoxMini', {
|
|
1740
|
+
enumerable: true,
|
|
1741
|
+
get: function () {
|
|
1742
|
+
return createInitFortnoxMini;
|
|
1743
|
+
}
|
|
1744
|
+
});
|
|
1745
|
+
//# sourceMappingURL=create-fortnox-mini-CNEKEVs1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-fortnox-mini-CNEKEVs1.cjs","names":[],"sources":["../src/request.ts","../src/types/resource-operations.gen.ts","../src/create-fortnox.ts","../src/create-fortnox-mini.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 type {\n\tFortnoxInputCleaned,\n\tFortnoxMethods,\n\tFortnoxOutput,\n\tFortnoxPathFn,\n\tFortnoxResult,\n} from \"./create-fortnox-mini\";\nimport { type InitFortnoxOptions, METHODS, request } from \"./request\";\nimport {\n\tRESOURCE_OPERATIONS,\n\ttype ResourceOperations,\n} from \"./types/resource-operations.gen\";\nimport type { OmitNever } from \"./types/utility-types\";\n\n/** Resolves the callable type for a single resource operation (path + method pair). */\ntype FortnoxOpMethod<\n\tTRoutes extends object,\n\tTPath,\n\tTMethod,\n> = TPath extends keyof TRoutes\n\t? TMethod extends keyof TRoutes[TPath]\n\t\t? TRoutes[TPath][TMethod] extends {\n\t\t\t\trequest: { params: never; body: never };\n\t\t\t}\n\t\t\t? (\n\t\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\n\t\t\t: (\n\t\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\n\t\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\n\t\t: never\n\t: never;\n\n/** Methods for a single resource, keyed by operation ID, filtered to only those present in TRoutes. */\ntype FortnoxResourceMethods<\n\tTRoutes extends object,\n\tTResource extends keyof ResourceOperations,\n> = OmitNever<{\n\t[TOp in keyof ResourceOperations[TResource]]: ResourceOperations[TResource][TOp] extends {\n\t\tpath: infer P;\n\t\tmethod: infer M;\n\t}\n\t\t? FortnoxOpMethod<TRoutes, P, M>\n\t\t: never;\n}>;\n\n/** Resource-based accessor shape: fortnox.invoices.getList(...) */\ntype FortnoxResources<TRoutes extends object> = {\n\t[TResource in keyof ResourceOperations]: FortnoxResourceMethods<\n\t\tTRoutes,\n\t\tTResource\n\t>;\n};\n\n/** Full Fortnox client with both resource accessors and path-based fallback. */\nexport type FortnoxClient<TRoutes extends object> =\n\tFortnoxResources<TRoutes> & {\n\t\tpath: FortnoxPathFn<TRoutes>;\n\t};\n\nexport function createInitFortnox<TRoutes extends object>(): {\n\t(options: { accessToken: string }): FortnoxClient<TRoutes>;\n\t(options: {\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\n\t}): FortnoxClient<TRoutes>;\n} {\n\tfunction initFortnox(options: {\n\t\taccessToken: string;\n\t}): FortnoxClient<TRoutes>;\n\tfunction initFortnox(options: {\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\n\t}): FortnoxClient<TRoutes>;\n\tfunction initFortnox(\n\t\tinitOptions: InitFortnoxOptions,\n\t): FortnoxClient<TRoutes> {\n\t\tconst pathFn = <TPath extends keyof TRoutes>(\n\t\t\tp: TPath,\n\t\t): FortnoxMethods<TRoutes, TPath> => {\n\t\t\treturn Object.fromEntries(\n\t\t\t\tMETHODS.map((method) => [\n\t\t\t\t\tmethod,\n\t\t\t\t\t(options: Record<string, unknown>) =>\n\t\t\t\t\t\trequest({ path: p as string, method, ...options }, initOptions),\n\t\t\t\t]),\n\t\t\t) as unknown as FortnoxMethods<TRoutes, TPath>;\n\t\t};\n\n\t\tconst client = { path: pathFn } as unknown as FortnoxClient<TRoutes>;\n\n\t\tfor (const [resource, ops] of Object.entries(RESOURCE_OPERATIONS)) {\n\t\t\tconst resourceMethods: Record<string, unknown> = {};\n\t\t\tfor (const [opId, { path, method }] of Object.entries(\n\t\t\t\tops as Record<string, { path: string; method: string }>,\n\t\t\t)) {\n\t\t\t\tresourceMethods[opId] = (options: Record<string, unknown> = {}) =>\n\t\t\t\t\trequest(\n\t\t\t\t\t\t{ path, method: method as (typeof METHODS)[number], ...options },\n\t\t\t\t\t\tinitOptions,\n\t\t\t\t\t);\n\t\t\t}\n\t\t\t(client as unknown as Record<string, unknown>)[resource] =\n\t\t\t\tresourceMethods;\n\t\t}\n\n\t\treturn client;\n\t}\n\n\treturn initFortnox;\n}\n","import {\n\ttype ErrorResponse,\n\ttype InitFortnoxOptions,\n\tMETHODS,\n\trequest,\n} from \"./request\";\nimport type { OmitNever } from \"./types/utility-types\";\n\nexport type FortnoxInput<\n\tTRoutes extends object,\n\tTPath extends keyof TRoutes,\n\tTMethod extends keyof TRoutes[TPath],\n> = TRoutes[TPath][TMethod] extends { request: infer R } ? R : never;\n\nexport type FortnoxInputCleaned<\n\tTRoutes extends object,\n\tTPath extends keyof TRoutes,\n\tTMethod extends keyof TRoutes[TPath],\n> = OmitNever<FortnoxInput<TRoutes, TPath, TMethod>>;\n\nexport type FortnoxOutput<\n\tTRoutes extends object,\n\tTPath extends keyof TRoutes,\n\tTMethod extends keyof TRoutes[TPath],\n> = TRoutes[TPath][TMethod] extends { response: { body: infer B } } ? B : never;\n\nexport type FortnoxResult<TData> = Promise<\n\t{ error: ErrorResponse; data: null } | { error: null; data: TData }\n>;\n\nexport type FortnoxMethods<\n\tTRoutes extends object,\n\tTPath extends keyof TRoutes,\n> = {\n\t[TMethod in keyof TRoutes[TPath]]: TRoutes[TPath][TMethod] extends {\n\t\trequest: { params: never; body: never };\n\t}\n\t\t? (\n\t\t\t\toptions?: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>\n\t\t: (\n\t\t\t\toptions: FortnoxInputCleaned<TRoutes, TPath, TMethod>,\n\t\t\t) => FortnoxResult<FortnoxOutput<TRoutes, TPath, TMethod>>;\n};\n\n/** Path-based accessor: fortnox.path(\"/3/invoices\").get(...) */\nexport type FortnoxPathFn<TRoutes extends object> = <\n\tTPath extends keyof TRoutes,\n>(\n\tpath: TPath,\n) => FortnoxMethods<TRoutes, TPath>;\n\n/** Minimal Fortnox client with only the path-based accessor. Ideal for edge runtimes. */\nexport type FortnoxPathClient<TRoutes extends object> = {\n\tpath: FortnoxPathFn<TRoutes>;\n};\n\nexport function createInitFortnoxMini<TRoutes extends object>(): {\n\t(options: { accessToken: string }): FortnoxPathClient<TRoutes>;\n\t(options: {\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\n\t}): FortnoxPathClient<TRoutes>;\n} {\n\tfunction initFortnoxMini(options: {\n\t\taccessToken: string;\n\t}): FortnoxPathClient<TRoutes>;\n\tfunction initFortnoxMini(options: {\n\t\tproxy: { baseUrl: string; apiKey: string; tenantId: string };\n\t}): FortnoxPathClient<TRoutes>;\n\tfunction initFortnoxMini(\n\t\tinitOptions: InitFortnoxOptions,\n\t): FortnoxPathClient<TRoutes> {\n\t\tconst path = <TPath extends keyof TRoutes>(\n\t\t\tp: TPath,\n\t\t): FortnoxMethods<TRoutes, TPath> => {\n\t\t\treturn Object.fromEntries(\n\t\t\t\tMETHODS.map((method) => [\n\t\t\t\t\tmethod,\n\t\t\t\t\t(options: Record<string, unknown>) =>\n\t\t\t\t\t\trequest({ path: p as string, method, ...options }, initOptions),\n\t\t\t\t]),\n\t\t\t) as unknown as FortnoxMethods<TRoutes, TPath>;\n\t\t};\n\n\t\treturn { path };\n\t}\n\n\treturn initFortnoxMini;\n}\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;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;AAGR,QAAO;;;;;AClDR,SAAgB,wBAKd;CAOD,SAAS,gBACR,aAC6B;EAC7B,MAAM,QACL,MACoC;AACpC,UAAO,OAAO,YACb,QAAQ,KAAK,WAAW,CACvB,SACC,YACA,QAAQ;IAAE,MAAM;IAAa;IAAQ,GAAG;IAAS,EAAE,YAAY,CAChE,CAAC,CACF;;AAGF,SAAO,EAAE,MAAM;;AAGhB,QAAO"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/request.ts
|
|
3
2
|
const METHODS = [
|
|
4
3
|
"get",
|
|
@@ -1691,9 +1690,9 @@ const RESOURCE_OPERATIONS = {
|
|
|
1691
1690
|
//#region src/create-fortnox.ts
|
|
1692
1691
|
function createInitFortnox() {
|
|
1693
1692
|
function initFortnox(initOptions) {
|
|
1694
|
-
const pathFn = (
|
|
1693
|
+
const pathFn = (p) => {
|
|
1695
1694
|
return Object.fromEntries(METHODS.map((method) => [method, (options) => request({
|
|
1696
|
-
path,
|
|
1695
|
+
path: p,
|
|
1697
1696
|
method,
|
|
1698
1697
|
...options
|
|
1699
1698
|
}, initOptions)]));
|
|
@@ -1714,10 +1713,21 @@ function createInitFortnox() {
|
|
|
1714
1713
|
}
|
|
1715
1714
|
|
|
1716
1715
|
//#endregion
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1716
|
+
//#region src/create-fortnox-mini.ts
|
|
1717
|
+
function createInitFortnoxMini() {
|
|
1718
|
+
function initFortnoxMini(initOptions) {
|
|
1719
|
+
const path = (p) => {
|
|
1720
|
+
return Object.fromEntries(METHODS.map((method) => [method, (options) => request({
|
|
1721
|
+
path: p,
|
|
1722
|
+
method,
|
|
1723
|
+
...options
|
|
1724
|
+
}, initOptions)]));
|
|
1725
|
+
};
|
|
1726
|
+
return { path };
|
|
1727
|
+
}
|
|
1728
|
+
return initFortnoxMini;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
//#endregion
|
|
1732
|
+
export { createInitFortnox as n, createInitFortnoxMini as t };
|
|
1733
|
+
//# sourceMappingURL=create-fortnox-mini-zGxET1Vm.mjs.map
|