@vrplatform/api 1.3.1-stage.4717 → 1.3.1-stage.4720

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-stage.4717",
6
+ "version": "1.3.1-stage.4720",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -2628,6 +2628,27 @@ export interface paths {
2628
2628
  patch?: never;
2629
2629
  trace?: never;
2630
2630
  };
2631
+ "/partner/billing": {
2632
+ parameters: {
2633
+ query?: never;
2634
+ header?: never;
2635
+ path?: never;
2636
+ cookie?: never;
2637
+ };
2638
+ /**
2639
+ * @description List property-manager teams billed by the authenticated partner for one month in a regional partition. Completed months use the latest retained listings_reported event per team, including deleted teams; the current month uses live active-listing counts. Filters run before deterministic sorting, totals, and pagination. Select the partition with x-data-region.
2640
+ *
2641
+ * Required scope: teams:read
2642
+ */
2643
+ get: operations["getPartnerBilling"];
2644
+ put?: never;
2645
+ post?: never;
2646
+ delete?: never;
2647
+ options?: never;
2648
+ head?: never;
2649
+ patch?: never;
2650
+ trace?: never;
2651
+ };
2631
2652
  "/partner/connections": {
2632
2653
  parameters: {
2633
2654
  query?: never;
@@ -3829,7 +3850,7 @@ export interface paths {
3829
3850
  cookie?: never;
3830
3851
  };
3831
3852
  /**
3832
- * @description Get reservation By ID
3853
+ * @description Get reservation detail with financial totals, inactive lines, locks, and issues. Pre-start rows return priorToStartDate.
3833
3854
  *
3834
3855
  * Required scope: reservations:read
3835
3856
  */
@@ -42525,6 +42546,218 @@ export interface operations {
42525
42546
  };
42526
42547
  };
42527
42548
  };
