@wix/auto_sdk_data_external-database-connections 1.0.8 → 1.0.10
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/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +2 -2
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -1
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts +26 -22
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -1
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +27 -23
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +2 -2
- package/build/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection-external-database-connections.types.d.ts +26 -22
- package/build/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +27 -23
- package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -1
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +2 -2
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -1
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts +26 -22
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -1
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +27 -23
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -1
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +2 -2
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -1
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.d.ts +26 -22
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -1
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +27 -23
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,8 @@ export declare enum CauseOfFailure {
|
|
|
49
49
|
/** `endpoint` is not set. */
|
|
50
50
|
DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
|
|
51
51
|
}
|
|
52
|
+
/** @enumType */
|
|
53
|
+
export type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
|
|
52
54
|
export declare enum CollectionsFound {
|
|
53
55
|
/** Attempt to connect to the external database failed, so status is unknown. */
|
|
54
56
|
UNKNOWN = "UNKNOWN",
|
|
@@ -57,6 +59,8 @@ export declare enum CollectionsFound {
|
|
|
57
59
|
/** External database does not have any collections. */
|
|
58
60
|
NO = "NO"
|
|
59
61
|
}
|
|
62
|
+
/** @enumType */
|
|
63
|
+
export type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
|
|
60
64
|
export declare enum FieldType {
|
|
61
65
|
UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
|
|
62
66
|
TEXT = "TEXT",
|
|
@@ -98,16 +102,18 @@ export declare enum FieldType {
|
|
|
98
102
|
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
99
103
|
LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
|
|
100
104
|
}
|
|
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';
|
|
101
107
|
export interface ConnectionStatus {
|
|
102
108
|
/** Whether the connection was established successfully. */
|
|
103
109
|
successful?: boolean;
|
|
104
110
|
/** Whether and why the connection attempt failed. */
|
|
105
|
-
causeOfFailure?:
|
|
111
|
+
causeOfFailure?: CauseOfFailureWithLiterals;
|
|
106
112
|
/**
|
|
107
113
|
* Whether the external database has collections.
|
|
108
114
|
* @readonly
|
|
109
115
|
*/
|
|
110
|
-
hasCollections?:
|
|
116
|
+
hasCollections?: CollectionsFoundWithLiterals;
|
|
111
117
|
}
|
|
112
118
|
export declare enum ProtocolVersion {
|
|
113
119
|
UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
|
|
@@ -115,6 +121,8 @@ export declare enum ProtocolVersion {
|
|
|
115
121
|
V2 = "V2",
|
|
116
122
|
V3 = "V3"
|
|
117
123
|
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
export type ProtocolVersionWithLiterals = ProtocolVersion | 'UNKNOWN_PROTOCOL_VERSION' | 'V1' | 'V2' | 'V3';
|
|
118
126
|
export interface Capabilities {
|
|
119
127
|
/** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
|
|
120
128
|
collectionModificationsSupported?: boolean;
|
|
@@ -122,7 +130,7 @@ export interface Capabilities {
|
|
|
122
130
|
* Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`.
|
|
123
131
|
* @maxSize 255
|
|
124
132
|
*/
|
|
125
|
-
fieldTypes?:
|
|
133
|
+
fieldTypes?: FieldTypeWithLiterals[];
|
|
126
134
|
}
|
|
127
135
|
export interface GetExternalDatabaseConnectionRequest {
|
|
128
136
|
/**
|
|
@@ -165,7 +173,7 @@ export interface CreateExternalDatabaseConnectionRequest {
|
|
|
165
173
|
/** External database connection details. */
|
|
166
174
|
externalDatabaseConnection: ExternalDatabaseConnection;
|
|
167
175
|
/** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */
|
|
168
|
-
connectionType:
|
|
176
|
+
connectionType: ConnectionTypeWithLiterals;
|
|
169
177
|
}
|
|
170
178
|
export declare enum ConnectionType {
|
|
171
179
|
/** Unknown connection type. */
|
|
@@ -175,6 +183,8 @@ export declare enum ConnectionType {
|
|
|
175
183
|
/** External database connection based on the [external database service plugin](https://dev.wix.com/docs/rest/business-solutions/cms/service-plugins/external-database-service-plugin/introduction). */
|
|
176
184
|
WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
|
|
177
185
|
}
|
|
186
|
+
/** @enumType */
|
|
187
|
+
export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
|
|
178
188
|
export interface CreateExternalDatabaseConnectionResponse {
|
|
179
189
|
/** Details of the created external database connection. */
|
|
180
190
|
externalDatabaseConnection?: ExternalDatabaseConnection;
|
|
@@ -201,25 +211,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
201
211
|
updatedEvent?: EntityUpdatedEvent;
|
|
202
212
|
deletedEvent?: EntityDeletedEvent;
|
|
203
213
|
actionEvent?: ActionEvent;
|
|
204
|
-
/**
|
|
205
|
-
* Unique event ID.
|
|
206
|
-
* Allows clients to ignore duplicate webhooks.
|
|
207
|
-
*/
|
|
214
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
208
215
|
id?: string;
|
|
209
216
|
/**
|
|
210
|
-
*
|
|
211
|
-
*
|
|
217
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
218
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
212
219
|
*/
|
|
213
220
|
entityFqdn?: string;
|
|
214
221
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
222
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
223
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
218
224
|
*/
|
|
219
225
|
slug?: string;
|
|
220
226
|
/** ID of the entity associated with the event. */
|
|
221
227
|
entityId?: string;
|
|
222
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
228
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
223
229
|
eventTime?: Date | null;
|
|
224
230
|
/**
|
|
225
231
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -229,12 +235,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
229
235
|
/** If present, indicates the action that triggered the event. */
|
|
230
236
|
originatedFrom?: string | null;
|
|
231
237
|
/**
|
|
232
|
-
* A sequence number
|
|
233
|
-
*
|
|
234
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
235
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
236
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
237
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
238
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
239
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
238
240
|
*/
|
|
239
241
|
entityEventSequence?: string | null;
|
|
240
242
|
}
|
|
@@ -262,7 +264,7 @@ export interface EntityUpdatedEvent {
|
|
|
262
264
|
currentEntityAsJson?: string;
|
|
263
265
|
}
|
|
264
266
|
export interface EntityDeletedEvent {
|
|
265
|
-
/** Entity that was deleted */
|
|
267
|
+
/** Entity that was deleted. */
|
|
266
268
|
deletedEntityAsJson?: string | null;
|
|
267
269
|
}
|
|
268
270
|
export interface ActionEvent {
|
|
@@ -306,7 +308,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
306
308
|
*/
|
|
307
309
|
appId?: string;
|
|
308
310
|
/** @readonly */
|
|
309
|
-
identityType?:
|
|
311
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
310
312
|
}
|
|
311
313
|
/** @oneof */
|
|
312
314
|
export interface IdentificationDataIdOneOf {
|
|
@@ -338,3 +340,5 @@ export declare enum WebhookIdentityType {
|
|
|
338
340
|
WIX_USER = "WIX_USER",
|
|
339
341
|
APP = "APP"
|
|
340
342
|
}
|
|
343
|
+
/** @enumType */
|
|
344
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.types.js","sourceRoot":"","sources":["../../../../src/data-v1-external-database-connection-external-database-connections.types.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6BAA6B;IAC7B,+BAAa,CAAA;IACb,qCAAqC;IACrC,iEAA+C,CAAA;IAC/C,6CAA6C;IAC7C,+EAA6D,CAAA;IAC7D,oDAAoD;IACpD,+CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,uFAAqE,CAAA;AACvE,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;
|
|
1
|
+
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.types.js","sourceRoot":"","sources":["../../../../src/data-v1-external-database-connection-external-database-connections.types.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6BAA6B;IAC7B,+BAAa,CAAA;IACb,qCAAqC;IACrC,iEAA+C,CAAA;IAC/C,6CAA6C;IAC7C,+EAA6D,CAAA;IAC7D,oDAAoD;IACpD,+CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,uFAAqE,CAAA;AACvE,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AAWD,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,gFAAgF;IAChF,uCAAmB,CAAA;IACnB,yCAAyC;IACzC,+BAAW,CAAA;IACX,uDAAuD;IACvD,6BAAS,CAAA;AACX,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AASD,MAAM,CAAN,IAAY,SAwCX;AAxCD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,0CAA6B,CAAA;IAC7B,8CAAiC,CAAA;IACjC,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,0CAA6B,CAAA;IAC7B,4CAA+B,CAAA;IAC/B,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,gDAAmC,CAAA;IACnC,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,wFAAwF;IACxF,wCAA2B,CAAA;IAC3B,wFAAwF;IACxF,wCAA2B,CAAA;IAC3B,wFAAwF;IACxF,wDAA2C,CAAA;IAC3C,wFAAwF;IACxF,gEAAmD,CAAA;IACnD,wFAAwF;IACxF,0CAA6B,CAAA;IAC7B,wFAAwF;IACxF,0CAA6B,CAAA;IAC7B,wFAAwF;IACxF,4DAA+C,CAAA;AACjD,CAAC,EAxCW,SAAS,KAAT,SAAS,QAwCpB;AAkDD,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;AACX,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAsED,MAAM,CAAN,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,+BAA+B;IAC/B,qEAAmD,CAAA;IACnD,qOAAqO;IACrO,2CAAyB,CAAA;IACzB,wMAAwM;IACxM,2DAAyC,CAAA;AAC3C,CAAC,EAPW,cAAc,KAAd,cAAc,QAOzB;AA2KD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -50,6 +50,8 @@ export declare enum CauseOfFailure {
|
|
|
50
50
|
/** `endpoint` is not set. */
|
|
51
51
|
DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
|
|
52
52
|
}
|
|
53
|
+
/** @enumType */
|
|
54
|
+
export type CauseOfFailureWithLiterals = CauseOfFailure | 'NONE' | 'COMMUNICATION_FAILURE' | 'DESTINATION_HOST_UNREACHABLE' | 'UNAUTHORIZED' | 'DESTINATION_ENDPOINT_NOT_DEFINED';
|
|
53
55
|
export declare enum CollectionsFound {
|
|
54
56
|
/** Attempt to connect to the external database failed, so status is unknown. */
|
|
55
57
|
UNKNOWN = "UNKNOWN",
|
|
@@ -58,6 +60,8 @@ export declare enum CollectionsFound {
|
|
|
58
60
|
/** External database does not have any collections. */
|
|
59
61
|
NO = "NO"
|
|
60
62
|
}
|
|
63
|
+
/** @enumType */
|
|
64
|
+
export type CollectionsFoundWithLiterals = CollectionsFound | 'UNKNOWN' | 'YES' | 'NO';
|
|
61
65
|
export declare enum FieldType {
|
|
62
66
|
UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
|
|
63
67
|
TEXT = "TEXT",
|
|
@@ -99,16 +103,18 @@ export declare enum FieldType {
|
|
|
99
103
|
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
100
104
|
LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
|
|
101
105
|
}
|
|
106
|
+
/** @enumType */
|
|
107
|
+
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';
|
|
102
108
|
export interface ConnectionStatus {
|
|
103
109
|
/** Whether the connection was established successfully. */
|
|
104
110
|
successful?: boolean;
|
|
105
111
|
/** Whether and why the connection attempt failed. */
|
|
106
|
-
causeOfFailure?:
|
|
112
|
+
causeOfFailure?: CauseOfFailureWithLiterals;
|
|
107
113
|
/**
|
|
108
114
|
* Whether the external database has collections.
|
|
109
115
|
* @readonly
|
|
110
116
|
*/
|
|
111
|
-
hasCollections?:
|
|
117
|
+
hasCollections?: CollectionsFoundWithLiterals;
|
|
112
118
|
}
|
|
113
119
|
export declare enum ProtocolVersion {
|
|
114
120
|
UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
|
|
@@ -116,6 +122,8 @@ export declare enum ProtocolVersion {
|
|
|
116
122
|
V2 = "V2",
|
|
117
123
|
V3 = "V3"
|
|
118
124
|
}
|
|
125
|
+
/** @enumType */
|
|
126
|
+
export type ProtocolVersionWithLiterals = ProtocolVersion | 'UNKNOWN_PROTOCOL_VERSION' | 'V1' | 'V2' | 'V3';
|
|
119
127
|
export interface Capabilities {
|
|
120
128
|
/** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
|
|
121
129
|
collectionModificationsSupported?: boolean;
|
|
@@ -123,7 +131,7 @@ export interface Capabilities {
|
|
|
123
131
|
* Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`.
|
|
124
132
|
* @maxSize 255
|
|
125
133
|
*/
|
|
126
|
-
fieldTypes?:
|
|
134
|
+
fieldTypes?: FieldTypeWithLiterals[];
|
|
127
135
|
}
|
|
128
136
|
export interface GetExternalDatabaseConnectionRequest {
|
|
129
137
|
/**
|
|
@@ -166,7 +174,7 @@ export interface CreateExternalDatabaseConnectionRequest {
|
|
|
166
174
|
/** External database connection details. */
|
|
167
175
|
externalDatabaseConnection: ExternalDatabaseConnection;
|
|
168
176
|
/** Connection type. The connection type specifies the type of adaptor by which the external collection is integrated with the site. */
|
|
169
|
-
connectionType:
|
|
177
|
+
connectionType: ConnectionTypeWithLiterals;
|
|
170
178
|
}
|
|
171
179
|
export declare enum ConnectionType {
|
|
172
180
|
/** Unknown connection type. */
|
|
@@ -176,6 +184,8 @@ export declare enum ConnectionType {
|
|
|
176
184
|
/** External database connection based on the [external database service plugin](https://dev.wix.com/docs/rest/business-solutions/cms/service-plugins/external-database-service-plugin/introduction). */
|
|
177
185
|
WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
|
|
178
186
|
}
|
|
187
|
+
/** @enumType */
|
|
188
|
+
export type ConnectionTypeWithLiterals = ConnectionType | 'UNKNOWN_CONNECTION_TYPE' | 'STANDALONE' | 'WIX_SERVICE_PLUGIN';
|
|
179
189
|
export interface CreateExternalDatabaseConnectionResponse {
|
|
180
190
|
/** Details of the created external database connection. */
|
|
181
191
|
externalDatabaseConnection?: ExternalDatabaseConnection;
|
|
@@ -202,25 +212,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
202
212
|
updatedEvent?: EntityUpdatedEvent;
|
|
203
213
|
deletedEvent?: EntityDeletedEvent;
|
|
204
214
|
actionEvent?: ActionEvent;
|
|
205
|
-
/**
|
|
206
|
-
* Unique event ID.
|
|
207
|
-
* Allows clients to ignore duplicate webhooks.
|
|
208
|
-
*/
|
|
215
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
209
216
|
_id?: string;
|
|
210
217
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
218
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
219
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
213
220
|
*/
|
|
214
221
|
entityFqdn?: string;
|
|
215
222
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
223
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
224
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
219
225
|
*/
|
|
220
226
|
slug?: string;
|
|
221
227
|
/** ID of the entity associated with the event. */
|
|
222
228
|
entityId?: string;
|
|
223
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
229
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
224
230
|
eventTime?: Date | null;
|
|
225
231
|
/**
|
|
226
232
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -230,12 +236,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
230
236
|
/** If present, indicates the action that triggered the event. */
|
|
231
237
|
originatedFrom?: string | null;
|
|
232
238
|
/**
|
|
233
|
-
* A sequence number
|
|
234
|
-
*
|
|
235
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
236
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
237
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
238
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
239
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
240
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
239
241
|
*/
|
|
240
242
|
entityEventSequence?: string | null;
|
|
241
243
|
}
|
|
@@ -261,7 +263,7 @@ export interface EntityUpdatedEvent {
|
|
|
261
263
|
currentEntity?: string;
|
|
262
264
|
}
|
|
263
265
|
export interface EntityDeletedEvent {
|
|
264
|
-
/** Entity that was deleted */
|
|
266
|
+
/** Entity that was deleted. */
|
|
265
267
|
deletedEntity?: string | null;
|
|
266
268
|
}
|
|
267
269
|
export interface ActionEvent {
|
|
@@ -305,7 +307,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
305
307
|
*/
|
|
306
308
|
appId?: string;
|
|
307
309
|
/** @readonly */
|
|
308
|
-
identityType?:
|
|
310
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
309
311
|
}
|
|
310
312
|
/** @oneof */
|
|
311
313
|
export interface IdentificationDataIdOneOf {
|
|
@@ -337,6 +339,8 @@ export declare enum WebhookIdentityType {
|
|
|
337
339
|
WIX_USER = "WIX_USER",
|
|
338
340
|
APP = "APP"
|
|
339
341
|
}
|
|
342
|
+
/** @enumType */
|
|
343
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
340
344
|
type ExternalDatabaseConnectionNonNullablePaths = `name` | `connectionStatus.successful` | `connectionStatus.causeOfFailure` | `connectionStatus.hasCollections` | `capabilities.collectionModificationsSupported` | `capabilities.fieldTypes`;
|
|
341
345
|
/**
|
|
342
346
|
* Retrieves the specified external database connection.
|
|
@@ -391,7 +395,7 @@ export interface ListExternalDatabaseConnectionsOptions {
|
|
|
391
395
|
* @returns Details of the created external database connection.
|
|
392
396
|
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.CreateExternalDatabaseConnection
|
|
393
397
|
*/
|
|
394
|
-
export declare function createExternalDatabaseConnection(externalDatabaseConnection: NonNullablePaths<ExternalDatabaseConnection, `name`>, connectionType:
|
|
398
|
+
export declare function createExternalDatabaseConnection(externalDatabaseConnection: NonNullablePaths<ExternalDatabaseConnection, `name`>, connectionType: ConnectionTypeWithLiterals): Promise<NonNullablePaths<ExternalDatabaseConnection, ExternalDatabaseConnectionNonNullablePaths>>;
|
|
395
399
|
/**
|
|
396
400
|
* Updates an external database connection.
|
|
397
401
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.universal.js","sourceRoot":"","sources":["../../../../src/data-v1-external-database-connection-external-database-connections.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,6CAA6C,MAAM,8EAA8E,CAAC;AA0C9I,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6BAA6B;IAC7B,+BAAa,CAAA;IACb,qCAAqC;IACrC,iEAA+C,CAAA;IAC/C,6CAA6C;IAC7C,+EAA6D,CAAA;IAC7D,oDAAoD;IACpD,+CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,uFAAqE,CAAA;AACvE,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;
|
|
1
|
+
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.universal.js","sourceRoot":"","sources":["../../../../src/data-v1-external-database-connection-external-database-connections.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,6CAA6C,MAAM,8EAA8E,CAAC;AA0C9I,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6BAA6B;IAC7B,+BAAa,CAAA;IACb,qCAAqC;IACrC,iEAA+C,CAAA;IAC/C,6CAA6C;IAC7C,+EAA6D,CAAA;IAC7D,oDAAoD;IACpD,+CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,uFAAqE,CAAA;AACvE,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AAWD,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,gFAAgF;IAChF,uCAAmB,CAAA;IACnB,yCAAyC;IACzC,+BAAW,CAAA;IACX,uDAAuD;IACvD,6BAAS,CAAA;AACX,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AASD,MAAM,CAAN,IAAY,SAwCX;AAxCD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,wBAAW,CA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AC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAgCD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CACpD,IAAY;IAEZ,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,MAAM,OAAO,GACX,6CAA6C,CAAC,gCAAgC,CAC5E,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC1C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,MAAM,CAAC,CACT,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_data_external-database-connections",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.data.v1.external_database_connection"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "91f40058cd3ea31373b1ac41a9cb776b279c9f713729c5076f57e77c"
|
|
52
52
|
}
|