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

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,27 @@ export interface paths {
2627
2627
  patch?: never;
2628
2628
  trace?: never;
2629
2629
  };
2630
+ "/partner/connections": {
2631
+ parameters: {
2632
+ query?: never;
2633
+ header?: never;
2634
+ path?: never;
2635
+ cookie?: never;
2636
+ };
2637
+ /**
2638
+ * @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.
2639
+ *
2640
+ * Required scope: teams:read
2641
+ */
2642
+ get: operations["getPartnerConnections"];
2643
+ put?: never;
2644
+ post?: never;
2645
+ delete?: never;
2646
+ options?: never;
2647
+ head?: never;
2648
+ patch?: never;
2649
+ trace?: never;
2650
+ };
2630
2651
  "/partner/embed-sessions": {
2631
2652
  parameters: {
2632
2653
  query?: never;
@@ -42503,6 +42524,231 @@ export interface operations {
42503
42524
  };
42504
42525
  };
42505
42526
  };
42527
+ getPartnerConnections: {
42528
+ parameters: {
42529
+ query?: {
42530
+ /** @description Filter by team or company name */
42531
+ search?: string;
42532
+ status?: "active" | "inactive" | "onboarding";
42533
+ /** @description Filter teams with an active connection to this app */
42534
+ appId?: string;
42535
+ /** @description Filter teams by whether an active connection is in error */
42536
+ isErrorState?: boolean;
42537
+ /** @description Team field to sort by; defaults to createdAt */
42538
+ sortBy?: "name" | "createdAt";
42539
+ /** @description Sort direction; defaults to desc for createdAt and asc for name */
42540
+ sortDirection?: "asc" | "desc";
42541
+ limit?: number;
42542
+ page?: number;
42543
+ offset?: number;
42544
+ };
42545
+ header?: {
42546
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
42547
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
42548
+ };
42549
+ path?: never;
42550
+ cookie?: never;
42551
+ };
42552
+ requestBody?: never;
42553
+ responses: {
42554
+ /** @description Successful response */
42555
+ 200: {
42556
+ headers: {
42557
+ [name: string]: unknown;
42558
+ };
42559
+ content: {
42560
+ "application/json": {
42561
+ data: {
42562
+ /** Format: uuid */
42563
+ id: string;
42564
+ name: string;
42565
+ logo?: string;
42566
+ /**
42567
+ * Format: date-time
42568
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42569
+ * @example 2024-01-15T12:30:00.000+00:00
42570
+ */
42571
+ createdAt: string;
42572
+ /** @enum {string} */
42573
+ status: "active" | "inactive";
42574
+ isOnboarding: boolean;
42575
+ connections: {
42576
+ /** Format: uuid */
42577
+ id: string;
42578
+ name: string;
42579
+ isErrorState: boolean;
42580
+ app: {
42581
+ id: string;
42582
+ name: string;
42583
+ icon: string | null;
42584
+ /** @enum {string} */
42585
+ category: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
42586
+ };
42587
+ currentSync: {
42588
+ /** @enum {string} */
42589
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
42590
+ /**
42591
+ * Format: date-time
42592
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42593
+ * @example 2024-01-15T12:30:00.000+00:00
42594
+ */
42595
+ createdAt: string;
42596
+ /**
42597
+ * Format: date-time
42598
+ * @description Timestamp string with date, time, milliseconds, and timezone.
42599
+ * @example 2024-01-15T12:30:00.000+00:00
42600
+ */
42601
+ updatedAt: string;
42602
+ message?: string | null;
42603
+ } | null;
42604
+ }[];
42605
+ }[];
42606
+ pagination: {
42607
+ /** @default 100 */
42608
+ limit: number;
42609
+ /** @default 1 */
42610
+ page: number;
42611
+ total: number;
42612
+ totalPage: number;
42613
+ nextPage?: number;
42614
+ };
42615
+ };
42616
+ };
42617
+ };
42618
+ /** @description Bad request */
42619
+ 400: {
42620
+ headers: {
42621
+ [name: string]: unknown;
42622
+ };
42623
+ content: {
42624
+ "application/json": {
42625
+ code: string;
42626
+ message: string;
42627
+ links?: {
42628
+ docs: string;
42629
+ schema: string;
42630
+ };
42631
+ issues?: {
42632
+ message: string;
42633
+ path?: (string | number)[];
42634
+ schema?: string;
42635
+ }[];
42636
+ context?: unknown;
42637
+ };
42638
+ };
42639
+ };
42640
+ /** @description Unauthorized */
42641
+ 401: {
42642
+ headers: {
42643
+ [name: string]: unknown;
42644
+ };
42645
+ content: {
42646
+ "application/json": {
42647
+ code: string;
42648
+ message: string;
42649
+ links?: {
42650
+ docs: string;
42651
+ schema: string;
42652
+ };
42653
+ issues?: {
42654
+ message: string;
42655
+ path?: (string | number)[];
42656
+ schema?: string;
42657
+ }[];
42658
+ context?: unknown;
42659
+ };
42660
+ };
42661
+ };
42662
+ /** @description Forbidden */
42663
+ 403: {
42664
+ headers: {
42665
+ [name: string]: unknown;
42666
+ };
42667
+ content: {
42668
+ "application/json": {
42669
+ code: string;
42670
+ message: string;
42671
+ links?: {
42672
+ docs: string;
42673
+ schema: string;
42674
+ };
42675
+ issues?: {
42676
+ message: string;
42677
+ path?: (string | number)[];
42678
+ schema?: string;
42679
+ }[];
42680
+ context?: unknown;
42681
+ };
42682
+ };
42683
+ };
42684
+ /** @description Not found */
42685
+ 404: {
42686
+ headers: {
42687
+ [name: string]: unknown;
42688
+ };
42689
+ content: {
42690
+ "application/json": {
42691
+ code: string;
42692
+ message: string;
42693
+ links?: {
42694
+ docs: string;
42695
+ schema: string;
42696
+ };
42697
+ issues?: {
42698
+ message: string;
42699
+ path?: (string | number)[];
42700
+ schema?: string;
42701
+ }[];
42702
+ context?: unknown;
42703
+ };
42704
+ };
42705
+ };
42706
+ /** @description Internal server error */
42707
+ 500: {
42708
+ headers: {
42709
+ [name: string]: unknown;
42710
+ };
42711
+ content: {
42712
+ "application/json": {
42713
+ code: string;
42714
+ message: string;
42715
+ links?: {
42716
+ docs: string;
42717
+ schema: string;
42718
+ };
42719
+ issues?: {
42720
+ message: string;
42721
+ path?: (string | number)[];
42722
+ schema?: string;
42723
+ }[];
42724
+ context?: unknown;
42725
+ };
42726
+ };
42727
+ };
42728
+ /** @description Service unavailable */
42729
+ 503: {
42730
+ headers: {
42731
+ [name: string]: unknown;
42732
+ };
42733
+ content: {
42734
+ "application/json": {
42735
+ code: string;
42736
+ message: string;
42737
+ links?: {
42738
+ docs: string;
42739
+ schema: string;
42740
+ };
42741
+ issues?: {
42742
+ message: string;
42743
+ path?: (string | number)[];
42744
+ schema?: string;
42745
+ }[];
42746
+ context?: unknown;
42747
+ };
42748
+ };
42749
+ };
42750
+ };
42751
+ };
42506
42752
  createEmbedSession: {
42507
42753
  parameters: {
42508
42754
  query?: never;