@unifetch/fortnox 2.3.1 → 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.
@@ -1,4 +1,4 @@
1
- import { c as OmitNever, i as InvoiceResponse, r as InvoiceListWrap } from "./index-hOzXwnXm.cjs";
1
+ import { c as InvoiceListResponse, i as VoucherResponse, l as InvoiceResponse, p as OmitNever, r as VoucherListResponse } from "./index-3W-vkYiA.mjs";
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$1 {
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$1 {
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$1;
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$1;
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$1;
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$1;
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: InvoiceListWrap;
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: FortnoxBfVoucherListItemWrap;
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: FortnoxBfVoucherListItemWrap;
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: FortnoxBfVoucherListItemWrap;
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: FortnoxBfVoucherSingleItemWrap;
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-DfNjIlYm.d.cts.map
24441
+ //# sourceMappingURL=create-fortnox-mini-C9-h6GE4.d.mts.map