@wix/auto_sdk_data_external-database-connections 1.0.11 → 1.0.12

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.
Files changed (134) hide show
  1. package/build/{es/src/data-v1-external-database-connection-external-database-connections.types.d.ts → data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.d.mts} +76 -45
  2. package/build/{cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts → data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.d.ts} +76 -45
  3. package/build/index.d.mts +66 -0
  4. package/build/index.d.ts +66 -0
  5. package/build/index.js +729 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +695 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts → data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.d.mts} +76 -45
  10. package/build/internal/{es/src/data-v1-external-database-connection-external-database-connections.types.d.ts → data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.d.ts} +76 -45
  11. package/build/internal/index.d.mts +66 -0
  12. package/build/internal/index.d.ts +66 -0
  13. package/build/internal/index.js +729 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +695 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +226 -0
  18. package/build/internal/meta.d.ts +226 -0
  19. package/build/internal/meta.js +566 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +535 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +226 -0
  24. package/build/meta.d.ts +226 -0
  25. package/build/meta.js +566 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +535 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.d.ts +0 -9
  40. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.js +0 -18
  41. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.js.map +0 -1
  42. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.d.ts +0 -23
  43. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.js +0 -436
  44. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.js.map +0 -1
  45. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +0 -23
  46. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js +0 -127
  47. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js.map +0 -1
  48. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +0 -60
  49. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js +0 -43
  50. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +0 -1
  51. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js +0 -92
  52. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +0 -1
  53. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +0 -466
  54. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js +0 -321
  55. package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/data-v1-external-database-connection-external-database-connections.context.d.ts +0 -9
  67. package/build/es/src/data-v1-external-database-connection-external-database-connections.context.js +0 -9
  68. package/build/es/src/data-v1-external-database-connection-external-database-connections.context.js.map +0 -1
  69. package/build/es/src/data-v1-external-database-connection-external-database-connections.http.d.ts +0 -23
  70. package/build/es/src/data-v1-external-database-connection-external-database-connections.http.js +0 -428
  71. package/build/es/src/data-v1-external-database-connection-external-database-connections.http.js.map +0 -1
  72. package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +0 -23
  73. package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.js +0 -96
  74. package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.js.map +0 -1
  75. package/build/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +0 -60
  76. package/build/es/src/data-v1-external-database-connection-external-database-connections.public.js +0 -29
  77. package/build/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +0 -1
  78. package/build/es/src/data-v1-external-database-connection-external-database-connections.types.js +0 -89
  79. package/build/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +0 -1
  80. package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +0 -466
  81. package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.js +0 -290
  82. package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.d.ts +0 -9
  93. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.js +0 -18
  94. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.js.map +0 -1
  95. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.d.ts +0 -23
  96. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.js +0 -436
  97. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.js.map +0 -1
  98. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +0 -23
  99. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js +0 -127
  100. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js.map +0 -1
  101. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +0 -60
  102. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.js +0 -43
  103. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +0 -1
  104. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.js +0 -92
  105. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +0 -1
  106. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +0 -466
  107. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js +0 -321
  108. package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.d.ts +0 -9
  119. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.js +0 -9
  120. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.js.map +0 -1
  121. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.d.ts +0 -23
  122. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.js +0 -428
  123. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.js.map +0 -1
  124. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +0 -23
  125. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.js +0 -96
  126. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.js.map +0 -1
  127. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +0 -60
  128. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.js +0 -29
  129. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +0 -1
  130. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.js +0 -89
  131. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +0 -1
  132. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +0 -466
  133. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.js +0 -290
  134. package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /** An external database connection defines a connection between an external database and a Wix site. */
