@vrplatform/api 1.3.1-stage.1589 → 1.3.1-stage.1591

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.
@@ -21,6 +21,23 @@ export interface paths {
21
21
  patch?: never;
22
22
  trace?: never;
23
23
  };
24
+ "/accounts/csv": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ /** @description Accounts CSV export */
32
+ get: operations["getAccountsCsv"];
33
+ put?: never;
34
+ post?: never;
35
+ delete?: never;
36
+ options?: never;
37
+ head?: never;
38
+ patch?: never;
39
+ trace?: never;
40
+ };
24
41
  "/accounts/{id}": {
25
42
  parameters: {
26
43
  query?: never;
@@ -150,7 +167,7 @@ export interface paths {
150
167
  cookie?: never;
151
168
  };
152
169
  /** @description Get bank records */
153
- get: operations["getBankRecords"];
170
+ get: operations["getBank-records"];
154
171
  put?: never;
155
172
  post?: never;
156
173
  delete?: never;
@@ -169,7 +186,24 @@ export interface paths {
169
186
  get?: never;
170
187
  put?: never;
171
188
  /** @description Create multiple bank records */
172
- post: operations["batchBankRecords"];
189
+ post: operations["postBank-recordsBatch"];
190
+ delete?: never;
191
+ options?: never;
192
+ head?: never;
193
+ patch?: never;
194
+ trace?: never;
195
+ };
196
+ "/bank-records/csv": {
197
+ parameters: {
198
+ query?: never;
199
+ header?: never;
200
+ path?: never;
201
+ cookie?: never;
202
+ };
203
+ /** @description Bank records CSV export */
204
+ get: operations["getBank-recordsCsv"];
205
+ put?: never;
206
+ post?: never;
173
207
  delete?: never;
174
208
  options?: never;
175
209
  head?: never;
@@ -184,9 +218,9 @@ export interface paths {
184
218
  cookie?: never;
185
219
  };
186
220
  /** @description Get a bank record */
187
- get: operations["getBankRecord"];
221
+ get: operations["getBank-records:id"];
188
222
  /** @description Update bank record */
189
- put: operations["updateBankRecords"];
223
+ put: operations["putBank-records:id"];
190
224
  post?: never;
191
225
  delete?: never;
192
226
  options?: never;
@@ -1493,6 +1527,23 @@ export interface paths {
1493
1527
  patch?: never;
1494
1528
  trace?: never;
1495
1529
  };
1530
+ "/reservations/line-mappings/csv": {
1531
+ parameters: {
1532
+ query?: never;
1533
+ header?: never;
1534
+ path?: never;
1535
+ cookie?: never;
1536
+ };
1537
+ /** @description Reservation line mappings CSV export */
1538
+ get: operations["getReservationsLine-mappingsCsv"];
1539
+ put?: never;
1540
+ post?: never;
1541
+ delete?: never;
1542
+ options?: never;
1543
+ head?: never;
1544
+ patch?: never;
1545
+ trace?: never;
1546
+ };
1496
1547
  "/reservations/line-mappings/{type}": {
1497
1548
  parameters: {
1498
1549
  query?: never;
@@ -2037,6 +2088,40 @@ export interface paths {
2037
2088
  patch?: never;
2038
2089
  trace?: never;
2039
2090
  };
2091
+ "/transactions/csv": {
2092
+ parameters: {
2093
+ query?: never;
2094
+ header?: never;
2095
+ path?: never;
2096
+ cookie?: never;
2097
+ };
2098
+ /** @description Transactions CSV export */
2099
+ get: operations["getTransactionsCsv"];
2100
+ put?: never;
2101
+ post?: never;
2102
+ delete?: never;
2103
+ options?: never;
2104
+ head?: never;
2105
+ patch?: never;
2106
+ trace?: never;
2107
+ };
2108
+ "/transactions/deposits/csv": {
2109
+ parameters: {
2110
+ query?: never;
2111
+ header?: never;
2112
+ path?: never;
2113
+ cookie?: never;
2114
+ };
2115
+ /** @description Deposit transactions CSV export */
2116
+ get: operations["getTransactionsDepositsCsv"];
2117
+ put?: never;
2118
+ post?: never;
2119
+ delete?: never;
2120
+ options?: never;
2121
+ head?: never;
2122
+ patch?: never;
2123
+ trace?: never;
2124
+ };
2040
2125
  "/transactions/journal-entries": {
2041
2126
  parameters: {
2042
2127
  query?: never;
@@ -2159,6 +2244,23 @@ export interface paths {
2159
2244
  patch?: never;
2160
2245
  trace?: never;
2161
2246
  };
2247
+ "/transactions/transfers/csv": {
2248
+ parameters: {
2249
+ query?: never;
2250
+ header?: never;
2251
+ path?: never;
2252
+ cookie?: never;
2253
+ };
2254
+ /** @description Transfer transactions CSV export */
2255
+ get: operations["getTransactionsTransfersCsv"];
2256
+ put?: never;
2257
+ post?: never;
2258
+ delete?: never;
2259
+ options?: never;
2260
+ head?: never;
2261
+ patch?: never;
2262
+ trace?: never;
2263
+ };
2162
2264
  "/transactions/{id}": {
2163
2265
  parameters: {
2164
2266
  query?: never;
@@ -2604,6 +2706,115 @@ export interface operations {
2604
2706
  };
2605
2707
  };
2606
2708
  };
2709
+ getAccountsCsv: {
2710
+ parameters: {
2711
+ query?: {
2712
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting";
2713
+ search?: string;
2714
+ status?: "active" | "inactive";
2715
+ classification?: "asset" | "liability" | "revenue" | "expense";
2716
+ categoryId?: string;
2717
+ reconciled?: boolean;
2718
+ };
2719
+ header?: never;
2720
+ path?: never;
2721
+ cookie?: never;
2722
+ };
2723
+ requestBody?: never;
2724
+ responses: {
2725
+ /** @description Successful response */
2726
+ 200: {
2727
+ headers: {
2728
+ [name: string]: unknown;
2729
+ };
2730
+ content: {
2731
+ "application/json": {
2732
+ url: string;
2733
+ };
2734
+ };
2735
+ };
2736
+ /** @description Bad request */
2737
+ 400: {
2738
+ headers: {
2739
+ [name: string]: unknown;
2740
+ };
2741
+ content: {
2742
+ "application/json": {
2743
+ code: string;
2744
+ message: string;
2745
+ issues?: {
2746
+ message: string;
2747
+ }[];
2748
+ context?: unknown;
2749
+ };
2750
+ };
2751
+ };
2752
+ /** @description Unauthorized */
2753
+ 401: {
2754
+ headers: {
2755
+ [name: string]: unknown;
2756
+ };
2757
+ content: {
2758
+ "application/json": {
2759
+ code: string;
2760
+ message: string;
2761
+ issues?: {
2762
+ message: string;
2763
+ }[];
2764
+ context?: unknown;
2765
+ };
2766
+ };
2767
+ };
2768
+ /** @description Forbidden */
2769
+ 403: {
2770
+ headers: {
2771
+ [name: string]: unknown;
2772
+ };
2773
+ content: {
2774
+ "application/json": {
2775
+ code: string;
2776
+ message: string;
2777
+ issues?: {
2778
+ message: string;
2779
+ }[];
2780
+ context?: unknown;
2781
+ };
2782
+ };
2783
+ };
2784
+ /** @description Not found */
2785
+ 404: {
2786
+ headers: {
2787
+ [name: string]: unknown;
2788
+ };
2789
+ content: {
2790
+ "application/json": {
2791
+ code: string;
2792
+ message: string;
2793
+ issues?: {
2794
+ message: string;
2795
+ }[];
2796
+ context?: unknown;
2797
+ };
2798
+ };
2799
+ };
2800
+ /** @description Internal server error */
2801
+ 500: {
2802
+ headers: {
2803
+ [name: string]: unknown;
2804
+ };
2805
+ content: {
2806
+ "application/json": {
2807
+ code: string;
2808
+ message: string;
2809
+ issues?: {
2810
+ message: string;
2811
+ }[];
2812
+ context?: unknown;
2813
+ };
2814
+ };
2815
+ };
2816
+ };
2817
+ };
2607
2818
  "getAccounts:id": {
2608
2819
  parameters: {
2609
2820
  query?: never;
@@ -4073,7 +4284,7 @@ export interface operations {
4073
4284
  };
4074
4285
  };
4075
4286
  };
4076
- getBankRecords: {
4287
+ "getBank-records": {
4077
4288
  parameters: {
4078
4289
  query?: {
4079
4290
  status?: "active" | "inactive";
@@ -4282,7 +4493,7 @@ export interface operations {
4282
4493
  };
4283
4494
  };
4284
4495
  };
4285
- batchBankRecords: {
4496
+ "postBank-recordsBatch": {
4286
4497
  parameters: {
4287
4498
  query?: never;
4288
4499
  header?: never;
@@ -4429,16 +4640,29 @@ export interface operations {
4429
4640
  };
4430
4641
  };
4431
4642
  };
4432
- getBankRecord: {
4643
+ "getBank-recordsCsv": {
4433
4644
  parameters: {
4434
4645
  query?: {
4646
+ status?: "active" | "inactive";
4647
+ search?: string;
4648
+ /** @description Amount in cents, also accepts ranges like 100...200 */
4649
+ amount?: string;
4650
+ /** @description Date range in format YYYY-MM-DD...YYYY-MM-DD */
4651
+ dateRange?: string;
4652
+ /** @description Whether the end date is inclusive or exclusive */
4653
+ isDateRangeEndInclusive?: boolean;
4654
+ bankAccountId?: string;
4655
+ accountId?: string;
4656
+ uniqueRefs?: string;
4657
+ reconcileStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
4658
+ includeBalanceRecords?: boolean;
4435
4659
  /** @description Include matching transactions, optionally with max days offset */
4436
4660
  includeMatchingTransactions?: string;
4661
+ hasMatchingTransactions?: boolean;
4662
+ sort?: "created_desc" | "created_asc" | "amount_desc" | "amount_asc";
4437
4663
  };
4438
4664
  header?: never;
4439
- path: {
4440
- id: string;
4441
- };
4665
+ path?: never;
4442
4666
  cookie?: never;
4443
4667
  };
4444
4668
  requestBody?: never;
@@ -4450,51 +4674,158 @@ export interface operations {
4450
4674
  };
4451
4675
  content: {
4452
4676
  "application/json": {
4453
- /** Format: uuid */
4454
- id: string;
4455
- uniqueRef?: string | null;
4456
- date: string;
4457
- /** @enum {string} */
4458
- status: "active" | "inactive";
4459
- description?: string | null;
4460
- bankAccountId?: string | null;
4461
- accountId?: string | null;
4462
- connectionId?: string | null;
4463
- source?: {
4464
- /** Format: uuid */
4465
- id: string;
4466
- type: string;
4467
- status?: ("active" | "inactive") | null;
4468
- } | null;
4469
- /** @enum {string} */
4470
- type: "transaction" | "balance";
4471
- amount: number;
4472
- balance: {
4473
- current: number;
4474
- correction: number;
4475
- };
4476
- reconciliation: {
4477
- status?: ("unpaid" | "underpaid" | "overpaid" | "paid") | null;
4478
- transactions?: {
4479
- id: string;
4480
- date: string;
4481
- description?: string | null;
4482
- type: string;
4483
- amount: number;
4484
- }[] | null;
4485
- };
4486
- matchingTransactions?: {
4487
- id: string;
4488
- /** @enum {string} */
4489
- status: "active" | "inactive";
4490
- /** @description Value in cents (100 = 1€) */
4491
- amount: number;
4492
- account?: {
4493
- id: string;
4494
- name: string;
4495
- uniqueRef?: string | null;
4496
- /** @enum {string} */
4497
- status: "active" | "inactive";
4677
+ url: string;
4678
+ };
4679
+ };
4680
+ };
4681
+ /** @description Bad request */
4682
+ 400: {
4683
+ headers: {
4684
+ [name: string]: unknown;
4685
+ };
4686
+ content: {
4687
+ "application/json": {
4688
+ code: string;
4689
+ message: string;
4690
+ issues?: {
4691
+ message: string;
4692
+ }[];
4693
+ context?: unknown;
4694
+ };
4695
+ };
4696
+ };
4697
+ /** @description Unauthorized */
4698
+ 401: {
4699
+ headers: {
4700
+ [name: string]: unknown;
4701
+ };
4702
+ content: {
4703
+ "application/json": {
4704
+ code: string;
4705
+ message: string;
4706
+ issues?: {
4707
+ message: string;
4708
+ }[];
4709
+ context?: unknown;
4710
+ };
4711
+ };
4712
+ };
4713
+ /** @description Forbidden */
4714
+ 403: {
4715
+ headers: {
4716
+ [name: string]: unknown;
4717
+ };
4718
+ content: {
4719
+ "application/json": {
4720
+ code: string;
4721
+ message: string;
4722
+ issues?: {
4723
+ message: string;
4724
+ }[];
4725
+ context?: unknown;
4726
+ };
4727
+ };
4728
+ };
4729
+ /** @description Not found */
4730
+ 404: {
4731
+ headers: {
4732
+ [name: string]: unknown;
4733
+ };
4734
+ content: {
4735
+ "application/json": {
4736
+ code: string;
4737
+ message: string;
4738
+ issues?: {
4739
+ message: string;
4740
+ }[];
4741
+ context?: unknown;
4742
+ };
4743
+ };
4744
+ };
4745
+ /** @description Internal server error */
4746
+ 500: {
4747
+ headers: {
4748
+ [name: string]: unknown;
4749
+ };
4750
+ content: {
4751
+ "application/json": {
4752
+ code: string;
4753
+ message: string;
4754
+ issues?: {
4755
+ message: string;
4756
+ }[];
4757
+ context?: unknown;
4758
+ };
4759
+ };
4760
+ };
4761
+ };
4762
+ };
4763
+ "getBank-records:id": {
4764
+ parameters: {
4765
+ query?: {
4766
+ /** @description Include matching transactions, optionally with max days offset */
4767
+ includeMatchingTransactions?: string;
4768
+ };
4769
+ header?: never;
4770
+ path: {
4771
+ id: string;
4772
+ };
4773
+ cookie?: never;
4774
+ };
4775
+ requestBody?: never;
4776
+ responses: {
4777
+ /** @description Successful response */
4778
+ 200: {
4779
+ headers: {
4780
+ [name: string]: unknown;
4781
+ };
4782
+ content: {
4783
+ "application/json": {
4784
+ /** Format: uuid */
4785
+ id: string;
4786
+ uniqueRef?: string | null;
4787
+ date: string;
4788
+ /** @enum {string} */
4789
+ status: "active" | "inactive";
4790
+ description?: string | null;
4791
+ bankAccountId?: string | null;
4792
+ accountId?: string | null;
4793
+ connectionId?: string | null;
4794
+ source?: {
4795
+ /** Format: uuid */
4796
+ id: string;
4797
+ type: string;
4798
+ status?: ("active" | "inactive") | null;
4799
+ } | null;
4800
+ /** @enum {string} */
4801
+ type: "transaction" | "balance";
4802
+ amount: number;
4803
+ balance: {
4804
+ current: number;
4805
+ correction: number;
4806
+ };
4807
+ reconciliation: {
4808
+ status?: ("unpaid" | "underpaid" | "overpaid" | "paid") | null;
4809
+ transactions?: {
4810
+ id: string;
4811
+ date: string;
4812
+ description?: string | null;
4813
+ type: string;
4814
+ amount: number;
4815
+ }[] | null;
4816
+ };
4817
+ matchingTransactions?: {
4818
+ id: string;
4819
+ /** @enum {string} */
4820
+ status: "active" | "inactive";
4821
+ /** @description Value in cents (100 = 1€) */
4822
+ amount: number;
4823
+ account?: {
4824
+ id: string;
4825
+ name: string;
4826
+ uniqueRef?: string | null;
4827
+ /** @enum {string} */
4828
+ status: "active" | "inactive";
4498
4829
  } | null;
4499
4830
  date: string;
4500
4831
  description: string;
@@ -4612,7 +4943,7 @@ export interface operations {
4612
4943
  };
4613
4944
  };
4614
4945
  };
4615
- updateBankRecords: {
4946
+ "putBank-records:id": {
4616
4947
  parameters: {
4617
4948
  query?: never;
4618
4949
  header?: never;
@@ -19359,28 +19690,20 @@ export interface operations {
19359
19690
  };
19360
19691
  };
19361
19692
  };
19362
- "putReservationsLine-mappings:type": {
19693
+ "getReservationsLine-mappingsCsv": {
19363
19694
  parameters: {
19364
- query?: never;
19365
- header?: never;
19366
- path: {
19367
- type: string;
19695
+ query?: {
19696
+ search?: string;
19697
+ appId?: string;
19698
+ status?: "mapped" | "unmapped" | "excluded";
19699
+ /** @description Filter by account id(s) */
19700
+ accountId?: string;
19368
19701
  };
19702
+ header?: never;
19703
+ path?: never;
19369
19704
  cookie?: never;
19370
19705
  };
19371
- requestBody?: {
19372
- content: {
19373
- "application/json": {
19374
- accountId?: string | null;
19375
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19376
- channelMappings?: {
19377
- bookingChannel: string;
19378
- accountId?: string | null;
19379
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19380
- }[] | null;
19381
- };
19382
- };
19383
- };
19706
+ requestBody?: never;
19384
19707
  responses: {
19385
19708
  /** @description Successful response */
19386
19709
  200: {
@@ -19389,32 +19712,7 @@ export interface operations {
19389
19712
  };
19390
19713
  content: {
19391
19714
  "application/json": {
19392
- id?: string | null;
19393
- account?: {
19394
- /** Format: uuid */
19395
- id: string;
19396
- name: string;
19397
- } | null;
19398
- /** @enum {string} */
19399
- status: "mapped" | "unmapped" | "excluded";
19400
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19401
- type: string;
19402
- channelMappings: {
19403
- id?: string | null;
19404
- account?: {
19405
- /** Format: uuid */
19406
- id: string;
19407
- name: string;
19408
- } | null;
19409
- /** @enum {string} */
19410
- status: "mapped" | "unmapped" | "excluded";
19411
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19412
- bookingChannel: string;
19413
- }[];
19414
- updates: {
19415
- count: number;
19416
- confirmationCodes: string[];
19417
- };
19715
+ url: string;
19418
19716
  };
19419
19717
  };
19420
19718
  };
@@ -19500,16 +19798,28 @@ export interface operations {
19500
19798
  };
19501
19799
  };
19502
19800
  };
19503
- "getReservations:id": {
19801
+ "putReservationsLine-mappings:type": {
19504
19802
  parameters: {
19505
19803
  query?: never;
19506
19804
  header?: never;
19507
19805
  path: {
19508
- id: string;
19806
+ type: string;
19509
19807
  };
19510
19808
  cookie?: never;
19511
19809
  };
19512
- requestBody?: never;
19810
+ requestBody?: {
19811
+ content: {
19812
+ "application/json": {
19813
+ accountId?: string | null;
19814
+ revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19815
+ channelMappings?: {
19816
+ bookingChannel: string;
19817
+ accountId?: string | null;
19818
+ revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19819
+ }[] | null;
19820
+ };
19821
+ };
19822
+ };
19513
19823
  responses: {
19514
19824
  /** @description Successful response */
19515
19825
  200: {
@@ -19518,36 +19828,165 @@ export interface operations {
19518
19828
  };
19519
19829
  content: {
19520
19830
  "application/json": {
19521
- currency: string | null;
19522
- uniqueRef?: string | null;
19523
- guestName?: string | null;
19524
- bookerName?: string | null;
19525
- checkIn?: string | null;
19526
- checkOut?: string | null;
19527
- generalLedgerPostingAt?: string | null;
19528
- bookedAt?: string | null;
19529
- cancelledAt?: string | null;
19530
- bookingPlatform?: string | null;
19531
- confirmationCode?: string | null;
19532
- pmsReferenceCode?: string | null;
19533
- guests?: number | null;
19534
- userdata: {
19535
- [key: string]: unknown;
19536
- } | null;
19537
- metadata: {
19538
- [key: string]: unknown;
19831
+ id?: string | null;
19832
+ account?: {
19833
+ /** Format: uuid */
19834
+ id: string;
19835
+ name: string;
19539
19836
  } | null;
19540
- /** Format: uuid */
19541
- id: string;
19542
- shortRef?: string | null;
19543
19837
  /** @enum {string} */
19544
- generalLedgerStatus: "active" | "inactive";
19545
- lock?: {
19546
- /** @enum {string} */
19547
- status: "locked" | "unlocked";
19548
- booksClosed?: {
19549
- date: string;
19550
- } | null;
19838
+ status: "mapped" | "unmapped" | "excluded";
19839
+ revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19840
+ type: string;
19841
+ channelMappings: {
19842
+ id?: string | null;
19843
+ account?: {
19844
+ /** Format: uuid */
19845
+ id: string;
19846
+ name: string;
19847
+ } | null;
19848
+ /** @enum {string} */
19849
+ status: "mapped" | "unmapped" | "excluded";
19850
+ revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
19851
+ bookingChannel: string;
19852
+ }[];
19853
+ updates: {
19854
+ count: number;
19855
+ confirmationCodes: string[];
19856
+ };
19857
+ };
19858
+ };
19859
+ };
19860
+ /** @description Bad request */
19861
+ 400: {
19862
+ headers: {
19863
+ [name: string]: unknown;
19864
+ };
19865
+ content: {
19866
+ "application/json": {
19867
+ code: string;
19868
+ message: string;
19869
+ issues?: {
19870
+ message: string;
19871
+ }[];
19872
+ context?: unknown;
19873
+ };
19874
+ };
19875
+ };
19876
+ /** @description Unauthorized */
19877
+ 401: {
19878
+ headers: {
19879
+ [name: string]: unknown;
19880
+ };
19881
+ content: {
19882
+ "application/json": {
19883
+ code: string;
19884
+ message: string;
19885
+ issues?: {
19886
+ message: string;
19887
+ }[];
19888
+ context?: unknown;
19889
+ };
19890
+ };
19891
+ };
19892
+ /** @description Forbidden */
19893
+ 403: {
19894
+ headers: {
19895
+ [name: string]: unknown;
19896
+ };
19897
+ content: {
19898
+ "application/json": {
19899
+ code: string;
19900
+ message: string;
19901
+ issues?: {
19902
+ message: string;
19903
+ }[];
19904
+ context?: unknown;
19905
+ };
19906
+ };
19907
+ };
19908
+ /** @description Not found */
19909
+ 404: {
19910
+ headers: {
19911
+ [name: string]: unknown;
19912
+ };
19913
+ content: {
19914
+ "application/json": {
19915
+ code: string;
19916
+ message: string;
19917
+ issues?: {
19918
+ message: string;
19919
+ }[];
19920
+ context?: unknown;
19921
+ };
19922
+ };
19923
+ };
19924
+ /** @description Internal server error */
19925
+ 500: {
19926
+ headers: {
19927
+ [name: string]: unknown;
19928
+ };
19929
+ content: {
19930
+ "application/json": {
19931
+ code: string;
19932
+ message: string;
19933
+ issues?: {
19934
+ message: string;
19935
+ }[];
19936
+ context?: unknown;
19937
+ };
19938
+ };
19939
+ };
19940
+ };
19941
+ };
19942
+ "getReservations:id": {
19943
+ parameters: {
19944
+ query?: never;
19945
+ header?: never;
19946
+ path: {
19947
+ id: string;
19948
+ };
19949
+ cookie?: never;
19950
+ };
19951
+ requestBody?: never;
19952
+ responses: {
19953
+ /** @description Successful response */
19954
+ 200: {
19955
+ headers: {
19956
+ [name: string]: unknown;
19957
+ };
19958
+ content: {
19959
+ "application/json": {
19960
+ currency: string | null;
19961
+ uniqueRef?: string | null;
19962
+ guestName?: string | null;
19963
+ bookerName?: string | null;
19964
+ checkIn?: string | null;
19965
+ checkOut?: string | null;
19966
+ generalLedgerPostingAt?: string | null;
19967
+ bookedAt?: string | null;
19968
+ cancelledAt?: string | null;
19969
+ bookingPlatform?: string | null;
19970
+ confirmationCode?: string | null;
19971
+ pmsReferenceCode?: string | null;
19972
+ guests?: number | null;
19973
+ userdata: {
19974
+ [key: string]: unknown;
19975
+ } | null;
19976
+ metadata: {
19977
+ [key: string]: unknown;
19978
+ } | null;
19979
+ /** Format: uuid */
19980
+ id: string;
19981
+ shortRef?: string | null;
19982
+ /** @enum {string} */
19983
+ generalLedgerStatus: "active" | "inactive";
19984
+ lock?: {
19985
+ /** @enum {string} */
19986
+ status: "locked" | "unlocked";
19987
+ booksClosed?: {
19988
+ date: string;
19989
+ } | null;
19551
19990
  ownerStatement?: {
19552
19991
  ids: string[];
19553
19992
  } | null;
@@ -30333,22 +30772,37 @@ export interface operations {
30333
30772
  };
30334
30773
  };
30335
30774
  };
30336
- "postTransactionsJournal-entries": {
30775
+ getTransactionsCsv: {
30337
30776
  parameters: {
30338
- query?: never;
30777
+ query?: {
30778
+ type?: "deposit" | "expense" | "transfer";
30779
+ status?: "active" | "inactive";
30780
+ includeLines?: boolean;
30781
+ accountId?: string;
30782
+ last4?: string;
30783
+ isLocked?: boolean;
30784
+ hasActiveJournalEntries?: boolean;
30785
+ /** @description connection id or 'null' */
30786
+ connectionId?: string;
30787
+ /** @description Date range in format YYYY-MM-DD...YYYY-MM-DD */
30788
+ dateRange?: string;
30789
+ /** @description Whether the end date is inclusive or exclusive */
30790
+ isDateRangeEndInclusive?: boolean;
30791
+ uniqueRefs?: string;
30792
+ shortRefs?: string;
30793
+ ids?: string;
30794
+ search?: string;
30795
+ recurringTemplateId?: string;
30796
+ paidStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
30797
+ reconciled?: boolean;
30798
+ contactId?: string;
30799
+ listingIds?: string;
30800
+ };
30339
30801
  header?: never;
30340
30802
  path?: never;
30341
30803
  cookie?: never;
30342
30804
  };
30343
- requestBody?: {
30344
- content: {
30345
- "application/json": {
30346
- ids?: string[];
30347
- listingIds?: string[];
30348
- date?: string;
30349
- };
30350
- };
30351
- };
30805
+ requestBody?: never;
30352
30806
  responses: {
30353
30807
  /** @description Successful response */
30354
30808
  200: {
@@ -30357,7 +30811,7 @@ export interface operations {
30357
30811
  };
30358
30812
  content: {
30359
30813
  "application/json": {
30360
- total: number;
30814
+ url: string;
30361
30815
  };
30362
30816
  };
30363
30817
  };
@@ -30443,15 +30897,31 @@ export interface operations {
30443
30897
  };
30444
30898
  };
30445
30899
  };
30446
- "getTransactionsLine-mappings": {
30900
+ getTransactionsDepositsCsv: {
30447
30901
  parameters: {
30448
30902
  query?: {
30903
+ type?: "deposit" | "expense" | "transfer";
30904
+ status?: "active" | "inactive";
30905
+ includeLines?: boolean;
30906
+ accountId?: string;
30907
+ last4?: string;
30908
+ isLocked?: boolean;
30909
+ hasActiveJournalEntries?: boolean;
30910
+ /** @description connection id or 'null' */
30911
+ connectionId?: string;
30912
+ /** @description Date range in format YYYY-MM-DD...YYYY-MM-DD */
30913
+ dateRange?: string;
30914
+ /** @description Whether the end date is inclusive or exclusive */
30915
+ isDateRangeEndInclusive?: boolean;
30916
+ uniqueRefs?: string;
30917
+ shortRefs?: string;
30918
+ ids?: string;
30449
30919
  search?: string;
30450
- appId?: string;
30451
- status?: "mapped" | "unmapped";
30452
- accountAssignmentType?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer";
30453
- limit?: number;
30454
- page?: number;
30920
+ recurringTemplateId?: string;
30921
+ paidStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
30922
+ reconciled?: boolean;
30923
+ contactId?: string;
30924
+ listingIds?: string;
30455
30925
  };
30456
30926
  header?: never;
30457
30927
  path?: never;
@@ -30466,19 +30936,7 @@ export interface operations {
30466
30936
  };
30467
30937
  content: {
30468
30938
  "application/json": {
30469
- data: {
30470
- type: string;
30471
- accountAssignment?: ("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;
30472
- }[];
30473
- pagination: {
30474
- /** @default 100 */
30475
- limit: number;
30476
- /** @default 1 */
30477
- page: number;
30478
- total: number;
30479
- totalPage: number;
30480
- nextPage?: number;
30481
- };
30939
+ url: string;
30482
30940
  };
30483
30941
  };
30484
30942
  };
@@ -30564,19 +31022,19 @@ export interface operations {
30564
31022
  };
30565
31023
  };
30566
31024
  };
30567
- "putTransactionsLine-mappings:type": {
31025
+ "postTransactionsJournal-entries": {
30568
31026
  parameters: {
30569
31027
  query?: never;
30570
31028
  header?: never;
30571
- path: {
30572
- type: string;
30573
- };
31029
+ path?: never;
30574
31030
  cookie?: never;
30575
31031
  };
30576
31032
  requestBody?: {
30577
31033
  content: {
30578
31034
  "application/json": {
30579
- accountAssignment?: ("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;
31035
+ ids?: string[];
31036
+ listingIds?: string[];
31037
+ date?: string;
30580
31038
  };
30581
31039
  };
30582
31040
  };
@@ -30588,8 +31046,7 @@ export interface operations {
30588
31046
  };
30589
31047
  content: {
30590
31048
  "application/json": {
30591
- type: string;
30592
- accountAssignment?: ("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;
31049
+ total: number;
30593
31050
  };
30594
31051
  };
30595
31052
  };
@@ -30675,11 +31132,13 @@ export interface operations {
30675
31132
  };
30676
31133
  };
30677
31134
  };
30678
- "getTransactionsRecurring-templates": {
31135
+ "getTransactionsLine-mappings": {
30679
31136
  parameters: {
30680
31137
  query?: {
30681
- uniqueRefs?: string;
30682
31138
  search?: string;
31139
+ appId?: string;
31140
+ status?: "mapped" | "unmapped";
31141
+ accountAssignmentType?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer";
30683
31142
  limit?: number;
30684
31143
  page?: number;
30685
31144
  };
@@ -30697,12 +31156,242 @@ export interface operations {
30697
31156
  content: {
30698
31157
  "application/json": {
30699
31158
  data: {
30700
- id: string;
30701
- /** @enum {string} */
30702
- status: "active" | "inactive";
30703
- uniqueRef: string;
30704
- description: string;
30705
- date: string;
31159
+ type: string;
31160
+ accountAssignment?: ("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;
31161
+ }[];
31162
+ pagination: {
31163
+ /** @default 100 */
31164
+ limit: number;
31165
+ /** @default 1 */
31166
+ page: number;
31167
+ total: number;
31168
+ totalPage: number;
31169
+ nextPage?: number;
31170
+ };
31171
+ };
31172
+ };
31173
+ };
31174
+ /** @description Bad request */
31175
+ 400: {
31176
+ headers: {
31177
+ [name: string]: unknown;
31178
+ };
31179
+ content: {
31180
+ "application/json": {
31181
+ code: string;
31182
+ message: string;
31183
+ issues?: {
31184
+ message: string;
31185
+ }[];
31186
+ context?: unknown;
31187
+ };
31188
+ };
31189
+ };
31190
+ /** @description Unauthorized */
31191
+ 401: {
31192
+ headers: {
31193
+ [name: string]: unknown;
31194
+ };
31195
+ content: {
31196
+ "application/json": {
31197
+ code: string;
31198
+ message: string;
31199
+ issues?: {
31200
+ message: string;
31201
+ }[];
31202
+ context?: unknown;
31203
+ };
31204
+ };
31205
+ };
31206
+ /** @description Forbidden */
31207
+ 403: {
31208
+ headers: {
31209
+ [name: string]: unknown;
31210
+ };
31211
+ content: {
31212
+ "application/json": {
31213
+ code: string;
31214
+ message: string;
31215
+ issues?: {
31216
+ message: string;
31217
+ }[];
31218
+ context?: unknown;
31219
+ };
31220
+ };
31221
+ };
31222
+ /** @description Not found */
31223
+ 404: {
31224
+ headers: {
31225
+ [name: string]: unknown;
31226
+ };
31227
+ content: {
31228
+ "application/json": {
31229
+ code: string;
31230
+ message: string;
31231
+ issues?: {
31232
+ message: string;
31233
+ }[];
31234
+ context?: unknown;
31235
+ };
31236
+ };
31237
+ };
31238
+ /** @description Internal server error */
31239
+ 500: {
31240
+ headers: {
31241
+ [name: string]: unknown;
31242
+ };
31243
+ content: {
31244
+ "application/json": {
31245
+ code: string;
31246
+ message: string;
31247
+ issues?: {
31248
+ message: string;
31249
+ }[];
31250
+ context?: unknown;
31251
+ };
31252
+ };
31253
+ };
31254
+ };
31255
+ };
31256
+ "putTransactionsLine-mappings:type": {
31257
+ parameters: {
31258
+ query?: never;
31259
+ header?: never;
31260
+ path: {
31261
+ type: string;
31262
+ };
31263
+ cookie?: never;
31264
+ };
31265
+ requestBody?: {
31266
+ content: {
31267
+ "application/json": {
31268
+ accountAssignment?: ("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;
31269
+ };
31270
+ };
31271
+ };
31272
+ responses: {
31273
+ /** @description Successful response */
31274
+ 200: {
31275
+ headers: {
31276
+ [name: string]: unknown;
31277
+ };
31278
+ content: {
31279
+ "application/json": {
31280
+ type: string;
31281
+ accountAssignment?: ("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;
31282
+ };
31283
+ };
31284
+ };
31285
+ /** @description Bad request */
31286
+ 400: {
31287
+ headers: {
31288
+ [name: string]: unknown;
31289
+ };
31290
+ content: {
31291
+ "application/json": {
31292
+ code: string;
31293
+ message: string;
31294
+ issues?: {
31295
+ message: string;
31296
+ }[];
31297
+ context?: unknown;
31298
+ };
31299
+ };
31300
+ };
31301
+ /** @description Unauthorized */
31302
+ 401: {
31303
+ headers: {
31304
+ [name: string]: unknown;
31305
+ };
31306
+ content: {
31307
+ "application/json": {
31308
+ code: string;
31309
+ message: string;
31310
+ issues?: {
31311
+ message: string;
31312
+ }[];
31313
+ context?: unknown;
31314
+ };
31315
+ };
31316
+ };
31317
+ /** @description Forbidden */
31318
+ 403: {
31319
+ headers: {
31320
+ [name: string]: unknown;
31321
+ };
31322
+ content: {
31323
+ "application/json": {
31324
+ code: string;
31325
+ message: string;
31326
+ issues?: {
31327
+ message: string;
31328
+ }[];
31329
+ context?: unknown;
31330
+ };
31331
+ };
31332
+ };
31333
+ /** @description Not found */
31334
+ 404: {
31335
+ headers: {
31336
+ [name: string]: unknown;
31337
+ };
31338
+ content: {
31339
+ "application/json": {
31340
+ code: string;
31341
+ message: string;
31342
+ issues?: {
31343
+ message: string;
31344
+ }[];
31345
+ context?: unknown;
31346
+ };
31347
+ };
31348
+ };
31349
+ /** @description Internal server error */
31350
+ 500: {
31351
+ headers: {
31352
+ [name: string]: unknown;
31353
+ };
31354
+ content: {
31355
+ "application/json": {
31356
+ code: string;
31357
+ message: string;
31358
+ issues?: {
31359
+ message: string;
31360
+ }[];
31361
+ context?: unknown;
31362
+ };
31363
+ };
31364
+ };
31365
+ };
31366
+ };
31367
+ "getTransactionsRecurring-templates": {
31368
+ parameters: {
31369
+ query?: {
31370
+ uniqueRefs?: string;
31371
+ search?: string;
31372
+ limit?: number;
31373
+ page?: number;
31374
+ };
31375
+ header?: never;
31376
+ path?: never;
31377
+ cookie?: never;
31378
+ };
31379
+ requestBody?: never;
31380
+ responses: {
31381
+ /** @description Successful response */
31382
+ 200: {
31383
+ headers: {
31384
+ [name: string]: unknown;
31385
+ };
31386
+ content: {
31387
+ "application/json": {
31388
+ data: {
31389
+ id: string;
31390
+ /** @enum {string} */
31391
+ status: "active" | "inactive";
31392
+ uniqueRef: string;
31393
+ description: string;
31394
+ date: string;
30706
31395
  /** @description Currency in ISO 4217 format, will be converted to lowercase */
30707
31396
  currency: string;
30708
31397
  amount: number;
@@ -32314,6 +33003,131 @@ export interface operations {
32314
33003
  };
32315
33004
  };
32316
33005
  };
33006
+ getTransactionsTransfersCsv: {
33007
+ parameters: {
33008
+ query?: {
33009
+ type?: "deposit" | "expense" | "transfer";
33010
+ status?: "active" | "inactive";
33011
+ includeLines?: boolean;
33012
+ accountId?: string;
33013
+ last4?: string;
33014
+ isLocked?: boolean;
33015
+ hasActiveJournalEntries?: boolean;
33016
+ /** @description connection id or 'null' */
33017
+ connectionId?: string;
33018
+ /** @description Date range in format YYYY-MM-DD...YYYY-MM-DD */
33019
+ dateRange?: string;
33020
+ /** @description Whether the end date is inclusive or exclusive */
33021
+ isDateRangeEndInclusive?: boolean;
33022
+ uniqueRefs?: string;
33023
+ shortRefs?: string;
33024
+ ids?: string;
33025
+ search?: string;
33026
+ recurringTemplateId?: string;
33027
+ paidStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
33028
+ reconciled?: boolean;
33029
+ contactId?: string;
33030
+ listingIds?: string;
33031
+ };
33032
+ header?: never;
33033
+ path?: never;
33034
+ cookie?: never;
33035
+ };
33036
+ requestBody?: never;
33037
+ responses: {
33038
+ /** @description Successful response */
33039
+ 200: {
33040
+ headers: {
33041
+ [name: string]: unknown;
33042
+ };
33043
+ content: {
33044
+ "application/json": {
33045
+ url: string;
33046
+ };
33047
+ };
33048
+ };
33049
+ /** @description Bad request */
33050
+ 400: {
33051
+ headers: {
33052
+ [name: string]: unknown;
33053
+ };
33054
+ content: {
33055
+ "application/json": {
33056
+ code: string;
33057
+ message: string;
33058
+ issues?: {
33059
+ message: string;
33060
+ }[];
33061
+ context?: unknown;
33062
+ };
33063
+ };
33064
+ };
33065
+ /** @description Unauthorized */
33066
+ 401: {
33067
+ headers: {
33068
+ [name: string]: unknown;
33069
+ };
33070
+ content: {
33071
+ "application/json": {
33072
+ code: string;
33073
+ message: string;
33074
+ issues?: {
33075
+ message: string;
33076
+ }[];
33077
+ context?: unknown;
33078
+ };
33079
+ };
33080
+ };
33081
+ /** @description Forbidden */
33082
+ 403: {
33083
+ headers: {
33084
+ [name: string]: unknown;
33085
+ };
33086
+ content: {
33087
+ "application/json": {
33088
+ code: string;
33089
+ message: string;
33090
+ issues?: {
33091
+ message: string;
33092
+ }[];
33093
+ context?: unknown;
33094
+ };
33095
+ };
33096
+ };
33097
+ /** @description Not found */
33098
+ 404: {
33099
+ headers: {
33100
+ [name: string]: unknown;
33101
+ };
33102
+ content: {
33103
+ "application/json": {
33104
+ code: string;
33105
+ message: string;
33106
+ issues?: {
33107
+ message: string;
33108
+ }[];
33109
+ context?: unknown;
33110
+ };
33111
+ };
33112
+ };
33113
+ /** @description Internal server error */
33114
+ 500: {
33115
+ headers: {
33116
+ [name: string]: unknown;
33117
+ };
33118
+ content: {
33119
+ "application/json": {
33120
+ code: string;
33121
+ message: string;
33122
+ issues?: {
33123
+ message: string;
33124
+ }[];
33125
+ context?: unknown;
33126
+ };
33127
+ };
33128
+ };
33129
+ };
33130
+ };
32317
33131
  "getTransactions:id": {
32318
33132
  parameters: {
32319
33133
  query?: never;