@vrplatform/api 1.3.1-stage.4023 → 1.3.1-stage.4025

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.4023",
6
+ "version": "1.3.1-stage.4025",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -583,7 +583,7 @@ export interface paths {
583
583
  };
584
584
  get?: never;
585
585
  put?: never;
586
- /** @description Connect or reconnect an app and create the connection. */
586
+ /** @description Connect an app and create the connection. */
587
587
  post: operations["connectAppConnection"];
588
588
  delete?: never;
589
589
  options?: never;
@@ -695,6 +695,23 @@ export interface paths {
695
695
  patch: operations["updateConnection"];
696
696
  trace?: never;
697
697
  };
698
+ "/connections/{id}/connect": {
699
+ parameters: {
700
+ query?: never;
701
+ header?: never;
702
+ path?: never;
703
+ cookie?: never;
704
+ };
705
+ get?: never;
706
+ /** @description Reconnect an existing app connection. */
707
+ put: operations["reconnectAppConnection"];
708
+ post?: never;
709
+ delete?: never;
710
+ options?: never;
711
+ head?: never;
712
+ patch?: never;
713
+ trace?: never;
714
+ };
698
715
  "/connections/{id}/sync": {
699
716
  parameters: {
700
717
  query?: never;
@@ -11477,8 +11494,6 @@ export interface operations {
11477
11494
  content: {
11478
11495
  "application/json": {
11479
11496
  appId?: string;
11480
- /** Format: uuid */
11481
- connectionId?: string;
11482
11497
  name?: string;
11483
11498
  /** @default true */
11484
11499
  autoExtract?: boolean;
@@ -12815,6 +12830,194 @@ export interface operations {
12815
12830
  };
12816
12831
  };
12817
12832
  };
12833
+ reconnectAppConnection: {
12834
+ parameters: {
12835
+ query?: never;
12836
+ header?: never;
12837
+ path: {
12838
+ id: string;
12839
+ };
12840
+ cookie?: never;
12841
+ };
12842
+ requestBody?: {
12843
+ content: {
12844
+ "application/json": {
12845
+ appId?: string;
12846
+ name?: string;
12847
+ /** @default true */
12848
+ autoExtract?: boolean;
12849
+ sessionKey?: string;
12850
+ /** @default {} */
12851
+ params?: {
12852
+ [key: string]: unknown;
12853
+ };
12854
+ };
12855
+ };
12856
+ };
12857
+ responses: {
12858
+ /** @description Successful response */
12859
+ 200: {
12860
+ headers: {
12861
+ [name: string]: unknown;
12862
+ };
12863
+ content: {
12864
+ "application/json": {
12865
+ /** @enum {string} */
12866
+ type: "success" | "issue" | "error";
12867
+ /** Format: uuid */
12868
+ id?: string;
12869
+ connection?: {
12870
+ /** Format: uuid */
12871
+ id: string;
12872
+ name: string;
12873
+ /** @enum {string} */
12874
+ status: "active" | "inactive";
12875
+ accountingStartAt?: string | null;
12876
+ accountingEndAt?: string | null;
12877
+ uniqueRef?: string | null;
12878
+ app: {
12879
+ id: string;
12880
+ /** @enum {string} */
12881
+ type: "paymentGateway" | "accountingPlatform" | "propertyManagementSystem" | "bookingChannel" | "service";
12882
+ name: string;
12883
+ icon?: string | null;
12884
+ importers?: string[] | null;
12885
+ extractors?: string[] | null;
12886
+ };
12887
+ /**
12888
+ * Format: date-time
12889
+ * @description Timestamp string with date, time, milliseconds, and timezone.
12890
+ * @example 2024-01-15T12:30:00.000+00:00
12891
+ */
12892
+ createdAt: string;
12893
+ /**
12894
+ * Format: date-time
12895
+ * @description Timestamp string with date, time, milliseconds, and timezone.
12896
+ * @example 2024-01-15T12:30:00.000+00:00
12897
+ */
12898
+ updatedAt: string;
12899
+ isErrorState: boolean;
12900
+ currentSync?: {
12901
+ /** @enum {string} */
12902
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
12903
+ /**
12904
+ * Format: date-time
12905
+ * @description Timestamp string with date, time, milliseconds, and timezone.
12906
+ * @example 2024-01-15T12:30:00.000+00:00
12907
+ */
12908
+ createdAt: string;
12909
+ /**
12910
+ * Format: date-time
12911
+ * @description Timestamp string with date, time, milliseconds, and timezone.
12912
+ * @example 2024-01-15T12:30:00.000+00:00
12913
+ */
12914
+ updatedAt: string;
12915
+ message?: string | null;
12916
+ } | null;
12917
+ enabledFlows: {
12918
+ /** Format: uuid */
12919
+ id: string;
12920
+ title: string;
12921
+ isPublic: boolean;
12922
+ type: ("push" | "pull") | null;
12923
+ }[];
12924
+ };
12925
+ code?: string;
12926
+ message?: string;
12927
+ state?: {
12928
+ sessionKey?: string;
12929
+ expiresIn: number;
12930
+ };
12931
+ action?: {
12932
+ /** @enum {string} */
12933
+ type: "extension" | "form" | "link" | "oauth";
12934
+ value?: unknown;
12935
+ };
12936
+ };
12937
+ };
12938
+ };
12939
+ /** @description Bad request */
12940
+ 400: {
12941
+ headers: {
12942
+ [name: string]: unknown;
12943
+ };
12944
+ content: {
12945
+ "application/json": {
12946
+ code: string;
12947
+ message: string;
12948
+ issues?: {
12949
+ message: string;
12950
+ }[];
12951
+ context?: unknown;
12952
+ };
12953
+ };
12954
+ };
12955
+ /** @description Unauthorized */
12956
+ 401: {
12957
+ headers: {
12958
+ [name: string]: unknown;
12959
+ };
12960
+ content: {
12961
+ "application/json": {
12962
+ code: string;
12963
+ message: string;
12964
+ issues?: {
12965
+ message: string;
12966
+ }[];
12967
+ context?: unknown;
12968
+ };
12969
+ };
12970
+ };
12971
+ /** @description Forbidden */
12972
+ 403: {
12973
+ headers: {
12974
+ [name: string]: unknown;
12975
+ };
12976
+ content: {
12977
+ "application/json": {
12978
+ code: string;
12979
+ message: string;
12980
+ issues?: {
12981
+ message: string;
12982
+ }[];
12983
+ context?: unknown;
12984
+ };
12985
+ };
12986
+ };
12987
+ /** @description Not found */
12988
+ 404: {
12989
+ headers: {
12990
+ [name: string]: unknown;
12991
+ };
12992
+ content: {
12993
+ "application/json": {
12994
+ code: string;
12995
+ message: string;
12996
+ issues?: {
12997
+ message: string;
12998
+ }[];
12999
+ context?: unknown;
13000
+ };
13001
+ };
13002
+ };
13003
+ /** @description Internal server error */
13004
+ 500: {
13005
+ headers: {
13006
+ [name: string]: unknown;
13007
+ };
13008
+ content: {
13009
+ "application/json": {
13010
+ code: string;
13011
+ message: string;
13012
+ issues?: {
13013
+ message: string;
13014
+ }[];
13015
+ context?: unknown;
13016
+ };
13017
+ };
13018
+ };
13019
+ };
13020
+ };
12818
13021
  syncConnection: {
12819
13022
  parameters: {
12820
13023
  query?: never;