@vrplatform/api 1.3.1-3874 → 1.3.1-3902

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.
@@ -624,6 +624,23 @@ export interface paths {
624
624
  patch?: never;
625
625
  trace?: never;
626
626
  };
627
+ "/connections/pms-cutover/listing-mappings": {
628
+ parameters: {
629
+ query?: never;
630
+ header?: never;
631
+ path?: never;
632
+ cookie?: never;
633
+ };
634
+ /** @description Retrieve PMS migration cutover target listing refs that need mapping, suggested source listings, and the source listing pool */
635
+ get: operations["getPmsConnectionCutoverListingMappings"];
636
+ put?: never;
637
+ post?: never;
638
+ delete?: never;
639
+ options?: never;
640
+ head?: never;
641
+ patch?: never;
642
+ trace?: never;
643
+ };
627
644
  "/connections/pms-cutover/preview": {
628
645
  parameters: {
629
646
  query?: never;
@@ -2730,6 +2747,23 @@ export interface paths {
2730
2747
  patch?: never;
2731
2748
  trace?: never;
2732
2749
  };
2750
+ "/statements/historic": {
2751
+ parameters: {
2752
+ query?: never;
2753
+ header?: never;
2754
+ path?: never;
2755
+ cookie?: never;
2756
+ };
2757
+ get?: never;
2758
+ put?: never;
2759
+ /** @description Import a historic owner statement with journal entries on the historical ledger; re-posting the same uniqueRef replaces the previous import */
2760
+ post: operations["postStatementsHistoric"];
2761
+ delete?: never;
2762
+ options?: never;
2763
+ head?: never;
2764
+ patch?: never;
2765
+ trace?: never;
2766
+ };
2733
2767
  "/statements/layouts": {
2734
2768
  parameters: {
2735
2769
  query?: never;
@@ -4917,8 +4951,8 @@ export interface operations {
4917
4951
  requestBody?: {
4918
4952
  content: {
4919
4953
  "application/json": {
4920
- startingBalanceDate?: string | null;
4921
- startingBalanceAmount?: number | null;
4954
+ startingBalanceDate: string;
4955
+ startingBalanceAmount: number;
4922
4956
  };
4923
4957
  };
4924
4958
  };
@@ -7542,6 +7576,7 @@ export interface operations {
7542
7576
  status: "active" | "inactive";
7543
7577
  uniqueRef?: string | null;
7544
7578
  appId: string;
7579
+ icon?: string | null;
7545
7580
  } | null;
7546
7581
  source?: {
7547
7582
  /** Format: uuid */
@@ -11547,6 +11582,11 @@ export interface operations {
11547
11582
  /** Format: uuid */
11548
11583
  targetConnectionId: string;
11549
11584
  cutoverAt: string;
11585
+ listingMappings?: {
11586
+ /** Format: uuid */
11587
+ targetListingConnectionId: string;
11588
+ sourceListingId: string | null;
11589
+ }[];
11550
11590
  };
11551
11591
  };
11552
11592
  };
@@ -11600,6 +11640,140 @@ export interface operations {
11600
11640
  /** @constant */
11601
11641
  applied: true;
11602
11642
  queuedReservationRefreshCount: number;
11643
+ duplicateListingCleanup: {
11644
+ deletedCount: number;
11645
+ blocked: {
11646
+ /** Format: uuid */
11647
+ listingId: string;
11648
+ reasons: string[];
11649
+ }[];
11650
+ };
11651
+ };
11652
+ };
11653
+ };
11654
+ /** @description Bad request */
11655
+ 400: {
11656
+ headers: {
11657
+ [name: string]: unknown;
11658
+ };
11659
+ content: {
11660
+ "application/json": {
11661
+ code: string;
11662
+ message: string;
11663
+ issues?: {
11664
+ message: string;
11665
+ }[];
11666
+ context?: unknown;
11667
+ };
11668
+ };
11669
+ };
11670
+ /** @description Unauthorized */
11671
+ 401: {
11672
+ headers: {
11673
+ [name: string]: unknown;
11674
+ };
11675
+ content: {
11676
+ "application/json": {
11677
+ code: string;
11678
+ message: string;
11679
+ issues?: {
11680
+ message: string;
11681
+ }[];
11682
+ context?: unknown;
11683
+ };
11684
+ };
11685
+ };
11686
+ /** @description Forbidden */
11687
+ 403: {
11688
+ headers: {
11689
+ [name: string]: unknown;
11690
+ };
11691
+ content: {
11692
+ "application/json": {
11693
+ code: string;
11694
+ message: string;
11695
+ issues?: {
11696
+ message: string;
11697
+ }[];
11698
+ context?: unknown;
11699
+ };
11700
+ };
11701
+ };
11702
+ /** @description Not found */
11703
+ 404: {
11704
+ headers: {
11705
+ [name: string]: unknown;
11706
+ };
11707
+ content: {
11708
+ "application/json": {
11709
+ code: string;
11710
+ message: string;
11711
+ issues?: {
11712
+ message: string;
11713
+ }[];
11714
+ context?: unknown;
11715
+ };
11716
+ };
11717
+ };
11718
+ /** @description Internal server error */
11719
+ 500: {
11720
+ headers: {
11721
+ [name: string]: unknown;
11722
+ };
11723
+ content: {
11724
+ "application/json": {
11725
+ code: string;
11726
+ message: string;
11727
+ issues?: {
11728
+ message: string;
11729
+ }[];
11730
+ context?: unknown;
11731
+ };
11732
+ };
11733
+ };
11734
+ };
11735
+ };
11736
+ getPmsConnectionCutoverListingMappings: {
11737
+ parameters: {
11738
+ query: {
11739
+ sourceConnectionId: string;
11740
+ targetConnectionId: string;
11741
+ };
11742
+ header?: never;
11743
+ path?: never;
11744
+ cookie?: never;
11745
+ };
11746
+ requestBody?: never;
11747
+ responses: {
11748
+ /** @description Successful response */
11749
+ 200: {
11750
+ headers: {
11751
+ [name: string]: unknown;
11752
+ };
11753
+ content: {
11754
+ "application/json": {
11755
+ sourceListings: {
11756
+ /** Format: uuid */
11757
+ id: string;
11758
+ name: string;
11759
+ address: string | null;
11760
+ }[];
11761
+ targetListings: {
11762
+ /** Format: uuid */
11763
+ targetListingConnectionId: string;
11764
+ uniqueRef: string | null;
11765
+ name: string;
11766
+ address: string | null;
11767
+ listingId: string | null;
11768
+ /** @enum {string} */
11769
+ status: "alreadyShared" | "matched" | "ambiguous" | "unmapped";
11770
+ suggestedListing: {
11771
+ /** Format: uuid */
11772
+ id: string;
11773
+ name: string;
11774
+ address: string | null;
11775
+ } | null;
11776
+ }[];
11603
11777
  };
11604
11778
  };
11605
11779
  };
@@ -11700,6 +11874,11 @@ export interface operations {
11700
11874
  /** Format: uuid */
11701
11875
  targetConnectionId: string;
11702
11876
  cutoverAt: string;
11877
+ listingMappings?: {
11878
+ /** Format: uuid */
11879
+ targetListingConnectionId: string;
11880
+ sourceListingId: string | null;
11881
+ }[];
11703
11882
  };
11704
11883
  };
11705
11884
  };
