@unifetch/fortnox 2.3.0 → 2.4.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 +12 -0
- package/README.md +10 -0
- package/dist/{create-fortnox-mini-COurqL1e.d.mts → create-fortnox-mini-Bi2gQlqw.d.cts} +13 -96
- package/dist/{create-fortnox-mini-COurqL1e.d.mts.map → create-fortnox-mini-Bi2gQlqw.d.cts.map} +1 -1
- package/dist/{create-fortnox-mini-DfNjIlYm.d.cts → create-fortnox-mini-C9-h6GE4.d.mts} +13 -96
- package/dist/{create-fortnox-mini-DfNjIlYm.d.cts.map → create-fortnox-mini-C9-h6GE4.d.mts.map} +1 -1
- package/dist/{index-IeYuLkvO.d.mts → index-3W-vkYiA.d.mts} +37 -3
- package/dist/index-3W-vkYiA.d.mts.map +1 -0
- package/dist/{index-hOzXwnXm.d.cts → index-7FY85RCU.d.cts} +37 -3
- package/dist/index-7FY85RCU.d.cts.map +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/mini.d.cts +1 -1
- package/dist/mini.d.mts +1 -1
- package/dist/types/custom/index.d.cts +2 -2
- package/dist/types/custom/index.d.mts +2 -2
- package/package.json +1 -1
- package/dist/index-IeYuLkvO.d.mts.map +0 -1
- package/dist/index-hOzXwnXm.d.cts.map +0 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -34,6 +34,16 @@ Includes **only** the path-based API (`fortnox.path()`). The entire resource-bas
|
|
|
34
34
|
import { initFortnoxMini } from "@unifetch/fortnox/mini";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
The difference in practice, measured with `wrangler deploy --dry-run` on a fresh Hono + Cloudflare Workers project:
|
|
38
|
+
|
|
39
|
+
| | Size | Gzip |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| Fresh Hono project (baseline) | 61.96 KiB | 15.05 KiB |
|
|
42
|
+
| With `initFortnox` | 99.92 KiB | 19.61 KiB |
|
|
43
|
+
| With `initFortnoxMini` | 64.63 KiB | 15.84 KiB |
|
|
44
|
+
|
|
45
|
+
`initFortnoxMini` adds less than **0.8 KiB gzipped** over the baseline, versus over **4.5 KiB** for the full client.
|
|
46
|
+
|
|
37
47
|
---
|
|
38
48
|
|
|
39
49
|
## Route variant
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as InvoiceListResponse, i as VoucherResponse, l as InvoiceResponse, p as OmitNever, r as VoucherListResponse } from "./index-7FY85RCU.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/request.d.ts
|
|
4
4
|
type ErrorResponse = {
|
|
@@ -650,7 +650,7 @@ interface FortnoxBfPreDefinedVoucherSeriesSinglePayloadItemWrap$1 {
|
|
|
650
650
|
VoucherSeries: string;
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
interface FortnoxBfVoucherListItemWrap
|
|
653
|
+
interface FortnoxBfVoucherListItemWrap {
|
|
654
654
|
MetaInformation?: {
|
|
655
655
|
"@CurrentPage"?: number;
|
|
656
656
|
"@TotalPages"?: number;
|
|
@@ -724,7 +724,7 @@ interface FortnoxBfVoucherSeriesSinglePayloadItemWrap$1 {
|
|
|
724
724
|
Year?: number;
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
interface FortnoxBfVoucherSingleItemWrap
|
|
727
|
+
interface FortnoxBfVoucherSingleItemWrap {
|
|
728
728
|
Voucher?: {
|
|
729
729
|
"@url"?: string;
|
|
730
730
|
ApprovalState?: number;
|
|
@@ -10114,7 +10114,7 @@ interface Routes$1 {
|
|
|
10114
10114
|
body: never;
|
|
10115
10115
|
};
|
|
10116
10116
|
response: {
|
|
10117
|
-
body: FortnoxBfVoucherListItemWrap
|
|
10117
|
+
body: FortnoxBfVoucherListItemWrap;
|
|
10118
10118
|
};
|
|
10119
10119
|
};
|
|
10120
10120
|
post: {
|
|
@@ -10162,7 +10162,7 @@ interface Routes$1 {
|
|
|
10162
10162
|
body: never;
|
|
10163
10163
|
};
|
|
10164
10164
|
response: {
|
|
10165
|
-
body: FortnoxBfVoucherListItemWrap
|
|
10165
|
+
body: FortnoxBfVoucherListItemWrap;
|
|
10166
10166
|
};
|
|
10167
10167
|
};
|
|
10168
10168
|
};
|
|
@@ -10200,7 +10200,7 @@ interface Routes$1 {
|
|
|
10200
10200
|
body: never;
|
|
10201
10201
|
};
|
|
10202
10202
|
response: {
|
|
10203
|
-
body: FortnoxBfVoucherListItemWrap
|
|
10203
|
+
body: FortnoxBfVoucherListItemWrap;
|
|
10204
10204
|
};
|
|
10205
10205
|
};
|
|
10206
10206
|
};
|
|
@@ -10226,7 +10226,7 @@ interface Routes$1 {
|
|
|
10226
10226
|
body: never;
|
|
10227
10227
|
};
|
|
10228
10228
|
response: {
|
|
10229
|
-
body: FortnoxBfVoucherSingleItemWrap
|
|
10229
|
+
body: FortnoxBfVoucherSingleItemWrap;
|
|
10230
10230
|
};
|
|
10231
10231
|
};
|
|
10232
10232
|
};
|
|
@@ -12906,38 +12906,6 @@ interface FortnoxBfPreDefinedVoucherSeriesSinglePayloadItemWrap {
|
|
|
12906
12906
|
VoucherSeries: string;
|
|
12907
12907
|
};
|
|
12908
12908
|
}
|
|
12909
|
-
interface FortnoxBfVoucherListItemWrap {
|
|
12910
|
-
MetaInformation: {
|
|
12911
|
-
"@CurrentPage": number;
|
|
12912
|
-
"@TotalPages": number;
|
|
12913
|
-
"@TotalResources": number;
|
|
12914
|
-
};
|
|
12915
|
-
Vouchers: {
|
|
12916
|
-
"@url": string;
|
|
12917
|
-
ApprovalState: number;
|
|
12918
|
-
Comments: string;
|
|
12919
|
-
CostCenter: string;
|
|
12920
|
-
Description: string;
|
|
12921
|
-
Project: string;
|
|
12922
|
-
ReferenceNumber: string;
|
|
12923
|
-
ReferenceType: "INVOICE" | "SUPPLIERINVOICE" | "INVOICEPAYMENT" | "SUPPLIERPAYMENT" | "MANUAL" | "CASHINVOICE" | "ACCRUAL";
|
|
12924
|
-
TransactionDate: string;
|
|
12925
|
-
VoucherNumber: number;
|
|
12926
|
-
VoucherRows: {
|
|
12927
|
-
Account: number;
|
|
12928
|
-
CostCenter?: string;
|
|
12929
|
-
Credit?: number;
|
|
12930
|
-
Debit?: number;
|
|
12931
|
-
Description?: string;
|
|
12932
|
-
Project?: string;
|
|
12933
|
-
Quantity?: number;
|
|
12934
|
-
Removed?: boolean;
|
|
12935
|
-
TransactionInformation?: string;
|
|
12936
|
-
}[];
|
|
12937
|
-
VoucherSeries: string;
|
|
12938
|
-
Year: number;
|
|
12939
|
-
}[];
|
|
12940
|
-
}
|
|
12941
12909
|
interface FortnoxBfVoucherSeriesListItemWrap {
|
|
12942
12910
|
MetaInformation: {
|
|
12943
12911
|
"@CurrentPage": number;
|
|
@@ -12980,57 +12948,6 @@ interface FortnoxBfVoucherSeriesSinglePayloadItemWrap {
|
|
|
12980
12948
|
Year?: number;
|
|
12981
12949
|
};
|
|
12982
12950
|
}
|
|
12983
|
-
interface FortnoxBfVoucherSingleItemWrap {
|
|
12984
|
-
Voucher: {
|
|
12985
|
-
"@url"?: string;
|
|
12986
|
-
ApprovalState?: number;
|
|
12987
|
-
Comments?: string;
|
|
12988
|
-
CostCenter?: string;
|
|
12989
|
-
Description: string;
|
|
12990
|
-
Project?: string;
|
|
12991
|
-
ReferenceNumber?: string;
|
|
12992
|
-
ReferenceType?: "INVOICE" | "SUPPLIERINVOICE" | "INVOICEPAYMENT" | "SUPPLIERPAYMENT" | "MANUAL" | "CASHINVOICE" | "ACCRUAL";
|
|
12993
|
-
TransactionDate: string;
|
|
12994
|
-
VoucherNumber?: number;
|
|
12995
|
-
/**
|
|
12996
|
-
* @minItems 2
|
|
12997
|
-
* @maxItems 2147483647
|
|
12998
|
-
*/
|
|
12999
|
-
VoucherRows?: [{
|
|
13000
|
-
Account: number;
|
|
13001
|
-
CostCenter?: string;
|
|
13002
|
-
Credit?: number;
|
|
13003
|
-
Debit?: number;
|
|
13004
|
-
Description?: string;
|
|
13005
|
-
Project?: string;
|
|
13006
|
-
Quantity?: number;
|
|
13007
|
-
Removed?: boolean;
|
|
13008
|
-
TransactionInformation?: string;
|
|
13009
|
-
}, {
|
|
13010
|
-
Account: number;
|
|
13011
|
-
CostCenter?: string;
|
|
13012
|
-
Credit?: number;
|
|
13013
|
-
Debit?: number;
|
|
13014
|
-
Description?: string;
|
|
13015
|
-
Project?: string;
|
|
13016
|
-
Quantity?: number;
|
|
13017
|
-
Removed?: boolean;
|
|
13018
|
-
TransactionInformation?: string;
|
|
13019
|
-
}, ...{
|
|
13020
|
-
Account: number;
|
|
13021
|
-
CostCenter?: string;
|
|
13022
|
-
Credit?: number;
|
|
13023
|
-
Debit?: number;
|
|
13024
|
-
Description?: string;
|
|
13025
|
-
Project?: string;
|
|
13026
|
-
Quantity?: number;
|
|
13027
|
-
Removed?: boolean;
|
|
13028
|
-
TransactionInformation?: string;
|
|
13029
|
-
}[]];
|
|
13030
|
-
VoucherSeries: string;
|
|
13031
|
-
Year: number;
|
|
13032
|
-
};
|
|
13033
|
-
}
|
|
13034
12951
|
interface FortnoxBfVoucherSinglePayloadItemWrap {
|
|
13035
12952
|
Voucher: {
|
|
13036
12953
|
ApprovalState?: number;
|
|
@@ -19839,7 +19756,7 @@ interface Routes {
|
|
|
19839
19756
|
body: never;
|
|
19840
19757
|
};
|
|
19841
19758
|
response: {
|
|
19842
|
-
body:
|
|
19759
|
+
body: InvoiceListResponse;
|
|
19843
19760
|
};
|
|
19844
19761
|
};
|
|
19845
19762
|
post: {
|
|
@@ -22351,7 +22268,7 @@ interface Routes {
|
|
|
22351
22268
|
body: never;
|
|
22352
22269
|
};
|
|
22353
22270
|
response: {
|
|
22354
|
-
body:
|
|
22271
|
+
body: VoucherListResponse;
|
|
22355
22272
|
};
|
|
22356
22273
|
};
|
|
22357
22274
|
post: {
|
|
@@ -22399,7 +22316,7 @@ interface Routes {
|
|
|
22399
22316
|
body: never;
|
|
22400
22317
|
};
|
|
22401
22318
|
response: {
|
|
22402
|
-
body:
|
|
22319
|
+
body: VoucherListResponse;
|
|
22403
22320
|
};
|
|
22404
22321
|
};
|
|
22405
22322
|
};
|
|
@@ -22437,7 +22354,7 @@ interface Routes {
|
|
|
22437
22354
|
body: never;
|
|
22438
22355
|
};
|
|
22439
22356
|
response: {
|
|
22440
|
-
body:
|
|
22357
|
+
body: VoucherListResponse;
|
|
22441
22358
|
};
|
|
22442
22359
|
};
|
|
22443
22360
|
};
|
|
@@ -22463,7 +22380,7 @@ interface Routes {
|
|
|
22463
22380
|
body: never;
|
|
22464
22381
|
};
|
|
22465
22382
|
response: {
|
|
22466
|
-
body:
|
|
22383
|
+
body: VoucherResponse;
|
|
22467
22384
|
};
|
|
22468
22385
|
};
|
|
22469
22386
|
};
|
|
@@ -24521,4 +24438,4 @@ type FortnoxPathClient<TRoutes extends object> = {
|
|
|
24521
24438
|
};
|
|
24522
24439
|
//#endregion
|
|
24523
24440
|
export { FortnoxResult as a, FortnoxPathFn as i, FortnoxOutput as n, ResolveRoutes as o, FortnoxPathClient as r, RouteVariant as s, FortnoxInputCleaned as t };
|
|
24524
|
-
//# sourceMappingURL=create-fortnox-mini-
|
|
24441
|
+
//# sourceMappingURL=create-fortnox-mini-Bi2gQlqw.d.cts.map
|