@vrplatform/api 1.3.1-stage.4716 → 1.3.1-stage.4718

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.
@@ -2627,6 +2627,48 @@ export interface paths {
2627
2627
  patch?: never;
2628
2628
  trace?: never;
2629
2629
  };
2630
+ "/partner/billing": {
2631
+ parameters: {
2632
+ query?: never;
2633
+ header?: never;
2634
+ path?: never;
2635
+ cookie?: never;
2636
+ };
2637
+ /**
2638
+ * @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.
2639
+ *
2640
+ * Required scope: teams:read
2641
+ */
2642
+ get: operations["getPartnerBilling"];
2643
+ put?: never;
2644
+ post?: never;
2645
+ delete?: never;
2646
+ options?: never;
2647
+ head?: never;
2648
+ patch?: never;
2649
+ trace?: never;
2650
+ };
2651
+ "/partner/connections": {
2652
+ parameters: {
2653
+ query?: never;
2654
+ header?: never;
2655
+ path?: never;
2656
+ cookie?: never;
2657
+ };
2658
+ /**
2659
+ * @description List managed teams in one regional partition of the partner portfolio with active connections and current sync state. Supports team and company search, lifecycle, app, and connection error-state filters, pagination, and team ordering. Select the partition with x-data-region.
2660
+ *
2661
+ * Required scope: teams:read
2662
+ */
2663
+ get: operations["getPartnerConnections"];
2664
+ put?: never;
2665
+ post?: never;
2666
+ delete?: never;
2667
+ options?: never;
2668
+ head?: never;
2669
+ patch?: never;
2670
+ trace?: never;
2671
+ };
2630
2672
  "/partner/embed-sessions": {
2631
2673
  parameters: {
2632
2674
  query?: never;
@@ -42503,6 +42545,443 @@ export interface operations {
42503
42545
  };
42504
42546
  };
42505
42547
  };
