@vrplatform/api 1.3.1-3732 → 1.3.1-3752

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.
@@ -608,6 +608,40 @@ export interface paths {
608
608
  patch?: never;
609
609
  trace?: never;
610
610
  };
611
+ "/connections/pms-cutover/apply": {
612
+ parameters: {
613
+ query?: never;
614
+ header?: never;
615
+ path?: never;
616
+ cookie?: never;
617
+ };
618
+ get?: never;
619
+ put?: never;
620
+ /** @description Apply a PMS migration cutover */
621
+ post: operations["applyPmsConnectionCutover"];
622
+ delete?: never;
623
+ options?: never;
624
+ head?: never;
625
+ patch?: never;
626
+ trace?: never;
627
+ };
628
+ "/connections/pms-cutover/preview": {
629
+ parameters: {
630
+ query?: never;
631
+ header?: never;
632
+ path?: never;
633
+ cookie?: never;
634
+ };
635
+ get?: never;
636
+ put?: never;
637
+ /** @description Preview a PMS migration cutover */
638
+ post: operations["previewPmsConnectionCutover"];
639
+ delete?: never;
640
+ options?: never;
641
+ head?: never;
642
+ patch?: never;
643
+ trace?: never;
644
+ };
611
645
  "/connections/{id}": {
612
646
  parameters: {
613
647
  query?: never;
@@ -1323,6 +1357,23 @@ export interface paths {
1323
1357
  patch?: never;
1324
1358
  trace?: never;
1325
1359
  };
1360
+ "/me/notifications": {
1361
+ parameters: {
1362
+ query?: never;
1363
+ header?: never;
1364
+ path?: never;
1365
+ cookie?: never;
1366
+ };
1367
+ get?: never;
1368
+ /** @description Update notifications for the authenticated user for the selected team */
1369
+ put: operations["updateMeNotifications"];
1370
+ post?: never;
1371
+ delete?: never;
1372
+ options?: never;
1373
+ head?: never;
1374
+ patch?: never;
1375
+ trace?: never;
1376
+ };
1326
1377
  "/members": {
1327
1378
  parameters: {
1328
1379
  query?: never;
@@ -3168,6 +3219,23 @@ export interface paths {
3168
3219
  patch?: never;
3169
3220
  trace?: never;
3170
3221
  };
3222
+ "/teams/resolve": {
3223
+ parameters: {
3224
+ query?: never;
3225
+ header?: never;
3226
+ path?: never;
3227
+ cookie?: never;
3228
+ };
3229
+ /** @description Resolve a team by slug */
3230
+ get: operations["getTeamsResolve"];
3231
+ put?: never;
3232
+ post?: never;
3233
+ delete?: never;
3234
+ options?: never;
3235
+ head?: never;
3236
+ patch?: never;
3237
+ trace?: never;
3238
+ };
3171
3239
  "/teams/{id}": {
3172
3240
  parameters: {
3173
3241
  query?: never;
@@ -7857,6 +7925,8 @@ export interface operations {
7857
7925
  getBankRecords: {
7858
7926
  parameters: {
7859
7927
  query?: {
7928
+ /** @description Comma-separated bank record IDs. */
7929
+ ids?: string;
7860
7930
  status?: "active" | "inactive";
7861
7931
  search?: string;
7862
7932
  /** @description Amount in cents, also accepts ranges like 100...200 */
@@ -8311,6 +8381,8 @@ export interface operations {
8311
8381
  getBankRecordsCsv: {
8312
8382
  parameters: {
8313
8383
  query?: {
8384
+ /** @description Comma-separated bank record IDs. */
8385
+ ids?: string;
8314
8386
  status?: "active" | "inactive";
8315
8387
  search?: string;
8316
8388
  /** @description Amount in cents, also accepts ranges like 100...200 */
@@ -10903,6 +10975,8 @@ export interface operations {
10903
10975
  name: string;
10904
10976
  /** @enum {string} */
10905
10977
  status: "active" | "inactive";
10978
+ accountingStartAt?: string | null;
10979
+ accountingEndAt?: string | null;
10906
10980
  uniqueRef?: string | null;
10907
10981
  app: {
10908
10982
  id: string;
@@ -11060,6 +11134,8 @@ export interface operations {
11060
11134
  credentials?: {
11061
11135
  [key: string]: unknown;
11062
11136
  };
11137
+ accountingStartAt?: string | null;
11138
+ accountingEndAt?: string | null;
11063
11139
  };
11064
11140
  };
11065
11141
  };
@@ -11076,6 +11152,8 @@ export interface operations {
11076
11152
  name: string;
11077
11153
  /** @enum {string} */
11078
11154
  status: "active" | "inactive";
11155
+ accountingStartAt?: string | null;
11156
+ accountingEndAt?: string | null;
11079
11157
  uniqueRef?: string | null;
11080
11158
  app: {
11081
11159
  id: string;
@@ -11455,16 +11533,24 @@ export interface operations {
11455
11533
  };
11456
11534
  };
11457
11535
  };
11458
- getConnection: {
11536
+ applyPmsConnectionCutover: {
11459
11537
  parameters: {
11460
11538
  query?: never;
11461
11539
  header?: never;
11462
- path: {
11463
- id: string;
11464
- };
11540
+ path?: never;
11465
11541
  cookie?: never;
11466
11542
  };
11467
- requestBody?: never;
11543
+ requestBody?: {
11544
+ content: {
11545
+ "application/json": {
11546
+ /** Format: uuid */
11547
+ sourceConnectionId: string;
11548
+ /** Format: uuid */
11549
+ targetConnectionId: string;
11550
+ cutoverAt: string;
11551
+ };
11552
+ };
11553
+ };
11468
11554
  responses: {
11469
11555
  /** @description Successful response */
11470
11556
  200: {
@@ -11473,169 +11559,36 @@ export interface operations {
11473
11559
  };
11474
11560
  content: {
11475
11561
  "application/json": {
11476
- /** Format: uuid */
11477
- id: string;
11478
- name: string;
11562
+ cutoverAt: string;
11479
11563
  /** @enum {string} */
11480
- status: "active" | "inactive";
11481
- uniqueRef?: string | null;
11482
- app: {
11564
+ revenueRecognition: "checkIn" | "checkOut" | "bookedAt" | "proRata";
11565
+ sourceConnection: {
11566
+ /** Format: uuid */
11483
11567
  id: string;
11484
- /** @enum {string} */
11485
- type: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
11486
11568
  name: string;
11487
- icon?: string | null;
11488
- importers?: string[] | null;
11489
- extractors?: string[] | null;
11569
+ accountingStartAt?: string | null;
11570
+ accountingEndAt?: string | null;
11490
11571
  };
11491
- /**
11492
- * Format: date-time
11493
- * @description Timestamp string with date, time, milliseconds, and timezone.
11494
- * @example 2024-01-15T12:30:00.000+00:00
11495
- */
11496
- createdAt: string;
11497
- /**
11498
- * Format: date-time
11499
- * @description Timestamp string with date, time, milliseconds, and timezone.
11500
- * @example 2024-01-15T12:30:00.000+00:00
11501
- */
11502
- updatedAt: string;
11503
- isErrorState: boolean;
11504
- currentSync?: {
11505
- /** @enum {string} */
11506
- status: "queued" | "started" | "completed" | "failed" | "canceled";
11507
- /**
11508
- * Format: date-time
11509
- * @description Timestamp string with date, time, milliseconds, and timezone.
11510
- * @example 2024-01-15T12:30:00.000+00:00
11511
- */
11512
- createdAt: string;
11513
- /**
11514
- * Format: date-time
11515
- * @description Timestamp string with date, time, milliseconds, and timezone.
11516
- * @example 2024-01-15T12:30:00.000+00:00
11517
- */
11518
- updatedAt: string;
11519
- message?: string | null;
11520
- } | null;
11521
- enabledFlows: {
11572
+ targetConnection: {
11522
11573
  /** Format: uuid */
11523
11574
  id: string;
11524
- title: string;
11525
- isPublic: boolean;
11526
- type: ("push" | "pull") | null;
11527
- }[];
11528
- };
11529
- };
11530
- };
11531
- /** @description Bad request */
11532
- 400: {
11533
- headers: {
11534
- [name: string]: unknown;
11535
- };
11536
- content: {
11537
- "application/json": {
11538
- code: string;
11539
- message: string;
11540
- issues?: {
11541
- message: string;
11542
- }[];
11543
- context?: unknown;
11544
- };
11545
- };
11546
- };
11547
- /** @description Unauthorized */
11548
- 401: {
11549
- headers: {
11550
- [name: string]: unknown;
11551
- };
11552
- content: {
11553
- "application/json": {
11554
- code: string;
11555
- message: string;
11556
- issues?: {
11557
- message: string;
11558
- }[];
11559
- context?: unknown;
11560
- };
11561
- };
11562
- };
11563
- /** @description Forbidden */
11564
- 403: {
11565
- headers: {
11566
- [name: string]: unknown;
11567
- };
11568
- content: {
11569
- "application/json": {
11570
- code: string;
11571
- message: string;
11572
- issues?: {
11573
- message: string;
11574
- }[];
11575
- context?: unknown;
11576
- };
11577
- };
11578
- };
11579
- /** @description Not found */
11580
- 404: {
11581
- headers: {
11582
- [name: string]: unknown;
11583
- };
11584
- content: {
11585
- "application/json": {
11586
- code: string;
11587
- message: string;
11588
- issues?: {
11589
- message: string;
11590
- }[];
11591
- context?: unknown;
11592
- };
11593
- };
11594
- };
11595
- /** @description Internal server error */
11596
- 500: {
11597
- headers: {
11598
- [name: string]: unknown;
11599
- };
11600
- content: {
11601
- "application/json": {
11602
- code: string;
11603
- message: string;
11604
- issues?: {
11605
- message: string;
11606
- }[];
11607
- context?: unknown;
11608
- };
11609
- };
11610
- };
11611
- };
11612
- };
11613
- deleteConnection: {
11614
- parameters: {
11615
- query?: {
11616
- onLocked?: "error" | "archive";
11617
- };
11618
- header?: never;
11619
- path: {
11620
- id: string;
11621
- };
11622
- cookie?: never;
11623
- };
11624
- requestBody?: {
11625
- content: {
11626
- "application/json": Record<string, never>;
11627
- };
11628
- };
11629
- responses: {
11630
- /** @description Successful response */
11631
- 200: {
11632
- headers: {
11633
- [name: string]: unknown;
11634
- };
11635
- content: {
11636
- "application/json": {
11637
- /** @enum {string} */
11638
- status: "deleted" | "archived";
11575
+ name: string;
11576
+ accountingStartAt?: string | null;
11577
+ accountingEndAt?: string | null;
11578
+ };
11579
+ proposed: {
11580
+ sourceAccountingEndAt: string;
11581
+ targetAccountingStartAt: string;
11582
+ };
11583
+ impactedReservations: {
11584
+ sourceCount: number;
11585
+ targetCount: number;
11586
+ refreshCount: number;
11587
+ lockedCount: number;
11588
+ };
11589
+ /** @constant */
11590
+ applied: true;
11591
+ queuedReservationRefreshCount: number;
11639
11592
  };
11640
11593
  };
11641
11594
  };
@@ -11721,21 +11674,21 @@ export interface operations {
11721
11674
  };
11722
11675
  };
11723
11676
  };
11724
- syncConnection: {
11677
+ previewPmsConnectionCutover: {
11725
11678
  parameters: {
11726
11679
  query?: never;
11727
11680
  header?: never;
11728
- path: {
11729
- id: string;
11730
- };
11681
+ path?: never;
11731
11682
  cookie?: never;
11732
11683
  };
11733
11684
  requestBody?: {
11734
11685
  content: {
11735
11686
  "application/json": {
11736
- uniqueRef: string;
11737
- /** @enum {string} */
11738
- type: "reservation" | "listing" | "payout";
11687
+ /** Format: uuid */
11688
+ sourceConnectionId: string;
11689
+ /** Format: uuid */
11690
+ targetConnectionId: string;
11691
+ cutoverAt: string;
11739
11692
  };
11740
11693
  };
11741
11694
  };
@@ -11746,44 +11699,450 @@ export interface operations {
11746
11699
  [name: string]: unknown;
11747
11700
  };
11748
11701
  content: {
11749
- "application/json": ({
11750
- /** Format: uuid */
11751
- id: string;
11752
- /** @constant */
11753
- status: "completed";
11754
- message: string;
11755
- /** @constant */
11756
- type: "reservation";
11757
- /** Format: uuid */
11758
- reservationId: string;
11759
- } | {
11760
- /** Format: uuid */
11761
- id: string;
11762
- /** @constant */
11763
- status: "completed";
11764
- message: string;
11765
- /** @constant */
11766
- type: "listing";
11767
- /** Format: uuid */
11768
- listingId: string;
11769
- } | {
11770
- /** Format: uuid */
11771
- id: string;
11772
- /** @constant */
11773
- status: "completed";
11774
- message: string;
11775
- /** @constant */
11776
- type: "payout";
11777
- /** Format: uuid */
11778
- paymentId: string;
11779
- }) | {
11780
- /** Format: uuid */
11781
- id: string;
11782
- /** @constant */
11783
- status: "failed";
11784
- message: string;
11702
+ "application/json": {
11703
+ cutoverAt: string;
11785
11704
  /** @enum {string} */
11786
- type: "reservation" | "listing" | "payout";
11705
+ revenueRecognition: "checkIn" | "checkOut" | "bookedAt" | "proRata";
11706
+ sourceConnection: {
11707
+ /** Format: uuid */
11708
+ id: string;
11709
+ name: string;
11710
+ accountingStartAt?: string | null;
11711
+ accountingEndAt?: string | null;
11712
+ };
11713
+ targetConnection: {
11714
+ /** Format: uuid */
11715
+ id: string;
11716
+ name: string;
11717
+ accountingStartAt?: string | null;
11718
+ accountingEndAt?: string | null;
11719
+ };
11720
+ proposed: {
11721
+ sourceAccountingEndAt: string;
11722
+ targetAccountingStartAt: string;
11723
+ };
11724
+ impactedReservations: {
11725
+ sourceCount: number;
11726
+ targetCount: number;
11727
+ refreshCount: number;
11728
+ lockedCount: number;
11729
+ };
11730
+ };
11731
+ };
11732
+ };
11733
+ /** @description Bad request */
11734
+ 400: {
11735
+ headers: {
11736
+ [name: string]: unknown;
11737
+ };
11738
+ content: {
11739
+ "application/json": {
11740
+ code: string;
11741
+ message: string;
11742
+ issues?: {
11743
+ message: string;
11744
+ }[];
11745
+ context?: unknown;
11746
+ };
11747
+ };
11748
+ };
11749
+ /** @description Unauthorized */
11750
+ 401: {
11751
+ headers: {
11752
+ [name: string]: unknown;
11753
+ };
11754
+ content: {
11755
+ "application/json": {
11756
+ code: string;
11757
+ message: string;
11758
+ issues?: {
11759
+ message: string;
11760
+ }[];
11761
+ context?: unknown;
11762
+ };
11763
+ };
11764
+ };
11765
+ /** @description Forbidden */
11766
+ 403: {
11767
+ headers: {
11768
+ [name: string]: unknown;
11769
+ };
11770
+ content: {
11771
+ "application/json": {
11772
+ code: string;
11773
+ message: string;
11774
+ issues?: {
11775
+ message: string;
11776
+ }[];
11777
+ context?: unknown;
11778
+ };
11779
+ };
11780
+ };
11781
+ /** @description Not found */
11782
+ 404: {
11783
+ headers: {
11784
+ [name: string]: unknown;
11785
+ };
11786
+ content: {
11787
+ "application/json": {
11788
+ code: string;
11789
+ message: string;
11790
+ issues?: {
11791
+ message: string;
11792
+ }[];
11793
+ context?: unknown;
11794
+ };
11795
+ };
11796
+ };
11797
+ /** @description Internal server error */
11798
+ 500: {
11799
+ headers: {
11800
+ [name: string]: unknown;
11801
+ };
11802
+ content: {
11803
+ "application/json": {
11804
+ code: string;
11805
+ message: string;
11806
+ issues?: {
11807
+ message: string;
11808
+ }[];
11809
+ context?: unknown;
11810
+ };
11811
+ };
11812
+ };
11813
+ };
11814
+ };
11815
+ getConnection: {
11816
+ parameters: {
11817
+ query?: never;
11818
+ header?: never;
11819
+ path: {
11820
+ id: string;
11821
+ };
11822
+ cookie?: never;
11823
+ };
11824
+ requestBody?: never;
11825
+ responses: {
11826
+ /** @description Successful response */
11827
+ 200: {
11828
+ headers: {
11829
+ [name: string]: unknown;
11830
+ };
11831
+ content: {
11832
+ "application/json": {
11833
+ /** Format: uuid */
11834
+ id: string;
11835
+ name: string;
11836
+ /** @enum {string} */
11837
+ status: "active" | "inactive";
11838
+ accountingStartAt?: string | null;
11839
+ accountingEndAt?: string | null;
11840
+ uniqueRef?: string | null;
11841
+ app: {
11842
+ id: string;
11843
+ /** @enum {string} */
11844
+ type: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
11845
+ name: string;
11846
+ icon?: string | null;
11847
+ importers?: string[] | null;
11848
+ extractors?: string[] | null;
11849
+ };
11850
+ /**
11851
+ * Format: date-time
11852
+ * @description Timestamp string with date, time, milliseconds, and timezone.
11853
+ * @example 2024-01-15T12:30:00.000+00:00
11854
+ */
11855
+ createdAt: string;
11856
+ /**
11857
+ * Format: date-time
11858
+ * @description Timestamp string with date, time, milliseconds, and timezone.
11859
+ * @example 2024-01-15T12:30:00.000+00:00
11860
+ */
11861
+ updatedAt: string;
11862
+ isErrorState: boolean;
11863
+ currentSync?: {
11864
+ /** @enum {string} */
11865
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
11866
+ /**
11867
+ * Format: date-time
11868
+ * @description Timestamp string with date, time, milliseconds, and timezone.
11869
+ * @example 2024-01-15T12:30:00.000+00:00
11870
+ */
11871
+ createdAt: string;
11872
+ /**
11873
+ * Format: date-time
11874
+ * @description Timestamp string with date, time, milliseconds, and timezone.
11875
+ * @example 2024-01-15T12:30:00.000+00:00
11876
+ */
11877
+ updatedAt: string;
11878
+ message?: string | null;
11879
+ } | null;
11880
+ enabledFlows: {
11881
+ /** Format: uuid */
11882
+ id: string;
11883
+ title: string;
11884
+ isPublic: boolean;
11885
+ type: ("push" | "pull") | null;
11886
+ }[];
11887
+ };
11888
+ };
11889
+ };
11890
+ /** @description Bad request */
11891
+ 400: {
11892
+ headers: {
11893
+ [name: string]: unknown;
11894
+ };
11895
+ content: {
11896
+ "application/json": {
11897
+ code: string;
11898
+ message: string;
11899
+ issues?: {
11900
+ message: string;
11901
+ }[];
11902
+ context?: unknown;
11903
+ };
11904
+ };
11905
+ };
11906
+ /** @description Unauthorized */
11907
+ 401: {
11908
+ headers: {
11909
+ [name: string]: unknown;
11910
+ };
11911
+ content: {
11912
+ "application/json": {
11913
+ code: string;
11914
+ message: string;
11915
+ issues?: {
11916
+ message: string;
11917
+ }[];
11918
+ context?: unknown;
11919
+ };
11920
+ };
11921
+ };
11922
+ /** @description Forbidden */
11923
+ 403: {
11924
+ headers: {
11925
+ [name: string]: unknown;
11926
+ };
11927
+ content: {
11928
+ "application/json": {
11929
+ code: string;
11930
+ message: string;
11931
+ issues?: {
11932
+ message: string;
11933
+ }[];
11934
+ context?: unknown;
11935
+ };
11936
+ };
11937
+ };
11938
+ /** @description Not found */
11939
+ 404: {
11940
+ headers: {
11941
+ [name: string]: unknown;
11942
+ };
11943
+ content: {
11944
+ "application/json": {
11945
+ code: string;
11946
+ message: string;
11947
+ issues?: {
11948
+ message: string;
11949
+ }[];
11950
+ context?: unknown;
11951
+ };
11952
+ };
11953
+ };
11954
+ /** @description Internal server error */
11955
+ 500: {
11956
+ headers: {
11957
+ [name: string]: unknown;
11958
+ };
11959
+ content: {
11960
+ "application/json": {
11961
+ code: string;
11962
+ message: string;
11963
+ issues?: {
11964
+ message: string;
11965
+ }[];
11966
+ context?: unknown;
11967
+ };
11968
+ };
11969
+ };
11970
+ };
11971
+ };
11972
+ deleteConnection: {
11973
+ parameters: {
11974
+ query?: {
11975
+ onLocked?: "error" | "archive";
11976
+ };
11977
+ header?: never;
11978
+ path: {
11979
+ id: string;
11980
+ };
11981
+ cookie?: never;
11982
+ };
11983
+ requestBody?: {
11984
+ content: {
11985
+ "application/json": Record<string, never>;
11986
+ };
11987
+ };
11988
+ responses: {
11989
+ /** @description Successful response */
11990
+ 200: {
11991
+ headers: {
11992
+ [name: string]: unknown;
11993
+ };
11994
+ content: {
11995
+ "application/json": {
11996
+ /** @enum {string} */
11997
+ status: "deleted" | "archived";
11998
+ };
11999
+ };
12000
+ };
12001
+ /** @description Bad request */
12002
+ 400: {
12003
+ headers: {
12004
+ [name: string]: unknown;
12005
+ };
12006
+ content: {
12007
+ "application/json": {
12008
+ code: string;
12009
+ message: string;
12010
+ issues?: {
12011
+ message: string;
12012
+ }[];
12013
+ context?: unknown;
12014
+ };
12015
+ };
12016
+ };
12017
+ /** @description Unauthorized */
12018
+ 401: {
12019
+ headers: {
12020
+ [name: string]: unknown;
12021
+ };
12022
+ content: {
12023
+ "application/json": {
12024
+ code: string;
12025
+ message: string;
12026
+ issues?: {
12027
+ message: string;
12028
+ }[];
12029
+ context?: unknown;
12030
+ };
12031
+ };
12032
+ };
12033
+ /** @description Forbidden */
12034
+ 403: {
12035
+ headers: {
12036
+ [name: string]: unknown;
12037
+ };
12038
+ content: {
12039
+ "application/json": {
12040
+ code: string;
12041
+ message: string;
12042
+ issues?: {
12043
+ message: string;
12044
+ }[];
12045
+ context?: unknown;
12046
+ };
12047
+ };
12048
+ };
12049
+ /** @description Not found */
12050
+ 404: {
12051
+ headers: {
12052
+ [name: string]: unknown;
12053
+ };
12054
+ content: {
12055
+ "application/json": {
12056
+ code: string;
12057
+ message: string;
12058
+ issues?: {
12059
+ message: string;
12060
+ }[];
12061
+ context?: unknown;
12062
+ };
12063
+ };
12064
+ };
12065
+ /** @description Internal server error */
12066
+ 500: {
12067
+ headers: {
12068
+ [name: string]: unknown;
12069
+ };
12070
+ content: {
12071
+ "application/json": {
12072
+ code: string;
12073
+ message: string;
12074
+ issues?: {
12075
+ message: string;
12076
+ }[];
12077
+ context?: unknown;
12078
+ };
12079
+ };
12080
+ };
12081
+ };
12082
+ };
12083
+ syncConnection: {
12084
+ parameters: {
12085
+ query?: never;
12086
+ header?: never;
12087
+ path: {
12088
+ id: string;
12089
+ };
12090
+ cookie?: never;
12091
+ };
12092
+ requestBody?: {
12093
+ content: {
12094
+ "application/json": {
12095
+ uniqueRef: string;
12096
+ /** @enum {string} */
12097
+ type: "reservation" | "listing" | "payout";
12098
+ };
12099
+ };
12100
+ };
12101
+ responses: {
12102
+ /** @description Successful response */
12103
+ 200: {
12104
+ headers: {
12105
+ [name: string]: unknown;
12106
+ };
12107
+ content: {
12108
+ "application/json": ({
12109
+ /** Format: uuid */
12110
+ id: string;
12111
+ /** @constant */
12112
+ status: "completed";
12113
+ message: string;
12114
+ /** @constant */
12115
+ type: "reservation";
12116
+ /** Format: uuid */
12117
+ reservationId: string;
12118
+ } | {
12119
+ /** Format: uuid */
12120
+ id: string;
12121
+ /** @constant */
12122
+ status: "completed";
12123
+ message: string;
12124
+ /** @constant */
12125
+ type: "listing";
12126
+ /** Format: uuid */
12127
+ listingId: string;
12128
+ } | {
12129
+ /** Format: uuid */
12130
+ id: string;
12131
+ /** @constant */
12132
+ status: "completed";
12133
+ message: string;
12134
+ /** @constant */
12135
+ type: "payout";
12136
+ /** Format: uuid */
12137
+ paymentId: string;
12138
+ }) | {
12139
+ /** Format: uuid */
12140
+ id: string;
12141
+ /** @constant */
12142
+ status: "failed";
12143
+ message: string;
12144
+ /** @enum {string} */
12145
+ type: "reservation" | "listing" | "payout";
11787
12146
  };
11788
12147
  };
11789
12148
  };
@@ -11955,6 +12314,9 @@ export interface operations {
11955
12314
  status: "active" | "inactive" | "unconfirmed";
11956
12315
  lastSeen?: string | null;
11957
12316
  lastInvitedAt?: string | null;
12317
+ notifications: {
12318
+ ownerStatementPublished: boolean;
12319
+ };
11958
12320
  } | null;
11959
12321
  }[];
11960
12322
  pagination: {
@@ -12156,6 +12518,9 @@ export interface operations {
12156
12518
  status: "active" | "inactive" | "unconfirmed";
12157
12519
  lastSeen?: string | null;
12158
12520
  lastInvitedAt?: string | null;
12521
+ notifications: {
12522
+ ownerStatementPublished: boolean;
12523
+ };
12159
12524
  } | null;
12160
12525
  };
12161
12526
  };
@@ -12578,6 +12943,9 @@ export interface operations {
12578
12943
  status: "active" | "inactive" | "unconfirmed";
12579
12944
  lastSeen?: string | null;
12580
12945
  lastInvitedAt?: string | null;
12946
+ notifications: {
12947
+ ownerStatementPublished: boolean;
12948
+ };
12581
12949
  } | null;
12582
12950
  };
12583
12951
  };
@@ -12770,6 +13138,9 @@ export interface operations {
12770
13138
  status: "active" | "inactive" | "unconfirmed";
12771
13139
  lastSeen?: string | null;
12772
13140
  lastInvitedAt?: string | null;
13141
+ notifications: {
13142
+ ownerStatementPublished: boolean;
13143
+ };
12773
13144
  } | null;
12774
13145
  };
12775
13146
  };
@@ -19987,14 +20358,173 @@ export interface operations {
19987
20358
  };
19988
20359
  };
19989
20360
  };
19990
- getMe: {
20361
+ getMe: {
20362
+ parameters: {
20363
+ query?: never;
20364
+ header?: never;
20365
+ path?: never;
20366
+ cookie?: never;
20367
+ };
20368
+ requestBody?: never;
20369
+ responses: {
20370
+ /** @description Successful response */
20371
+ 200: {
20372
+ headers: {
20373
+ [name: string]: unknown;
20374
+ };
20375
+ content: {
20376
+ "application/json": {
20377
+ /** Format: uuid */
20378
+ id: string;
20379
+ /** @enum {string} */
20380
+ type: "admin" | "user" | "owner";
20381
+ firstName?: string;
20382
+ lastName?: string;
20383
+ email: string;
20384
+ secondaryEmails: string[];
20385
+ phone?: string;
20386
+ /** Format: uuid */
20387
+ partnerId?: string;
20388
+ /**
20389
+ * Format: date-time
20390
+ * @description Timestamp string with date, time, milliseconds, and timezone.
20391
+ * @example 2024-01-15T12:30:00.000+00:00
20392
+ */
20393
+ createdAt: string;
20394
+ ownerAccess: {
20395
+ /** Format: uuid */
20396
+ contactId?: string;
20397
+ /** Format: uuid */
20398
+ ownerId?: string;
20399
+ /** Format: uuid */
20400
+ teamId: string;
20401
+ /** @enum {string} */
20402
+ role: "admin" | "viewer";
20403
+ }[];
20404
+ teamAccess: {
20405
+ /** Format: uuid */
20406
+ teamId: string;
20407
+ partnerId: string | null;
20408
+ /** @enum {string} */
20409
+ role: "admin" | "user" | "owner";
20410
+ /** @enum {string} */
20411
+ type: "propertyManager" | "partner";
20412
+ slug: string;
20413
+ notifications: {
20414
+ ownerStatementInReview: boolean;
20415
+ ownerStatementPublished: boolean;
20416
+ ownerInvited: boolean;
20417
+ memberInvited: boolean;
20418
+ };
20419
+ }[];
20420
+ enabledFeatures: {
20421
+ /** Format: uuid */
20422
+ featureId: string;
20423
+ /** @enum {string} */
20424
+ status: "all" | "disabled" | "partially";
20425
+ }[];
20426
+ };
20427
+ };
20428
+ };
20429
+ /** @description Bad request */
20430
+ 400: {
20431
+ headers: {
20432
+ [name: string]: unknown;
20433
+ };
20434
+ content: {
20435
+ "application/json": {
20436
+ code: string;
20437
+ message: string;
20438
+ issues?: {
20439
+ message: string;
20440
+ }[];
20441
+ context?: unknown;
20442
+ };
20443
+ };
20444
+ };
20445
+ /** @description Unauthorized */
20446
+ 401: {
20447
+ headers: {
20448
+ [name: string]: unknown;
20449
+ };
20450
+ content: {
20451
+ "application/json": {
20452
+ code: string;
20453
+ message: string;
20454
+ issues?: {
20455
+ message: string;
20456
+ }[];
20457
+ context?: unknown;
20458
+ };
20459
+ };
20460
+ };
20461
+ /** @description Forbidden */
20462
+ 403: {
20463
+ headers: {
20464
+ [name: string]: unknown;
20465
+ };
20466
+ content: {
20467
+ "application/json": {
20468
+ code: string;
20469
+ message: string;
20470
+ issues?: {
20471
+ message: string;
20472
+ }[];
20473
+ context?: unknown;
20474
+ };
20475
+ };
20476
+ };
20477
+ /** @description Not found */
20478
+ 404: {
20479
+ headers: {
20480
+ [name: string]: unknown;
20481
+ };
20482
+ content: {
20483
+ "application/json": {
20484
+ code: string;
20485
+ message: string;
20486
+ issues?: {
20487
+ message: string;
20488
+ }[];
20489
+ context?: unknown;
20490
+ };
20491
+ };
20492
+ };
20493
+ /** @description Internal server error */
20494
+ 500: {
20495
+ headers: {
20496
+ [name: string]: unknown;
20497
+ };
20498
+ content: {
20499
+ "application/json": {
20500
+ code: string;
20501
+ message: string;
20502
+ issues?: {
20503
+ message: string;
20504
+ }[];
20505
+ context?: unknown;
20506
+ };
20507
+ };
20508
+ };
20509
+ };
20510
+ };
20511
+ updateMeNotifications: {
19991
20512
  parameters: {
19992
20513
  query?: never;
19993
20514
  header?: never;
19994
20515
  path?: never;
19995
20516
  cookie?: never;
19996
20517
  };
19997
- requestBody?: never;
20518
+ requestBody?: {
20519
+ content: {
20520
+ "application/json": {
20521
+ ownerStatementInReview?: boolean;
20522
+ ownerStatementPublished?: boolean;
20523
+ ownerInvited?: boolean;
20524
+ memberInvited?: boolean;
20525
+ };
20526
+ };
20527
+ };
19998
20528
  responses: {
19999
20529
  /** @description Successful response */
20000
20530
  200: {
@@ -20003,48 +20533,10 @@ export interface operations {
20003
20533
  };
20004
20534
  content: {
20005
20535
  "application/json": {
20006
- /** Format: uuid */
20007
- id: string;
20008
- /** @enum {string} */
20009
- type: "admin" | "user" | "owner";
20010
- firstName?: string;
20011
- lastName?: string;
20012
- email: string;
20013
- secondaryEmails: string[];
20014
- phone?: string;
20015
- /** Format: uuid */
20016
- partnerId?: string;
20017
- /**
20018
- * Format: date-time
20019
- * @description Timestamp string with date, time, milliseconds, and timezone.
20020
- * @example 2024-01-15T12:30:00.000+00:00
20021
- */
20022
- createdAt: string;
20023
- ownerAccess: {
20024
- /** Format: uuid */
20025
- contactId?: string;
20026
- /** Format: uuid */
20027
- ownerId?: string;
20028
- /** Format: uuid */
20029
- teamId: string;
20030
- /** @enum {string} */
20031
- role: "admin" | "viewer";
20032
- }[];
20033
- teamAccess: {
20034
- /** Format: uuid */
20035
- teamId: string;
20036
- partnerId: string | null;
20037
- /** @enum {string} */
20038
- role: "admin" | "user" | "owner";
20039
- /** @enum {string} */
20040
- type: "propertyManager" | "partner";
20041
- }[];
20042
- enabledFeatures: {
20043
- /** Format: uuid */
20044
- featureId: string;
20045
- /** @enum {string} */
20046
- status: "all" | "disabled" | "partially";
20047
- }[];
20536
+ ownerStatementInReview: boolean;
20537
+ ownerStatementPublished: boolean;
20538
+ ownerInvited: boolean;
20539
+ memberInvited: boolean;
20048
20540
  };
20049
20541
  };
20050
20542
  };
@@ -22980,6 +23472,7 @@ export interface operations {
22980
23472
  getRates: {
22981
23473
  parameters: {
22982
23474
  query?: {
23475
+ search?: string;
22983
23476
  type?: "markup" | "tax";
22984
23477
  status?: "active" | "inactive";
22985
23478
  limit?: number;
@@ -28692,6 +29185,7 @@ export interface operations {
28692
29185
  listingIds?: string;
28693
29186
  currency?: string;
28694
29187
  viewAs?: "owner" | "manager";
29188
+ search?: string;
28695
29189
  };
28696
29190
  header?: never;
28697
29191
  path?: never;
@@ -33788,6 +34282,17 @@ export interface operations {
33788
34282
  openingBalanceType?: "taxPayable" | "advancedDeposit" | "listingOpeningBalance" | "openingTrialBalance";
33789
34283
  };
33790
34284
  } | null;
34285
+ issues?: {
34286
+ /** @constant */
34287
+ code: "endedOwnershipNonZeroBalance";
34288
+ /** @constant */
34289
+ severity: "warning";
34290
+ message: string;
34291
+ context: {
34292
+ endAt: string | null;
34293
+ setListingInactive: boolean;
34294
+ };
34295
+ }[];
33791
34296
  }[];
33792
34297
  } | {
33793
34298
  name: string;
@@ -48185,6 +48690,9 @@ export interface operations {
48185
48690
  parameters: {
48186
48691
  query?: {
48187
48692
  status?: "active" | "inactive" | "deleted" | "onboarding";
48693
+ search?: string;
48694
+ partnerId?: string;
48695
+ type?: "partner" | "propertyManager";
48188
48696
  /** @description You can use elipisis: YYYY-MM-DD...YYYY-MM-DD */
48189
48697
  date?: string;
48190
48698
  limit?: number;
@@ -48212,6 +48720,7 @@ export interface operations {
48212
48720
  migratedFromTenantId?: string | null;
48213
48721
  historicalStatementsImportedAt?: string | null;
48214
48722
  name: string;
48723
+ slug: string;
48215
48724
  statementAddress?: {
48216
48725
  full?: string | null;
48217
48726
  line1?: string | null;
@@ -48446,6 +48955,7 @@ export interface operations {
48446
48955
  longTermStayNights?: number | null;
48447
48956
  defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
48448
48957
  name: string;
48958
+ slug?: string;
48449
48959
  statementAddress?: {
48450
48960
  full?: string | null;
48451
48961
  line1?: string | null;
@@ -48519,6 +49029,7 @@ export interface operations {
48519
49029
  migratedFromTenantId?: string | null;
48520
49030
  historicalStatementsImportedAt?: string | null;
48521
49031
  name: string;
49032
+ slug: string;
48522
49033
  statementAddress?: {
48523
49034
  full?: string | null;
48524
49035
  line1?: string | null;
@@ -49155,6 +49666,7 @@ export interface operations {
49155
49666
  migratedFromTenantId?: string | null;
49156
49667
  historicalStatementsImportedAt?: string | null;
49157
49668
  name: string;
49669
+ slug: string;
49158
49670
  statementAddress?: {
49159
49671
  full?: string | null;
49160
49672
  line1?: string | null;
@@ -49410,6 +49922,7 @@ export interface operations {
49410
49922
  migratedFromTenantId?: string | null;
49411
49923
  historicalStatementsImportedAt?: string | null;
49412
49924
  name: string;
49925
+ slug: string;
49413
49926
  statementAddress?: {
49414
49927
  full?: string | null;
49415
49928
  line1?: string | null;
@@ -49658,6 +50171,7 @@ export interface operations {
49658
50171
  migratedFromTenantId?: string | null;
49659
50172
  historicalStatementsImportedAt?: string | null;
49660
50173
  name: string;
50174
+ slug: string;
49661
50175
  statementAddress?: {
49662
50176
  full?: string | null;
49663
50177
  line1?: string | null;
@@ -51374,6 +51888,243 @@ export interface operations {
51374
51888
  };
51375
51889
  };
51376
51890
  };
51891
+ getTeamsResolve: {
51892
+ parameters: {
51893
+ query: {
51894
+ slug: string;
51895
+ };
51896
+ header?: never;
51897
+ path?: never;
51898
+ cookie?: never;
51899
+ };
51900
+ requestBody?: never;
51901
+ responses: {
51902
+ /** @description Successful response */
51903
+ 200: {
51904
+ headers: {
51905
+ [name: string]: unknown;
51906
+ };
51907
+ content: {
51908
+ "application/json": {
51909
+ /** Format: uuid */
51910
+ id: string;
51911
+ defaultCurrency?: string | null;
51912
+ longTermStayNights?: number | null;
51913
+ defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
51914
+ migratedFromTenantId?: string | null;
51915
+ historicalStatementsImportedAt?: string | null;
51916
+ name: string;
51917
+ slug: string;
51918
+ statementAddress?: {
51919
+ full?: string | null;
51920
+ line1?: string | null;
51921
+ line2?: string | null;
51922
+ city?: string | null;
51923
+ /** @description Deprecated, use stateCode instead */
51924
+ state?: string | null;
51925
+ postalCode?: string | null;
51926
+ stateCode?: string | null;
51927
+ countryCode?: string | null;
51928
+ } | null;
51929
+ billingAddress?: {
51930
+ full?: string | null;
51931
+ line1?: string | null;
51932
+ line2?: string | null;
51933
+ city?: string | null;
51934
+ /** @description Deprecated, use stateCode instead */
51935
+ state?: string | null;
51936
+ postalCode?: string | null;
51937
+ stateCode?: string | null;
51938
+ countryCode?: string | null;
51939
+ } | null;
51940
+ phone?: string | null;
51941
+ email?: string | null;
51942
+ taxId?: string | null;
51943
+ partner?: {
51944
+ /** Format: uuid */
51945
+ id: string;
51946
+ name: string;
51947
+ } | null;
51948
+ billingPartner?: {
51949
+ /** Format: uuid */
51950
+ id: string;
51951
+ name: string;
51952
+ } | null;
51953
+ companyName?: string | null;
51954
+ /** @enum {string} */
51955
+ type: "partner" | "admin" | "propertyManager";
51956
+ /** @enum {string} */
51957
+ status: "active" | "inactive" | "deleted" | "onboarding";
51958
+ billingSubscriptionStatus?: string | null;
51959
+ billingPlan?: string | null;
51960
+ billingPaymentMethodType?: string | null;
51961
+ billingCustomerId?: string | null;
51962
+ colorPrimary?: string | null;
51963
+ createdAt?: string | null;
51964
+ updatedAt?: string | null;
51965
+ trialUntil?: string | null;
51966
+ cancelledAt?: string | null;
51967
+ isOnboarding?: boolean | null;
51968
+ issues: ({
51969
+ /** @constant */
51970
+ code: "unassignedAccount";
51971
+ /** @constant */
51972
+ severity: "error";
51973
+ context: {
51974
+ accountIds: string[];
51975
+ };
51976
+ } | {
51977
+ /** @constant */
51978
+ code: "brokenConnections";
51979
+ /** @constant */
51980
+ severity: "error";
51981
+ context: {
51982
+ connections: {
51983
+ /** Format: uuid */
51984
+ id: string;
51985
+ name: string;
51986
+ appId: string;
51987
+ }[];
51988
+ };
51989
+ } | {
51990
+ /** @constant */
51991
+ code: "outdatedConnections";
51992
+ /** @constant */
51993
+ severity: "error";
51994
+ context: {
51995
+ connections: {
51996
+ /** Format: uuid */
51997
+ id: string;
51998
+ name: string;
51999
+ appId: string;
52000
+ }[];
52001
+ };
52002
+ })[];
52003
+ isGeneralLedger?: boolean | null;
52004
+ isOpex?: boolean;
52005
+ booksClosedAt?: string | null;
52006
+ logo?: string | null;
52007
+ statementStartAt?: string | null;
52008
+ effectiveStatementStartAt?: string | null;
52009
+ settings: {
52010
+ showReservations: boolean;
52011
+ showCancelledReservations: boolean;
52012
+ showReservationTotal: boolean;
52013
+ showOwnerCalendarBlocking: boolean;
52014
+ showTaxStatements: boolean;
52015
+ showTwoFactorAuth: boolean;
52016
+ };
52017
+ ownerPortalShowDraftStatements?: boolean;
52018
+ members?: {
52019
+ userId: string;
52020
+ email?: string | null;
52021
+ role: string;
52022
+ name?: string | null;
52023
+ firstName?: string | null;
52024
+ }[] | null;
52025
+ extractableConnections?: {
52026
+ [key: string]: {
52027
+ connections: {
52028
+ /** Format: uuid */
52029
+ id: string;
52030
+ name: string;
52031
+ appId: string;
52032
+ urlExample?: string | null;
52033
+ allowConfirmationCode?: boolean | null;
52034
+ }[];
52035
+ };
52036
+ } | null;
52037
+ enabledFeatures?: {
52038
+ /** Format: uuid */
52039
+ featureId: string;
52040
+ /** @enum {string} */
52041
+ status: "all" | "disabled" | "partially";
52042
+ }[];
52043
+ };
52044
+ };
52045
+ };
52046
+ /** @description Bad request */
52047
+ 400: {
52048
+ headers: {
52049
+ [name: string]: unknown;
52050
+ };
52051
+ content: {
52052
+ "application/json": {
52053
+ code: string;
52054
+ message: string;
52055
+ issues?: {
52056
+ message: string;
52057
+ }[];
52058
+ context?: unknown;
52059
+ };
52060
+ };
52061
+ };
52062
+ /** @description Unauthorized */
52063
+ 401: {
52064
+ headers: {
52065
+ [name: string]: unknown;
52066
+ };
52067
+ content: {
52068
+ "application/json": {
52069
+ code: string;
52070
+ message: string;
52071
+ issues?: {
52072
+ message: string;
52073
+ }[];
52074
+ context?: unknown;
52075
+ };
52076
+ };
52077
+ };
52078
+ /** @description Forbidden */
52079
+ 403: {
52080
+ headers: {
52081
+ [name: string]: unknown;
52082
+ };
52083
+ content: {
52084
+ "application/json": {
52085
+ code: string;
52086
+ message: string;
52087
+ issues?: {
52088
+ message: string;
52089
+ }[];
52090
+ context?: unknown;
52091
+ };
52092
+ };
52093
+ };
52094
+ /** @description Not found */
52095
+ 404: {
52096
+ headers: {
52097
+ [name: string]: unknown;
52098
+ };
52099
+ content: {
52100
+ "application/json": {
52101
+ code: string;
52102
+ message: string;
52103
+ issues?: {
52104
+ message: string;
52105
+ }[];
52106
+ context?: unknown;
52107
+ };
52108
+ };
52109
+ };
52110
+ /** @description Internal server error */
52111
+ 500: {
52112
+ headers: {
52113
+ [name: string]: unknown;
52114
+ };
52115
+ content: {
52116
+ "application/json": {
52117
+ code: string;
52118
+ message: string;
52119
+ issues?: {
52120
+ message: string;
52121
+ }[];
52122
+ context?: unknown;
52123
+ };
52124
+ };
52125
+ };
52126
+ };
52127
+ };
51377
52128
  getTeamsById: {
51378
52129
  parameters: {
51379
52130
  query?: never;
@@ -51400,6 +52151,7 @@ export interface operations {
51400
52151
  migratedFromTenantId?: string | null;
51401
52152
  historicalStatementsImportedAt?: string | null;
51402
52153
  name: string;
52154
+ slug: string;
51403
52155
  statementAddress?: {
51404
52156
  full?: string | null;
51405
52157
  line1?: string | null;
@@ -51626,6 +52378,7 @@ export interface operations {
51626
52378
  longTermStayNights?: number | null;
51627
52379
  defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
51628
52380
  name?: string;
52381
+ slug?: string;
51629
52382
  statementAddress?: {
51630
52383
  full?: string | null;
51631
52384
  line1?: string | null;
@@ -51713,6 +52466,7 @@ export interface operations {
51713
52466
  migratedFromTenantId?: string | null;
51714
52467
  historicalStatementsImportedAt?: string | null;
51715
52468
  name: string;
52469
+ slug: string;
51716
52470
  statementAddress?: {
51717
52471
  full?: string | null;
51718
52472
  line1?: string | null;
@@ -52402,6 +53156,7 @@ export interface operations {
52402
53156
  migratedFromTenantId?: string | null;
52403
53157
  historicalStatementsImportedAt?: string | null;
52404
53158
  name: string;
53159
+ slug: string;
52405
53160
  statementAddress?: {
52406
53161
  full?: string | null;
52407
53162
  line1?: string | null;