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