@vrplatform/api 1.3.1-3874 → 1.3.1-3893

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-3893",
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
  };
@@ -11686,6 +11726,132 @@ export interface operations {
11686
11726
  };
11687
11727
  };
11688
11728
  };
11729
+ getPmsConnectionCutoverListingMappings: {
11730
+ parameters: {
11731
+ query: {
11732
+ sourceConnectionId: string;
11733
+ targetConnectionId: string;
11734
+ };
11735
+ header?: never;
11736
+ path?: never;
11737
+ cookie?: never;
11738
+ };
11739
+ requestBody?: never;
11740
+ responses: {
11741
+ /** @description Successful response */
11742
+ 200: {
11743
+ headers: {
11744
+ [name: string]: unknown;
11745
+ };
11746
+ content: {
11747
+ "application/json": {
11748
+ sourceListings: {
11749
+ /** Format: uuid */
11750
+ id: string;
11751
+ name: string;
11752
+ address: string | null;
11753
+ }[];
11754
+ targetListings: {
11755
+ /** Format: uuid */
11756
+ targetListingConnectionId: string;
11757
+ uniqueRef: string | null;
11758
+ name: string;
11759
+ address: string | null;
11760
+ listingId: string | null;
11761
+ /** @enum {string} */
11762
+ status: "alreadyShared" | "matched" | "ambiguous" | "unmapped";
11763
+ suggestedListing: {
11764
+ /** Format: uuid */
11765
+ id: string;
11766
+ name: string;
11767
+ address: string | null;
11768
+ } | null;
11769
+ }[];
11770
+ };
11771
+ };
11772
+ };
11773
+ /** @description Bad request */
11774
+ 400: {
11775
+ headers: {
11776
+ [name: string]: unknown;
11777
+ };
11778
+ content: {
11779
+ "application/json": {
11780
+ code: string;
11781
+ message: string;
11782
+ issues?: {
11783
+ message: string;
11784
+ }[];
11785
+ context?: unknown;
11786
+ };
11787
+ };
11788
+ };
11789
+ /** @description Unauthorized */
11790
+ 401: {
11791
+ headers: {
11792
+ [name: string]: unknown;
11793
+ };
11794
+ content: {
11795
+ "application/json": {
11796
+ code: string;
11797
+ message: string;
11798
+ issues?: {
11799
+ message: string;
11800
+ }[];
11801
+ context?: unknown;
11802
+ };
11803
+ };
11804
+ };
11805
+ /** @description Forbidden */
11806
+ 403: {
11807
+ headers: {
11808
+ [name: string]: unknown;
11809
+ };
11810
+ content: {
11811
+ "application/json": {
11812
+ code: string;
11813
+ message: string;
11814
+ issues?: {
11815
+ message: string;
11816
+ }[];
11817
+ context?: unknown;
11818
+ };
11819
+ };
11820
+ };
11821
+ /** @description Not found */
11822
+ 404: {
11823
+ headers: {
11824
+ [name: string]: unknown;
11825
+ };
11826
+ content: {
11827
+ "application/json": {
11828
+ code: string;
11829
+ message: string;
11830
+ issues?: {
11831
+ message: string;
11832
+ }[];
11833
+ context?: unknown;
11834
+ };
11835
+ };
11836
+ };
11837
+ /** @description Internal server error */
11838
+ 500: {
11839
+ headers: {
11840
+ [name: string]: unknown;
11841
+ };
11842
+ content: {
11843
+ "application/json": {
11844
+ code: string;
11845
+ message: string;
11846
+ issues?: {
11847
+ message: string;
11848
+ }[];
11849
+ context?: unknown;
11850
+ };
11851
+ };
11852
+ };
11853
+ };
11854
+ };
11689
11855
  previewPmsConnectionCutover: {
11690
11856
  parameters: {
11691
11857
  query?: never;
@@ -11701,6 +11867,11 @@ export interface operations {
11701
11867
  /** Format: uuid */
11702
11868
  targetConnectionId: string;
11703
11869
  cutoverAt: string;
11870
+ listingMappings?: {
11871
+ /** Format: uuid */
11872
+ targetListingConnectionId: string;
11873
+ sourceListingId: string | null;
11874
+ }[];
11704
11875
  };
11705
11876
  };
11706
11877
  };
