@wix/auto_sdk_data_external-database-connections 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.d.ts +9 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.js +18 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.context.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.d.ts +32 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.js +445 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.http.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +23 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js +127 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +69 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js +43 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts +326 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js +92 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +448 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js +330 -0
- package/build/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.context.d.ts +9 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.context.js +9 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.context.js.map +1 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.http.d.ts +32 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.http.js +437 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.http.js.map +1 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +23 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.js +96 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.meta.js.map +1 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +69 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.public.js +29 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.types.d.ts +326 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.types.js +89 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +448 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.js +299 -0
- package/build/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.d.ts +9 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.js +18 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.context.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.d.ts +32 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.js +445 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.http.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +23 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js +127 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts +69 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.js +43 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts +326 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.js +92 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +448 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js +330 -0
- package/build/internal/cjs/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.d.ts +9 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.js +9 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.context.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.d.ts +32 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.js +437 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.http.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.d.ts +23 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.js +96 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.meta.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.d.ts +69 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.js +29 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.public.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.d.ts +326 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.js +89 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.types.js.map +1 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.d.ts +448 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.js +299 -0
- package/build/internal/es/src/data-v1-external-database-connection-external-database-connections.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.ConnectionType = exports.ProtocolVersion = exports.FieldType = exports.CollectionsFound = exports.CauseOfFailure = void 0;
|
|
4
|
+
var CauseOfFailure;
|
|
5
|
+
(function (CauseOfFailure) {
|
|
6
|
+
/** No connection failure. */
|
|
7
|
+
CauseOfFailure["NONE"] = "NONE";
|
|
8
|
+
/** General communication failure. */
|
|
9
|
+
CauseOfFailure["COMMUNICATION_FAILURE"] = "COMMUNICATION_FAILURE";
|
|
10
|
+
/** External database host is unreachable. */
|
|
11
|
+
CauseOfFailure["DESTINATION_HOST_UNREACHABLE"] = "DESTINATION_HOST_UNREACHABLE";
|
|
12
|
+
/** Unauthorized to access the external database. */
|
|
13
|
+
CauseOfFailure["UNAUTHORIZED"] = "UNAUTHORIZED";
|
|
14
|
+
/** `endpoint` is not set. */
|
|
15
|
+
CauseOfFailure["DESTINATION_ENDPOINT_NOT_DEFINED"] = "DESTINATION_ENDPOINT_NOT_DEFINED";
|
|
16
|
+
})(CauseOfFailure || (exports.CauseOfFailure = CauseOfFailure = {}));
|
|
17
|
+
var CollectionsFound;
|
|
18
|
+
(function (CollectionsFound) {
|
|
19
|
+
/** Attempt to connect to the external database failed, so status is unknown. */
|
|
20
|
+
CollectionsFound["UNKNOWN"] = "UNKNOWN";
|
|
21
|
+
/** External database has collections. */
|
|
22
|
+
CollectionsFound["YES"] = "YES";
|
|
23
|
+
/** External database does not have any collections. */
|
|
24
|
+
CollectionsFound["NO"] = "NO";
|
|
25
|
+
})(CollectionsFound || (exports.CollectionsFound = CollectionsFound = {}));
|
|
26
|
+
var FieldType;
|
|
27
|
+
(function (FieldType) {
|
|
28
|
+
FieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
29
|
+
FieldType["TEXT"] = "TEXT";
|
|
30
|
+
FieldType["NUMBER"] = "NUMBER";
|
|
31
|
+
FieldType["DATE"] = "DATE";
|
|
32
|
+
FieldType["DATETIME"] = "DATETIME";
|
|
33
|
+
FieldType["IMAGE"] = "IMAGE";
|
|
34
|
+
FieldType["BOOLEAN"] = "BOOLEAN";
|
|
35
|
+
FieldType["DOCUMENT"] = "DOCUMENT";
|
|
36
|
+
FieldType["URL"] = "URL";
|
|
37
|
+
FieldType["RICH_TEXT"] = "RICH_TEXT";
|
|
38
|
+
FieldType["VIDEO"] = "VIDEO";
|
|
39
|
+
FieldType["ANY"] = "ANY";
|
|
40
|
+
FieldType["ARRAY_STRING"] = "ARRAY_STRING";
|
|
41
|
+
FieldType["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
|
|
42
|
+
FieldType["AUDIO"] = "AUDIO";
|
|
43
|
+
FieldType["TIME"] = "TIME";
|
|
44
|
+
FieldType["LANGUAGE"] = "LANGUAGE";
|
|
45
|
+
FieldType["RICH_CONTENT"] = "RICH_CONTENT";
|
|
46
|
+
FieldType["MEDIA_GALLERY"] = "MEDIA_GALLERY";
|
|
47
|
+
FieldType["ADDRESS"] = "ADDRESS";
|
|
48
|
+
FieldType["PAGE_LINK"] = "PAGE_LINK";
|
|
49
|
+
FieldType["REFERENCE"] = "REFERENCE";
|
|
50
|
+
FieldType["MULTI_REFERENCE"] = "MULTI_REFERENCE";
|
|
51
|
+
FieldType["OBJECT"] = "OBJECT";
|
|
52
|
+
FieldType["ARRAY"] = "ARRAY";
|
|
53
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
54
|
+
FieldType["LEGACY_TIME"] = "LEGACY_TIME";
|
|
55
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
56
|
+
FieldType["LEGACY_BOOK"] = "LEGACY_BOOK";
|
|
57
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
58
|
+
FieldType["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
|
|
59
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
60
|
+
FieldType["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
|
|
61
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
62
|
+
FieldType["LEGACY_IMAGE"] = "LEGACY_IMAGE";
|
|
63
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
64
|
+
FieldType["LEGACY_COLOR"] = "LEGACY_COLOR";
|
|
65
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
66
|
+
FieldType["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
|
|
67
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
68
|
+
var ProtocolVersion;
|
|
69
|
+
(function (ProtocolVersion) {
|
|
70
|
+
ProtocolVersion["UNKNOWN_PROTOCOL_VERSION"] = "UNKNOWN_PROTOCOL_VERSION";
|
|
71
|
+
ProtocolVersion["V1"] = "V1";
|
|
72
|
+
ProtocolVersion["V2"] = "V2";
|
|
73
|
+
ProtocolVersion["V3"] = "V3";
|
|
74
|
+
})(ProtocolVersion || (exports.ProtocolVersion = ProtocolVersion = {}));
|
|
75
|
+
var ConnectionType;
|
|
76
|
+
(function (ConnectionType) {
|
|
77
|
+
/** Unknown connection type. */
|
|
78
|
+
ConnectionType["UNKNOWN_CONNECTION_TYPE"] = "UNKNOWN_CONNECTION_TYPE";
|
|
79
|
+
/** 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). */
|
|
80
|
+
ConnectionType["STANDALONE"] = "STANDALONE";
|
|
81
|
+
/** 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). */
|
|
82
|
+
ConnectionType["WIX_SERVICE_PLUGIN"] = "WIX_SERVICE_PLUGIN";
|
|
83
|
+
})(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
|
|
84
|
+
var WebhookIdentityType;
|
|
85
|
+
(function (WebhookIdentityType) {
|
|
86
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
87
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
88
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
89
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
90
|
+
WebhookIdentityType["APP"] = "APP";
|
|
91
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
92
|
+
//# sourceMappingURL=data-v1-external-database-connection-external-database-connections.types.js.map
|
|
@@ -0,0 +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":";;;AAiCA,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,8BAAd,cAAc,QAWzB;AAED,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,gFAAgF;IAChF,uCAAmB,CAAA;IACnB,yCAAyC;IACzC,+BAAW,CAAA;IACX,uDAAuD;IACvD,6BAAS,CAAA;AACX,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED,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,yBAAT,SAAS,QAwCpB;AAcD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;AACX,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AA4DD,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,8BAAd,cAAc,QAOzB;AA2ID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/** An external database connection defines a connection between an external database and a Wix site. */
|
|
2
|
+
export interface ExternalDatabaseConnection {
|
|
3
|
+
/**
|
|
4
|
+
* Name of the external database connection.
|
|
5
|
+
*
|
|
6
|
+
* An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
|
|
7
|
+
*/
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`. */
|
|
10
|
+
endpoint?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Settings specified to the external database connection as part of each request.
|
|
13
|
+
*
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
configuration?: Record<string, any> | null;
|
|
17
|
+
/**
|
|
18
|
+
* Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
connectionStatus?: ConnectionStatus;
|
|
22
|
+
/**
|
|
23
|
+
* Public key used to validate requests to the external database.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
publicKey?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Capabilities of the external database.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
capabilities?: Capabilities;
|
|
32
|
+
}
|
|
33
|
+
export declare enum CauseOfFailure {
|
|
34
|
+
/** No connection failure. */
|
|
35
|
+
NONE = "NONE",
|
|
36
|
+
/** General communication failure. */
|
|
37
|
+
COMMUNICATION_FAILURE = "COMMUNICATION_FAILURE",
|
|
38
|
+
/** External database host is unreachable. */
|
|
39
|
+
DESTINATION_HOST_UNREACHABLE = "DESTINATION_HOST_UNREACHABLE",
|
|
40
|
+
/** Unauthorized to access the external database. */
|
|
41
|
+
UNAUTHORIZED = "UNAUTHORIZED",
|
|
42
|
+
/** `endpoint` is not set. */
|
|
43
|
+
DESTINATION_ENDPOINT_NOT_DEFINED = "DESTINATION_ENDPOINT_NOT_DEFINED"
|
|
44
|
+
}
|
|
45
|
+
export declare enum CollectionsFound {
|
|
46
|
+
/** Attempt to connect to the external database failed, so status is unknown. */
|
|
47
|
+
UNKNOWN = "UNKNOWN",
|
|
48
|
+
/** External database has collections. */
|
|
49
|
+
YES = "YES",
|
|
50
|
+
/** External database does not have any collections. */
|
|
51
|
+
NO = "NO"
|
|
52
|
+
}
|
|
53
|
+
export declare enum FieldType {
|
|
54
|
+
UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
|
|
55
|
+
TEXT = "TEXT",
|
|
56
|
+
NUMBER = "NUMBER",
|
|
57
|
+
DATE = "DATE",
|
|
58
|
+
DATETIME = "DATETIME",
|
|
59
|
+
IMAGE = "IMAGE",
|
|
60
|
+
BOOLEAN = "BOOLEAN",
|
|
61
|
+
DOCUMENT = "DOCUMENT",
|
|
62
|
+
URL = "URL",
|
|
63
|
+
RICH_TEXT = "RICH_TEXT",
|
|
64
|
+
VIDEO = "VIDEO",
|
|
65
|
+
ANY = "ANY",
|
|
66
|
+
ARRAY_STRING = "ARRAY_STRING",
|
|
67
|
+
ARRAY_DOCUMENT = "ARRAY_DOCUMENT",
|
|
68
|
+
AUDIO = "AUDIO",
|
|
69
|
+
TIME = "TIME",
|
|
70
|
+
LANGUAGE = "LANGUAGE",
|
|
71
|
+
RICH_CONTENT = "RICH_CONTENT",
|
|
72
|
+
MEDIA_GALLERY = "MEDIA_GALLERY",
|
|
73
|
+
ADDRESS = "ADDRESS",
|
|
74
|
+
PAGE_LINK = "PAGE_LINK",
|
|
75
|
+
REFERENCE = "REFERENCE",
|
|
76
|
+
MULTI_REFERENCE = "MULTI_REFERENCE",
|
|
77
|
+
OBJECT = "OBJECT",
|
|
78
|
+
ARRAY = "ARRAY",
|
|
79
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
80
|
+
LEGACY_TIME = "LEGACY_TIME",
|
|
81
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
82
|
+
LEGACY_BOOK = "LEGACY_BOOK",
|
|
83
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
84
|
+
LEGACY_EXTERNAL_URL = "LEGACY_EXTERNAL_URL",
|
|
85
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
86
|
+
LEGACY_BROKEN_REFERENCE = "LEGACY_BROKEN_REFERENCE",
|
|
87
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
88
|
+
LEGACY_IMAGE = "LEGACY_IMAGE",
|
|
89
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
90
|
+
LEGACY_COLOR = "LEGACY_COLOR",
|
|
91
|
+
/** Deprecated - can’t be added to collections. Can only appear in older collections. */
|
|
92
|
+
LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
|
|
93
|
+
}
|
|
94
|
+
export interface ConnectionStatus {
|
|
95
|
+
/** Whether the connection was established successfully. */
|
|
96
|
+
successful?: boolean;
|
|
97
|
+
/** Whether and why the connection attempt failed. */
|
|
98
|
+
causeOfFailure?: CauseOfFailure;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the external database has collections.
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
hasCollections?: CollectionsFound;
|
|
104
|
+
}
|
|
105
|
+
export declare enum ProtocolVersion {
|
|
106
|
+
UNKNOWN_PROTOCOL_VERSION = "UNKNOWN_PROTOCOL_VERSION",
|
|
107
|
+
V1 = "V1",
|
|
108
|
+
V2 = "V2",
|
|
109
|
+
V3 = "V3"
|
|
110
|
+
}
|
|
111
|
+
export interface Capabilities {
|
|
112
|
+
/** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
|
|
113
|
+
collectionModificationsSupported?: boolean;
|
|
114
|
+
/** Field types the external database supports. Applies only when `collectionModificationsSupported` is set to `true`. */
|
|
115
|
+
fieldTypes?: FieldType[];
|
|
116
|
+
}
|
|
117
|
+
export interface GetExternalDatabaseConnectionRequest {
|
|
118
|
+
/** Name of the external database connection to retrieve. */
|
|
119
|
+
name: string;
|
|
120
|
+
}
|
|
121
|
+
export interface GetExternalDatabaseConnectionResponse {
|
|
122
|
+
/** Details of the retrieved external database connection. */
|
|
123
|
+
externalDatabaseConnection?: ExternalDatabaseConnection;
|
|
124
|
+
}
|
|
125
|
+
export interface ListExternalDatabaseConnectionsRequest {
|
|
126
|
+
/** Paging metadata. */
|
|
127
|
+
paging?: Paging;
|
|
128
|
+
}
|
|
129
|
+
export interface Paging {
|
|
130
|
+
/** Number of items to load. */
|
|
131
|
+
limit?: number | null;
|
|
132
|
+
/** Number of items to skip in the current sort order. */
|
|
133
|
+
offset?: number | null;
|
|
134
|
+
}
|
|
135
|
+
export interface ListExternalDatabaseConnectionsResponse {
|
|
136
|
+
/** List of external database connections. */
|
|
137
|
+
externalDatabaseConnections?: ExternalDatabaseConnection[];
|
|
138
|
+
/** Paging metadata. */
|
|
139
|
+
pagingMetadata?: PagingMetadata;
|
|
140
|
+
}
|
|
141
|
+
export interface PagingMetadata {
|
|
142
|
+
/** Number of items returned in the response. */
|
|
143
|
+
count?: number | null;
|
|
144
|
+
/** Offset that was requested. */
|
|
145
|
+
offset?: number | null;
|
|
146
|
+
/** Total number of items that match the query. */
|
|
147
|
+
total?: number | null;
|
|
148
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
149
|
+
tooManyToCount?: boolean | null;
|
|
150
|
+
}
|
|
151
|
+
export interface CreateExternalDatabaseConnectionRequest {
|
|
152
|
+
/** External database connection details. */
|
|
153
|
+
externalDatabaseConnection: ExternalDatabaseConnection;
|
|
154
|
+
/**
|
|
155
|
+
* Connection type. The connection type determines the type of adaptor by which the external collection is integrated with the site.
|
|
156
|
+
*
|
|
157
|
+
* Learn more about [external database adaptors](https://dev.wix.com/docs/rest/business-solutions/cms/external-database-connection/introduction#about-external-database-adaptors).
|
|
158
|
+
*/
|
|
159
|
+
connectionType: ConnectionType;
|
|
160
|
+
}
|
|
161
|
+
export declare enum ConnectionType {
|
|
162
|
+
/** Unknown connection type. */
|
|
163
|
+
UNKNOWN_CONNECTION_TYPE = "UNKNOWN_CONNECTION_TYPE",
|
|
164
|
+
/** 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). */
|
|
165
|
+
STANDALONE = "STANDALONE",
|
|
166
|
+
/** 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). */
|
|
167
|
+
WIX_SERVICE_PLUGIN = "WIX_SERVICE_PLUGIN"
|
|
168
|
+
}
|
|
169
|
+
export interface CreateExternalDatabaseConnectionResponse {
|
|
170
|
+
/** Details of the created external database connection. */
|
|
171
|
+
externalDatabaseConnection?: ExternalDatabaseConnection;
|
|
172
|
+
}
|
|
173
|
+
export interface UpdateExternalDatabaseConnectionRequest {
|
|
174
|
+
/** Updated external database connection. The existing connection is replaced with this version. */
|
|
175
|
+
externalDatabaseConnection: ExternalDatabaseConnection;
|
|
176
|
+
}
|
|
177
|
+
export interface UpdateExternalDatabaseConnectionResponse {
|
|
178
|
+
/** Details of the updated external database connection. */
|
|
179
|
+
externalDatabaseConnection?: ExternalDatabaseConnection;
|
|
180
|
+
}
|
|
181
|
+
export interface DeleteExternalDatabaseConnectionRequest {
|
|
182
|
+
/** Name of the external database connection to delete. */
|
|
183
|
+
name: string;
|
|
184
|
+
}
|
|
185
|
+
export interface DeleteExternalDatabaseConnectionResponse {
|
|
186
|
+
}
|
|
187
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
188
|
+
createdEvent?: EntityCreatedEvent;
|
|
189
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
190
|
+
deletedEvent?: EntityDeletedEvent;
|
|
191
|
+
actionEvent?: ActionEvent;
|
|
192
|
+
/**
|
|
193
|
+
* Unique event ID.
|
|
194
|
+
* Allows clients to ignore duplicate webhooks.
|
|
195
|
+
*/
|
|
196
|
+
_id?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Assumes actions are also always typed to an entity_type
|
|
199
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
200
|
+
*/
|
|
201
|
+
entityFqdn?: string;
|
|
202
|
+
/**
|
|
203
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
204
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
205
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
206
|
+
*/
|
|
207
|
+
slug?: string;
|
|
208
|
+
/** ID of the entity associated with the event. */
|
|
209
|
+
entityId?: string;
|
|
210
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
211
|
+
eventTime?: Date | null;
|
|
212
|
+
/**
|
|
213
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
214
|
+
* (for example, GDPR).
|
|
215
|
+
*/
|
|
216
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
217
|
+
/** If present, indicates the action that triggered the event. */
|
|
218
|
+
originatedFrom?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
221
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
222
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
223
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
224
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
225
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
226
|
+
*/
|
|
227
|
+
entityEventSequence?: string | null;
|
|
228
|
+
}
|
|
229
|
+
/** @oneof */
|
|
230
|
+
export interface DomainEventBodyOneOf {
|
|
231
|
+
createdEvent?: EntityCreatedEvent;
|
|
232
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
233
|
+
deletedEvent?: EntityDeletedEvent;
|
|
234
|
+
actionEvent?: ActionEvent;
|
|
235
|
+
}
|
|
236
|
+
export interface EntityCreatedEvent {
|
|
237
|
+
entity?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface RestoreInfo {
|
|
240
|
+
deletedDate?: Date | null;
|
|
241
|
+
}
|
|
242
|
+
export interface EntityUpdatedEvent {
|
|
243
|
+
/**
|
|
244
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
245
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
246
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
247
|
+
*/
|
|
248
|
+
currentEntity?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface EntityDeletedEvent {
|
|
251
|
+
/** Entity that was deleted */
|
|
252
|
+
deletedEntity?: string | null;
|
|
253
|
+
}
|
|
254
|
+
export interface ActionEvent {
|
|
255
|
+
body?: string;
|
|
256
|
+
}
|
|
257
|
+
export interface MessageEnvelope {
|
|
258
|
+
/** App instance ID. */
|
|
259
|
+
instanceId?: string | null;
|
|
260
|
+
/** Event type. */
|
|
261
|
+
eventType?: string;
|
|
262
|
+
/** The identification type and identity data. */
|
|
263
|
+
identity?: IdentificationData;
|
|
264
|
+
/** Stringify payload. */
|
|
265
|
+
data?: string;
|
|
266
|
+
}
|
|
267
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
268
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
269
|
+
anonymousVisitorId?: string;
|
|
270
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
271
|
+
memberId?: string;
|
|
272
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
273
|
+
wixUserId?: string;
|
|
274
|
+
/** ID of an app. */
|
|
275
|
+
appId?: string;
|
|
276
|
+
/** @readonly */
|
|
277
|
+
identityType?: WebhookIdentityType;
|
|
278
|
+
}
|
|
279
|
+
/** @oneof */
|
|
280
|
+
export interface IdentificationDataIdOneOf {
|
|
281
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
282
|
+
anonymousVisitorId?: string;
|
|
283
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
284
|
+
memberId?: string;
|
|
285
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
286
|
+
wixUserId?: string;
|
|
287
|
+
/** ID of an app. */
|
|
288
|
+
appId?: string;
|
|
289
|
+
}
|
|
290
|
+
export declare enum WebhookIdentityType {
|
|
291
|
+
UNKNOWN = "UNKNOWN",
|
|
292
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
293
|
+
MEMBER = "MEMBER",
|
|
294
|
+
WIX_USER = "WIX_USER",
|
|
295
|
+
APP = "APP"
|
|
296
|
+
}
|
|
297
|
+
interface ConnectionStatusNonNullableFields {
|
|
298
|
+
successful: boolean;
|
|
299
|
+
causeOfFailure: CauseOfFailure;
|
|
300
|
+
hasCollections: CollectionsFound;
|
|
301
|
+
}
|
|
302
|
+
interface CapabilitiesNonNullableFields {
|
|
303
|
+
collectionModificationsSupported: boolean;
|
|
304
|
+
fieldTypes: FieldType[];
|
|
305
|
+
}
|
|
306
|
+
export interface ExternalDatabaseConnectionNonNullableFields {
|
|
307
|
+
name: string;
|
|
308
|
+
connectionStatus?: ConnectionStatusNonNullableFields;
|
|
309
|
+
protocolVersion: ProtocolVersion;
|
|
310
|
+
capabilities?: CapabilitiesNonNullableFields;
|
|
311
|
+
}
|
|
312
|
+
export interface GetExternalDatabaseConnectionResponseNonNullableFields {
|
|
313
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
314
|
+
}
|
|
315
|
+
export interface ListExternalDatabaseConnectionsResponseNonNullableFields {
|
|
316
|
+
externalDatabaseConnections: ExternalDatabaseConnectionNonNullableFields[];
|
|
317
|
+
}
|
|
318
|
+
export interface CreateExternalDatabaseConnectionResponseNonNullableFields {
|
|
319
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
320
|
+
}
|
|
321
|
+
export interface UpdateExternalDatabaseConnectionResponseNonNullableFields {
|
|
322
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Retrieves the specified external database connection.
|
|
326
|
+
* @param name - Name of the external database connection to retrieve.
|
|
327
|
+
* @public
|
|
328
|
+
* @requiredField name
|
|
329
|
+
* @permissionId WIX_DATA.GET_EXTERNAL_DATABASE_CONNECTION
|
|
330
|
+
* @permissionScope Manage External Database Connections
|
|
331
|
+
* @permissionScopeId SCOPE.DC-DATA.EXTERNAL-DATABASE-CONNECTIONS-MANAGE
|
|
332
|
+
* @permissionScope Manage All Data Resources
|
|
333
|
+
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
334
|
+
* @applicableIdentity APP
|
|
335
|
+
* @returns Details of the retrieved external database connection.
|
|
336
|
+
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.GetExternalDatabaseConnection
|
|
337
|
+
*/
|
|
338
|
+
export declare function getExternalDatabaseConnection(name: string): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
339
|
+
/**
|
|
340
|
+
* Lists the site's external database connections.
|
|
341
|
+
*
|
|
342
|
+
* > **Note**: The method lists both [adaptor types](https://dev.wix.com/docs/rest/business-solutions/cms/external-database-connection/introduction#about-external-database-adaptors).
|
|
343
|
+
* @public
|
|
344
|
+
* @permissionId WIX_DATA.LIST_EXTERNAL_DATABASE_CONNECTIONS
|
|
345
|
+
* @permissionScope Manage External Database Connections
|
|
346
|
+
* @permissionScopeId SCOPE.DC-DATA.EXTERNAL-DATABASE-CONNECTIONS-MANAGE
|
|
347
|
+
* @permissionScope Manage All Data Resources
|
|
348
|
+
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
349
|
+
* @applicableIdentity APP
|
|
350
|
+
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.ListExternalDatabaseConnections
|
|
351
|
+
*/
|
|
352
|
+
export declare function listExternalDatabaseConnections(options?: ListExternalDatabaseConnectionsOptions): Promise<ListExternalDatabaseConnectionsResponse & ListExternalDatabaseConnectionsResponseNonNullableFields>;
|
|
353
|
+
export interface ListExternalDatabaseConnectionsOptions {
|
|
354
|
+
/** Paging metadata. */
|
|
355
|
+
paging?: Paging;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Creates a new external database connection.
|
|
359
|
+
*
|
|
360
|
+
* The `externalDatabaseConnection` parameter must include a `name`, `endpoint`, and `configuration` details for the external database.
|
|
361
|
+
* If any of these are missing, the external database connection isn't created.
|
|
362
|
+
* @param externalDatabaseConnection - External database connection details.
|
|
363
|
+
* @param connectionType - Connection type. The connection type determines the type of adaptor by which the external collection is integrated with the site.
|
|
364
|
+
*
|
|
365
|
+
* Learn more about [external database adaptors](https://dev.wix.com/docs/rest/business-solutions/cms/external-database-connection/introduction#about-external-database-adaptors).
|
|
366
|
+
* @public
|
|
367
|
+
* @requiredField connectionType
|
|
368
|
+
* @requiredField externalDatabaseConnection
|
|
369
|
+
* @requiredField externalDatabaseConnection.name
|
|
370
|
+
* @param options - Options for creating an external database connection.
|
|
371
|
+
* @permissionId WIX_DATA.CREATE_EXTERNAL_DATABASE_CONNECTION
|
|
372
|
+
* @permissionScope Manage External Database Connections
|
|
373
|
+
* @permissionScopeId SCOPE.DC-DATA.EXTERNAL-DATABASE-CONNECTIONS-MANAGE
|
|
374
|
+
* @permissionScope Manage All Data Resources
|
|
375
|
+
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
376
|
+
* @applicableIdentity APP
|
|
377
|
+
* @returns Details of the created external database connection.
|
|
378
|
+
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.CreateExternalDatabaseConnection
|
|
379
|
+
*/
|
|
380
|
+
export declare function createExternalDatabaseConnection(externalDatabaseConnection: ExternalDatabaseConnection, connectionType: ConnectionType): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
381
|
+
/**
|
|
382
|
+
* Updates an external database connection.
|
|
383
|
+
*
|
|
384
|
+
* An external database collection name must be provided in `name`.
|
|
385
|
+
* If an existing external database connection is found with the same name, that connection's details are updated.
|
|
386
|
+
* If no external database connection has that name, the request fails.
|
|
387
|
+
*
|
|
388
|
+
* > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
|
|
389
|
+
* @param name - Name of the external database connection.
|
|
390
|
+
*
|
|
391
|
+
* An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
|
|
392
|
+
* @public
|
|
393
|
+
* @requiredField externalDatabaseConnection
|
|
394
|
+
* @requiredField name
|
|
395
|
+
* @param options - Options for updating an external database connection.
|
|
396
|
+
* @param externalDatabaseConnection - Updated external database connection details. The existing connection is replaced with this version.
|
|
397
|
+
* @permissionId WIX_DATA.UPDATE_EXTERNAL_DATABASE_CONNECTION
|
|
398
|
+
* @permissionScope Manage External Database Connections
|
|
399
|
+
* @permissionScopeId SCOPE.DC-DATA.EXTERNAL-DATABASE-CONNECTIONS-MANAGE
|
|
400
|
+
* @permissionScope Manage All Data Resources
|
|
401
|
+
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
402
|
+
* @applicableIdentity APP
|
|
403
|
+
* @returns Details of the updated external database connection.
|
|
404
|
+
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.UpdateExternalDatabaseConnection
|
|
405
|
+
*/
|
|
406
|
+
export declare function updateExternalDatabaseConnection(name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
407
|
+
export interface UpdateExternalDatabaseConnection {
|
|
408
|
+
/** Base URL for accessing and managing data in the external database. For example: `https://example.com/my-external-database`. */
|
|
409
|
+
endpoint?: string | null;
|
|
410
|
+
/**
|
|
411
|
+
* Settings specified to the external database connection as part of each request.
|
|
412
|
+
*
|
|
413
|
+
* 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.
|
|
414
|
+
*/
|
|
415
|
+
configuration?: Record<string, any> | null;
|
|
416
|
+
/**
|
|
417
|
+
* Status of the external database connection. Includes whether the connection was established successfully, and if not, the reason for the failure.
|
|
418
|
+
* @readonly
|
|
419
|
+
*/
|
|
420
|
+
connectionStatus?: ConnectionStatus;
|
|
421
|
+
/**
|
|
422
|
+
* Public key used to validate requests to the external database.
|
|
423
|
+
* @readonly
|
|
424
|
+
*/
|
|
425
|
+
publicKey?: string | null;
|
|
426
|
+
/**
|
|
427
|
+
* Capabilities of the external database.
|
|
428
|
+
* @readonly
|
|
429
|
+
*/
|
|
430
|
+
capabilities?: Capabilities;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Deletes an external database connection.
|
|
434
|
+
*
|
|
435
|
+
* > **Note:** Once an external database connection is deleted, it can't be restored. To reconnect the database you need to create a new external database connection.
|
|
436
|
+
* @param name - Name of the external database connection to delete.
|
|
437
|
+
* @public
|
|
438
|
+
* @requiredField name
|
|
439
|
+
* @permissionId WIX_DATA.DELETE_EXTERNAL_DATABASE_CONNECTION
|
|
440
|
+
* @permissionScope Manage External Database Connections
|
|
441
|
+
* @permissionScopeId SCOPE.DC-DATA.EXTERNAL-DATABASE-CONNECTIONS-MANAGE
|
|
442
|
+
* @permissionScope Manage All Data Resources
|
|
443
|
+
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
444
|
+
* @applicableIdentity APP
|
|
445
|
+
* @fqn com.wixpress.cloud.data.api.externaldatabase.ExternalDatabaseConnectionService.DeleteExternalDatabaseConnection
|
|
446
|
+
*/
|
|
447
|
+
export declare function deleteExternalDatabaseConnection(name: string): Promise<void>;
|
|
448
|
+
export {};
|