42549
+ getPartnerBilling: {
42550
+ parameters: {
42551
+ query: {
42552
+ /** @description Month string in format `YYYY-MM`. */
42553
+ month: string;
42554
+ /** @description Filter by team or company name */
42555
+ search?: string;
42556
+ status?: "active" | "inactive" | "onboarding";
42557
+ partnerId?: string;
42558
+ product?: "vrtrust" | "vrintegrations";
42559
+ billingPlan?: string;
42560
+ /** @description Field to sort by, defaults to created */
42561
+ sortBy?: "name" | "created" | "partnerName" | "product" | "activeListings" | "billingPlan";
42562
+ /** @description Sort direction, defaults to desc */
42563
+ sortDirection?: "asc" | "desc";
42564
+ limit?: number;
42565
+ page?: number;
42566
+ offset?: number;
42567
+ };
42568
+ header?: {
42569
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
42570
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
42571
+ };
42572
+ path?: never;
42573
+ cookie?: never;
42574
+ };
42575
+ requestBody?: never;
42576
+ responses: {
42577
+ /** @description Successful response */
42578
+ 200: {
42579
+ headers: {
42580
+ [name: string]: unknown;
42581
+ };
42582
+ content: {
42583
+ "application/json": {
42584
+ data: {
42585
+ /** Format: uuid */
42586
+ id: string;
42587
+ name: string | null;
42588
+ logo: string | null;
42589
+ /** @enum {string} */
42590
+ status: "active" | "inactive" | "deleted";
42591
+ /** @constant */
42592
+ type: "propertyManager";
42593
+ isOnboarding: boolean;
42594
+ isBillable: boolean | null;
42595
+ isGeneralLedger: boolean | null;
42596
+ partner: {
42597
+ /** Format: uuid */
42598
+ id: string;
42599
+ name: string;
42600
+ } | null;
42601
+ billingPartner: {
42602
+ /** Format: uuid */
42603
+ id: string;
42604
+ name: string;
42605
+ } | null;
42606
+ billingCustomerId: string | null;
42607
+ billingSubscriptionStatus: string | null;
42608
+ intercomId: string | null;
42609
+ billingPlan: string | null;
42610
+ migratedFromTenantId: string | null;
42611
+ createdAt: string | null;
42612
+ cancelledAt: string | null;
42613
+ activeListings: number;
42614
+ }[];
42615
+ pagination: {
42616
+ /** @default 100 */
42617
+ limit: number;
42618
+ /** @default 1 */
42619
+ page: number;
42620
+ total: number;
42621
+ totalPage: number;
42622
+ nextPage?: number;
42623
+ };
42624
+ };
42625
+ };
42626
+ };
42627
+ /** @description Bad request */
42628
+ 400: {
42629
+ headers: {
42630
+ [name: string]: unknown;
42631
+ };
42632
+ content: {
42633
+ "application/json": {
42634
+ code: string;
42635
+ message: string;
42636
+ links?: {
42637
+ docs: string;
42638
+ schema: string;
42639
+ };
42640
+ issues?: {
42641
+ message: string;
42642
+ path?: (string | number)[];
42643
+ schema?: string;
42644
+ }[];
42645
+ context?: unknown;
42646
+ };
42647
+ };
42648
+ };
42649
+ /** @description Unauthorized */
42650
+ 401: {
42651
+ headers: {
42652
+ [name: string]: unknown;
42653
+ };
42654
+ content: {
42655
+ "application/json": {
42656
+ code: string;
42657
+ message: string;
42658
+ links?: {
42659
+ docs: string;
42660
+ schema: string;
42661
+ };
42662
+ issues?: {
42663
+ message: string;
42664
+ path?: (string | number)[];
42665
+ schema?: string;
42666
+ }[];
42667
+ context?: unknown;
42668
+ };
42669
+ };
42670
+ };
42671
+ /** @description Forbidden */
42672
+ 403: {
42673
+ headers: {
42674
+ [name: string]: unknown;
42675
+ };
42676
+ content: {
42677
+ "application/json": {
42678
+ code: string;
42679
+ message: string;
42680
+ links?: {
42681
+ docs: string;
42682
+ schema: string;
42683
+ };
42684
+ issues?: {
42685
+ message: string;
42686
+ path?: (string | number)[];
42687
+ schema?: string;
42688
+ }[];
42689
+ context?: unknown;
42690
+ };
42691
+ };
42692
+ };
42693
+ /** @description Not found */
42694
+ 404: {
42695
+ headers: {
42696
+ [name: string]: unknown;
42697
+ };
42698
+ content: {
42699
+ "application/json": {
42700
+ code: string;
42701
+ message: string;
42702
+ links?: {
42703
+ docs: string;
42704
+ schema: string;
42705
+ };
42706
+ issues?: {
42707
+ message: string;
42708
+ path?: (string | number)[];
42709
+ schema?: string;
42710
+ }[];
42711
+ context?: unknown;
42712
+ };
42713
+ };
42714
+ };
42715
+ /** @description Internal server error */
42716
+ 500: {
42717
+ headers: {
42718
+ [name: string]: unknown;
42719
+ };
42720
+ content: {
42721
+ "application/json": {
42722
+ code: string;
42723
+ message: string;
42724
+ links?: {
42725
+ docs: string;
42726
+ schema: string;
42727
+ };
42728
+ issues?: {
42729
+ message: string;
42730
+ path?: (string | number)[];
42731
+ schema?: string;
42732
+ }[];
42733
+ context?: unknown;
42734
+ };
42735
+ };
42736
+ };
42737
+ /** @description Service unavailable */
42738
+ 503: {
42739
+ headers: {
42740
+ [name: string]: unknown;
42741
+ };
42742
+ content: {
42743
+ "application/json": {
42744
+ code: string;
42745
+ message: string;
42746
+ links?: {
42747
+ docs: string;
42748
+ schema: string;
42749
+ };
42750
+ issues?: {
42751
+ message: string;
42752
+ path?: (string | number)[];
42753
+ schema?: string;
42754
+ }[];
42755
+ context?: unknown;
42756
+ };
42757
+ };
42758
+ };
42759
+ };
42760
+ };
42528
42761
  getPartnerConnections: {
42529
42762
  parameters: {
42530
42763
  query?: {