@vrplatform/api 1.2.32 → 1.2.33-rel.778

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.
@@ -38,23 +38,6 @@ export interface paths {
38
38
  patch?: never;
39
39
  trace?: never;
40
40
  };
41
- "/healthz": {
42
- parameters: {
43
- query?: never;
44
- header?: never;
45
- path?: never;
46
- cookie?: never;
47
- };
48
- /** @description HealthZ Endpoint */
49
- get: operations["healthz"];
50
- put?: never;
51
- post?: never;
52
- delete?: never;
53
- options?: never;
54
- head?: never;
55
- patch?: never;
56
- trace?: never;
57
- };
58
41
  "/legacy/payouts": {
59
42
  parameters: {
60
43
  query?: never;
@@ -572,41 +555,6 @@ export interface paths {
572
555
  patch?: never;
573
556
  trace?: never;
574
557
  };
575
- "/statements/manager": {
576
- parameters: {
577
- query?: never;
578
- header?: never;
579
- path?: never;
580
- cookie?: never;
581
- };
582
- /** @description Get Statements */
583
- get: operations["getManagerStatements"];
584
- put?: never;
585
- /** @description Create Manager Statements */
586
- post: operations["createManagerStatement"];
587
- delete?: never;
588
- options?: never;
589
- head?: never;
590
- patch?: never;
591
- trace?: never;
592
- };
593
- "/statements/manager/batch": {
594
- parameters: {
595
- query?: never;
596
- header?: never;
597
- path?: never;
598
- cookie?: never;
599
- };
600
- /** @description Get Statements by month */
601
- get: operations["getManagerStatementsBatch"];
602
- put?: never;
603
- post?: never;
604
- delete?: never;
605
- options?: never;
606
- head?: never;
607
- patch?: never;
608
- trace?: never;
609
- };
610
558
  "/statements/manager/pay": {
611
559
  parameters: {
612
560
  query?: never;
@@ -624,24 +572,6 @@ export interface paths {
624
572
  patch?: never;
625
573
  trace?: never;
626
574
  };
627
- "/statements/manager/{id}": {
628
- parameters: {
629
- query?: never;
630
- header?: never;
631
- path?: never;
632
- cookie?: never;
633
- };
634
- get?: never;
635
- /** @description Update Statements by Id */
636
- put: operations["updateManagerStatement"];
637
- post?: never;
638
- /** @description Update Statements by Id */
639
- delete: operations["deleteManagerStatement"];
640
- options?: never;
641
- head?: never;
642
- patch?: never;
643
- trace?: never;
644
- };
645
575
  "/statements/pdf": {
646
576
  parameters: {
647
577
  query?: never;
@@ -1036,23 +966,6 @@ export interface paths {
1036
966
  patch?: never;
1037
967
  trace?: never;
1038
968
  };
1039
- "/accounts/{id}/reprocess-balances": {
1040
- parameters: {
1041
- query?: never;
1042
- header?: never;
1043
- path?: never;
1044
- cookie?: never;
1045
- };
1046
- get?: never;
1047
- /** @description Reprocess account balances */
1048
- put: operations["reprocessAccountBalances"];
1049
- post?: never;
1050
- delete?: never;
1051
- options?: never;
1052
- head?: never;
1053
- patch?: never;
1054
- trace?: never;
1055
- };
1056
969
  "/accounts/{id}": {
1057
970
  parameters: {
1058
971
  query?: never;
@@ -1593,6 +1506,23 @@ export interface paths {
1593
1506
  patch?: never;
1594
1507
  trace?: never;
1595
1508
  };
1509
+ "/report/journal-entries": {
1510
+ parameters: {
1511
+ query?: never;
1512
+ header?: never;
1513
+ path?: never;
1514
+ cookie?: never;
1515
+ };
1516
+ /** @description Paginated journal entries with configurable filters */
1517
+ get: operations["getJournalEntriesReport"];
1518
+ put?: never;
1519
+ post?: never;
1520
+ delete?: never;
1521
+ options?: never;
1522
+ head?: never;
1523
+ patch?: never;
1524
+ trace?: never;
1525
+ };
1596
1526
  "/reports/manager-statements": {
1597
1527
  parameters: {
1598
1528
  query?: never;
@@ -1644,6 +1574,40 @@ export interface paths {
1644
1574
  patch?: never;
1645
1575
  trace?: never;
1646
1576
  };
1577
+ "/reports/profit-and-loss": {
1578
+ parameters: {
1579
+ query?: never;
1580
+ header?: never;
1581
+ path?: never;
1582
+ cookie?: never;
1583
+ };
1584
+ /** @description Profit & Loss report grouped by party, listing, month, quarter, or year (configure with view query param) */
1585
+ get: operations["getProfitAndLossReport"];
1586
+ put?: never;
1587
+ post?: never;
1588
+ delete?: never;
1589
+ options?: never;
1590
+ head?: never;
1591
+ patch?: never;
1592
+ trace?: never;
1593
+ };
1594
+ "/reports/profit-and-loss/csv": {
1595
+ parameters: {
1596
+ query?: never;
1597
+ header?: never;
1598
+ path?: never;
1599
+ cookie?: never;
1600
+ };
1601
+ /** @description Profit & Loss report grouped by party, listing, month, quarter, or year (CSV, configure with view query param) */
1602
+ get: operations["getProfitAndLossReportCsv"];
1603
+ put?: never;
1604
+ post?: never;
1605
+ delete?: never;
1606
+ options?: never;
1607
+ head?: never;
1608
+ patch?: never;
1609
+ trace?: never;
1610
+ };
1647
1611
  "/calendar-blocks": {
1648
1612
  parameters: {
1649
1613
  query?: never;
@@ -1839,6 +1803,137 @@ export interface components {
1839
1803
  message: string;
1840
1804
  }[];
1841
1805
  };
1806
+ /** @example {
1807
+ * "id": "netIncome",
1808
+ * "title": "Net Income",
1809
+ * "total": 10879029,
1810
+ * "computedValues": [
1811
+ * {
1812
+ * "id": "2025",
1813
+ * "title": "2025",
1814
+ * "total": 10879029,
1815
+ * "percentage": 52.3
1816
+ * }
1817
+ * ],
1818
+ * "groups": [
1819
+ * {
1820
+ * "id": "netOperatingIncome",
1821
+ * "title": "Net Operating Income",
1822
+ * "total": 5678901,
1823
+ * "computedValues": [
1824
+ * {
1825
+ * "id": "2025",
1826
+ * "title": "2025",
1827
+ * "total": 5678901,
1828
+ * "percentage": 26.1
1829
+ * }
1830
+ * ],
1831
+ * "groups": [
1832
+ * {
1833
+ * "id": "revenue",
1834
+ * "title": "Revenue",
1835
+ * "total": 10879029,
1836
+ * "values": [
1837
+ * {
1838
+ * "id": "2025",
1839
+ * "title": "2025",
1840
+ * "total": 10879029,
1841
+ * "percentage": 52.3
1842
+ * }
1843
+ * ],
1844
+ * "categories": [
1845
+ * {
1846
+ * "id": "cat-revenue-rents",
1847
+ * "title": "Revenue - Rents",
1848
+ * "total": 10879029,
1849
+ * "accounts": [
1850
+ * {
1851
+ * "id": "18580972-de27-4df2-99d5-7c6888419bf9",
1852
+ * "title": "Rents",
1853
+ * "total": 10879029,
1854
+ * "values": [
1855
+ * {
1856
+ * "id": "2025",
1857
+ * "title": "2025",
1858
+ * "total": 10879029,
1859
+ * "percentage": 52.3
1860
+ * }
1861
+ * ]
1862
+ * }
1863
+ * ]
1864
+ * }
1865
+ * ]
1866
+ * }
1867
+ * ]
1868
+ * }
1869
+ * ]
1870
+ * } */
1871
+ ProfitAndLossGroup: {
1872
+ id: string;
1873
+ title: string;
1874
+ total: number;
1875
+ values?: components["schemas"]["ProfitAndLossValueCell"][];
1876
+ computedValues?: components["schemas"]["ProfitAndLossValueCell"][];
1877
+ categories?: components["schemas"]["ProfitAndLossCategory"][];
1878
+ groups?: components["schemas"]["ProfitAndLossGroup"][];
1879
+ };
1880
+ /** @example {
1881
+ * "id": "2025",
1882
+ * "title": "2025",
1883
+ * "total": 10879029,
1884
+ * "percentage": 52.3
1885
+ * } */
1886
+ ProfitAndLossValueCell: {
1887
+ id: string;
1888
+ title: string;
1889
+ total: number;
1890
+ percentage?: number;
1891
+ };
1892
+ /** @example {
1893
+ * "id": "cat-revenue-rents",
1894
+ * "title": "Revenue - Rents",
1895
+ * "total": 10879029,
1896
+ * "accounts": [
1897
+ * {
1898
+ * "id": "18580972-de27-4df2-99d5-7c6888419bf9",
1899
+ * "title": "Rents",
1900
+ * "total": 10879029,
1901
+ * "values": [
1902
+ * {
1903
+ * "id": "2025",
1904
+ * "title": "2025",
1905
+ * "total": 10879029,
1906
+ * "percentage": 52.3
1907
+ * }
1908
+ * ]
1909
+ * }
1910
+ * ]
1911
+ * } */
1912
+ ProfitAndLossCategory: {
1913
+ id: string;
1914
+ title: string;
1915
+ total: number;
1916
+ accounts: components["schemas"]["ProfitAndLossAccount"][];
1917
+ };
1918
+ /** @example {
1919
+ * "id": "18580972-de27-4df2-99d5-7c6888419bf9",
1920
+ * "title": "Rents",
1921
+ * "total": 10879029,
1922
+ * "values": [
1923
+ * {
1924
+ * "id": "2025",
1925
+ * "title": "2025",
1926
+ * "total": 10879029,
1927
+ * "percentage": 52.3
1928
+ * }
1929
+ * ]
1930
+ * } */
1931
+ ProfitAndLossAccount: {
1932
+ id: string;
1933
+ title: string;
1934
+ total: number;
1935
+ values: components["schemas"]["ProfitAndLossValueCell"][];
1936
+ };
1842
1937
  };
1843
1938
  responses: never;
1844
1939
  parameters: never;
@@ -2188,76 +2283,6 @@ export interface operations {
2188
2283
  };
2189
2284
  };
2190
2285
  };
2191
- healthz: {
2192
- parameters: {
2193
- query?: never;
2194
- header?: {
2195
- "X-Team-Id"?: string;
2196
- };
2197
- path?: never;
2198
- cookie?: never;
2199
- };
2200
- requestBody?: never;
2201
- responses: {
2202
- /** @description Successful response */
2203
- 200: {
2204
- headers: {
2205
- [name: string]: unknown;
2206
- };
2207
- content: {
2208
- "application/json": {
2209
- status: string;
2210
- metadata?: unknown;
2211
- };
2212
- };
2213
- };
2214
- /** @description Invalid input data */
2215
- 400: {
2216
- headers: {
2217
- [name: string]: unknown;
2218
- };
2219
- content: {
2220
- "application/json": components["schemas"]["error.BAD_REQUEST"];
2221
- };
2222
- };
2223
- /** @description Authorization not provided */
2224
- 401: {
2225
- headers: {
2226
- [name: string]: unknown;
2227
- };
2228
- content: {
2229
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
2230
- };
2231
- };
2232
- /** @description Insufficient access */
2233
- 403: {
2234
- headers: {
2235
- [name: string]: unknown;
2236
- };
2237
- content: {
2238
- "application/json": components["schemas"]["error.FORBIDDEN"];
2239
- };
2240
- };
2241
- /** @description Not found */
2242
- 404: {
2243
- headers: {
2244
- [name: string]: unknown;
2245
- };
2246
- content: {
2247
- "application/json": components["schemas"]["error.NOT_FOUND"];
2248
- };
2249
- };
2250
- /** @description Internal server error */
2251
- 500: {
2252
- headers: {
2253
- [name: string]: unknown;
2254
- };
2255
- content: {
2256
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
2257
- };
2258
- };
2259
- };
2260
- };
2261
2286
  getLegacyPayouts: {
2262
2287
  parameters: {
2263
2288
  query?: {
@@ -3631,16 +3656,16 @@ export interface operations {
3631
3656
  requestBody: {
3632
3657
  content: {
3633
3658
  "application/json": {
3634
- /** @enum {string|null} */
3635
- revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3636
3659
  /** Format: uuid */
3637
3660
  accountId?: string | null;
3661
+ /** @enum {string|null} */
3662
+ revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3638
3663
  channelMappings?: {
3639
- /** @enum {string|null} */
3640
- revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3641
3664
  bookingChannel: string;
3642
3665
  /** Format: uuid */
3643
3666
  accountId?: string | null;
3667
+ /** @enum {string|null} */
3668
+ revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3644
3669
  }[] | null;
3645
3670
  };
3646
3671
  };
@@ -3653,12 +3678,12 @@ export interface operations {
3653
3678
  };
3654
3679
  content: {
3655
3680
  "application/json": {
3681
+ /** Format: uuid */
3656
3682
  id?: string | null;
3657
3683
  account?: {
3684
+ /** Format: uuid */
3658
3685
  id: string;
3659
3686
  name: string;
3660
- /** @enum {string|null} */
3661
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3662
3687
  } | null;
3663
3688
  /** @enum {string} */
3664
3689
  status: "mapped" | "unmapped" | "excluded";
@@ -3666,12 +3691,12 @@ export interface operations {
3666
3691
  revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3667
3692
  type: string;
3668
3693
  channelMappings: {
3694
+ /** Format: uuid */
3669
3695
  id?: string | null;
3670
3696
  account?: {
3697
+ /** Format: uuid */
3671
3698
  id: string;
3672
3699
  name: string;
3673
- /** @enum {string|null} */
3674
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3675
3700
  } | null;
3676
3701
  /** @enum {string} */
3677
3702
  status: "mapped" | "unmapped" | "excluded";
@@ -3759,12 +3784,12 @@ export interface operations {
3759
3784
  content: {
3760
3785
  "application/json": {
3761
3786
  data: {
3787
+ /** Format: uuid */
3762
3788
  id?: string | null;
3763
3789
  account?: {
3790
+ /** Format: uuid */
3764
3791
  id: string;
3765
3792
  name: string;
3766
- /** @enum {string|null} */
3767
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3768
3793
  } | null;
3769
3794
  /** @enum {string} */
3770
3795
  status: "mapped" | "unmapped" | "excluded";
@@ -3772,12 +3797,12 @@ export interface operations {
3772
3797
  revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3773
3798
  type: string;
3774
3799
  channelMappings: {
3800
+ /** Format: uuid */
3775
3801
  id?: string | null;
3776
3802
  account?: {
3803
+ /** Format: uuid */
3777
3804
  id: string;
3778
3805
  name: string;
3779
- /** @enum {string|null} */
3780
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3781
3806
  } | null;
3782
3807
  /** @enum {string} */
3783
3808
  status: "mapped" | "unmapped" | "excluded";
@@ -4918,6 +4943,42 @@ export interface operations {
4918
4943
  /** @enum {string|null} */
4919
4944
  party?: "owners" | "manager" | null;
4920
4945
  }[] | null;
4946
+ /** @description Lines to be added (can not be combined with "lines" in the same request) */
4947
+ lines_create?: {
4948
+ /** Format: uuid */
4949
+ id?: string | null;
4950
+ uniqueRef?: string | null;
4951
+ type: string;
4952
+ description?: string | null;
4953
+ reservationRef?: string | null;
4954
+ /** @description Value in cents (100 = 1€) */
4955
+ amount: number;
4956
+ accountId?: string | null;
4957
+ accountRef?: string | null;
4958
+ connectionId?: string | null;
4959
+ metadata?: {
4960
+ [key: string]: unknown;
4961
+ } | null;
4962
+ }[] | null;
4963
+ /** @description Lines to be updated (can not be combined with "lines" in the same request) */
4964
+ lines_update?: {
4965
+ /** Format: uuid */
4966
+ id: string;
4967
+ uniqueRef?: string | null;
4968
+ type?: string;
4969
+ description?: string | null;
4970
+ reservationRef?: string | null;
4971
+ /** @description Value in cents (100 = 1€) */
4972
+ amount?: number;
4973
+ accountId?: string | null;
4974
+ accountRef?: string | null;
4975
+ connectionId?: string | null;
4976
+ metadata?: {
4977
+ [key: string]: unknown;
4978
+ } | null;
4979
+ }[] | null;
4980
+ /** @description Lines to be deleted (can not be combined with "lines" in the same request) */
4981
+ lines_delete?: string[] | null;
4921
4982
  /** @description Lines to be added (can not be combined with "adjustments" in the same request) */
4922
4983
  adjustments_create?: {
4923
4984
  /** Format: uuid */
@@ -6217,7 +6278,7 @@ export interface operations {
6217
6278
  data: {
6218
6279
  /** Format: uuid */
6219
6280
  listingId: string;
6220
- /** @default 2025-09-26 */
6281
+ /** @default 2025-10-14 */
6221
6282
  startAt: string;
6222
6283
  endAt?: string | null;
6223
6284
  setListingInactive?: boolean | null;
@@ -6299,7 +6360,7 @@ export interface operations {
6299
6360
  "application/json": {
6300
6361
  /** Format: uuid */
6301
6362
  listingId: string;
6302
- /** @default 2025-09-26 */
6363
+ /** @default 2025-10-14 */
6303
6364
  startAt?: string;
6304
6365
  endAt?: string | null;
6305
6366
  members: {
@@ -6333,7 +6394,7 @@ export interface operations {
6333
6394
  "application/json": {
6334
6395
  /** Format: uuid */
6335
6396
  listingId: string;
6336
- /** @default 2025-09-26 */
6397
+ /** @default 2025-10-14 */
6337
6398
  startAt: string;
6338
6399
  endAt?: string | null;
6339
6400
  setListingInactive?: boolean | null;
@@ -6413,7 +6474,7 @@ export interface operations {
6413
6474
  "application/json": {
6414
6475
  /** Format: uuid */
6415
6476
  listingId: string;
6416
- /** @default 2025-09-26 */
6477
+ /** @default 2025-10-14 */
6417
6478
  startAt: string;
6418
6479
  endAt?: string | null;
6419
6480
  setListingInactive?: boolean | null;
@@ -6496,7 +6557,7 @@ export interface operations {
6496
6557
  "application/json": {
6497
6558
  /** Format: uuid */
6498
6559
  listingId?: string;
6499
- /** @default 2025-09-26 */
6560
+ /** @default 2025-10-14 */
6500
6561
  startAt?: string;
6501
6562
  endAt?: string | null;
6502
6563
  members?: {
@@ -6525,7 +6586,7 @@ export interface operations {
6525
6586
  "application/json": {
6526
6587
  /** Format: uuid */
6527
6588
  listingId: string;
6528
- /** @default 2025-09-26 */
6589
+ /** @default 2025-10-14 */
6529
6590
  startAt: string;
6530
6591
  endAt?: string | null;
6531
6592
  setListingInactive?: boolean | null;
@@ -6711,7 +6772,7 @@ export interface operations {
6711
6772
  /** Format: uuid */
6712
6773
  sourceId?: string | null;
6713
6774
  initialOwnership?: {
6714
- /** @default 2025-09-26 */
6775
+ /** @default 2025-10-14 */
6715
6776
  startAt?: string;
6716
6777
  endAt?: string | null;
6717
6778
  members: {
@@ -6769,7 +6830,7 @@ export interface operations {
6769
6830
  status: "active" | "inactive";
6770
6831
  defaultCurrency?: string | null;
6771
6832
  activeOwnership?: {
6772
- /** @default 2025-09-26 */
6833
+ /** @default 2025-10-14 */
6773
6834
  startAt: string;
6774
6835
  endAt?: string | null;
6775
6836
  setListingInactive?: boolean | null;
@@ -6804,6 +6865,15 @@ export interface operations {
6804
6865
  /** @enum {string|null} */
6805
6866
  status?: "active" | "inactive" | null;
6806
6867
  } | null;
6868
+ upcomingDeactivation: {
6869
+ /** @enum {string} */
6870
+ status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
6871
+ period: {
6872
+ id: string;
6873
+ startAt: string;
6874
+ endAt: string | null;
6875
+ } | null;
6876
+ };
6807
6877
  }[];
6808
6878
  issues: {
6809
6879
  ref: string;
@@ -7001,7 +7071,7 @@ export interface operations {
7001
7071
  status: "active" | "inactive";
7002
7072
  defaultCurrency?: string | null;
7003
7073
  activeOwnership?: {
7004
- /** @default 2025-09-26 */
7074
+ /** @default 2025-10-14 */
7005
7075
  startAt: string;
7006
7076
  endAt?: string | null;
7007
7077
  setListingInactive?: boolean | null;
@@ -7036,6 +7106,15 @@ export interface operations {
7036
7106
  /** @enum {string|null} */
7037
7107
  status?: "active" | "inactive" | null;
7038
7108
  } | null;
7109
+ upcomingDeactivation: {
7110
+ /** @enum {string} */
7111
+ status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
7112
+ period: {
7113
+ id: string;
7114
+ startAt: string;
7115
+ endAt: string | null;
7116
+ } | null;
7117
+ };
7039
7118
  };
7040
7119
  };
7041
7120
  };
@@ -7131,7 +7210,7 @@ export interface operations {
7131
7210
  /** Format: uuid */
7132
7211
  sourceId?: string | null;
7133
7212
  initialOwnership?: {
7134
- /** @default 2025-09-26 */
7213
+ /** @default 2025-10-14 */
7135
7214
  startAt?: string;
7136
7215
  endAt?: string | null;
7137
7216
  members: {
@@ -7185,7 +7264,7 @@ export interface operations {
7185
7264
  status: "active" | "inactive";
7186
7265
  defaultCurrency?: string | null;
7187
7266
  activeOwnership?: {
7188
- /** @default 2025-09-26 */
7267
+ /** @default 2025-10-14 */
7189
7268
  startAt: string;
7190
7269
  endAt?: string | null;
7191
7270
  setListingInactive?: boolean | null;
@@ -7220,6 +7299,15 @@ export interface operations {
7220
7299
  /** @enum {string|null} */
7221
7300
  status?: "active" | "inactive" | null;
7222
7301
  } | null;
7302
+ upcomingDeactivation: {
7303
+ /** @enum {string} */
7304
+ status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
7305
+ period: {
7306
+ id: string;
7307
+ startAt: string;
7308
+ endAt: string | null;
7309
+ } | null;
7310
+ };
7223
7311
  };
7224
7312
  };
7225
7313
  };
@@ -7393,7 +7481,7 @@ export interface operations {
7393
7481
  status: "active" | "inactive";
7394
7482
  defaultCurrency?: string | null;
7395
7483
  activeOwnership?: {
7396
- /** @default 2025-09-26 */
7484
+ /** @default 2025-10-14 */
7397
7485
  startAt: string;
7398
7486
  endAt?: string | null;
7399
7487
  setListingInactive?: boolean | null;
@@ -7428,6 +7516,15 @@ export interface operations {
7428
7516
  /** @enum {string|null} */
7429
7517
  status?: "active" | "inactive" | null;
7430
7518
  } | null;
7519
+ upcomingDeactivation: {
7520
+ /** @enum {string} */
7521
+ status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
7522
+ period: {
7523
+ id: string;
7524
+ startAt: string;
7525
+ endAt: string | null;
7526
+ } | null;
7527
+ };
7431
7528
  }[];
7432
7529
  pagination: {
7433
7530
  /** @default 100 */
@@ -7531,7 +7628,7 @@ export interface operations {
7531
7628
  /** Format: uuid */
7532
7629
  sourceId?: string | null;
7533
7630
  initialOwnership?: {
7534
- /** @default 2025-09-26 */
7631
+ /** @default 2025-10-14 */
7535
7632
  startAt?: string;
7536
7633
  endAt?: string | null;
7537
7634
  members: {
@@ -7585,7 +7682,7 @@ export interface operations {
7585
7682
  status: "active" | "inactive";
7586
7683
  defaultCurrency?: string | null;
7587
7684
  activeOwnership?: {
7588
- /** @default 2025-09-26 */
7685
+ /** @default 2025-10-14 */
7589
7686
  startAt: string;
7590
7687
  endAt?: string | null;
7591
7688
  setListingInactive?: boolean | null;
@@ -7620,10 +7717,19 @@ export interface operations {
7620
7717
  /** @enum {string|null} */
7621
7718
  status?: "active" | "inactive" | null;
7622
7719
  } | null;
7623
- };
7624
- };
7625
- };
7626
- /** @description Invalid input data */
7720
+ upcomingDeactivation: {
7721
+ /** @enum {string} */
7722
+ status: "active" | "disable-upcoming" | "disabled-ending" | "disabled-forever";
7723
+ period: {
7724
+ id: string;
7725
+ startAt: string;
7726
+ endAt: string | null;
7727
+ } | null;
7728
+ };
7729
+ };
7730
+ };
7731
+ };
7732
+ /** @description Invalid input data */
7627
7733
  400: {
7628
7734
  headers: {
7629
7735
  [name: string]: unknown;
@@ -11692,22 +11798,25 @@ export interface operations {
11692
11798
  };
11693
11799
  };
11694
11800
  };
11695
- getManagerStatements: {
11801
+ payManagerStatement: {
11696
11802
  parameters: {
11697
- query?: {
11698
- status?: "draft" | "inReview" | "void" | "preview" | "published" | "all";
11699
- /** @description Year in format YYYY */
11700
- year?: number;
11701
- limit?: number;
11702
- page?: number;
11703
- };
11803
+ query?: never;
11704
11804
  header?: {
11705
11805
  "X-Team-Id"?: string;
11706
11806
  };
11707
11807
  path?: never;
11708
11808
  cookie?: never;
11709
11809
  };
11710
- requestBody?: never;
11810
+ requestBody: {
11811
+ content: {
11812
+ "application/json": {
11813
+ date: string;
11814
+ /** @description Value in cents (100 = 1€) */
11815
+ amount: number;
11816
+ lineAccountId: string;
11817
+ };
11818
+ };
11819
+ };
11711
11820
  responses: {
11712
11821
  /** @description Successful response */
11713
11822
  200: {
@@ -11716,101 +11825,148 @@ export interface operations {
11716
11825
  };
11717
11826
  content: {
11718
11827
  "application/json": {
11719
- data: {
11720
- id?: string | null;
11721
- issues: ({
11722
- /** @enum {string} */
11723
- code: "emptyJournalEntryAccountIds";
11724
- /** @enum {string} */
11725
- severity: "error";
11726
- context: {
11727
- journalEntryIds: string[];
11728
- };
11729
- message: string;
11730
- } | {
11731
- /** @enum {string} */
11732
- code: "netRevenueLayoutMismatch";
11733
- /** @enum {string} */
11734
- severity: "error";
11735
- context: Record<string, never>;
11736
- message: string;
11737
- } | {
11828
+ description: string;
11829
+ uniqueRef?: string | null;
11830
+ /** @enum {string} */
11831
+ type: "deposit" | "expense" | "transfer";
11832
+ date: string;
11833
+ lines: {
11834
+ uniqueRef?: string | null;
11835
+ description: string;
11836
+ /** @description Value in cents (100 = 1€) */
11837
+ amount: number;
11838
+ /** Format: uuid */
11839
+ ownerStatementId?: string | null;
11840
+ matchers?: {
11841
+ confirmationCode?: string | null;
11842
+ customerId?: string | null;
11843
+ lineType?: string | null;
11844
+ } | null;
11845
+ id: string;
11846
+ issues: {
11738
11847
  /** @enum {string} */
11739
- code: "listingInactive";
11848
+ code: "unassignedAccount";
11740
11849
  /** @enum {string} */
11741
11850
  severity: "error";
11742
- context: Record<string, never>;
11743
- message: string;
11744
- } | {
11745
- /** @enum {string} */
11746
- code: "balanceMismatch_start";
11747
- /** @enum {string} */
11748
- severity: "warning";
11749
- context: Record<string, never>;
11750
- message: string;
11751
- } | {
11752
- /** @enum {string} */
11753
- code: "balanceMismatch_end";
11754
- /** @enum {string} */
11755
- severity: "warning";
11756
- context: Record<string, never>;
11757
- message: string;
11758
- } | {
11759
- /** @enum {string} */
11760
- code: "previousMonthJournalEntries";
11761
- /** @enum {string} */
11762
- severity: "warning";
11763
11851
  context: {
11764
- journalEntryIds: string[];
11765
- affected: number;
11852
+ lineType: string;
11766
11853
  };
11767
- message: string;
11768
- } | {
11769
- /** @enum {string} */
11770
- code: "unpaidReservations";
11854
+ }[];
11855
+ recurringTemplate?: {
11856
+ id: string;
11857
+ } | null;
11858
+ total: number;
11859
+ listing?: {
11860
+ /** Format: uuid */
11861
+ id: string;
11862
+ name: string;
11863
+ uniqueRef?: string | null;
11864
+ } | null;
11865
+ reservation?: {
11866
+ id: string;
11867
+ confirmationCode?: string | null;
11868
+ uniqueRef: string;
11771
11869
  /** @enum {string} */
11772
- severity: "warning";
11773
- context: Record<string, never>;
11774
- message: string;
11775
- })[];
11776
- uniqueRef: string;
11777
- currency: string;
11778
- startAt: string;
11779
- endAt: string;
11870
+ status: "booked" | "canceled" | "inactive";
11871
+ checkIn?: string | null;
11872
+ checkOut?: string | null;
11873
+ } | null;
11874
+ account?: {
11875
+ id: string;
11876
+ name: string;
11877
+ /** @enum {string|null} */
11878
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
11879
+ } | null;
11780
11880
  /** @enum {string} */
11781
- status: "preview" | "draft" | "inReview" | "void" | "published";
11782
- /** @description Value in cents (100 = 1€) */
11783
- total: number;
11784
- financials: {
11785
- /** @description Value in cents (100 = 1€) */
11786
- balanceStart: number;
11787
- /** @description Value in cents (100 = 1€) */
11788
- netRevenue: number;
11789
- /** @description Value in cents (100 = 1€) */
11790
- expenses: number;
11791
- /** @description Value in cents (100 = 1€) */
11792
- netIncome: number;
11793
- /** @description Value in cents (100 = 1€) */
11794
- transfers: number;
11795
- /** @description Value in cents (100 = 1€) */
11796
- balanceEnd: number;
11797
- };
11798
- transfers: {
11881
+ party: "owners" | "manager";
11882
+ contact?: {
11883
+ /** Format: uuid */
11799
11884
  id: string;
11800
- date: string;
11801
- total: number;
11802
- totalFormatted: string;
11803
- }[];
11885
+ name?: string | null;
11886
+ uniqueRef?: string | null;
11887
+ } | null;
11888
+ matchStatus?: string | null;
11889
+ markup?: {
11890
+ /** @description Value in cents (100 = 1€) */
11891
+ amount?: number | null;
11892
+ /**
11893
+ * @default excluded
11894
+ * @enum {string|null}
11895
+ */
11896
+ taxBehavior: "excluded" | "included" | null;
11897
+ taxRate?: {
11898
+ id: string;
11899
+ name: string;
11900
+ /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
11901
+ basisPoints: number;
11902
+ } | null;
11903
+ } | null;
11804
11904
  }[];
11805
- pagination: {
11806
- /** @default 100 */
11807
- limit: number;
11808
- /** @default 1 */
11809
- page: number;
11810
- total: number;
11811
- totalPage: number;
11812
- nextPage?: number;
11905
+ /** Format: uuid */
11906
+ recurringTemplateId?: string | null;
11907
+ /** @enum {string} */
11908
+ status: "active" | "inactive";
11909
+ matchers?: {
11910
+ bankAccountRef?: string | null;
11911
+ } | null;
11912
+ id: string;
11913
+ issues: {
11914
+ /** @enum {string} */
11915
+ code: "line_unassignedAccount";
11916
+ /** @enum {string} */
11917
+ severity: "error";
11918
+ context: Record<string, never>;
11919
+ }[];
11920
+ currency: string;
11921
+ /** @description Value in cents (100 = 1€) */
11922
+ amount: number;
11923
+ recurringTemplate?: {
11924
+ id: string;
11925
+ } | null;
11926
+ account?: {
11927
+ id: string;
11928
+ name: string;
11929
+ /** @enum {string|null} */
11930
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
11931
+ bankAccount?: {
11932
+ /** Format: uuid */
11933
+ id?: string | null;
11934
+ name: string;
11935
+ } | null;
11936
+ } | null;
11937
+ payment: {
11938
+ bankRecordIds: string[];
11939
+ /** @enum {string} */
11940
+ status: "unpaid" | "underpaid" | "overpaid" | "paid";
11941
+ date?: string | null;
11813
11942
  };
11943
+ connection?: {
11944
+ /** Format: uuid */
11945
+ id: string;
11946
+ name: string;
11947
+ /** @enum {string} */
11948
+ status: "active" | "inactive";
11949
+ uniqueRef?: string | null;
11950
+ app: {
11951
+ id: string;
11952
+ name: string;
11953
+ icon?: string | null;
11954
+ };
11955
+ } | null;
11956
+ contact?: {
11957
+ /** Format: uuid */
11958
+ id: string;
11959
+ name?: string | null;
11960
+ uniqueRef?: string | null;
11961
+ } | null;
11962
+ source?: {
11963
+ /** Format: uuid */
11964
+ id: string;
11965
+ type: string;
11966
+ /** @enum {string|null} */
11967
+ status?: "active" | "inactive" | null;
11968
+ } | null;
11969
+ matchStatus?: string | null;
11814
11970
  };
11815
11971
  };
11816
11972
  };
@@ -11841,15 +11997,6 @@ export interface operations {
11841
11997
  "application/json": components["schemas"]["error.FORBIDDEN"];
11842
11998
  };
11843
11999
  };
11844
- /** @description Not found */
11845
- 404: {
11846
- headers: {
11847
- [name: string]: unknown;
11848
- };
11849
- content: {
11850
- "application/json": components["schemas"]["error.NOT_FOUND"];
11851
- };
11852
- };
11853
12000
  /** @description Internal server error */
11854
12001
  500: {
11855
12002
  headers: {
@@ -11861,840 +12008,7 @@ export interface operations {
11861
12008
  };
11862
12009
  };
11863
12010
  };
11864
- createManagerStatement: {
11865
- parameters: {
11866
- query?: never;
11867
- header?: {
11868
- "X-Team-Id"?: string;
11869
- };
11870
- path?: never;
11871
- cookie?: never;
11872
- };
11873
- requestBody: {
11874
- content: {
11875
- "application/json": {
11876
- /** @description Date in format YYYY-MM */
11877
- month: string;
11878
- /**
11879
- * @default draft
11880
- * @enum {string}
11881
- */
11882
- status?: "draft" | "inReview" | "void" | "published";
11883
- currency?: string;
11884
- };
11885
- };
11886
- };
11887
- responses: {
11888
- /** @description Successful response */
11889
- 200: {
11890
- headers: {
11891
- [name: string]: unknown;
11892
- };
11893
- content: {
11894
- "application/json": {
11895
- data: {
11896
- id?: string | null;
11897
- issues: ({
11898
- /** @enum {string} */
11899
- code: "emptyJournalEntryAccountIds";
11900
- /** @enum {string} */
11901
- severity: "error";
11902
- context: {
11903
- journalEntryIds: string[];
11904
- };
11905
- message: string;
11906
- } | {
11907
- /** @enum {string} */
11908
- code: "netRevenueLayoutMismatch";
11909
- /** @enum {string} */
11910
- severity: "error";
11911
- context: Record<string, never>;
11912
- message: string;
11913
- } | {
11914
- /** @enum {string} */
11915
- code: "listingInactive";
11916
- /** @enum {string} */
11917
- severity: "error";
11918
- context: Record<string, never>;
11919
- message: string;
11920
- } | {
11921
- /** @enum {string} */
11922
- code: "balanceMismatch_start";
11923
- /** @enum {string} */
11924
- severity: "warning";
11925
- context: Record<string, never>;
11926
- message: string;
11927
- } | {
11928
- /** @enum {string} */
11929
- code: "balanceMismatch_end";
11930
- /** @enum {string} */
11931
- severity: "warning";
11932
- context: Record<string, never>;
11933
- message: string;
11934
- } | {
11935
- /** @enum {string} */
11936
- code: "previousMonthJournalEntries";
11937
- /** @enum {string} */
11938
- severity: "warning";
11939
- context: {
11940
- journalEntryIds: string[];
11941
- affected: number;
11942
- };
11943
- message: string;
11944
- } | {
11945
- /** @enum {string} */
11946
- code: "unpaidReservations";
11947
- /** @enum {string} */
11948
- severity: "warning";
11949
- context: Record<string, never>;
11950
- message: string;
11951
- })[];
11952
- uniqueRef: string;
11953
- currency: string;
11954
- startAt: string;
11955
- endAt: string;
11956
- /** @enum {string} */
11957
- status: "preview" | "draft" | "inReview" | "void" | "published";
11958
- /** @description Value in cents (100 = 1€) */
11959
- total: number;
11960
- financials: {
11961
- /** @description Value in cents (100 = 1€) */
11962
- balanceStart: number;
11963
- /** @description Value in cents (100 = 1€) */
11964
- netRevenue: number;
11965
- /** @description Value in cents (100 = 1€) */
11966
- expenses: number;
11967
- /** @description Value in cents (100 = 1€) */
11968
- netIncome: number;
11969
- /** @description Value in cents (100 = 1€) */
11970
- transfers: number;
11971
- /** @description Value in cents (100 = 1€) */
11972
- balanceEnd: number;
11973
- };
11974
- transfers: {
11975
- id: string;
11976
- date: string;
11977
- total: number;
11978
- totalFormatted: string;
11979
- }[];
11980
- journalEntries: {
11981
- id: string;
11982
- txnAt: string;
11983
- description: string;
11984
- centTotal: number;
11985
- reservationId?: string | null;
11986
- transactionId?: string | null;
11987
- ownerStatementId?: string | null;
11988
- currency: string;
11989
- entityType?: string | null;
11990
- status: string;
11991
- listingId?: string | null;
11992
- uniqueRef: string;
11993
- party?: string | null;
11994
- contactId?: string | null;
11995
- listingOwnershipPeriodId?: string | null;
11996
- recurringFeeId?: string | null;
11997
- recurringFeeListingSubscriptionId?: string | null;
11998
- account?: {
11999
- id: string;
12000
- name: string;
12001
- } | null;
12002
- }[];
12003
- /** Format: uuid */
12004
- syncId?: string | null;
12005
- }[];
12006
- };
12007
- };
12008
- };
12009
- /** @description Invalid input data */
12010
- 400: {
12011
- headers: {
12012
- [name: string]: unknown;
12013
- };
12014
- content: {
12015
- "application/json": components["schemas"]["error.BAD_REQUEST"];
12016
- };
12017
- };
12018
- /** @description Authorization not provided */
12019
- 401: {
12020
- headers: {
12021
- [name: string]: unknown;
12022
- };
12023
- content: {
12024
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
12025
- };
12026
- };
12027
- /** @description Insufficient access */
12028
- 403: {
12029
- headers: {
12030
- [name: string]: unknown;
12031
- };
12032
- content: {
12033
- "application/json": components["schemas"]["error.FORBIDDEN"];
12034
- };
12035
- };
12036
- /** @description Internal server error */
12037
- 500: {
12038
- headers: {
12039
- [name: string]: unknown;
12040
- };
12041
- content: {
12042
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
12043
- };
12044
- };
12045
- };
12046
- };
12047
- getManagerStatementsBatch: {
12048
- parameters: {
12049
- query: {
12050
- /** @description Date in format YYYY-MM */
12051
- month: string;
12052
- };
12053
- header?: {
12054
- "X-Team-Id"?: string;
12055
- };
12056
- path?: never;
12057
- cookie?: never;
12058
- };
12059
- requestBody?: never;
12060
- responses: {
12061
- /** @description Successful response */
12062
- 200: {
12063
- headers: {
12064
- [name: string]: unknown;
12065
- };
12066
- content: {
12067
- "application/json": {
12068
- data: {
12069
- id?: string | null;
12070
- issues: ({
12071
- /** @enum {string} */
12072
- code: "emptyJournalEntryAccountIds";
12073
- /** @enum {string} */
12074
- severity: "error";
12075
- context: {
12076
- journalEntryIds: string[];
12077
- };
12078
- message: string;
12079
- } | {
12080
- /** @enum {string} */
12081
- code: "netRevenueLayoutMismatch";
12082
- /** @enum {string} */
12083
- severity: "error";
12084
- context: Record<string, never>;
12085
- message: string;
12086
- } | {
12087
- /** @enum {string} */
12088
- code: "listingInactive";
12089
- /** @enum {string} */
12090
- severity: "error";
12091
- context: Record<string, never>;
12092
- message: string;
12093
- } | {
12094
- /** @enum {string} */
12095
- code: "balanceMismatch_start";
12096
- /** @enum {string} */
12097
- severity: "warning";
12098
- context: Record<string, never>;
12099
- message: string;
12100
- } | {
12101
- /** @enum {string} */
12102
- code: "balanceMismatch_end";
12103
- /** @enum {string} */
12104
- severity: "warning";
12105
- context: Record<string, never>;
12106
- message: string;
12107
- } | {
12108
- /** @enum {string} */
12109
- code: "previousMonthJournalEntries";
12110
- /** @enum {string} */
12111
- severity: "warning";
12112
- context: {
12113
- journalEntryIds: string[];
12114
- affected: number;
12115
- };
12116
- message: string;
12117
- } | {
12118
- /** @enum {string} */
12119
- code: "unpaidReservations";
12120
- /** @enum {string} */
12121
- severity: "warning";
12122
- context: Record<string, never>;
12123
- message: string;
12124
- })[];
12125
- uniqueRef: string;
12126
- currency: string;
12127
- startAt: string;
12128
- endAt: string;
12129
- /** @enum {string} */
12130
- status: "preview" | "draft" | "inReview" | "void" | "published";
12131
- /** @description Value in cents (100 = 1€) */
12132
- total: number;
12133
- financials: {
12134
- /** @description Value in cents (100 = 1€) */
12135
- balanceStart: number;
12136
- /** @description Value in cents (100 = 1€) */
12137
- netRevenue: number;
12138
- /** @description Value in cents (100 = 1€) */
12139
- expenses: number;
12140
- /** @description Value in cents (100 = 1€) */
12141
- netIncome: number;
12142
- /** @description Value in cents (100 = 1€) */
12143
- transfers: number;
12144
- /** @description Value in cents (100 = 1€) */
12145
- balanceEnd: number;
12146
- };
12147
- transfers: {
12148
- id: string;
12149
- date: string;
12150
- total: number;
12151
- totalFormatted: string;
12152
- }[];
12153
- journalEntries: {
12154
- id: string;
12155
- txnAt: string;
12156
- description: string;
12157
- centTotal: number;
12158
- reservationId?: string | null;
12159
- transactionId?: string | null;
12160
- ownerStatementId?: string | null;
12161
- currency: string;
12162
- entityType?: string | null;
12163
- status: string;
12164
- listingId?: string | null;
12165
- uniqueRef: string;
12166
- party?: string | null;
12167
- contactId?: string | null;
12168
- listingOwnershipPeriodId?: string | null;
12169
- recurringFeeId?: string | null;
12170
- recurringFeeListingSubscriptionId?: string | null;
12171
- account?: {
12172
- id: string;
12173
- name: string;
12174
- } | null;
12175
- }[];
12176
- }[];
12177
- };
12178
- };
12179
- };
12180
- /** @description Invalid input data */
12181
- 400: {
12182
- headers: {
12183
- [name: string]: unknown;
12184
- };
12185
- content: {
12186
- "application/json": components["schemas"]["error.BAD_REQUEST"];
12187
- };
12188
- };
12189
- /** @description Authorization not provided */
12190
- 401: {
12191
- headers: {
12192
- [name: string]: unknown;
12193
- };
12194
- content: {
12195
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
12196
- };
12197
- };
12198
- /** @description Insufficient access */
12199
- 403: {
12200
- headers: {
12201
- [name: string]: unknown;
12202
- };
12203
- content: {
12204
- "application/json": components["schemas"]["error.FORBIDDEN"];
12205
- };
12206
- };
12207
- /** @description Not found */
12208
- 404: {
12209
- headers: {
12210
- [name: string]: unknown;
12211
- };
12212
- content: {
12213
- "application/json": components["schemas"]["error.NOT_FOUND"];
12214
- };
12215
- };
12216
- /** @description Internal server error */
12217
- 500: {
12218
- headers: {
12219
- [name: string]: unknown;
12220
- };
12221
- content: {
12222
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
12223
- };
12224
- };
12225
- };
12226
- };
12227
- payManagerStatement: {
12228
- parameters: {
12229
- query?: never;
12230
- header?: {
12231
- "X-Team-Id"?: string;
12232
- };
12233
- path?: never;
12234
- cookie?: never;
12235
- };
12236
- requestBody: {
12237
- content: {
12238
- "application/json": {
12239
- date: string;
12240
- /** @description Value in cents (100 = 1€) */
12241
- amount: number;
12242
- lineAccountId: string;
12243
- };
12244
- };
12245
- };
12246
- responses: {
12247
- /** @description Successful response */
12248
- 200: {
12249
- headers: {
12250
- [name: string]: unknown;
12251
- };
12252
- content: {
12253
- "application/json": {
12254
- description: string;
12255
- uniqueRef?: string | null;
12256
- /** @enum {string} */
12257
- type: "deposit" | "expense" | "transfer";
12258
- date: string;
12259
- lines: {
12260
- uniqueRef?: string | null;
12261
- description: string;
12262
- /** @description Value in cents (100 = 1€) */
12263
- amount: number;
12264
- /** Format: uuid */
12265
- ownerStatementId?: string | null;
12266
- matchers?: {
12267
- confirmationCode?: string | null;
12268
- customerId?: string | null;
12269
- lineType?: string | null;
12270
- } | null;
12271
- id: string;
12272
- issues: {
12273
- /** @enum {string} */
12274
- code: "unassignedAccount";
12275
- /** @enum {string} */
12276
- severity: "error";
12277
- context: {
12278
- lineType: string;
12279
- };
12280
- }[];
12281
- recurringTemplate?: {
12282
- id: string;
12283
- } | null;
12284
- total: number;
12285
- listing?: {
12286
- /** Format: uuid */
12287
- id: string;
12288
- name: string;
12289
- uniqueRef?: string | null;
12290
- } | null;
12291
- reservation?: {
12292
- id: string;
12293
- confirmationCode?: string | null;
12294
- uniqueRef: string;
12295
- /** @enum {string} */
12296
- status: "booked" | "canceled" | "inactive";
12297
- checkIn?: string | null;
12298
- checkOut?: string | null;
12299
- } | null;
12300
- account?: {
12301
- id: string;
12302
- name: string;
12303
- /** @enum {string|null} */
12304
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
12305
- } | null;
12306
- /** @enum {string} */
12307
- party: "owners" | "manager";
12308
- contact?: {
12309
- /** Format: uuid */
12310
- id: string;
12311
- name?: string | null;
12312
- uniqueRef?: string | null;
12313
- } | null;
12314
- matchStatus?: string | null;
12315
- markup?: {
12316
- /** @description Value in cents (100 = 1€) */
12317
- amount?: number | null;
12318
- /**
12319
- * @default excluded
12320
- * @enum {string|null}
12321
- */
12322
- taxBehavior: "excluded" | "included" | null;
12323
- taxRate?: {
12324
- id: string;
12325
- name: string;
12326
- /** @description Basis points between '0' and '100 000' ('100 000' => 100%, '1000' => 1%, '10' => 0.01%, '1' => 0.001%) */
12327
- basisPoints: number;
12328
- } | null;
12329
- } | null;
12330
- }[];
12331
- /** Format: uuid */
12332
- recurringTemplateId?: string | null;
12333
- /** @enum {string} */
12334
- status: "active" | "inactive";
12335
- matchers?: {
12336
- bankAccountRef?: string | null;
12337
- } | null;
12338
- id: string;
12339
- issues: {
12340
- /** @enum {string} */
12341
- code: "line_unassignedAccount";
12342
- /** @enum {string} */
12343
- severity: "error";
12344
- context: Record<string, never>;
12345
- }[];
12346
- currency: string;
12347
- /** @description Value in cents (100 = 1€) */
12348
- amount: number;
12349
- recurringTemplate?: {
12350
- id: string;
12351
- } | null;
12352
- account?: {
12353
- id: string;
12354
- name: string;
12355
- /** @enum {string|null} */
12356
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
12357
- bankAccount?: {
12358
- /** Format: uuid */
12359
- id?: string | null;
12360
- name: string;
12361
- } | null;
12362
- } | null;
12363
- payment: {
12364
- bankRecordIds: string[];
12365
- /** @enum {string} */
12366
- status: "unpaid" | "underpaid" | "overpaid" | "paid";
12367
- date?: string | null;
12368
- };
12369
- connection?: {
12370
- /** Format: uuid */
12371
- id: string;
12372
- name: string;
12373
- /** @enum {string} */
12374
- status: "active" | "inactive";
12375
- uniqueRef?: string | null;
12376
- app: {
12377
- id: string;
12378
- name: string;
12379
- icon?: string | null;
12380
- };
12381
- } | null;
12382
- contact?: {
12383
- /** Format: uuid */
12384
- id: string;
12385
- name?: string | null;
12386
- uniqueRef?: string | null;
12387
- } | null;
12388
- source?: {
12389
- /** Format: uuid */
12390
- id: string;
12391
- type: string;
12392
- /** @enum {string|null} */
12393
- status?: "active" | "inactive" | null;
12394
- } | null;
12395
- matchStatus?: string | null;
12396
- };
12397
- };
12398
- };
12399
- /** @description Invalid input data */
12400
- 400: {
12401
- headers: {
12402
- [name: string]: unknown;
12403
- };
12404
- content: {
12405
- "application/json": components["schemas"]["error.BAD_REQUEST"];
12406
- };
12407
- };
12408
- /** @description Authorization not provided */
12409
- 401: {
12410
- headers: {
12411
- [name: string]: unknown;
12412
- };
12413
- content: {
12414
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
12415
- };
12416
- };
12417
- /** @description Insufficient access */
12418
- 403: {
12419
- headers: {
12420
- [name: string]: unknown;
12421
- };
12422
- content: {
12423
- "application/json": components["schemas"]["error.FORBIDDEN"];
12424
- };
12425
- };
12426
- /** @description Internal server error */
12427
- 500: {
12428
- headers: {
12429
- [name: string]: unknown;
12430
- };
12431
- content: {
12432
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
12433
- };
12434
- };
12435
- };
12436
- };
12437
- updateManagerStatement: {
12438
- parameters: {
12439
- query?: never;
12440
- header?: {
12441
- "X-Team-Id"?: string;
12442
- };
12443
- path: {
12444
- id: string;
12445
- };
12446
- cookie?: never;
12447
- };
12448
- requestBody: {
12449
- content: {
12450
- "application/json": {
12451
- /** @enum {string} */
12452
- status: "draft" | "inReview" | "void" | "published";
12453
- sync?: boolean | null;
12454
- };
12455
- };
12456
- };
12457
- responses: {
12458
- /** @description Successful response */
12459
- 200: {
12460
- headers: {
12461
- [name: string]: unknown;
12462
- };
12463
- content: {
12464
- "application/json": {
12465
- id?: string | null;
12466
- issues: ({
12467
- /** @enum {string} */
12468
- code: "emptyJournalEntryAccountIds";
12469
- /** @enum {string} */
12470
- severity: "error";
12471
- context: {
12472
- journalEntryIds: string[];
12473
- };
12474
- message: string;
12475
- } | {
12476
- /** @enum {string} */
12477
- code: "netRevenueLayoutMismatch";
12478
- /** @enum {string} */
12479
- severity: "error";
12480
- context: Record<string, never>;
12481
- message: string;
12482
- } | {
12483
- /** @enum {string} */
12484
- code: "listingInactive";
12485
- /** @enum {string} */
12486
- severity: "error";
12487
- context: Record<string, never>;
12488
- message: string;
12489
- } | {
12490
- /** @enum {string} */
12491
- code: "balanceMismatch_start";
12492
- /** @enum {string} */
12493
- severity: "warning";
12494
- context: Record<string, never>;
12495
- message: string;
12496
- } | {
12497
- /** @enum {string} */
12498
- code: "balanceMismatch_end";
12499
- /** @enum {string} */
12500
- severity: "warning";
12501
- context: Record<string, never>;
12502
- message: string;
12503
- } | {
12504
- /** @enum {string} */
12505
- code: "previousMonthJournalEntries";
12506
- /** @enum {string} */
12507
- severity: "warning";
12508
- context: {
12509
- journalEntryIds: string[];
12510
- affected: number;
12511
- };
12512
- message: string;
12513
- } | {
12514
- /** @enum {string} */
12515
- code: "unpaidReservations";
12516
- /** @enum {string} */
12517
- severity: "warning";
12518
- context: Record<string, never>;
12519
- message: string;
12520
- })[];
12521
- uniqueRef: string;
12522
- currency: string;
12523
- startAt: string;
12524
- endAt: string;
12525
- /** @enum {string} */
12526
- status: "preview" | "draft" | "inReview" | "void" | "published";
12527
- /** @description Value in cents (100 = 1€) */
12528
- total: number;
12529
- financials: {
12530
- /** @description Value in cents (100 = 1€) */
12531
- balanceStart: number;
12532
- /** @description Value in cents (100 = 1€) */
12533
- netRevenue: number;
12534
- /** @description Value in cents (100 = 1€) */
12535
- expenses: number;
12536
- /** @description Value in cents (100 = 1€) */
12537
- netIncome: number;
12538
- /** @description Value in cents (100 = 1€) */
12539
- transfers: number;
12540
- /** @description Value in cents (100 = 1€) */
12541
- balanceEnd: number;
12542
- };
12543
- transfers: {
12544
- id: string;
12545
- date: string;
12546
- total: number;
12547
- totalFormatted: string;
12548
- }[];
12549
- journalEntries: {
12550
- id: string;
12551
- txnAt: string;
12552
- description: string;
12553
- centTotal: number;
12554
- reservationId?: string | null;
12555
- transactionId?: string | null;
12556
- ownerStatementId?: string | null;
12557
- currency: string;
12558
- entityType?: string | null;
12559
- status: string;
12560
- listingId?: string | null;
12561
- uniqueRef: string;
12562
- party?: string | null;
12563
- contactId?: string | null;
12564
- listingOwnershipPeriodId?: string | null;
12565
- recurringFeeId?: string | null;
12566
- recurringFeeListingSubscriptionId?: string | null;
12567
- account?: {
12568
- id: string;
12569
- name: string;
12570
- } | null;
12571
- }[];
12572
- /** Format: uuid */
12573
- syncId?: string | null;
12574
- };
12575
- };
12576
- };
12577
- /** @description Invalid input data */
12578
- 400: {
12579
- headers: {
12580
- [name: string]: unknown;
12581
- };
12582
- content: {
12583
- "application/json": components["schemas"]["error.BAD_REQUEST"];
12584
- };
12585
- };
12586
- /** @description Authorization not provided */
12587
- 401: {
12588
- headers: {
12589
- [name: string]: unknown;
12590
- };
12591
- content: {
12592
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
12593
- };
12594
- };
12595
- /** @description Insufficient access */
12596
- 403: {
12597
- headers: {
12598
- [name: string]: unknown;
12599
- };
12600
- content: {
12601
- "application/json": components["schemas"]["error.FORBIDDEN"];
12602
- };
12603
- };
12604
- /** @description Not found */
12605
- 404: {
12606
- headers: {
12607
- [name: string]: unknown;
12608
- };
12609
- content: {
12610
- "application/json": components["schemas"]["error.NOT_FOUND"];
12611
- };
12612
- };
12613
- /** @description Internal server error */
12614
- 500: {
12615
- headers: {
12616
- [name: string]: unknown;
12617
- };
12618
- content: {
12619
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
12620
- };
12621
- };
12622
- };
12623
- };
12624
- deleteManagerStatement: {
12625
- parameters: {
12626
- query?: {
12627
- onLocked?: "error" | "unlockAndDelete";
12628
- };
12629
- header?: {
12630
- "X-Team-Id"?: string;
12631
- };
12632
- path: {
12633
- id: string;
12634
- };
12635
- cookie?: never;
12636
- };
12637
- requestBody?: never;
12638
- responses: {
12639
- /** @description Successful response */
12640
- 200: {
12641
- headers: {
12642
- [name: string]: unknown;
12643
- };
12644
- content: {
12645
- "application/json": {
12646
- deleted: boolean;
12647
- };
12648
- };
12649
- };
12650
- /** @description Invalid input data */
12651
- 400: {
12652
- headers: {
12653
- [name: string]: unknown;
12654
- };
12655
- content: {
12656
- "application/json": components["schemas"]["error.BAD_REQUEST"];
12657
- };
12658
- };
12659
- /** @description Authorization not provided */
12660
- 401: {
12661
- headers: {
12662
- [name: string]: unknown;
12663
- };
12664
- content: {
12665
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
12666
- };
12667
- };
12668
- /** @description Insufficient access */
12669
- 403: {
12670
- headers: {
12671
- [name: string]: unknown;
12672
- };
12673
- content: {
12674
- "application/json": components["schemas"]["error.FORBIDDEN"];
12675
- };
12676
- };
12677
- /** @description Not found */
12678
- 404: {
12679
- headers: {
12680
- [name: string]: unknown;
12681
- };
12682
- content: {
12683
- "application/json": components["schemas"]["error.NOT_FOUND"];
12684
- };
12685
- };
12686
- /** @description Internal server error */
12687
- 500: {
12688
- headers: {
12689
- [name: string]: unknown;
12690
- };
12691
- content: {
12692
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
12693
- };
12694
- };
12695
- };
12696
- };
12697
- getOwnerStatementPDFByMonth: {
12011
+ getOwnerStatementPDFByMonth: {
12698
12012
  parameters: {
12699
12013
  query: {
12700
12014
  viewAs?: "owner" | "manager";
@@ -12933,6 +12247,27 @@ export interface operations {
12933
12247
  severity: "warning";
12934
12248
  context: Record<string, never>;
12935
12249
  message: string;
12250
+ } | {
12251
+ /** @enum {string} */
12252
+ code: "netRevenueMismatch";
12253
+ /** @enum {string} */
12254
+ severity: "warning";
12255
+ context: Record<string, never>;
12256
+ message: string;
12257
+ } | {
12258
+ /** @enum {string} */
12259
+ code: "expensesMismatch";
12260
+ /** @enum {string} */
12261
+ severity: "warning";
12262
+ context: Record<string, never>;
12263
+ message: string;
12264
+ } | {
12265
+ /** @enum {string} */
12266
+ code: "transfersMismatch";
12267
+ /** @enum {string} */
12268
+ severity: "warning";
12269
+ context: Record<string, never>;
12270
+ message: string;
12936
12271
  } | {
12937
12272
  /** @enum {string} */
12938
12273
  code: "previousMonthJournalEntries";
@@ -13350,6 +12685,27 @@ export interface operations {
13350
12685
  severity: "warning";
13351
12686
  context: Record<string, never>;
13352
12687
  message: string;
12688
+ } | {
12689
+ /** @enum {string} */
12690
+ code: "netRevenueMismatch";
12691
+ /** @enum {string} */
12692
+ severity: "warning";
12693
+ context: Record<string, never>;
12694
+ message: string;
12695
+ } | {
12696
+ /** @enum {string} */
12697
+ code: "expensesMismatch";
12698
+ /** @enum {string} */
12699
+ severity: "warning";
12700
+ context: Record<string, never>;
12701
+ message: string;
12702
+ } | {
12703
+ /** @enum {string} */
12704
+ code: "transfersMismatch";
12705
+ /** @enum {string} */
12706
+ severity: "warning";
12707
+ context: Record<string, never>;
12708
+ message: string;
13353
12709
  } | {
13354
12710
  /** @enum {string} */
13355
12711
  code: "previousMonthJournalEntries";
@@ -13781,6 +13137,27 @@ export interface operations {
13781
13137
  severity: "warning";
13782
13138
  context: Record<string, never>;
13783
13139
  message: string;
13140
+ } | {
13141
+ /** @enum {string} */
13142
+ code: "netRevenueMismatch";
13143
+ /** @enum {string} */
13144
+ severity: "warning";
13145
+ context: Record<string, never>;
13146
+ message: string;
13147
+ } | {
13148
+ /** @enum {string} */
13149
+ code: "expensesMismatch";
13150
+ /** @enum {string} */
13151
+ severity: "warning";
13152
+ context: Record<string, never>;
13153
+ message: string;
13154
+ } | {
13155
+ /** @enum {string} */
13156
+ code: "transfersMismatch";
13157
+ /** @enum {string} */
13158
+ severity: "warning";
13159
+ context: Record<string, never>;
13160
+ message: string;
13784
13161
  } | {
13785
13162
  /** @enum {string} */
13786
13163
  code: "previousMonthJournalEntries";
@@ -14288,6 +13665,27 @@ export interface operations {
14288
13665
  severity: "warning";
14289
13666
  context: Record<string, never>;
14290
13667
  message: string;
13668
+ } | {
13669
+ /** @enum {string} */
13670
+ code: "netRevenueMismatch";
13671
+ /** @enum {string} */
13672
+ severity: "warning";
13673
+ context: Record<string, never>;
13674
+ message: string;
13675
+ } | {
13676
+ /** @enum {string} */
13677
+ code: "expensesMismatch";
13678
+ /** @enum {string} */
13679
+ severity: "warning";
13680
+ context: Record<string, never>;
13681
+ message: string;
13682
+ } | {
13683
+ /** @enum {string} */
13684
+ code: "transfersMismatch";
13685
+ /** @enum {string} */
13686
+ severity: "warning";
13687
+ context: Record<string, never>;
13688
+ message: string;
14291
13689
  } | {
14292
13690
  /** @enum {string} */
14293
13691
  code: "previousMonthJournalEntries";
@@ -14515,6 +13913,27 @@ export interface operations {
14515
13913
  severity: "warning";
14516
13914
  context: Record<string, never>;
14517
13915
  message: string;
13916
+ } | {
13917
+ /** @enum {string} */
13918
+ code: "netRevenueMismatch";
13919
+ /** @enum {string} */
13920
+ severity: "warning";
13921
+ context: Record<string, never>;
13922
+ message: string;
13923
+ } | {
13924
+ /** @enum {string} */
13925
+ code: "expensesMismatch";
13926
+ /** @enum {string} */
13927
+ severity: "warning";
13928
+ context: Record<string, never>;
13929
+ message: string;
13930
+ } | {
13931
+ /** @enum {string} */
13932
+ code: "transfersMismatch";
13933
+ /** @enum {string} */
13934
+ severity: "warning";
13935
+ context: Record<string, never>;
13936
+ message: string;
14518
13937
  } | {
14519
13938
  /** @enum {string} */
14520
13939
  code: "previousMonthJournalEntries";
@@ -15533,9 +14952,44 @@ export interface operations {
15533
14952
  };
15534
14953
  content: {
15535
14954
  "application/json": {
15536
- description: string;
14955
+ id: string;
14956
+ /** @enum {string} */
14957
+ status: "active" | "inactive";
15537
14958
  uniqueRef: string;
14959
+ description: string;
15538
14960
  date: string;
14961
+ currency: string;
14962
+ amount: number;
14963
+ pattern: {
14964
+ /** @enum {string} */
14965
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
14966
+ interval?: number | null;
14967
+ weekDays?: number[] | null;
14968
+ monthDays?: number[] | null;
14969
+ months?: number[] | null;
14970
+ count?: number | null;
14971
+ endDate?: string | null;
14972
+ };
14973
+ /** @enum {string} */
14974
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
14975
+ patternFormatted?: string | null;
14976
+ nextTransactionInstanceAt?: string | null;
14977
+ instancesCount: number;
14978
+ account?: {
14979
+ id: string;
14980
+ name: string;
14981
+ bankAccount?: {
14982
+ /** Format: uuid */
14983
+ id?: string | null;
14984
+ name: string;
14985
+ } | null;
14986
+ } | null;
14987
+ contact?: {
14988
+ /** Format: uuid */
14989
+ id: string;
14990
+ name?: string | null;
14991
+ uniqueRef?: string | null;
14992
+ } | null;
15539
14993
  lines: {
15540
14994
  uniqueRef?: string | null;
15541
14995
  description: string;
@@ -15580,8 +15034,6 @@ export interface operations {
15580
15034
  account?: {
15581
15035
  id: string;
15582
15036
  name: string;
15583
- /** @enum {string|null} */
15584
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15585
15037
  } | null;
15586
15038
  /** @enum {string} */
15587
15039
  party: "owners" | "manager";
@@ -15608,11 +15060,6 @@ export interface operations {
15608
15060
  } | null;
15609
15061
  } | null;
15610
15062
  }[];
15611
- /** Format: uuid */
15612
- recurringTemplateId?: string | null;
15613
- /** @enum {string} */
15614
- status: "active" | "inactive";
15615
- id: string;
15616
15063
  issues: ({
15617
15064
  /** @enum {string} */
15618
15065
  code: "missingInstances";
@@ -15630,41 +15077,6 @@ export interface operations {
15630
15077
  ids: string[];
15631
15078
  };
15632
15079
  })[];
15633
- currency: string;
15634
- /** @description Value in cents (100 = 1€) */
15635
- amount: number;
15636
- account?: {
15637
- id: string;
15638
- name: string;
15639
- /** @enum {string|null} */
15640
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15641
- bankAccount?: {
15642
- /** Format: uuid */
15643
- id?: string | null;
15644
- name: string;
15645
- } | null;
15646
- } | null;
15647
- contact?: {
15648
- /** Format: uuid */
15649
- id: string;
15650
- name?: string | null;
15651
- uniqueRef?: string | null;
15652
- } | null;
15653
- pattern: {
15654
- /** @enum {string} */
15655
- frequency: "daily" | "weekly" | "monthly" | "yearly";
15656
- interval?: number | null;
15657
- weekDays?: number[] | null;
15658
- monthDays?: number[] | null;
15659
- months?: number[] | null;
15660
- count?: number | null;
15661
- endDate?: string | null;
15662
- };
15663
- /** @enum {string} */
15664
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15665
- nextTransactionInstanceAt?: string | null;
15666
- patternFormatted?: string | null;
15667
- instancesCount: number;
15668
15080
  };
15669
15081
  };
15670
15082
  };
@@ -15729,47 +15141,12 @@ export interface operations {
15729
15141
  requestBody: {
15730
15142
  content: {
15731
15143
  "application/json": {
15732
- description?: string;
15733
- accountId?: string | null;
15734
- contactId?: string | null;
15735
15144
  uniqueRef?: string;
15145
+ description?: string;
15736
15146
  date?: string;
15737
15147
  currency?: string | null;
15738
- lines?: {
15739
- recurringTemplateId?: string | null;
15740
- uniqueRef?: string | null;
15741
- description: string;
15742
- accountId?: string | null;
15743
- /** @enum {string|null} */
15744
- assignment?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer" | null;
15745
- /** @description Value in cents (100 = 1€) */
15746
- amount: number;
15747
- markup?: {
15748
- /** @description Value in cents (100 = 1€) */
15749
- amount?: number | null;
15750
- /** Format: uuid */
15751
- taxRateId?: string | null;
15752
- /**
15753
- * @default excluded
15754
- * @enum {string|null}
15755
- */
15756
- taxBehavior?: "excluded" | "included" | null;
15757
- } | null;
15758
- listingId?: string | null;
15759
- reservationId?: string | null;
15760
- /** Format: uuid */
15761
- ownerStatementId?: string | null;
15762
- /** @enum {string|null} */
15763
- party?: "owners" | "manager" | null;
15764
- contactId?: string | null;
15765
- matchers?: {
15766
- confirmationCode?: string | null;
15767
- customerId?: string | null;
15768
- lineType?: string | null;
15769
- } | null;
15770
- }[];
15771
- /** @enum {string|null} */
15772
- status?: "active" | "inactive" | null;
15148
+ accountId?: string | null;
15149
+ contactId?: string | null;
15773
15150
  pattern?: {
15774
15151
  /** @enum {string} */
15775
15152
  frequency: "daily" | "weekly" | "monthly" | "yearly";
@@ -15782,6 +15159,17 @@ export interface operations {
15782
15159
  };
15783
15160
  /** @enum {string} */
15784
15161
  paymentStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
15162
+ lines?: {
15163
+ description: string;
15164
+ accountId?: string | null;
15165
+ amount: number;
15166
+ listingId?: string | null;
15167
+ party?: string | null;
15168
+ contactId?: string | null;
15169
+ }[];
15170
+ skipInitialInstance?: boolean;
15171
+ /** @enum {string|null} */
15172
+ status?: "active" | "inactive" | null;
15785
15173
  };
15786
15174
  };
15787
15175
  };
@@ -15793,9 +15181,44 @@ export interface operations {
15793
15181
  };
15794
15182
  content: {
15795
15183
  "application/json": {
15796
- description: string;
15184
+ id: string;
15185
+ /** @enum {string} */
15186
+ status: "active" | "inactive";
15797
15187
  uniqueRef: string;
15188
+ description: string;
15798
15189
  date: string;
15190
+ currency: string;
15191
+ amount: number;
15192
+ pattern: {
15193
+ /** @enum {string} */
15194
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
15195
+ interval?: number | null;
15196
+ weekDays?: number[] | null;
15197
+ monthDays?: number[] | null;
15198
+ months?: number[] | null;
15199
+ count?: number | null;
15200
+ endDate?: string | null;
15201
+ };
15202
+ /** @enum {string} */
15203
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15204
+ patternFormatted?: string | null;
15205
+ nextTransactionInstanceAt?: string | null;
15206
+ instancesCount: number;
15207
+ account?: {
15208
+ id: string;
15209
+ name: string;
15210
+ bankAccount?: {
15211
+ /** Format: uuid */
15212
+ id?: string | null;
15213
+ name: string;
15214
+ } | null;
15215
+ } | null;
15216
+ contact?: {
15217
+ /** Format: uuid */
15218
+ id: string;
15219
+ name?: string | null;
15220
+ uniqueRef?: string | null;
15221
+ } | null;
15799
15222
  lines: {
15800
15223
  uniqueRef?: string | null;
15801
15224
  description: string;
@@ -15840,8 +15263,6 @@ export interface operations {
15840
15263
  account?: {
15841
15264
  id: string;
15842
15265
  name: string;
15843
- /** @enum {string|null} */
15844
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15845
15266
  } | null;
15846
15267
  /** @enum {string} */
15847
15268
  party: "owners" | "manager";
@@ -15868,11 +15289,6 @@ export interface operations {
15868
15289
  } | null;
15869
15290
  } | null;
15870
15291
  }[];
15871
- /** Format: uuid */
15872
- recurringTemplateId?: string | null;
15873
- /** @enum {string} */
15874
- status: "active" | "inactive";
15875
- id: string;
15876
15292
  issues: ({
15877
15293
  /** @enum {string} */
15878
15294
  code: "missingInstances";
@@ -15890,41 +15306,6 @@ export interface operations {
15890
15306
  ids: string[];
15891
15307
  };
15892
15308
  })[];
15893
- currency: string;
15894
- /** @description Value in cents (100 = 1€) */
15895
- amount: number;
15896
- account?: {
15897
- id: string;
15898
- name: string;
15899
- /** @enum {string|null} */
15900
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15901
- bankAccount?: {
15902
- /** Format: uuid */
15903
- id?: string | null;
15904
- name: string;
15905
- } | null;
15906
- } | null;
15907
- contact?: {
15908
- /** Format: uuid */
15909
- id: string;
15910
- name?: string | null;
15911
- uniqueRef?: string | null;
15912
- } | null;
15913
- pattern: {
15914
- /** @enum {string} */
15915
- frequency: "daily" | "weekly" | "monthly" | "yearly";
15916
- interval?: number | null;
15917
- weekDays?: number[] | null;
15918
- monthDays?: number[] | null;
15919
- months?: number[] | null;
15920
- count?: number | null;
15921
- endDate?: string | null;
15922
- };
15923
- /** @enum {string} */
15924
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15925
- nextTransactionInstanceAt?: string | null;
15926
- patternFormatted?: string | null;
15927
- instancesCount: number;
15928
15309
  };
15929
15310
  };
15930
15311
  };
@@ -16073,9 +15454,44 @@ export interface operations {
16073
15454
  content: {
16074
15455
  "application/json": {
16075
15456
  data: {
16076
- description: string;
15457
+ id: string;
15458
+ /** @enum {string} */
15459
+ status: "active" | "inactive";
16077
15460
  uniqueRef: string;
15461
+ description: string;
16078
15462
  date: string;
15463
+ currency: string;
15464
+ amount: number;
15465
+ pattern: {
15466
+ /** @enum {string} */
15467
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
15468
+ interval?: number | null;
15469
+ weekDays?: number[] | null;
15470
+ monthDays?: number[] | null;
15471
+ months?: number[] | null;
15472
+ count?: number | null;
15473
+ endDate?: string | null;
15474
+ };
15475
+ /** @enum {string} */
15476
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15477
+ patternFormatted?: string | null;
15478
+ nextTransactionInstanceAt?: string | null;
15479
+ instancesCount: number;
15480
+ account?: {
15481
+ id: string;
15482
+ name: string;
15483
+ bankAccount?: {
15484
+ /** Format: uuid */
15485
+ id?: string | null;
15486
+ name: string;
15487
+ } | null;
15488
+ } | null;
15489
+ contact?: {
15490
+ /** Format: uuid */
15491
+ id: string;
15492
+ name?: string | null;
15493
+ uniqueRef?: string | null;
15494
+ } | null;
16079
15495
  lines: {
16080
15496
  uniqueRef?: string | null;
16081
15497
  description: string;
@@ -16120,8 +15536,6 @@ export interface operations {
16120
15536
  account?: {
16121
15537
  id: string;
16122
15538
  name: string;
16123
- /** @enum {string|null} */
16124
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16125
15539
  } | null;
16126
15540
  /** @enum {string} */
16127
15541
  party: "owners" | "manager";
@@ -16148,11 +15562,6 @@ export interface operations {
16148
15562
  } | null;
16149
15563
  } | null;
16150
15564
  }[];
16151
- /** Format: uuid */
16152
- recurringTemplateId?: string | null;
16153
- /** @enum {string} */
16154
- status: "active" | "inactive";
16155
- id: string;
16156
15565
  issues: ({
16157
15566
  /** @enum {string} */
16158
15567
  code: "missingInstances";
@@ -16170,41 +15579,6 @@ export interface operations {
16170
15579
  ids: string[];
16171
15580
  };
16172
15581
  })[];
16173
- currency: string;
16174
- /** @description Value in cents (100 = 1€) */
16175
- amount: number;
16176
- account?: {
16177
- id: string;
16178
- name: string;
16179
- /** @enum {string|null} */
16180
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16181
- bankAccount?: {
16182
- /** Format: uuid */
16183
- id?: string | null;
16184
- name: string;
16185
- } | null;
16186
- } | null;
16187
- contact?: {
16188
- /** Format: uuid */
16189
- id: string;
16190
- name?: string | null;
16191
- uniqueRef?: string | null;
16192
- } | null;
16193
- pattern: {
16194
- /** @enum {string} */
16195
- frequency: "daily" | "weekly" | "monthly" | "yearly";
16196
- interval?: number | null;
16197
- weekDays?: number[] | null;
16198
- monthDays?: number[] | null;
16199
- months?: number[] | null;
16200
- count?: number | null;
16201
- endDate?: string | null;
16202
- };
16203
- /** @enum {string} */
16204
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16205
- nextTransactionInstanceAt?: string | null;
16206
- patternFormatted?: string | null;
16207
- instancesCount: number;
16208
15582
  }[];
16209
15583
  pagination: {
16210
15584
  /** @default 100 */
@@ -16277,47 +15651,12 @@ export interface operations {
16277
15651
  requestBody: {
16278
15652
  content: {
16279
15653
  "application/json": {
16280
- description: string;
16281
- accountId?: string | null;
16282
- contactId?: string | null;
16283
15654
  uniqueRef: string;
15655
+ description: string;
16284
15656
  date: string;
16285
15657
  currency?: string | null;
16286
- lines: {
16287
- recurringTemplateId?: string | null;
16288
- uniqueRef?: string | null;
16289
- description: string;
16290
- accountId?: string | null;
16291
- /** @enum {string|null} */
16292
- assignment?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer" | null;
16293
- /** @description Value in cents (100 = 1€) */
16294
- amount: number;
16295
- markup?: {
16296
- /** @description Value in cents (100 = 1€) */
16297
- amount?: number | null;
16298
- /** Format: uuid */
16299
- taxRateId?: string | null;
16300
- /**
16301
- * @default excluded
16302
- * @enum {string|null}
16303
- */
16304
- taxBehavior?: "excluded" | "included" | null;
16305
- } | null;
16306
- listingId?: string | null;
16307
- reservationId?: string | null;
16308
- /** Format: uuid */
16309
- ownerStatementId?: string | null;
16310
- /** @enum {string|null} */
16311
- party?: "owners" | "manager" | null;
16312
- contactId?: string | null;
16313
- matchers?: {
16314
- confirmationCode?: string | null;
16315
- customerId?: string | null;
16316
- lineType?: string | null;
16317
- } | null;
16318
- }[];
16319
- /** @enum {string|null} */
16320
- status?: "active" | "inactive" | null;
15658
+ accountId?: string | null;
15659
+ contactId?: string | null;
16321
15660
  pattern: {
16322
15661
  /** @enum {string} */
16323
15662
  frequency: "daily" | "weekly" | "monthly" | "yearly";
@@ -16330,6 +15669,15 @@ export interface operations {
16330
15669
  };
16331
15670
  /** @enum {string} */
16332
15671
  paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15672
+ lines: {
15673
+ description: string;
15674
+ accountId?: string | null;
15675
+ amount: number;
15676
+ listingId?: string | null;
15677
+ party?: string | null;
15678
+ contactId?: string | null;
15679
+ }[];
15680
+ skipInitialInstance?: boolean;
16333
15681
  };
16334
15682
  };
16335
15683
  };
@@ -16341,9 +15689,44 @@ export interface operations {
16341
15689
  };
16342
15690
  content: {
16343
15691
  "application/json": {
16344
- description: string;
15692
+ id: string;
15693
+ /** @enum {string} */
15694
+ status: "active" | "inactive";
16345
15695
  uniqueRef: string;
15696
+ description: string;
16346
15697
  date: string;
15698
+ currency: string;
15699
+ amount: number;
15700
+ pattern: {
15701
+ /** @enum {string} */
15702
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
15703
+ interval?: number | null;
15704
+ weekDays?: number[] | null;
15705
+ monthDays?: number[] | null;
15706
+ months?: number[] | null;
15707
+ count?: number | null;
15708
+ endDate?: string | null;
15709
+ };
15710
+ /** @enum {string} */
15711
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15712
+ patternFormatted?: string | null;
15713
+ nextTransactionInstanceAt?: string | null;
15714
+ instancesCount: number;
15715
+ account?: {
15716
+ id: string;
15717
+ name: string;
15718
+ bankAccount?: {
15719
+ /** Format: uuid */
15720
+ id?: string | null;
15721
+ name: string;
15722
+ } | null;
15723
+ } | null;
15724
+ contact?: {
15725
+ /** Format: uuid */
15726
+ id: string;
15727
+ name?: string | null;
15728
+ uniqueRef?: string | null;
15729
+ } | null;
16347
15730
  lines: {
16348
15731
  uniqueRef?: string | null;
16349
15732
  description: string;
@@ -16388,8 +15771,6 @@ export interface operations {
16388
15771
  account?: {
16389
15772
  id: string;
16390
15773
  name: string;
16391
- /** @enum {string|null} */
16392
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16393
15774
  } | null;
16394
15775
  /** @enum {string} */
16395
15776
  party: "owners" | "manager";
@@ -16416,63 +15797,23 @@ export interface operations {
16416
15797
  } | null;
16417
15798
  } | null;
16418
15799
  }[];
16419
- /** Format: uuid */
16420
- recurringTemplateId?: string | null;
16421
- /** @enum {string} */
16422
- status: "active" | "inactive";
16423
- id: string;
16424
15800
  issues: ({
16425
15801
  /** @enum {string} */
16426
- code: "missingInstances";
16427
- /** @enum {string} */
16428
- severity: "warning";
16429
- context: {
16430
- dates: string[];
16431
- };
16432
- } | {
16433
- /** @enum {string} */
16434
- code: "extraInstances";
16435
- /** @enum {string} */
16436
- severity: "warning";
16437
- context: {
16438
- ids: string[];
16439
- };
16440
- })[];
16441
- currency: string;
16442
- /** @description Value in cents (100 = 1€) */
16443
- amount: number;
16444
- account?: {
16445
- id: string;
16446
- name: string;
16447
- /** @enum {string|null} */
16448
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16449
- bankAccount?: {
16450
- /** Format: uuid */
16451
- id?: string | null;
16452
- name: string;
16453
- } | null;
16454
- } | null;
16455
- contact?: {
16456
- /** Format: uuid */
16457
- id: string;
16458
- name?: string | null;
16459
- uniqueRef?: string | null;
16460
- } | null;
16461
- pattern: {
15802
+ code: "missingInstances";
16462
15803
  /** @enum {string} */
16463
- frequency: "daily" | "weekly" | "monthly" | "yearly";
16464
- interval?: number | null;
16465
- weekDays?: number[] | null;
16466
- monthDays?: number[] | null;
16467
- months?: number[] | null;
16468
- count?: number | null;
16469
- endDate?: string | null;
16470
- };
16471
- /** @enum {string} */
16472
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16473
- nextTransactionInstanceAt?: string | null;
16474
- patternFormatted?: string | null;
16475
- instancesCount: number;
15804
+ severity: "warning";
15805
+ context: {
15806
+ dates: string[];
15807
+ };
15808
+ } | {
15809
+ /** @enum {string} */
15810
+ code: "extraInstances";
15811
+ /** @enum {string} */
15812
+ severity: "warning";
15813
+ context: {
15814
+ ids: string[];
15815
+ };
15816
+ })[];
16476
15817
  };
16477
15818
  };
16478
15819
  };
@@ -18604,15 +17945,21 @@ export interface operations {
18604
17945
  content: {
18605
17946
  "application/json": {
18606
17947
  /** Format: uuid */
18607
- syncId: string;
18608
- change?: {
17948
+ id: string;
17949
+ /** @enum {string} */
17950
+ status: "completed" | "failed";
17951
+ message: string;
17952
+ changes: {
18609
17953
  /** Format: uuid */
18610
- entityId: string;
18611
- message: string;
18612
- };
18613
- error?: {
17954
+ id: string;
18614
17955
  message: string;
18615
- };
17956
+ /** @enum {string} */
17957
+ status: "completed" | "failed";
17958
+ entityType: string;
17959
+ /** Format: uuid */
17960
+ entityId: string;
17961
+ entityUniqueRef: string;
17962
+ }[];
18616
17963
  };
18617
17964
  };
18618
17965
  };
@@ -18916,137 +18263,6 @@ export interface operations {
18916
18263
  };
18917
18264
  };
18918
18265
  };
18919
- reprocessAccountBalances: {
18920
- parameters: {
18921
- query?: never;
18922
- header?: {
18923
- "X-Team-Id"?: string;
18924
- };
18925
- path: {
18926
- id: string;
18927
- };
18928
- cookie?: never;
18929
- };
18930
- requestBody?: never;
18931
- responses: {
18932
- /** @description Successful response */
18933
- 200: {
18934
- headers: {
18935
- [name: string]: unknown;
18936
- };
18937
- content: {
18938
- "application/json": {
18939
- name: string;
18940
- /** @enum {string|null} */
18941
- status?: "active" | "inactive" | null;
18942
- /** @enum {string} */
18943
- type: "ledger" | "bank" | "recurringFee" | "nonPosting";
18944
- id: string;
18945
- offsetAccount?: {
18946
- id: string;
18947
- name: string;
18948
- /** @enum {string|null} */
18949
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
18950
- } | null;
18951
- assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
18952
- category?: {
18953
- id: string;
18954
- name: string;
18955
- /** @enum {string|null} */
18956
- classification?: "asset" | "liability" | "revenue" | "expense" | null;
18957
- } | null;
18958
- banking?: {
18959
- /** @enum {string|null} */
18960
- category?: "trust" | "operating" | "external" | null;
18961
- /** @enum {string|null} */
18962
- type?: "deposit" | "creditCard" | null;
18963
- last4?: string | null;
18964
- connections: {
18965
- id: string;
18966
- name: string;
18967
- connection?: {
18968
- id: string;
18969
- icon?: string | null;
18970
- } | null;
18971
- /** @enum {string|null} */
18972
- status?: "active" | "inactive" | null;
18973
- currentSync?: {
18974
- /** @enum {string} */
18975
- status: "queued" | "started" | "completed" | "failed" | "canceled";
18976
- createdAt: string;
18977
- updatedAt: string;
18978
- message?: string | null;
18979
- } | null;
18980
- source?: {
18981
- /** Format: uuid */
18982
- id: string;
18983
- type: string;
18984
- /** @enum {string|null} */
18985
- status?: "active" | "inactive" | null;
18986
- } | null;
18987
- }[];
18988
- bankRecords: {
18989
- reconciled: number;
18990
- unreconciled: number;
18991
- total: number;
18992
- latestCreatedAt?: string | null;
18993
- };
18994
- balance?: {
18995
- openingDate?: string | null;
18996
- opening: number;
18997
- ending: number;
18998
- } | null;
18999
- } | null;
19000
- };
19001
- };
19002
- };
19003
- /** @description Invalid input data */
19004
- 400: {
19005
- headers: {
19006
- [name: string]: unknown;
19007
- };
19008
- content: {
19009
- "application/json": components["schemas"]["error.BAD_REQUEST"];
19010
- };
19011
- };
19012
- /** @description Authorization not provided */
19013
- 401: {
19014
- headers: {
19015
- [name: string]: unknown;
19016
- };
19017
- content: {
19018
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
19019
- };
19020
- };
19021
- /** @description Insufficient access */
19022
- 403: {
19023
- headers: {
19024
- [name: string]: unknown;
19025
- };
19026
- content: {
19027
- "application/json": components["schemas"]["error.FORBIDDEN"];
19028
- };
19029
- };
19030
- /** @description Not found */
19031
- 404: {
19032
- headers: {
19033
- [name: string]: unknown;
19034
- };
19035
- content: {
19036
- "application/json": components["schemas"]["error.NOT_FOUND"];
19037
- };
19038
- };
19039
- /** @description Internal server error */
19040
- 500: {
19041
- headers: {
19042
- [name: string]: unknown;
19043
- };
19044
- content: {
19045
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
19046
- };
19047
- };
19048
- };
19049
- };
19050
18266
  getAccount: {
19051
18267
  parameters: {
19052
18268
  query?: never;
@@ -23625,11 +22841,106 @@ export interface operations {
23625
22841
  };
23626
22842
  };
23627
22843
  };
23628
- getGuestBalancesReport: {
22844
+ getGuestBalancesReport: {
22845
+ parameters: {
22846
+ query: {
22847
+ date: string;
22848
+ occupancyStatus: "departed" | "inHouse" | "upcoming";
22849
+ channels?: string;
22850
+ };
22851
+ header?: {
22852
+ "X-Team-Id"?: string;
22853
+ };
22854
+ path?: never;
22855
+ cookie?: never;
22856
+ };
22857
+ requestBody?: never;
22858
+ responses: {
22859
+ /** @description Successful response */
22860
+ 200: {
22861
+ headers: {
22862
+ [name: string]: unknown;
22863
+ };
22864
+ content: {
22865
+ "application/json": {
22866
+ data: {
22867
+ /** @enum {string} */
22868
+ status: "booked" | "cancelled";
22869
+ total: number;
22870
+ listings: {
22871
+ /** Format: uuid */
22872
+ id: string;
22873
+ name: string;
22874
+ total: number;
22875
+ reservations: {
22876
+ /** Format: uuid */
22877
+ id: string;
22878
+ checkIn: string;
22879
+ checkOut: string;
22880
+ bookedAt: string | null;
22881
+ cancelledAt: string | null;
22882
+ bookingPlatform: string;
22883
+ guestName: string;
22884
+ confirmationCode: string;
22885
+ nights: number;
22886
+ total: number;
22887
+ }[];
22888
+ }[];
22889
+ }[];
22890
+ };
22891
+ };
22892
+ };
22893
+ /** @description Invalid input data */
22894
+ 400: {
22895
+ headers: {
22896
+ [name: string]: unknown;
22897
+ };
22898
+ content: {
22899
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
22900
+ };
22901
+ };
22902
+ /** @description Authorization not provided */
22903
+ 401: {
22904
+ headers: {
22905
+ [name: string]: unknown;
22906
+ };
22907
+ content: {
22908
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
22909
+ };
22910
+ };
22911
+ /** @description Insufficient access */
22912
+ 403: {
22913
+ headers: {
22914
+ [name: string]: unknown;
22915
+ };
22916
+ content: {
22917
+ "application/json": components["schemas"]["error.FORBIDDEN"];
22918
+ };
22919
+ };
22920
+ /** @description Not found */
22921
+ 404: {
22922
+ headers: {
22923
+ [name: string]: unknown;
22924
+ };
22925
+ content: {
22926
+ "application/json": components["schemas"]["error.NOT_FOUND"];
22927
+ };
22928
+ };
22929
+ /** @description Internal server error */
22930
+ 500: {
22931
+ headers: {
22932
+ [name: string]: unknown;
22933
+ };
22934
+ content: {
22935
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
22936
+ };
22937
+ };
22938
+ };
22939
+ };
22940
+ getGuestBalancesReportAggregated: {
23629
22941
  parameters: {
23630
22942
  query: {
23631
22943
  date: string;
23632
- occupancyStatus: "departed" | "inHouse" | "upcoming";
23633
22944
  channels?: string;
23634
22945
  };
23635
22946
  header?: {
@@ -23647,30 +22958,9 @@ export interface operations {
23647
22958
  };
23648
22959
  content: {
23649
22960
  "application/json": {
23650
- data: {
23651
- /** @enum {string} */
23652
- status: "booked" | "cancelled";
23653
- total: number;
23654
- listings: {
23655
- /** Format: uuid */
23656
- id: string;
23657
- name: string;
23658
- total: number;
23659
- reservations: {
23660
- /** Format: uuid */
23661
- id: string;
23662
- checkIn: string;
23663
- checkOut: string;
23664
- bookedAt: string | null;
23665
- cancelledAt: string | null;
23666
- bookingPlatform: string;
23667
- guestName: string;
23668
- confirmationCode: string;
23669
- nights: number;
23670
- total: number;
23671
- }[];
23672
- }[];
23673
- }[];
22961
+ departed: number;
22962
+ inHouse: number;
22963
+ upcoming: number;
23674
22964
  };
23675
22965
  };
23676
22966
  };
@@ -23721,10 +23011,11 @@ export interface operations {
23721
23011
  };
23722
23012
  };
23723
23013
  };
23724
- getGuestBalancesReportAggregated: {
23014
+ getGuestBalancesReportCsv: {
23725
23015
  parameters: {
23726
23016
  query: {
23727
23017
  date: string;
23018
+ occupancyStatus: "departed" | "inHouse" | "upcoming";
23728
23019
  channels?: string;
23729
23020
  };
23730
23021
  header?: {
@@ -23742,9 +23033,7 @@ export interface operations {
23742
23033
  };
23743
23034
  content: {
23744
23035
  "application/json": {
23745
- departed: number;
23746
- inHouse: number;
23747
- upcoming: number;
23036
+ url: string;
23748
23037
  };
23749
23038
  };
23750
23039
  };
@@ -23795,12 +23084,22 @@ export interface operations {
23795
23084
  };
23796
23085
  };
23797
23086
  };
23798
- getGuestBalancesReportCsv: {
23087
+ getJournalEntriesReport: {
23799
23088
  parameters: {
23800
23089
  query: {
23801
- date: string;
23802
- occupancyStatus: "departed" | "inHouse" | "upcoming";
23803
- channels?: string;
23090
+ startAt: string;
23091
+ endAt: string;
23092
+ search?: string;
23093
+ date?: string;
23094
+ amount?: string;
23095
+ listingId?: string;
23096
+ accountId?: string;
23097
+ classification?: ("asset" | "liability" | "revenue" | "expense") | ("asset" | "liability" | "revenue" | "expense")[];
23098
+ type?: ("reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment") | ("reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment")[];
23099
+ relation?: "reservation" | "deposit" | "expense" | "recurringFee" | "transfer";
23100
+ party?: "owners" | "manager";
23101
+ limit?: number;
23102
+ page?: number;
23804
23103
  };
23805
23104
  header?: {
23806
23105
  "X-Team-Id"?: string;
@@ -23817,7 +23116,40 @@ export interface operations {
23817
23116
  };
23818
23117
  content: {
23819
23118
  "application/json": {
23820
- url: string;
23119
+ data: {
23120
+ id: string;
23121
+ txnAt: string;
23122
+ description: string;
23123
+ centTotal: number;
23124
+ /** @enum {string} */
23125
+ type?: "reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment";
23126
+ reservationId?: string;
23127
+ transactionId?: string;
23128
+ ownerStatementId?: string;
23129
+ currency: unknown;
23130
+ entityType?: string;
23131
+ status: string;
23132
+ listingId?: string;
23133
+ uniqueRef: string;
23134
+ party?: string;
23135
+ contactId?: string;
23136
+ listingOwnershipPeriodId?: string;
23137
+ recurringFeeId?: string;
23138
+ recurringFeeListingSubscriptionId?: string;
23139
+ account?: {
23140
+ id: string;
23141
+ name: string;
23142
+ };
23143
+ }[];
23144
+ pagination: {
23145
+ /** @default 100 */
23146
+ limit: number;
23147
+ /** @default 1 */
23148
+ page: number;
23149
+ total: number;
23150
+ totalPage: number;
23151
+ nextPage?: number;
23152
+ };
23821
23153
  };
23822
23154
  };
23823
23155
  };
@@ -23900,6 +23232,7 @@ export interface operations {
23900
23232
  netRevenue: number;
23901
23233
  expenses: number;
23902
23234
  netIncome: number;
23235
+ adjustments: number;
23903
23236
  transfers: number;
23904
23237
  };
23905
23238
  }[];
@@ -23984,6 +23317,7 @@ export interface operations {
23984
23317
  netRevenue: number;
23985
23318
  expenses: number;
23986
23319
  netIncome: number;
23320
+ adjustments: number;
23987
23321
  transfers: number;
23988
23322
  };
23989
23323
  accounts: {
@@ -24001,6 +23335,28 @@ export interface operations {
24001
23335
  /** @description Value in cents (100 = 1€) */
24002
23336
  centTotal: number;
24003
23337
  }[];
23338
+ sections: {
23339
+ /** @enum {string} */
23340
+ id: "net-revenue" | "expenses" | "adjustments" | "transfers" | "other";
23341
+ name: string;
23342
+ accounts: {
23343
+ id: string;
23344
+ name: string;
23345
+ /** @enum {string} */
23346
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
23347
+ category: {
23348
+ id: string;
23349
+ name: string;
23350
+ /** @enum {string|null} */
23351
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
23352
+ } | null;
23353
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
23354
+ /** @description Value in cents (100 = 1€) */
23355
+ centTotal: number;
23356
+ }[];
23357
+ /** @description Value in cents (100 = 1€) */
23358
+ centTotal: number;
23359
+ }[];
24004
23360
  };
24005
23361
  };
24006
23362
  };
@@ -24056,8 +23412,15 @@ export interface operations {
24056
23412
  query: {
24057
23413
  startAt: string;
24058
23414
  endAt: string;
23415
+ search?: string;
23416
+ date?: string;
23417
+ amount?: string;
23418
+ listingId?: string;
23419
+ accountId?: string;
23420
+ classification?: ("asset" | "liability" | "revenue" | "expense") | ("asset" | "liability" | "revenue" | "expense")[];
23421
+ type?: ("reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment") | ("reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment")[];
23422
+ relation?: "reservation" | "deposit" | "expense" | "recurringFee" | "transfer";
24059
23423
  limit?: number;
24060
- offset?: number;
24061
23424
  page?: number;
24062
23425
  };
24063
23426
  header?: {
@@ -24080,6 +23443,8 @@ export interface operations {
24080
23443
  txnAt: string;
24081
23444
  description: string;
24082
23445
  centTotal: number;
23446
+ /** @enum {string} */
23447
+ type?: "reservation" | "reservation_adjustment" | "reservation_adjustment_cancellation" | "reservation_fee" | "reservation_fee_adjustment" | "reservation_fee_tax" | "transaction_transfer" | "transaction_transfer_line" | "reservation_line" | "transaction_deposit" | "transaction_deposit_channelFee" | "transaction_deposit_line" | "transaction_deposit_merchantFee" | "transaction_deposit_vat" | "transaction_deposit_reserve" | "transaction_deposit_openingBalance" | "transaction_deposit_openingAdvance" | "transaction_deposit_refund" | "transaction_expense" | "transaction_expense_line" | "transaction_expense_markup" | "transaction_expense_markup_tax" | "transaction_expense_payment";
24083
23448
  reservationId?: string;
24084
23449
  transactionId?: string;
24085
23450
  ownerStatementId?: string;
@@ -24157,6 +23522,221 @@ export interface operations {
24157
23522
  };
24158
23523
  };
24159
23524
  };
23525
+ getProfitAndLossReport: {
23526
+ parameters: {
23527
+ query?: {
23528
+ startDate?: string;
23529
+ endDate?: string;
23530
+ party?: "manager" | "owners";
23531
+ view?: "party" | "listing" | "month" | "quarter" | "year";
23532
+ listingIds?: string;
23533
+ };
23534
+ header?: {
23535
+ "X-Team-Id"?: string;
23536
+ };
23537
+ path?: never;
23538
+ cookie?: never;
23539
+ };
23540
+ requestBody?: never;
23541
+ responses: {
23542
+ /** @description Successful response */
23543
+ 200: {
23544
+ headers: {
23545
+ [name: string]: unknown;
23546
+ };
23547
+ content: {
23548
+ "application/json": {
23549
+ /** @example {
23550
+ * "id": "netIncome",
23551
+ * "title": "Net Income",
23552
+ * "total": 10879029,
23553
+ * "computedValues": [
23554
+ * {
23555
+ * "id": "2025",
23556
+ * "title": "2025",
23557
+ * "total": 10879029,
23558
+ * "percentage": 52.3
23559
+ * }
23560
+ * ],
23561
+ * "groups": [
23562
+ * {
23563
+ * "id": "netOperatingIncome",
23564
+ * "title": "Net Operating Income",
23565
+ * "total": 5678901,
23566
+ * "computedValues": [
23567
+ * {
23568
+ * "id": "2025",
23569
+ * "title": "2025",
23570
+ * "total": 5678901,
23571
+ * "percentage": 26.1
23572
+ * }
23573
+ * ],
23574
+ * "groups": [
23575
+ * {
23576
+ * "id": "revenue",
23577
+ * "title": "Revenue",
23578
+ * "total": 10879029,
23579
+ * "values": [
23580
+ * {
23581
+ * "id": "2025",
23582
+ * "title": "2025",
23583
+ * "total": 10879029,
23584
+ * "percentage": 52.3
23585
+ * }
23586
+ * ],
23587
+ * "categories": [
23588
+ * {
23589
+ * "id": "cat-revenue-rents",
23590
+ * "title": "Revenue - Rents",
23591
+ * "total": 10879029,
23592
+ * "accounts": [
23593
+ * {
23594
+ * "id": "18580972-de27-4df2-99d5-7c6888419bf9",
23595
+ * "title": "Rents",
23596
+ * "total": 10879029,
23597
+ * "values": [
23598
+ * {
23599
+ * "id": "2025",
23600
+ * "title": "2025",
23601
+ * "total": 10879029,
23602
+ * "percentage": 52.3
23603
+ * }
23604
+ * ]
23605
+ * }
23606
+ * ]
23607
+ * }
23608
+ * ]
23609
+ * }
23610
+ * ]
23611
+ * }
23612
+ * ]
23613
+ * } */
23614
+ netIncome: components["schemas"]["ProfitAndLossGroup"] | null;
23615
+ };
23616
+ };
23617
+ };
23618
+ /** @description Invalid input data */
23619
+ 400: {
23620
+ headers: {
23621
+ [name: string]: unknown;
23622
+ };
23623
+ content: {
23624
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
23625
+ };
23626
+ };
23627
+ /** @description Authorization not provided */
23628
+ 401: {
23629
+ headers: {
23630
+ [name: string]: unknown;
23631
+ };
23632
+ content: {
23633
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
23634
+ };
23635
+ };
23636
+ /** @description Insufficient access */
23637
+ 403: {
23638
+ headers: {
23639
+ [name: string]: unknown;
23640
+ };
23641
+ content: {
23642
+ "application/json": components["schemas"]["error.FORBIDDEN"];
23643
+ };
23644
+ };
23645
+ /** @description Not found */
23646
+ 404: {
23647
+ headers: {
23648
+ [name: string]: unknown;
23649
+ };
23650
+ content: {
23651
+ "application/json": components["schemas"]["error.NOT_FOUND"];
23652
+ };
23653
+ };
23654
+ /** @description Internal server error */
23655
+ 500: {
23656
+ headers: {
23657
+ [name: string]: unknown;
23658
+ };
23659
+ content: {
23660
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23661
+ };
23662
+ };
23663
+ };
23664
+ };
23665
+ getProfitAndLossReportCsv: {
23666
+ parameters: {
23667
+ query?: {
23668
+ startDate?: string;
23669
+ endDate?: string;
23670
+ party?: "manager" | "owners";
23671
+ view?: "party" | "listing" | "month" | "quarter" | "year";
23672
+ listingIds?: string;
23673
+ };
23674
+ header?: {
23675
+ "X-Team-Id"?: string;
23676
+ };
23677
+ path?: never;
23678
+ cookie?: never;
23679
+ };
23680
+ requestBody?: never;
23681
+ responses: {
23682
+ /** @description Successful response */
23683
+ 200: {
23684
+ headers: {
23685
+ [name: string]: unknown;
23686
+ };
23687
+ content: {
23688
+ "application/json": {
23689
+ url: string;
23690
+ };
23691
+ };
23692
+ };
23693
+ /** @description Invalid input data */
23694
+ 400: {
23695
+ headers: {
23696
+ [name: string]: unknown;
23697
+ };
23698
+ content: {
23699
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
23700
+ };
23701
+ };
23702
+ /** @description Authorization not provided */
23703
+ 401: {
23704
+ headers: {
23705
+ [name: string]: unknown;
23706
+ };
23707
+ content: {
23708
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
23709
+ };
23710
+ };
23711
+ /** @description Insufficient access */
23712
+ 403: {
23713
+ headers: {
23714
+ [name: string]: unknown;
23715
+ };
23716
+ content: {
23717
+ "application/json": components["schemas"]["error.FORBIDDEN"];
23718
+ };
23719
+ };
23720
+ /** @description Not found */
23721
+ 404: {
23722
+ headers: {
23723
+ [name: string]: unknown;
23724
+ };
23725
+ content: {
23726
+ "application/json": components["schemas"]["error.NOT_FOUND"];
23727
+ };
23728
+ };
23729
+ /** @description Internal server error */
23730
+ 500: {
23731
+ headers: {
23732
+ [name: string]: unknown;
23733
+ };
23734
+ content: {
23735
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23736
+ };
23737
+ };
23738
+ };
23739
+ };
24160
23740
  getCalendar: {
24161
23741
  parameters: {
24162
23742
  query: {