@vrplatform/api 1.3.1-stage.4024 → 1.3.1-stage.4027

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