@@ -24252,7 +24423,7 @@ export interface operations {
24252
24423
  type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
24253
24424
  taxRateId?: string | null;
24254
24425
  taxBehavior?: ("excluded" | "included") | null;
24255
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
24426
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
24256
24427
  status?: ("active" | "inactive") | null;
24257
24428
  rateType?: ("flat" | "percentage") | null;
24258
24429
  creditAccountId?: string | null;
@@ -24978,7 +25149,7 @@ export interface operations {
24978
25149
  type: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
24979
25150
  taxRateId?: string | null;
24980
25151
  taxBehavior?: ("excluded" | "included") | null;
24981
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
25152
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
24982
25153
  status?: ("active" | "inactive") | null;
24983
25154
  rateType?: ("flat" | "percentage") | null;
24984
25155
  creditAccountId?: string | null;
@@ -25425,7 +25596,7 @@ export interface operations {
25425
25596
  type?: "managementFee" | "additionalFee" | "bookingChannelFee" | "cleaningFee" | "merchantFee";
25426
25597
  taxRateId?: string | null;
25427
25598
  taxBehavior?: ("excluded" | "included") | null;
25428
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
25599
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
25429
25600
  status?: ("active" | "inactive") | null;
25430
25601
  rateType?: ("flat" | "percentage") | null;
25431
25602
  creditAccountId?: string | null;
@@ -36748,7 +36919,7 @@ export interface operations {
36748
36919
  type: string;
36749
36920
  description?: string | null;
36750
36921
  accountId?: string | null;
36751
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
36922
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
36752
36923
  };
36753
36924
  };
36754
36925
  };
@@ -36992,11 +37163,11 @@ export interface operations {
36992
37163
  "application/json": {
36993
37164
  description?: string | null;
36994
37165
  accountId?: string | null;
36995
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
37166
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
36996
37167
  channelMappings?: {
36997
37168
  bookingChannel: string;
36998
37169
  accountId?: string | null;
36999
- revenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
37170
+ revenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
37000
37171
  }[] | null;
37001
37172
  };
37002
37173
  };
@@ -43276,6 +43447,174 @@ export interface operations {
43276
43447
  };
43277
43448
  };
43278
43449
  };
