@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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-stage.4716",
6
+ "version": "1.3.1-stage.4718",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -2628,6 +2628,48 @@ 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
+ };
2652
+ "/partner/connections": {
2653
+ parameters: {
2654
+ query?: never;
2655
+ header?: never;
2656
+ path?: never;
2657
+ cookie?: never;
2658
+ };
2659
+ /**
2660
+ * @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.
2661
+ *
2662
+ * Required scope: teams:read
2663
+ */
2664
+ get: operations["getPartnerConnections"];
2665
+ put?: never;
2666
+ post?: never;
2667
+ delete?: never;
2668
+ options?: never;
2669
+ head?: never;
2670
+ patch?: never;
2671
+ trace?: never;
2672
+ };
2631
2673
  "/partner/embed-sessions": {
2632
2674
  parameters: {
2633
2675
  query?: never;
@@ -42504,6 +42546,443 @@ export interface operations {
42504
42546
  };
42505
42547
  };
42506
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
+ };
42761
+ getPartnerConnections: {
42762
+ parameters: {
42763
+ query?: {
42764
+ /** @description Filter by team or company name */
42765
+ search?: string;
42766
+ status?: "active" | "inactive" | "onboarding";
42767
+ /** @description Filter teams with an active connection to this app */
42768
+ appId?: string;
42769
+ /** @description Filter teams by whether an active connection is in error */
42770
+ isErrorState?: boolean;
42771
+ /** @description Team field to sort by; defaults to createdAt */
42772
+ sortBy?: "name" | "createdAt";
42773
+ /** @description Sort direction; defaults to desc for createdAt and asc for name */
42774
+ sortDirection?: "asc" | "desc";
42775
+ limit?: number;
42776
+ page?: number;
42777
+ offset?: number;
42778
+ };
42779
+ header?: {
42780
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
42781
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
42782
+ };
42783
+ path?: never;
42784
+ cookie?: never;
42785
+ };
42786
+ requestBody?: never;
42787
+ responses: {
42788
+ /** @description Successful response */
42789
+ 200: {
42790
+ headers: {
42791
+ [name: string]: unknown;
42792
+ };
42793
+ content: {
42794
+ "application/json": {
42795
+ data: {
42796
+ /** Format: uuid */
42797
+ id: string;
42798
+ name: string;
42799
+ logo?: string;
42800
+ /**
42801
+ * Format: date-time
42802
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42803
+ * @example 2024-01-15T12:30:00.000+00:00
42804
+ */
42805
+ createdAt: string;
42806
+ /** @enum {string} */
42807
+ status: "active" | "inactive";
42808
+ isOnboarding: boolean;
42809
+ connections: {
42810
+ /** Format: uuid */
42811
+ id: string;
42812
+ name: string;
42813
+ isErrorState: boolean;
42814
+ app: {
42815
+ id: string;
42816
+ name: string;
42817
+ icon: string | null;
42818
+ /** @enum {string} */
42819
+ category: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
42820
+ };
42821
+ currentSync: {
42822
+ /** @enum {string} */
42823
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
42824
+ /**
42825
+ * Format: date-time
42826
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42827
+ * @example 2024-01-15T12:30:00.000+00:00
42828
+ */
42829
+ createdAt: string;
42830
+ /**
42831
+ * Format: date-time
42832
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42833
+ * @example 2024-01-15T12:30:00.000+00:00
42834
+ */
42835
+ updatedAt: string;
42836
+ message?: string | null;
42837
+ } | null;
42838
+ }[];
42839
+ }[];
42840
+ pagination: {
42841
+ /** @default 100 */
42842
+ limit: number;
42843
+ /** @default 1 */
42844
+ page: number;
42845
+ total: number;
42846
+ totalPage: number;
42847
+ nextPage?: number;
42848
+ };
42849
+ };
42850
+ };
42851
+ };
42852
+ /** @description Bad request */
42853
+ 400: {
42854
+ headers: {
42855
+ [name: string]: unknown;
42856
+ };
42857
+ content: {
42858
+ "application/json": {
42859
+ code: string;
42860
+ message: string;
42861
+ links?: {
42862
+ docs: string;
42863
+ schema: string;
42864
+ };
42865
+ issues?: {
42866
+ message: string;
42867
+ path?: (string | number)[];
42868
+ schema?: string;
42869
+ }[];
42870
+ context?: unknown;
42871
+ };
42872
+ };
42873
+ };
42874
+ /** @description Unauthorized */
42875
+ 401: {
42876
+ headers: {
42877
+ [name: string]: unknown;
42878
+ };
42879
+ content: {
42880
+ "application/json": {
42881
+ code: string;
42882
+ message: string;
42883
+ links?: {
42884
+ docs: string;
42885
+ schema: string;
42886
+ };
42887
+ issues?: {
42888
+ message: string;
42889
+ path?: (string | number)[];
42890
+ schema?: string;
42891
+ }[];
42892
+ context?: unknown;
42893
+ };
42894
+ };
42895
+ };
42896
+ /** @description Forbidden */
42897
+ 403: {
42898
+ headers: {
42899
+ [name: string]: unknown;
42900
+ };
42901
+ content: {
42902
+ "application/json": {
42903
+ code: string;
42904
+ message: string;
42905
+ links?: {
42906
+ docs: string;
42907
+ schema: string;
42908
+ };
42909
+ issues?: {
42910
+ message: string;
42911
+ path?: (string | number)[];
42912
+ schema?: string;
42913
+ }[];
42914
+ context?: unknown;
42915
+ };
42916
+ };
42917
+ };
42918
+ /** @description Not found */
42919
+ 404: {
42920
+ headers: {
42921
+ [name: string]: unknown;
42922
+ };
42923
+ content: {
42924
+ "application/json": {
42925
+ code: string;
42926
+ message: string;
42927
+ links?: {
42928
+ docs: string;
42929
+ schema: string;
42930
+ };
42931
+ issues?: {
42932
+ message: string;
42933
+ path?: (string | number)[];
42934
+ schema?: string;
42935
+ }[];
42936
+ context?: unknown;
42937
+ };
42938
+ };
42939
+ };
42940
+ /** @description Internal server error */
42941
+ 500: {
42942
+ headers: {
42943
+ [name: string]: unknown;
42944
+ };
42945
+ content: {
42946
+ "application/json": {
42947
+ code: string;
42948
+ message: string;
42949
+ links?: {
42950
+ docs: string;
42951
+ schema: string;
42952
+ };
42953
+ issues?: {
42954
+ message: string;
42955
+ path?: (string | number)[];
42956
+ schema?: string;
42957
+ }[];
42958
+ context?: unknown;
42959
+ };
42960
+ };
42961
+ };
42962
+ /** @description Service unavailable */
42963
+ 503: {
42964
+ headers: {
42965
+ [name: string]: unknown;
42966
+ };
42967
+ content: {
42968
+ "application/json": {
42969
+ code: string;
42970
+ message: string;
42971
+ links?: {
42972
+ docs: string;
42973
+ schema: string;
42974
+ };
42975
+ issues?: {
42976
+ message: string;
42977
+ path?: (string | number)[];
42978
+ schema?: string;
42979
+ }[];
42980
+ context?: unknown;
42981
+ };
42982
+ };
42983
+ };
42984
+ };
42985
+ };
42507
42986
  createEmbedSession: {
42508
42987
  parameters: {
42509
42988
  query?: never;