42548
+ getPartnerBilling: {
42549
+ parameters: {
42550
+ query: {
42551
+ /** @description Month string in format `YYYY-MM`. */
42552
+ month: string;
42553
+ /** @description Filter by team or company name */
42554
+ search?: string;
42555
+ status?: "active" | "inactive" | "onboarding";
42556
+ partnerId?: string;
42557
+ product?: "vrtrust" | "vrintegrations";
42558
+ billingPlan?: string;
42559
+ /** @description Field to sort by, defaults to created */
42560
+ sortBy?: "name" | "created" | "partnerName" | "product" | "activeListings" | "billingPlan";
42561
+ /** @description Sort direction, defaults to desc */
42562
+ sortDirection?: "asc" | "desc";
42563
+ limit?: number;
42564
+ page?: number;
42565
+ offset?: number;
42566
+ };
42567
+ header?: {
42568
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
42569
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
42570
+ };
42571
+ path?: never;
42572
+ cookie?: never;
42573
+ };
42574
+ requestBody?: never;
42575
+ responses: {
42576
+ /** @description Successful response */
42577
+ 200: {
42578
+ headers: {
42579
+ [name: string]: unknown;
42580
+ };
42581
+ content: {
42582
+ "application/json": {
42583
+ data: {
42584
+ /** Format: uuid */
42585
+ id: string;
42586
+ name: string | null;
42587
+ logo: string | null;
42588
+ /** @enum {string} */
42589
+ status: "active" | "inactive" | "deleted";
42590
+ /** @constant */
42591
+ type: "propertyManager";
42592
+ isOnboarding: boolean;
42593
+ isBillable: boolean | null;
42594
+ isGeneralLedger: boolean | null;
42595
+ partner: {
42596
+ /** Format: uuid */
42597
+ id: string;
42598
+ name: string;
42599
+ } | null;
42600
+ billingPartner: {
42601
+ /** Format: uuid */
42602
+ id: string;
42603
+ name: string;
42604
+ } | null;
42605
+ billingCustomerId: string | null;
42606
+ billingSubscriptionStatus: string | null;
42607
+ intercomId: string | null;
42608
+ billingPlan: string | null;
42609
+ migratedFromTenantId: string | null;
42610
+ createdAt: string | null;
42611
+ cancelledAt: string | null;
42612
+ activeListings: number;
42613
+ }[];
42614
+ pagination: {
42615
+ /** @default 100 */
42616
+ limit: number;
42617
+ /** @default 1 */
42618
+ page: number;
42619
+ total: number;
42620
+ totalPage: number;
42621
+ nextPage?: number;
42622
+ };
42623
+ };
42624
+ };
42625
+ };
42626
+ /** @description Bad request */
42627
+ 400: {
42628
+ headers: {
42629
+ [name: string]: unknown;
42630
+ };
42631
+ content: {
42632
+ "application/json": {
42633
+ code: string;
42634
+ message: string;
42635
+ links?: {
42636
+ docs: string;
42637
+ schema: string;
42638
+ };
42639
+ issues?: {
42640
+ message: string;
42641
+ path?: (string | number)[];
42642
+ schema?: string;
42643
+ }[];
42644
+ context?: unknown;
42645
+ };
42646
+ };
42647
+ };
42648
+ /** @description Unauthorized */
42649
+ 401: {
42650
+ headers: {
42651
+ [name: string]: unknown;
42652
+ };
42653
+ content: {
42654
+ "application/json": {
42655
+ code: string;
42656
+ message: string;
42657
+ links?: {
42658
+ docs: string;
42659
+ schema: string;
42660
+ };
42661
+ issues?: {
42662
+ message: string;
42663
+ path?: (string | number)[];
42664
+ schema?: string;
42665
+ }[];
42666
+ context?: unknown;
42667
+ };
42668
+ };
42669
+ };
42670
+ /** @description Forbidden */
42671
+ 403: {
42672
+ headers: {
42673
+ [name: string]: unknown;
42674
+ };
42675
+ content: {
42676
+ "application/json": {
42677
+ code: string;
42678
+ message: string;
42679
+ links?: {
42680
+ docs: string;
42681
+ schema: string;
42682
+ };
42683
+ issues?: {
42684
+ message: string;
42685
+ path?: (string | number)[];
42686
+ schema?: string;
42687
+ }[];
42688
+ context?: unknown;
42689
+ };
42690
+ };
42691
+ };
42692
+ /** @description Not found */
42693
+ 404: {
42694
+ headers: {
42695
+ [name: string]: unknown;
42696
+ };
42697
+ content: {
42698
+ "application/json": {
42699
+ code: string;
42700
+ message: string;
42701
+ links?: {
42702
+ docs: string;
42703
+ schema: string;
42704
+ };
42705
+ issues?: {
42706
+ message: string;
42707
+ path?: (string | number)[];
42708
+ schema?: string;
42709
+ }[];
42710
+ context?: unknown;
42711
+ };
42712
+ };
42713
+ };
42714
+ /** @description Internal server error */
42715
+ 500: {
42716
+ headers: {
42717
+ [name: string]: unknown;
42718
+ };
42719
+ content: {
42720
+ "application/json": {
42721
+ code: string;
42722
+ message: string;
42723
+ links?: {
42724
+ docs: string;
42725
+ schema: string;
42726
+ };
42727
+ issues?: {
42728
+ message: string;
42729
+ path?: (string | number)[];
42730
+ schema?: string;
42731
+ }[];
42732
+ context?: unknown;
42733
+ };
42734
+ };
42735
+ };
42736
+ /** @description Service unavailable */
42737
+ 503: {
42738
+ headers: {
42739
+ [name: string]: unknown;
42740
+ };
42741
+ content: {
42742
+ "application/json": {
42743
+ code: string;
42744
+ message: string;
42745
+ links?: {
42746
+ docs: string;
42747
+ schema: string;
42748
+ };
42749
+ issues?: {
42750
+ message: string;
42751
+ path?: (string | number)[];
42752
+ schema?: string;
42753
+ }[];
42754
+ context?: unknown;
42755
+ };
42756
+ };
42757
+ };
42758
+ };
42759
+ };
42760
+ getPartnerConnections: {
42761
+ parameters: {
42762
+ query?: {
42763
+ /** @description Filter by team or company name */
42764
+ search?: string;
42765
+ status?: "active" | "inactive" | "onboarding";
42766
+ /** @description Filter teams with an active connection to this app */
42767
+ appId?: string;
42768
+ /** @description Filter teams by whether an active connection is in error */
42769
+ isErrorState?: boolean;
42770
+ /** @description Team field to sort by; defaults to createdAt */
42771
+ sortBy?: "name" | "createdAt";
42772
+ /** @description Sort direction; defaults to desc for createdAt and asc for name */
42773
+ sortDirection?: "asc" | "desc";
42774
+ limit?: number;
42775
+ page?: number;
42776
+ offset?: number;
42777
+ };
42778
+ header?: {
42779
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
42780
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
42781
+ };
42782
+ path?: never;
42783
+ cookie?: never;
42784
+ };
42785
+ requestBody?: never;
42786
+ responses: {
42787
+ /** @description Successful response */
42788
+ 200: {
42789
+ headers: {
42790
+ [name: string]: unknown;
42791
+ };
42792
+ content: {
42793
+ "application/json": {
42794
+ data: {
42795
+ /** Format: uuid */
42796
+ id: string;
42797
+ name: string;
42798
+ logo?: string;
42799
+ /**
42800
+ * Format: date-time
42801
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42802
+ * @example 2024-01-15T12:30:00.000+00:00
42803
+ */
42804
+ createdAt: string;
42805
+ /** @enum {string} */
42806
+ status: "active" | "inactive";
42807
+ isOnboarding: boolean;
42808
+ connections: {
42809
+ /** Format: uuid */
42810
+ id: string;
42811
+ name: string;
42812
+ isErrorState: boolean;
42813
+ app: {
42814
+ id: string;
42815
+ name: string;
42816
+ icon: string | null;
42817
+ /** @enum {string} */
42818
+ category: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
42819
+ };
42820
+ currentSync: {
42821
+ /** @enum {string} */
42822
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
42823
+ /**
42824
+ * Format: date-time
42825
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42826
+ * @example 2024-01-15T12:30:00.000+00:00
42827
+ */
42828
+ createdAt: string;
42829
+ /**
42830
+ * Format: date-time
42831
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42832
+ * @example 2024-01-15T12:30:00.000+00:00
42833
+ */
42834
+ updatedAt: string;
42835
+ message?: string | null;
42836
+ } | null;
42837
+ }[];
42838
+ }[];
42839
+ pagination: {
42840
+ /** @default 100 */
42841
+ limit: number;
42842
+ /** @default 1 */
42843
+ page: number;
42844
+ total: number;
42845
+ totalPage: number;
42846
+ nextPage?: number;
42847
+ };
42848
+ };
42849
+ };
42850
+ };
42851
+ /** @description Bad request */
42852
+ 400: {
42853
+ headers: {
42854
+ [name: string]: unknown;
42855
+ };
42856
+ content: {
42857
+ "application/json": {
42858
+ code: string;
42859
+ message: string;
42860
+ links?: {
42861
+ docs: string;
42862
+ schema: string;
42863
+ };
42864
+ issues?: {
42865
+ message: string;
42866
+ path?: (string | number)[];
42867
+ schema?: string;
42868
+ }[];
42869
+ context?: unknown;
42870
+ };
42871
+ };
42872
+ };
42873
+ /** @description Unauthorized */
42874
+ 401: {
42875
+ headers: {
42876
+ [name: string]: unknown;
42877
+ };
42878
+ content: {
42879
+ "application/json": {
42880
+ code: string;
42881
+ message: string;
42882
+ links?: {
42883
+ docs: string;
42884
+ schema: string;
42885
+ };
42886
+ issues?: {
42887
+ message: string;
42888
+ path?: (string | number)[];
42889
+ schema?: string;
42890
+ }[];
42891
+ context?: unknown;
42892
+ };
42893
+ };
42894
+ };
42895
+ /** @description Forbidden */
42896
+ 403: {
42897
+ headers: {
42898
+ [name: string]: unknown;
42899
+ };
42900
+ content: {
42901
+ "application/json": {
42902
+ code: string;
42903
+ message: string;
42904
+ links?: {
42905
+ docs: string;
42906
+ schema: string;
42907
+ };
42908
+ issues?: {
42909
+ message: string;
42910
+ path?: (string | number)[];
42911
+ schema?: string;
42912
+ }[];
42913
+ context?: unknown;
42914
+ };
42915
+ };
42916
+ };
42917
+ /** @description Not found */
42918
+ 404: {
42919
+ headers: {
42920
+ [name: string]: unknown;
42921
+ };
42922
+ content: {
42923
+ "application/json": {
42924
+ code: string;
42925
+ message: string;
42926
+ links?: {
42927
+ docs: string;
42928
+ schema: string;
42929
+ };
42930
+ issues?: {
42931
+ message: string;
42932
+ path?: (string | number)[];
42933
+ schema?: string;
42934
+ }[];
42935
+ context?: unknown;
42936
+ };
42937
+ };
42938
+ };
42939
+ /** @description Internal server error */
42940
+ 500: {
42941
+ headers: {
42942
+ [name: string]: unknown;
42943
+ };
42944
+ content: {
42945
+ "application/json": {
42946
+ code: string;
42947
+ message: string;
42948
+ links?: {
42949
+ docs: string;
42950
+ schema: string;
42951
+ };
42952
+ issues?: {
42953
+ message: string;
42954
+ path?: (string | number)[];
42955
+ schema?: string;
42956
+ }[];
42957
+ context?: unknown;
42958
+ };
42959
+ };
42960
+ };
42961
+ /** @description Service unavailable */
42962
+ 503: {
42963
+ headers: {
42964
+ [name: string]: unknown;
42965
+ };
42966
+ content: {
42967
+ "application/json": {
42968
+ code: string;
42969
+ message: string;
42970
+ links?: {
42971
+ docs: string;
42972
+ schema: string;
42973
+ };
42974
+ issues?: {
42975
+ message: string;
42976
+ path?: (string | number)[];
42977
+ schema?: string;
42978
+ }[];
42979
+ context?: unknown;
42980
+ };
42981
+ };
42982
+ };
42983
+ };
42984
+ };
42506
42985
  createEmbedSession: {
42507
42986
  parameters: {
42508
42987
  query?: never;