@@ -24251,7 +24430,7 @@ export interface operations {
24251
24430
  type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
24252
24431
  taxRateId?: string | null;
24253
24432
  taxBehavior?: ("excluded" | "included") | null;
24254
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
24433
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
24255
24434
  status?: ("active" | "inactive") | null;
24256
24435
  rateType?: ("flat" | "percentage") | null;
24257
24436
  creditAccountId?: string | null;
@@ -24977,7 +25156,7 @@ export interface operations {
24977
25156
  type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
24978
25157
  taxRateId?: string | null;
24979
25158
  taxBehavior?: ("excluded" | "included") | null;
24980
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
25159
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
24981
25160
  status?: ("active" | "inactive") | null;
24982
25161
  rateType?: ("flat" | "percentage") | null;
24983
25162
  creditAccountId?: string | null;
@@ -25424,7 +25603,7 @@ export interface operations {
25424
25603
  type?: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
25425
25604
  taxRateId?: string | null;
25426
25605
  taxBehavior?: ("excluded" | "included") | null;
25427
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
25606
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
25428
25607
  status?: ("active" | "inactive") | null;
25429
25608
  rateType?: ("flat" | "percentage") | null;
25430
25609
  creditAccountId?: string | null;
@@ -36747,7 +36926,7 @@ export interface operations {
36747
36926
  type: string;
36748
36927
  description?: string | null;
36749
36928
  accountId?: string | null;
36750
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
36929
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
36751
36930
  };
36752
36931
  };
36753
36932
  };
@@ -36991,11 +37170,11 @@ export interface operations {
36991
37170
  "application/json": {
36992
37171
  description?: string | null;
36993
37172
  accountId?: string | null;
36994
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
37173
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
36995
37174
  channelMappings?: {
36996
37175
  bookingChannel: string;
36997
37176
  accountId?: string | null;
36998
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
37177
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
36999
37178
  }[] | null;
37000
37179
  };
37001
37180
  };
@@ -43275,6 +43454,174 @@ export interface operations {
43275
43454
  };
43276
43455
  };