2
- export interface ExternalDatabaseConnection {
2
+ interface ExternalDatabaseConnection {
3
3
  /**
4
4
  * Name of the external database connection.
5
5
  *
@@ -37,7 +37,7 @@ export interface ExternalDatabaseConnection {
37
37
  */
38
38
  capabilities?: Capabilities;
39
39
  }
40
- export declare enum CauseOfFailure {
40
+ declare enum CauseOfFailure {
41
41
  /** No connection failure. */
42
42
  NONE = "NONE",
43
43
  /** General communication failure. */
@@ -50,8 +50,8 @@ export declare enum CauseOfFailure {
50
50
  DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
51
51
  }
52
52
  /** @enumType */
53
- export type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
54
- export declare enum CollectionsFound {
53
+ type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
54
+ declare enum CollectionsFound {
55
55
  /** Attempt to connect to the external database failed, so status is unknown. */
56
56
  UNKNOWN = "UNKNOWN",
57
57
  /** External database has collections. */
@@ -60,8 +60,8 @@ export declare enum CollectionsFound {
60
60
  NO = "NO"
61
61
  }
62
62
  /** @enumType */
63
- export type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
64
- export declare enum FieldType {
63
+ type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
64
+ declare enum FieldType {
65
65
  UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
66
66
  TEXT = "TEXT",
67
67
  NUMBER = "NUMBER",
@@ -103,8 +103,8 @@ export declare enum FieldType {
103
103
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
104
104
  }
105
105
  /** @enumType */
106
- export type FieldTypeWithLiterals = FieldType | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
107
- export interface ConnectionStatus {
106
+ type FieldTypeWithLiterals = FieldType | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
107
+ interface ConnectionStatus {
108
108
  /** Whether the connection was established successfully. */
109
109
  successful?: boolean;
110
110
  /** Whether and why the connection attempt failed. */
@@ -115,15 +115,13 @@ export interface ConnectionStatus {
115
115
  */
116
116
  hasCollections?: CollectionsFoundWithLiterals;
117
117
  }
118
- export declare enum ProtocolVersion {
118
+ declare enum ProtocolVersion {
119
119
  UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
120
120
  V1 = "V1",
121
121
  V2 = "V2",
122
122
  V3 = "V3"
123
123
  }
124
- /** @enumType */
125
- export type ProtocolVersionWithLiterals = ProtocolVersion | 'UNKNOWN_PROTOCOL_VERSION' | 'V1' | 'V2' | 'V3';
126
- export interface Capabilities {
124
+ interface Capabilities {
127
125
  /** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
128
126
  collectionModificationsSupported?: boolean;
129
127
  /**
@@ -132,34 +130,34 @@ export interface Capabilities {
132
130
  */
133
131
  fieldTypes?: FieldTypeWithLiterals[];
134
132
  }
135
- export interface GetExternalDatabaseConnectionRequest {
133
+ interface GetExternalDatabaseConnectionRequest {
136
134
  /**
137
135
  * Name of the external database connection to retrieve.
138
136
  * @maxLength 255
139
137
  */
140
138
  name: string;
141
139
  }
142
- export interface GetExternalDatabaseConnectionResponse {
140
+ interface GetExternalDatabaseConnectionResponse {
143
141
  /** Details of the retrieved external database connection. */
144
142
  externalDatabaseConnection?: ExternalDatabaseConnection;
145
143
  }
146
- export interface ListExternalDatabaseConnectionsRequest {
144
+ interface ListExternalDatabaseConnectionsRequest {
147
145
  /** Paging metadata. */
148
146
  paging?: Paging;
149
147
  }
150
- export interface Paging {
148
+ interface Paging {
151
149
  /** Number of items to load. */
152
150
  limit?: number | null;
153
151
  /** Number of items to skip in the current sort order. */
154
152
  offset?: number | null;
155
153
  }
156
- export interface ListExternalDatabaseConnectionsResponse {
154
+ interface ListExternalDatabaseConnectionsResponse {
157
155
  /** List of external database connections. */
158
156
  externalDatabaseConnections?: ExternalDatabaseConnection[];
159
157
  /** Paging metadata. */
160
158
  pagingMetadata?: PagingMetadata;
161
159
  }
162
- export interface PagingMetadata {
160
+ interface PagingMetadata {
163
161
  /** Number of items returned in the response. */
164
162
  count?: number | null;
165
163
  /** Offset that was requested. */
@@ -169,13 +167,13 @@ export interface PagingMetadata {
169
167
  /** Flag that indicates the server failed to calculate the `total` field. */
170
168
  tooManyToCount?: boolean | null;
171
169
  }
172
- export interface CreateExternalDatabaseConnectionRequest {
170
+ interface CreateExternalDatabaseConnectionRequest {
173
171
  /** External database connection details. */
174
172
  externalDatabaseConnection: ExternalDatabaseConnection;
175
173
  /** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */
176
174
  connectionType: ConnectionTypeWithLiterals;
177
175
  }
178
- export declare enum ConnectionType {
176
+ declare enum ConnectionType {
179
177
  /** Unknown connection type. */
180
178
  UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
181
179
  /** External database connection based on the legacy [external database collection service plugin](https://dev.wix.com/docs/velo/api-reference/wix-data-v2/service-plugins-spis/external-database-collection-legacy/introduction). */
@@ -184,35 +182,35 @@ export declare enum ConnectionType {
184
182
  WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
185
183
  }
186
184
  /** @enumType */
187
- export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
188
- export interface CreateExternalDatabaseConnectionResponse {
185
+ type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
186
+ interface CreateExternalDatabaseConnectionResponse {
189
187
  /** Details of the created external database connection. */
190
188
  externalDatabaseConnection?: ExternalDatabaseConnection;
191
189
  }
192
- export interface UpdateExternalDatabaseConnectionRequest {
190
+ interface UpdateExternalDatabaseConnectionRequest {
193
191
  /** Updated external database connection. The existing connection is replaced with this version. */
194
192
  externalDatabaseConnection: ExternalDatabaseConnection;
195
193
  }
196
- export interface UpdateExternalDatabaseConnectionResponse {
194
+ interface UpdateExternalDatabaseConnectionResponse {
197
195
  /** Details of the updated external database connection. */
198
196
  externalDatabaseConnection?: ExternalDatabaseConnection;
199
197
  }
200
- export interface DeleteExternalDatabaseConnectionRequest {
198
+ interface DeleteExternalDatabaseConnectionRequest {
201
199
  /**
202
200
  * Name of the external database connection to delete.
203
201
  * @maxLength 255
204
202
  */
205
203
  name: string;
206
204
  }
207
- export interface DeleteExternalDatabaseConnectionResponse {
205
+ interface DeleteExternalDatabaseConnectionResponse {
208
206
  }
209
- export interface DomainEvent extends DomainEventBodyOneOf {
207
+ interface DomainEvent extends DomainEventBodyOneOf {
210
208
  createdEvent?: EntityCreatedEvent;
211
209
  updatedEvent?: EntityUpdatedEvent;
212
210
  deletedEvent?: EntityDeletedEvent;
213
211
  actionEvent?: ActionEvent;
214
212
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
215
- id?: string;
213
+ _id?: string;
216
214
  /**
217
215
  * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
218
216
  * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
@@ -241,36 +239,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
241
239
  entityEventSequence?: string | null;
242
240
  }
243
241
  /** @oneof */
244
- export interface DomainEventBodyOneOf {
242
+ interface DomainEventBodyOneOf {
245
243
  createdEvent?: EntityCreatedEvent;
246
244
  updatedEvent?: EntityUpdatedEvent;
247
245
  deletedEvent?: EntityDeletedEvent;
248
246
  actionEvent?: ActionEvent;
249
247
  }
250
- export interface EntityCreatedEvent {
251
- entityAsJson?: string;
252
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
253
- restoreInfo?: RestoreInfo;
248
+ interface EntityCreatedEvent {
249
+ entity?: string;
254
250
  }
255
- export interface RestoreInfo {
251
+ interface RestoreInfo {
256
252
  deletedDate?: Date | null;
257
253
  }
258
- export interface EntityUpdatedEvent {
254
+ interface EntityUpdatedEvent {
259
255
  /**
260
256
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
261
257
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
262
258
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
263
259
  */
264
- currentEntityAsJson?: string;
260
+ currentEntity?: string;
265
261
  }
266
- export interface EntityDeletedEvent {
262
+ interface EntityDeletedEvent {
267
263
  /** Entity that was deleted. */
268
- deletedEntityAsJson?: string | null;
264
+ deletedEntity?: string | null;
269
265
  }
270
- export interface ActionEvent {
271
- bodyAsJson?: string;
266
+ interface ActionEvent {
267
+ body?: string;
272
268
  }
273
- export interface MessageEnvelope {
269
+ interface MessageEnvelope {
274
270
  /**
275
271
  * App instance ID.
276
272
  * @format GUID
@@ -286,7 +282,7 @@ export interface MessageEnvelope {
286
282
  /** Stringify payload. */
287
283
  data?: string;
288
284
  }
289
- export interface IdentificationData extends IdentificationDataIdOneOf {
285
+ interface IdentificationData extends IdentificationDataIdOneOf {
290
286
  /**
291
287
  * ID of a site visitor that has not logged in to the site.
292
288
  * @format GUID
@@ -311,7 +307,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
311
307
  identityType?: WebhookIdentityTypeWithLiterals;
312
308
  }
313
309
  /** @oneof */
314
- export interface IdentificationDataIdOneOf {
310
+ interface IdentificationDataIdOneOf {
315
311
  /**
316
312
  * ID of a site visitor that has not logged in to the site.
317
313
  * @format GUID
@@ -333,7 +329,7 @@ export interface IdentificationDataIdOneOf {
333
329
  */
334
330
  appId?: string;
335
331
  }
336
- export declare enum WebhookIdentityType {
332
+ declare enum WebhookIdentityType {
337
333
  UNKNOWN = "UNKNOWN",
338
334
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
339
335
  MEMBER = "MEMBER",
@@ -341,4 +337,39 @@ export declare enum WebhookIdentityType {
341
337
  APP = "APP"
342
338
  }
343
339
  /** @enumType */
344
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
340
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
341
+ interface ListExternalDatabaseConnectionsOptions {
342
+ /** Paging metadata. */
343
+ paging?: Paging;
344
+ }
345
+ interface UpdateExternalDatabaseConnection {
346
+ /**
347
+ * Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`.
348
+ * @format WEB_URL
349
+ */
350
+ endpoint?: string | null;
351
+ /**
352
+ * Settings specified to the external database connection as part of each request.
353
+ *
354
+ * These settings can relate to authentication, tenancy, or provide any other information necessary for processing a request. Their content and structure depend on the specific requirements of the external database's API.
355
+ */
356
+ configuration?: Record<string, any> | null;
357
+ /**
358
+ * Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
359
+ * @readonly
360
+ */
361
+ connectionStatus?: ConnectionStatus;
362
+ /**
363
+ * Public key used to validate requests to the external database.
364
+ * @readonly
365
+ * @maxLength 128
366
+ */
367
+ publicKey?: string | null;
368
+ /**
369
+ * Capabilities of the external database.
370
+ * @readonly
371
+ */
372
+ capabilities?: Capabilities;
373
+ }
374
+
375
+ export { type ActionEvent as A, type ConnectionTypeWithLiterals as C, type DeleteExternalDatabaseConnectionRequest as D, type ExternalDatabaseConnection as E, FieldType as F, type GetExternalDatabaseConnectionRequest as G, type IdentificationData as I, type ListExternalDatabaseConnectionsOptions as L, type MessageEnvelope as M, ProtocolVersion as P, type RestoreInfo as R, type UpdateExternalDatabaseConnection as U, WebhookIdentityType as W, type ListExternalDatabaseConnectionsResponse as a, CauseOfFailure as b, CollectionsFound as c, ConnectionType as d, type ConnectionStatus as e, type Capabilities as f, type GetExternalDatabaseConnectionResponse as g, type ListExternalDatabaseConnectionsRequest as h, type Paging as i, type PagingMetadata as j, type CreateExternalDatabaseConnectionRequest as k, type CreateExternalDatabaseConnectionResponse as l, type UpdateExternalDatabaseConnectionRequest as m, type UpdateExternalDatabaseConnectionResponse as n, type DeleteExternalDatabaseConnectionResponse as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type EntityUpdatedEvent as s, type EntityDeletedEvent as t, type IdentificationDataIdOneOf as u };
@@ -1,5 +1,5 @@
1
1
  /** An external database connection defines a connection between an external database and a Wix site. */
2
- export interface ExternalDatabaseConnection {
2
+ interface ExternalDatabaseConnection {
3
3
  /**
4
4
  * Name of the external database connection.
5
5
  *
@@ -37,7 +37,7 @@ export interface ExternalDatabaseConnection {
37
37
  */
38
38
  capabilities?: Capabilities;
39
39
  }
40
- export declare enum CauseOfFailure {
40
+ declare enum CauseOfFailure {
41
41
  /** No connection failure. */
42
42
  NONE = "NONE",
43
43
  /** General communication failure. */
@@ -50,8 +50,8 @@ export declare enum CauseOfFailure {
50
50
  DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
51
51
  }
52
52
  /** @enumType */
53
- export type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
54
- export declare enum CollectionsFound {
53
+ type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
54
+ declare enum CollectionsFound {
55
55
  /** Attempt to connect to the external database failed, so status is unknown. */
56
56
  UNKNOWN = "UNKNOWN",
57
57
  /** External database has collections. */
@@ -60,8 +60,8 @@ export declare enum CollectionsFound {
60
60
  NO = "NO"
61
61
  }
62
62
  /** @enumType */
63
- export type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
64
- export declare enum FieldType {
63
+ type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
64
+ declare enum FieldType {
65
65
  UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
66
66
  TEXT = "TEXT",
67
67
  NUMBER = "NUMBER",
@@ -103,8 +103,8 @@ export declare enum FieldType {
103
103
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
104
104
  }
105
105
  /** @enumType */
106
- export type FieldTypeWithLiterals = FieldType | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
107
- export interface ConnectionStatus {
106
+ type FieldTypeWithLiterals = FieldType | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
107
+ interface ConnectionStatus {
108
108
  /** Whether the connection was established successfully. */
109
109
  successful?: boolean;
110
110
  /** Whether and why the connection attempt failed. */
@@ -115,15 +115,13 @@ export interface ConnectionStatus {
115
115
  */
116
116
  hasCollections?: CollectionsFoundWithLiterals;
117
117
  }
118
- export declare enum ProtocolVersion {
118
+ declare enum ProtocolVersion {
119
119
  UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
120
120
  V1 = "V1",
121
121
  V2 = "V2",
122
122
  V3 = "V3"
123
123
  }
124
- /** @enumType */
125
- export type ProtocolVersionWithLiterals = ProtocolVersion | 'UNKNOWN_PROTOCOL_VERSION' | 'V1' | 'V2' | 'V3';
126
- export interface Capabilities {
124
+ interface Capabilities {
127
125
  /** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
128
126
  collectionModificationsSupported?: boolean;
129
127
  /**
@@ -132,34 +130,34 @@ export interface Capabilities {
132
130
  */
133
131
  fieldTypes?: FieldTypeWithLiterals[];
134
132
  }
135
- export interface GetExternalDatabaseConnectionRequest {
133
+ interface GetExternalDatabaseConnectionRequest {
136
134
  /**
137
135
  * Name of the external database connection to retrieve.
138
136
  * @maxLength 255
139
137
  */
140
138
  name: string;
141
139
  }
142
- export interface GetExternalDatabaseConnectionResponse {
140
+ interface GetExternalDatabaseConnectionResponse {
143
141
  /** Details of the retrieved external database connection. */
144
142
  externalDatabaseConnection?: ExternalDatabaseConnection;
145
143
  }
146
- export interface ListExternalDatabaseConnectionsRequest {
144
+ interface ListExternalDatabaseConnectionsRequest {
147
145
  /** Paging metadata. */
148
146
  paging?: Paging;
149
147
  }
150
- export interface Paging {
148
+ interface Paging {
151
149
  /** Number of items to load. */
152
150
  limit?: number | null;
153
151
  /** Number of items to skip in the current sort order. */
154
152
  offset?: number | null;
155
153
  }
156
- export interface ListExternalDatabaseConnectionsResponse {
154
+ interface ListExternalDatabaseConnectionsResponse {
157
155
  /** List of external database connections. */
158
156
  externalDatabaseConnections?: ExternalDatabaseConnection[];
159
157
  /** Paging metadata. */
160
158
  pagingMetadata?: PagingMetadata;
161
159
  }
162
- export interface PagingMetadata {
160
+ interface PagingMetadata {
163
161
  /** Number of items returned in the response. */
164
162
  count?: number | null;
165
163
  /** Offset that was requested. */
@@ -169,13 +167,13 @@ export interface PagingMetadata {
169
167
  /** Flag that indicates the server failed to calculate the `total` field. */
170
168
  tooManyToCount?: boolean | null;
171
169
  }
172
- export interface CreateExternalDatabaseConnectionRequest {
170
+ interface CreateExternalDatabaseConnectionRequest {
173
171
  /** External database connection details. */
174
172
  externalDatabaseConnection: ExternalDatabaseConnection;
175
173
  /** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */
176
174
  connectionType: ConnectionTypeWithLiterals;
177
175
  }
178
- export declare enum ConnectionType {
176
+ declare enum ConnectionType {
179
177
  /** Unknown connection type. */
180
178
  UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
181
179
  /** External database connection based on the legacy [external database collection service plugin](https://dev.wix.com/docs/velo/api-reference/wix-data-v2/service-plugins-spis/external-database-collection-legacy/introduction). */
@@ -184,35 +182,35 @@ export declare enum ConnectionType {
184
182
  WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
185
183
  }
186
184
  /** @enumType */
187
- export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
188
- export interface CreateExternalDatabaseConnectionResponse {
185
+ type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
186
+ interface CreateExternalDatabaseConnectionResponse {
189
187
  /** Details of the created external database connection. */
190
188
  externalDatabaseConnection?: ExternalDatabaseConnection;
191
189
  }
192
- export interface UpdateExternalDatabaseConnectionRequest {
190
+ interface UpdateExternalDatabaseConnectionRequest {
193
191
  /** Updated external database connection. The existing connection is replaced with this version. */
194
192
  externalDatabaseConnection: ExternalDatabaseConnection;
195
193
  }
196
- export interface UpdateExternalDatabaseConnectionResponse {
194
+ interface UpdateExternalDatabaseConnectionResponse {
197
195
  /** Details of the updated external database connection. */
198
196
  externalDatabaseConnection?: ExternalDatabaseConnection;
199
197
  }
200
- export interface DeleteExternalDatabaseConnectionRequest {
198
+ interface DeleteExternalDatabaseConnectionRequest {
201
199
  /**
202
200
  * Name of the external database connection to delete.
203
201
  * @maxLength 255
204
202
  */
205
203
  name: string;
206
204
  }
207
- export interface DeleteExternalDatabaseConnectionResponse {
205
+ interface DeleteExternalDatabaseConnectionResponse {
208
206
  }
209
- export interface DomainEvent extends DomainEventBodyOneOf {
207
+ interface DomainEvent extends DomainEventBodyOneOf {
210
208
  createdEvent?: EntityCreatedEvent;
211
209
  updatedEvent?: EntityUpdatedEvent;
212
210
  deletedEvent?: EntityDeletedEvent;
213
211
  actionEvent?: ActionEvent;
214
212
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
215
- id?: string;
213
+ _id?: string;
216
214
  /**
217
215
  * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
218
216
  * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
@@ -241,36 +239,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
241
239
  entityEventSequence?: string | null;
242
240
  }
243
241
  /** @oneof */
244
- export interface DomainEventBodyOneOf {
242
+ interface DomainEventBodyOneOf {
245
243
  createdEvent?: EntityCreatedEvent;
246
244
  updatedEvent?: EntityUpdatedEvent;
247
245
  deletedEvent?: EntityDeletedEvent;
248
246
  actionEvent?: ActionEvent;
249
247
  }
250
- export interface EntityCreatedEvent {
251
- entityAsJson?: string;
252
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
253
- restoreInfo?: RestoreInfo;
248
+ interface EntityCreatedEvent {
249
+ entity?: string;
254
250
  }
255
- export interface RestoreInfo {
251
+ interface RestoreInfo {
256
252
  deletedDate?: Date | null;
257
253
  }
258
- export interface EntityUpdatedEvent {
254
+ interface EntityUpdatedEvent {
259
255
  /**
260
256
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
261
257
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
262
258
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
263
259
  */
264
- currentEntityAsJson?: string;
260
+ currentEntity?: string;
265
261
  }
266
- export interface EntityDeletedEvent {
262
+ interface EntityDeletedEvent {
267
263
  /** Entity that was deleted. */
268
- deletedEntityAsJson?: string | null;
264
+ deletedEntity?: string | null;
269
265
  }
270
- export interface ActionEvent {
271
- bodyAsJson?: string;
266
+ interface ActionEvent {
267
+ body?: string;
272
268
  }
273
- export interface MessageEnvelope {
269
+ interface MessageEnvelope {
274
270
  /**
275
271
  * App instance ID.
276
272
  * @format GUID
@@ -286,7 +282,7 @@ export interface MessageEnvelope {
286
282
  /** Stringify payload. */
287
283
  data?: string;
288
284
  }
289
- export interface IdentificationData extends IdentificationDataIdOneOf {
285
+ interface IdentificationData extends IdentificationDataIdOneOf {
290
286
  /**
291
287
  * ID of a site visitor that has not logged in to the site.
292
288
  * @format GUID
@@ -311,7 +307,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
311
307
  identityType?: WebhookIdentityTypeWithLiterals;
312
308
  }
313
309
  /** @oneof */
314
- export interface IdentificationDataIdOneOf {
310
+ interface IdentificationDataIdOneOf {
315
311
  /**
316
312
  * ID of a site visitor that has not logged in to the site.
317
313
  * @format GUID
@@ -333,7 +329,7 @@ export interface IdentificationDataIdOneOf {
333
329
  */
334
330
  appId?: string;
335
331
  }
336
- export declare enum WebhookIdentityType {
332
+ declare enum WebhookIdentityType {
337
333
  UNKNOWN = "UNKNOWN",
338
334
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
339
335
  MEMBER = "MEMBER",
@@ -341,4 +337,39 @@ export declare enum WebhookIdentityType {
341
337
  APP = "APP"
342
338
  }
343
339
  /** @enumType */
344
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
340
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
341
+ interface ListExternalDatabaseConnectionsOptions {
342
+ /** Paging metadata. */
343
+ paging?: Paging;
344
+ }
345
+ interface UpdateExternalDatabaseConnection {
346
+ /**
347
+ * Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`.
348
+ * @format WEB_URL
349
+ */
350
+ endpoint?: string | null;
351
+ /**
352
+ * Settings specified to the external database connection as part of each request.
353
+ *
354
+ * These settings can relate to authentication, tenancy, or provide any other information necessary for processing a request. Their content and structure depend on the specific requirements of the external database's API.
355
+ */
356
+ configuration?: Record<string, any> | null;
357
+ /**
358
+ * Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
359
+ * @readonly
360
+ */
361
+ connectionStatus?: ConnectionStatus;
362
+ /**
363
+ * Public key used to validate requests to the external database.
364
+ * @readonly
365
+ * @maxLength 128
366
+ */
367
+ publicKey?: string | null;
368
+ /**
369
+ * Capabilities of the external database.
370
+ * @readonly
371
+ */
372
+ capabilities?: Capabilities;
373
+ }
374
+
375
+ export { type ActionEvent as A, type ConnectionTypeWithLiterals as C, type DeleteExternalDatabaseConnectionRequest as D, type ExternalDatabaseConnection as E, FieldType as F, type GetExternalDatabaseConnectionRequest as G, type IdentificationData as I, type ListExternalDatabaseConnectionsOptions as L, type MessageEnvelope as M, ProtocolVersion as P, type RestoreInfo as R, type UpdateExternalDatabaseConnection as U, WebhookIdentityType as W, type ListExternalDatabaseConnectionsResponse as a, CauseOfFailure as b, CollectionsFound as c, ConnectionType as d, type ConnectionStatus as e, type Capabilities as f, type GetExternalDatabaseConnectionResponse as g, type ListExternalDatabaseConnectionsRequest as h, type Paging as i, type PagingMetadata as j, type CreateExternalDatabaseConnectionRequest as k, type CreateExternalDatabaseConnectionResponse as l, type UpdateExternalDatabaseConnectionRequest as m, type UpdateExternalDatabaseConnectionResponse as n, type DeleteExternalDatabaseConnectionResponse as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type EntityUpdatedEvent as s, type EntityDeletedEvent as t, type IdentificationDataIdOneOf as u };
@@ -0,0 +1,66 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { E as ExternalDatabaseConnection, L as ListExternalDatabaseConnectionsOptions, a as ListExternalDatabaseConnectionsResponse, C as ConnectionTypeWithLiterals, U as UpdateExternalDatabaseConnection } from './data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.mjs';
3
+ export { A as ActionEvent, f as Capabilities, b as CauseOfFailure, c as CollectionsFound, e as ConnectionStatus, d as ConnectionType, k as CreateExternalDatabaseConnectionRequest, l as CreateExternalDatabaseConnectionResponse, D as DeleteExternalDatabaseConnectionRequest, o as DeleteExternalDatabaseConnectionResponse, p as DomainEvent, q as DomainEventBodyOneOf, r as EntityCreatedEvent, t as EntityDeletedEvent, s as EntityUpdatedEvent, F as FieldType, G as GetExternalDatabaseConnectionRequest, g as GetExternalDatabaseConnectionResponse, I as IdentificationData, u as IdentificationDataIdOneOf, h as ListExternalDatabaseConnectionsRequest, M as MessageEnvelope, i as Paging, j as PagingMetadata, P as ProtocolVersion, R as RestoreInfo, m as UpdateExternalDatabaseConnectionRequest, n as UpdateExternalDatabaseConnectionResponse, W as WebhookIdentityType } from './data-v1-external-database-connection-external-database-connections.universal-DDx0w2iE.mjs';
4
+
5
+ declare function getExternalDatabaseConnection$1(httpClient: HttpClient): GetExternalDatabaseConnectionSignature;
6
+ interface GetExternalDatabaseConnectionSignature {
7
+ /**
8
+ * Retrieves the specified external database connection.
9
+ * @param - Name of the external database connection to retrieve.
10
+ * @returns Details of the retrieved external database connection.
11
+ */
12
+ (name: string): Promise<ExternalDatabaseConnection>;
13
+ }
14
+ declare function listExternalDatabaseConnections$1(httpClient: HttpClient): ListExternalDatabaseConnectionsSignature;
15
+ interface ListExternalDatabaseConnectionsSignature {
16
+ /**
17
+ * Lists all of the site's external database connections of all adaptor types.
18
+ */
19
+ (options?: ListExternalDatabaseConnectionsOptions | undefined): Promise<ListExternalDatabaseConnectionsResponse>;
20
+ }
21
+ declare function createExternalDatabaseConnection$1(httpClient: HttpClient): CreateExternalDatabaseConnectionSignature;
22
+ interface CreateExternalDatabaseConnectionSignature {
23
+ /**
24
+ * Creates a new external database connection.
25
+ *
26
+ * Before you can establish a connection between a site and an external database, you must prepare an external database adaptor.
27
+ * @param - External database connection details.
28
+ * @param - Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site.
29
+ * @param - Options for creating an external database connection.
30
+ * @returns Details of the created external database connection.
31
+ */
32
+ (externalDatabaseConnection: ExternalDatabaseConnection, connectionType: ConnectionTypeWithLiterals): Promise<ExternalDatabaseConnection>;
33
+ }
34
+ declare function updateExternalDatabaseConnection$1(httpClient: HttpClient): UpdateExternalDatabaseConnectionSignature;
35
+ interface UpdateExternalDatabaseConnectionSignature {
36
+ /**
37
+ * Updates an external database connection.
38
+ *
39
+ * > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
40
+ * @param - Name of the external database connection.
41
+ *
42
+ * An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
43
+ * @param - Options for updating an external database connection.
44
+ * @param - Updated external database connection details. The existing connection is replaced with this version.
45
+ * @returns Details of the updated external database connection.
46
+ */
47
+ (name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection): Promise<ExternalDatabaseConnection>;
48
+ }
49
+ declare function deleteExternalDatabaseConnection$1(httpClient: HttpClient): DeleteExternalDatabaseConnectionSignature;
50
+ interface DeleteExternalDatabaseConnectionSignature {
51
+ /**
52
+ * Deletes an external database connection.
53
+ *
54
+ * > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database, create a new external database connection.
55
+ * @param - Name of the external database connection to delete.
56
+ */
57
+ (name: string): Promise<void>;
58
+ }
59
+
60
+ declare const getExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof getExternalDatabaseConnection$1> & typeof getExternalDatabaseConnection$1>;
61
+ declare const listExternalDatabaseConnections: MaybeContext<BuildRESTFunction<typeof listExternalDatabaseConnections$1> & typeof listExternalDatabaseConnections$1>;
62
+ declare const createExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof createExternalDatabaseConnection$1> & typeof createExternalDatabaseConnection$1>;
63
+ declare const updateExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof updateExternalDatabaseConnection$1> & typeof updateExternalDatabaseConnection$1>;
64
+ declare const deleteExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof deleteExternalDatabaseConnection$1> & typeof deleteExternalDatabaseConnection$1>;
65
+
66
+ export { ExternalDatabaseConnection, ListExternalDatabaseConnectionsOptions, ListExternalDatabaseConnectionsResponse, UpdateExternalDatabaseConnection, createExternalDatabaseConnection, deleteExternalDatabaseConnection, getExternalDatabaseConnection, listExternalDatabaseConnections, updateExternalDatabaseConnection };