43450
+ postStatementsHistoric: {
43451
+ parameters: {
43452
+ query?: never;
43453
+ header?: never;
43454
+ path?: never;
43455
+ cookie?: never;
43456
+ };
43457
+ requestBody?: {
43458
+ content: {
43459
+ "application/json": {
43460
+ /** @description Stable statement idempotency key; re-posting replaces */
43461
+ uniqueRef: string;
43462
+ /** Format: uuid */
43463
+ listingId: string;
43464
+ startAt: string;
43465
+ endAt: string;
43466
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
43467
+ currency: string;
43468
+ /**
43469
+ * @default published
43470
+ * @enum {string}
43471
+ */
43472
+ status?: "inReview" | "published";
43473
+ /** @description Value in cents (100 = 1€) */
43474
+ centBalanceStart?: number;
43475
+ /** @description Derived from balanceStart + net income + payouts when omitted */
43476
+ centBalanceEnd?: number;
43477
+ lines: {
43478
+ /** @description Stable per-line idempotency key within the team */
43479
+ uniqueRef: string;
43480
+ /**
43481
+ * @default line
43482
+ * @enum {string}
43483
+ */
43484
+ type?: "line" | "payout";
43485
+ /**
43486
+ * Format: uuid
43487
+ * @description Required for type=line; ignored for payouts
43488
+ */
43489
+ accountId?: string;
43490
+ /** @description Owner-facing amount: revenue positive, expenses negative; payout positive = paid to owner */
43491
+ centTotal: number;
43492
+ description?: string;
43493
+ /** @description Posting date; defaults to the day before endAt */
43494
+ date?: string;
43495
+ /** Format: uuid */
43496
+ reservationId?: string;
43497
+ /** Format: uuid */
43498
+ contactId?: string;
43499
+ }[];
43500
+ };
43501
+ };
43502
+ };
43503
+ responses: {
43504
+ /** @description Successful response */
43505
+ 200: {
43506
+ headers: {
43507
+ [name: string]: unknown;
43508
+ };
43509
+ content: {
43510
+ "application/json": {
43511
+ /** Format: uuid */
43512
+ id: string;
43513
+ uniqueRef: string;
43514
+ /** @enum {string} */
43515
+ status: "inReview" | "published";
43516
+ /** Format: uuid */
43517
+ listingId: string;
43518
+ /** Format: uuid */
43519
+ listingOwnershipPeriodId: string;
43520
+ startAt: string;
43521
+ endAt: string;
43522
+ currency: string;
43523
+ replaced: boolean;
43524
+ journalEntryCount: number;
43525
+ financials: {
43526
+ centBalanceStart: number;
43527
+ centBalanceEnd: number;
43528
+ centTotal: number;
43529
+ centExpenses: number;
43530
+ centNetRevenue: number;
43531
+ centTransfer: number;
43532
+ };
43533
+ };
43534
+ };
43535
+ };
43536
+ /** @description Bad request */
43537
+ 400: {
43538
+ headers: {
43539
+ [name: string]: unknown;
43540
+ };
43541
+ content: {
43542
+ "application/json": {
43543
+ code: string;
43544
+ message: string;
43545
+ issues?: {
43546
+ message: string;
43547
+ }[];
43548
+ context?: unknown;
43549
+ };
43550
+ };
43551
+ };
43552
+ /** @description Unauthorized */
43553
+ 401: {
43554
+ headers: {
43555
+ [name: string]: unknown;
43556
+ };
43557
+ content: {
43558
+ "application/json": {
43559
+ code: string;
43560
+ message: string;
43561
+ issues?: {
43562
+ message: string;
43563
+ }[];
43564
+ context?: unknown;
43565
+ };
43566
+ };
43567
+ };
43568
+ /** @description Forbidden */
43569
+ 403: {
43570
+ headers: {
43571
+ [name: string]: unknown;
43572
+ };
43573
+ content: {
43574
+ "application/json": {
43575
+ code: string;
43576
+ message: string;
43577
+ issues?: {
43578
+ message: string;
43579
+ }[];
43580
+ context?: unknown;
43581
+ };
43582
+ };
43583
+ };
43584
+ /** @description Not found */
43585
+ 404: {
43586
+ headers: {
43587
+ [name: string]: unknown;
43588
+ };
43589
+ content: {
43590
+ "application/json": {
43591
+ code: string;
43592
+ message: string;
43593
+ issues?: {
43594
+ message: string;
43595
+ }[];
43596
+ context?: unknown;
43597
+ };
43598
+ };
43599
+ };
43600
+ /** @description Internal server error */
43601
+ 500: {
43602
+ headers: {
43603
+ [name: string]: unknown;
43604
+ };
43605
+ content: {
43606
+ "application/json": {
43607
+ code: string;
43608
+ message: string;
43609
+ issues?: {
43610
+ message: string;
43611
+ }[];
43612
+ context?: unknown;
43613
+ };
43614
+ };
43615
+ };
43616
+ };
43617
+ };
43279
43618
  getStatementsLayouts: {
43280
43619
  parameters: {
43281
43620
  query?: {
@@ -49119,6 +49458,7 @@ export interface operations {
49119
49458
  } | null;
49120
49459
  phone?: string | null;
49121
49460
  email?: string | null;
49461
+ supportEmail?: string | null;
49122
49462
  taxId?: string | null;
49123
49463
  partner?: {
49124
49464
  /** Format: uuid */
@@ -49327,7 +49667,7 @@ export interface operations {
49327
49667
  "application/json": {
49328
49668
  defaultCurrency?: string | null;
49329
49669
  longTermStayNights?: number | null;
49330
- defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
49670
+ defaultRevenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
49331
49671
  name: string;
49332
49672
  slug?: string;
49333
49673
  statementAddress?: {
@@ -49384,6 +49724,7 @@ export interface operations {
49384
49724
  }[] | null;
49385
49725
  /** Format: email */
49386
49726
  email: string;
49727
+ supportEmail?: string | null;
49387
49728
  };
49388
49729
  };
49389
49730
  };
@@ -49428,6 +49769,7 @@ export interface operations {
49428
49769
  } | null;
49429
49770
  phone?: string | null;
49430
49771
  email?: string | null;
49772
+ supportEmail?: string | null;
49431
49773
  taxId?: string | null;
49432
49774
  partner?: {
49433
49775
  /** Format: uuid */
@@ -50065,6 +50407,7 @@ export interface operations {
50065
50407
  } | null;
50066
50408
  phone?: string | null;
50067
50409
  email?: string | null;
50410
+ supportEmail?: string | null;
50068
50411
  taxId?: string | null;
50069
50412
  partner?: {
50070
50413
  /** Format: uuid */
@@ -50321,6 +50664,7 @@ export interface operations {
50321
50664
  } | null;
50322
50665
  phone?: string | null;
50323
50666
  email?: string | null;
50667
+ supportEmail?: string | null;
50324
50668
  taxId?: string | null;
50325
50669
  partner?: {
50326
50670
  /** Format: uuid */
@@ -50570,6 +50914,7 @@ export interface operations {
50570
50914
  } | null;
50571
50915
  phone?: string | null;
50572
50916
  email?: string | null;
50917
+ supportEmail?: string | null;
50573
50918
  taxId?: string | null;
50574
50919
  partner?: {
50575
50920
  /** Format: uuid */
@@ -52313,6 +52658,7 @@ export interface operations {
52313
52658
  } | null;
52314
52659
  phone?: string | null;
52315
52660
  email?: string | null;
52661
+ supportEmail?: string | null;
52316
52662
  taxId?: string | null;
52317
52663
  partner?: {
52318
52664
  /** Format: uuid */
@@ -52550,6 +52896,7 @@ export interface operations {
52550
52896
  } | null;
52551
52897
  phone?: string | null;
52552
52898
  email?: string | null;
52899
+ supportEmail?: string | null;
52553
52900
  taxId?: string | null;
52554
52901
  partner?: {
52555
52902
  /** Format: uuid */
@@ -52750,7 +53097,7 @@ export interface operations {
52750
53097
  "application/json": {
52751
53098
  defaultCurrency?: string | null;
52752
53099
  longTermStayNights?: number | null;
52753
- defaultRevenueRecognition?: ("checkIn" | "checkOut" | "bookedAt" | "proRata") | null;
53100
+ defaultRevenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
52754
53101
  name?: string;
52755
53102
  slug?: string;
52756
53103
  statementAddress?: {
@@ -52795,6 +53142,7 @@ export interface operations {
52795
53142
  billingPartnerId?: string | null;
52796
53143
  /** Format: email */
52797
53144
  email?: string;
53145
+ supportEmail?: string | null;
52798
53146
  migratedFromTenantId?: string | null;
52799
53147
  settings?: {
52800
53148
  showReservations?: boolean;
@@ -52865,6 +53213,7 @@ export interface operations {
52865
53213
  } | null;
52866
53214
  phone?: string | null;
52867
53215
  email?: string | null;
53216
+ supportEmail?: string | null;
52868
53217
  taxId?: string | null;
52869
53218
  partner?: {
52870
53219
  /** Format: uuid */
@@ -53555,6 +53904,7 @@ export interface operations {
53555
53904
  } | null;
53556
53905
  phone?: string | null;
53557
53906
  email?: string | null;
53907
+ supportEmail?: string | null;
53558
53908
  taxId?: string | null;
53559
53909
  partner?: {
53560
53910
  /** Format: uuid */