43277
43456
  };
43457
+ postStatementsHistoric: {
43458
+ parameters: {
43459
+ query?: never;
43460
+ header?: never;
43461
+ path?: never;
43462
+ cookie?: never;
43463
+ };
43464
+ requestBody?: {
43465
+ content: {
43466
+ "application/json": {
43467
+ /** @description Stable statement idempotency key; re-posting replaces */
43468
+ uniqueRef: string;
43469
+ /** Format: uuid */
43470
+ listingId: string;
43471
+ startAt: string;
43472
+ endAt: string;
43473
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
43474
+ currency: string;
43475
+ /**
43476
+ * @default published
43477
+ * @enum {string}
43478
+ */
43479
+ status?: "inReview" | "published";
43480
+ /** @description Value in cents (100 = 1€) */
43481
+ centBalanceStart?: number;
43482
+ /** @description Derived from balanceStart + net income + payouts when omitted */
43483
+ centBalanceEnd?: number;
43484
+ lines: {
43485
+ /** @description Stable per-line idempotency key within the team */
43486
+ uniqueRef: string;
43487
+ /**
43488
+ * @default line
43489
+ * @enum {string}
43490
+ */
43491
+ type?: "line" | "payout";
43492
+ /**
43493
+ * Format: uuid
43494
+ * @description Required for type=line; ignored for payouts
43495
+ */
43496
+ accountId?: string;
43497
+ /** @description Owner-facing amount: revenue positive, expenses negative; payout positive = paid to owner */
43498
+ centTotal: number;
43499
+ description?: string;
43500
+ /** @description Posting date; defaults to the day before endAt */
43501
+ date?: string;
43502
+ /** Format: uuid */
43503
+ reservationId?: string;
43504
+ /** Format: uuid */
43505
+ contactId?: string;
43506
+ }[];
43507
+ };
43508
+ };
43509
+ };
43510
+ responses: {
43511
+ /** @description Successful response */
43512
+ 200: {
43513
+ headers: {
43514
+ [name: string]: unknown;
43515
+ };
43516
+ content: {
43517
+ "application/json": {
43518
+ /** Format: uuid */
43519
+ id: string;
43520
+ uniqueRef: string;
43521
+ /** @enum {string} */
43522
+ status: "inReview" | "published";
43523
+ /** Format: uuid */
43524
+ listingId: string;
43525
+ /** Format: uuid */
43526
+ listingOwnershipPeriodId: string;
43527
+ startAt: string;
43528
+ endAt: string;
43529
+ currency: string;
43530
+ replaced: boolean;
43531
+ journalEntryCount: number;
43532
+ financials: {
43533
+ centBalanceStart: number;
43534
+ centBalanceEnd: number;
43535
+ centTotal: number;
43536
+ centExpenses: number;
43537
+ centNetRevenue: number;
43538
+ centTransfer: number;
43539
+ };
43540
+ };
43541
+ };
43542
+ };
43543
+ /** @description Bad request */
43544
+ 400: {
43545
+ headers: {
43546
+ [name: string]: unknown;
43547
+ };
43548
+ content: {
43549
+ "application/json": {
43550
+ code: string;
43551
+ message: string;
43552
+ issues?: {
43553
+ message: string;
43554
+ }[];
43555
+ context?: unknown;
43556
+ };
43557
+ };
43558
+ };
43559
+ /** @description Unauthorized */
43560
+ 401: {
43561
+ headers: {
43562
+ [name: string]: unknown;
43563
+ };
43564
+ content: {
43565
+ "application/json": {
43566
+ code: string;
43567
+ message: string;
43568
+ issues?: {
43569
+ message: string;
43570
+ }[];
43571
+ context?: unknown;
43572
+ };
43573
+ };
43574
+ };
43575
+ /** @description Forbidden */
43576
+ 403: {
43577
+ headers: {
43578
+ [name: string]: unknown;
43579
+ };
43580
+ content: {
43581
+ "application/json": {
43582
+ code: string;
43583
+ message: string;
43584
+ issues?: {
43585
+ message: string;
43586
+ }[];
43587
+ context?: unknown;
43588
+ };
43589
+ };
43590
+ };
43591
+ /** @description Not found */
43592
+ 404: {
43593
+ headers: {
43594
+ [name: string]: unknown;
43595
+ };
43596
+ content: {
43597
+ "application/json": {
43598
+ code: string;
43599
+ message: string;
43600
+ issues?: {
43601
+ message: string;
43602
+ }[];
43603
+ context?: unknown;
43604
+ };
43605
+ };
43606
+ };
43607
+ /** @description Internal server error */
43608
+ 500: {
43609
+ headers: {
43610
+ [name: string]: unknown;
43611
+ };
43612
+ content: {
43613
+ "application/json": {
43614
+ code: string;
43615
+ message: string;
43616
+ issues?: {
43617
+ message: string;
43618
+ }[];
43619
+ context?: unknown;
43620
+ };
43621
+ };
43622
+ };
43623
+ };
43624
+ };
43278
43625
  getStatementsLayouts: {
43279
43626
  parameters: {
43280
43627
  query?: {
@@ -49118,6 +49465,7 @@ export interface operations {
49118
49465
  } | null;
49119
49466
  phone?: string | null;
49120
49467
  email?: string | null;
49468
+ supportEmail?: string | null;
49121
49469
  taxId?: string | null;
49122
49470
  partner?: {
49123
49471
  /** Format: uuid */
@@ -49326,7 +49674,7 @@ export interface operations {
49326
49674
  "application/json": {
49327
49675
  defaultCurrency?: string | null;
49328
49676
  longTermStayNights?: number | null;
49329
- defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
49677
+ defaultRevenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
49330
49678
  name: string;
49331
49679
  slug?: string;
49332
49680
  statementAddress?: {
@@ -49383,6 +49731,7 @@ export interface operations {
49383
49731
  }[] | null;
49384
49732
  /** Format: email */
49385
49733
  email: string;
49734
+ supportEmail?: string | null;
49386
49735
  };
49387
49736
  };
49388
49737
  };
@@ -49427,6 +49776,7 @@ export interface operations {
49427
49776
  } | null;
49428
49777
  phone?: string | null;
49429
49778
  email?: string | null;
49779
+ supportEmail?: string | null;
49430
49780
  taxId?: string | null;
49431
49781
  partner?: {
49432
49782
  /** Format: uuid */
@@ -50064,6 +50414,7 @@ export interface operations {
50064
50414
  } | null;
50065
50415
  phone?: string | null;
50066
50416
  email?: string | null;
50417
+ supportEmail?: string | null;
50067
50418
  taxId?: string | null;
50068
50419
  partner?: {
50069
50420
  /** Format: uuid */
@@ -50320,6 +50671,7 @@ export interface operations {
50320
50671
  } | null;
50321
50672
  phone?: string | null;
50322
50673
  email?: string | null;
50674
+ supportEmail?: string | null;
50323
50675
  taxId?: string | null;
50324
50676
  partner?: {
50325
50677
  /** Format: uuid */
@@ -50569,6 +50921,7 @@ export interface operations {
50569
50921
  } | null;
50570
50922
  phone?: string | null;
50571
50923
  email?: string | null;
50924
+ supportEmail?: string | null;
50572
50925
  taxId?: string | null;
50573
50926
  partner?: {
50574
50927
  /** Format: uuid */
@@ -52312,6 +52665,7 @@ export interface operations {
52312
52665
  } | null;
52313
52666
  phone?: string | null;
52314
52667
  email?: string | null;
52668
+ supportEmail?: string | null;
52315
52669
  taxId?: string | null;
52316
52670
  partner?: {
52317
52671
  /** Format: uuid */
@@ -52549,6 +52903,7 @@ export interface operations {
52549
52903
  } | null;
52550
52904
  phone?: string | null;
52551
52905
  email?: string | null;
52906
+ supportEmail?: string | null;
52552
52907
  taxId?: string | null;
52553
52908
  partner?: {
52554
52909
  /** Format: uuid */
@@ -52749,7 +53104,7 @@ export interface operations {
52749
53104
  "application/json": {
52750
53105
  defaultCurrency?: string | null;
52751
53106
  longTermStayNights?: number | null;
52752
- defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
53107
+ defaultRevenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
52753
53108
  name?: string;
52754
53109
  slug?: string;
52755
53110
  statementAddress?: {
@@ -52794,6 +53149,7 @@ export interface operations {
52794
53149
  billingPartnerId?: string | null;
52795
53150
  /** Format: email */
52796
53151
  email?: string;
53152
+ supportEmail?: string | null;
52797
53153
  migratedFromTenantId?: string | null;
52798
53154
  settings?: {
52799
53155
  showReservations?: boolean;
@@ -52864,6 +53220,7 @@ export interface operations {
52864
53220
  } | null;
52865
53221
  phone?: string | null;
52866
53222
  email?: string | null;
53223
+ supportEmail?: string | null;
52867
53224
  taxId?: string | null;
52868
53225
  partner?: {
52869
53226
  /** Format: uuid */
@@ -53554,6 +53911,7 @@ export interface operations {
53554
53911
  } | null;
53555
53912
  phone?: string | null;
53556
53913
  email?: string | null;
53914
+ supportEmail?: string | null;
53557
53915
  taxId?: string | null;
53558
53916
  partner?: {
53559
53917
  /** Format: uuid */