@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.meta.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.deleteExternalDatabaseConnection = exports.updateExternalDatabaseConnection = exports.createExternalDatabaseConnection = exports.listExternalDatabaseConnections = exports.getExternalDatabaseConnection = void 0;
|
|
27
|
+
const ambassadorWixDataV1ExternalDatabaseConnection = __importStar(require("./data-v1-external-database-connection-external-database-connections.http.js"));
|
|
28
|
+
function getExternalDatabaseConnection() {
|
|
29
|
+
const payload = { name: ':name' };
|
|
30
|
+
const getRequestOptions = ambassadorWixDataV1ExternalDatabaseConnection.getExternalDatabaseConnection(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v1/external-database-connections/{name}',
|
|
39
|
+
pathParams: { name: 'name' },
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.getExternalDatabaseConnection = getExternalDatabaseConnection;
|
|
47
|
+
function listExternalDatabaseConnections() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixDataV1ExternalDatabaseConnection.listExternalDatabaseConnections(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v1/external-database-connections',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.listExternalDatabaseConnections = listExternalDatabaseConnections;
|
|
66
|
+
function createExternalDatabaseConnection() {
|
|
67
|
+
const payload = {};
|
|
68
|
+
const getRequestOptions = ambassadorWixDataV1ExternalDatabaseConnection.createExternalDatabaseConnection(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'POST',
|
|
76
|
+
path: '/v1/external-database-connections',
|
|
77
|
+
pathParams: {},
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.createExternalDatabaseConnection = createExternalDatabaseConnection;
|
|
85
|
+
function updateExternalDatabaseConnection() {
|
|
86
|
+
const payload = {
|
|
87
|
+
externalDatabaseConnection: { name: ':externalDatabaseConnectionName' },
|
|
88
|
+
};
|
|
89
|
+
const getRequestOptions = ambassadorWixDataV1ExternalDatabaseConnection.updateExternalDatabaseConnection(payload);
|
|
90
|
+
const getUrl = (context) => {
|
|
91
|
+
const { url } = getRequestOptions(context);
|
|
92
|
+
return url;
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
getUrl,
|
|
96
|
+
httpMethod: 'PUT',
|
|
97
|
+
path: '/v1/external-database-connections/{externalDatabaseConnection.name}',
|
|
98
|
+
pathParams: {
|
|
99
|
+
externalDatabaseConnectionName: 'externalDatabaseConnectionName',
|
|
100
|
+
},
|
|
101
|
+
__requestType: null,
|
|
102
|
+
__originalRequestType: null,
|
|
103
|
+
__responseType: null,
|
|
104
|
+
__originalResponseType: null,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
exports.updateExternalDatabaseConnection = updateExternalDatabaseConnection;
|
|
108
|
+
function deleteExternalDatabaseConnection() {
|
|
109
|
+
const payload = { name: ':name' };
|
|
110
|
+
const getRequestOptions = ambassadorWixDataV1ExternalDatabaseConnection.deleteExternalDatabaseConnection(payload);
|
|
111
|
+
const getUrl = (context) => {
|
|
112
|
+
const { url } = getRequestOptions(context);
|
|
113
|
+
return url;
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
getUrl,
|
|
117
|
+
httpMethod: 'DELETE',
|
|
118
|
+
path: '/v1/external-database-connections/{name}',
|
|
119
|
+
pathParams: { name: 'name' },
|
|
120
|
+
__requestType: null,
|
|
121
|
+
__originalRequestType: null,
|
|
122
|
+
__responseType: null,
|
|
123
|
+
__originalResponseType: null,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
exports.deleteExternalDatabaseConnection = deleteExternalDatabaseConnection;
|
|
127
|
+
//# sourceMappingURL=data-v1-external-database-connection-external-database-connections.meta.js.map
|
package/build/cjs/src/data-v1-external-database-connection-external-database-connections.meta.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.meta.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection-external-database-connections.meta.ts"],"names":[],"mappings":"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"}
|
package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { ConnectionType, ExternalDatabaseConnection, ExternalDatabaseConnectionNonNullableFields, ListExternalDatabaseConnectionsOptions, ListExternalDatabaseConnectionsResponse, ListExternalDatabaseConnectionsResponseNonNullableFields, UpdateExternalDatabaseConnection } from './data-v1-external-database-connection-external-database-connections.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getExternalDatabaseConnection(httpClient: HttpClient): GetExternalDatabaseConnectionSignature;
|
|
7
|
+
interface GetExternalDatabaseConnectionSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the specified external database connection.
|
|
10
|
+
* @param - Name of the external database connection to retrieve.
|
|
11
|
+
* @returns Details of the retrieved external database connection.
|
|
12
|
+
*/
|
|
13
|
+
(name: string): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
14
|
+
}
|
|
15
|
+
export declare function listExternalDatabaseConnections(httpClient: HttpClient): ListExternalDatabaseConnectionsSignature;
|
|
16
|
+
interface ListExternalDatabaseConnectionsSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Lists the site's external database connections.
|
|
19
|
+
*
|
|
20
|
+
* > **Note**: The method lists both [adaptor types](https://dev.wix.com/docs/rest/business-solutions/cms/external-database-connection/introduction#about-external-database-adaptors).
|
|
21
|
+
*/
|
|
22
|
+
(options?: ListExternalDatabaseConnectionsOptions | undefined): Promise<ListExternalDatabaseConnectionsResponse & ListExternalDatabaseConnectionsResponseNonNullableFields>;
|
|
23
|
+
}
|
|
24
|
+
export declare function createExternalDatabaseConnection(httpClient: HttpClient): CreateExternalDatabaseConnectionSignature;
|
|
25
|
+
interface CreateExternalDatabaseConnectionSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new external database connection.
|
|
28
|
+
*
|
|
29
|
+
* The `externalDatabaseConnection` parameter must include a `name`, `endpoint`, and `configuration` details for the external database.
|
|
30
|
+
* If any of these are missing, the external database connection isn't created.
|
|
31
|
+
* @param - External database connection details.
|
|
32
|
+
* @param - Connection type. The connection type determines the type of adaptor by which the external collection is integrated with the site.
|
|
33
|
+
*
|
|
34
|
+
* Learn more about [external database adaptors](https://dev.wix.com/docs/rest/business-solutions/cms/external-database-connection/introduction#about-external-database-adaptors).
|
|
35
|
+
* @param - Options for creating an external database connection.
|
|
36
|
+
* @returns Details of the created external database connection.
|
|
37
|
+
*/
|
|
38
|
+
(externalDatabaseConnection: ExternalDatabaseConnection, connectionType: ConnectionType): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
39
|
+
}
|
|
40
|
+
export declare function updateExternalDatabaseConnection(httpClient: HttpClient): UpdateExternalDatabaseConnectionSignature;
|
|
41
|
+
interface UpdateExternalDatabaseConnectionSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Updates an external database connection.
|
|
44
|
+
*
|
|
45
|
+
* An external database collection name must be provided in `name`.
|
|
46
|
+
* If an existing external database connection is found with the same name, that connection's details are updated.
|
|
47
|
+
* If no external database connection has that name, the request fails.
|
|
48
|
+
*
|
|
49
|
+
* > **Note:** After an external database connection is updated, it only contains the values provided in the request. All previous values are lost.
|
|
50
|
+
* @param - Name of the external database connection.
|
|
51
|
+
*
|
|
52
|
+
* An external database connection can connect to one or more external data collections or tables. These appear as `connectionName/dataCollectionId`.
|
|
53
|
+
* @param - Options for updating an external database connection.
|
|
54
|
+
* @param - Updated external database connection details. The existing connection is replaced with this version.
|
|
55
|
+
* @returns Details of the updated external database connection.
|
|
56
|
+
*/
|
|
57
|
+
(name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
|
|
58
|
+
}
|
|
59
|
+
export declare function deleteExternalDatabaseConnection(httpClient: HttpClient): DeleteExternalDatabaseConnectionSignature;
|
|
60
|
+
interface DeleteExternalDatabaseConnectionSignature {
|
|
61
|
+
/**
|
|
62
|
+
* Deletes an external database connection.
|
|
63
|
+
*
|
|
64
|
+
* > **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.
|
|
65
|
+
* @param - Name of the external database connection to delete.
|
|
66
|
+
*/
|
|
67
|
+
(name: string): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
export { ActionEvent, Capabilities, CauseOfFailure, CollectionsFound, ConnectionStatus, ConnectionType, CreateExternalDatabaseConnectionRequest, CreateExternalDatabaseConnectionResponse, CreateExternalDatabaseConnectionResponseNonNullableFields, DeleteExternalDatabaseConnectionRequest, DeleteExternalDatabaseConnectionResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExternalDatabaseConnection, ExternalDatabaseConnectionNonNullableFields, FieldType, GetExternalDatabaseConnectionRequest, GetExternalDatabaseConnectionResponse, GetExternalDatabaseConnectionResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, ListExternalDatabaseConnectionsOptions, ListExternalDatabaseConnectionsRequest, ListExternalDatabaseConnectionsResponse, ListExternalDatabaseConnectionsResponseNonNullableFields, MessageEnvelope, Paging, PagingMetadata, ProtocolVersion, RestoreInfo, UpdateExternalDatabaseConnection, UpdateExternalDatabaseConnectionRequest, UpdateExternalDatabaseConnectionResponse, UpdateExternalDatabaseConnectionResponseNonNullableFields, WebhookIdentityType, } from './data-v1-external-database-connection-external-database-connections.universal.js';
|
package/build/cjs/src/data-v1-external-database-connection-external-database-connections.public.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.ProtocolVersion = exports.FieldType = exports.ConnectionType = exports.CollectionsFound = exports.CauseOfFailure = exports.deleteExternalDatabaseConnection = exports.updateExternalDatabaseConnection = exports.createExternalDatabaseConnection = exports.listExternalDatabaseConnections = exports.getExternalDatabaseConnection = exports.__metadata = void 0;
|
|
4
|
+
const data_v1_external_database_connection_external_database_connections_universal_js_1 = require("./data-v1-external-database-connection-external-database-connections.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/data' };
|
|
6
|
+
function getExternalDatabaseConnection(httpClient) {
|
|
7
|
+
return (name) => (0, data_v1_external_database_connection_external_database_connections_universal_js_1.getExternalDatabaseConnection)(name,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.getExternalDatabaseConnection = getExternalDatabaseConnection;
|
|
12
|
+
function listExternalDatabaseConnections(httpClient) {
|
|
13
|
+
return (options) => (0, data_v1_external_database_connection_external_database_connections_universal_js_1.listExternalDatabaseConnections)(options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.listExternalDatabaseConnections = listExternalDatabaseConnections;
|
|
18
|
+
function createExternalDatabaseConnection(httpClient) {
|
|
19
|
+
return (externalDatabaseConnection, connectionType) => (0, data_v1_external_database_connection_external_database_connections_universal_js_1.createExternalDatabaseConnection)(externalDatabaseConnection, connectionType,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
{ httpClient });
|
|
22
|
+
}
|
|
23
|
+
exports.createExternalDatabaseConnection = createExternalDatabaseConnection;
|
|
24
|
+
function updateExternalDatabaseConnection(httpClient) {
|
|
25
|
+
return (name, externalDatabaseConnection) => (0, data_v1_external_database_connection_external_database_connections_universal_js_1.updateExternalDatabaseConnection)(name, externalDatabaseConnection,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
exports.updateExternalDatabaseConnection = updateExternalDatabaseConnection;
|
|
30
|
+
function deleteExternalDatabaseConnection(httpClient) {
|
|
31
|
+
return (name) => (0, data_v1_external_database_connection_external_database_connections_universal_js_1.deleteExternalDatabaseConnection)(name,
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
{ httpClient });
|
|
34
|
+
}
|
|
35
|
+
exports.deleteExternalDatabaseConnection = deleteExternalDatabaseConnection;
|
|
36
|
+
var data_v1_external_database_connection_external_database_connections_universal_js_2 = require("./data-v1-external-database-connection-external-database-connections.universal.js");
|
|
37
|
+
Object.defineProperty(exports, "CauseOfFailure", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.CauseOfFailure; } });
|
|
38
|
+
Object.defineProperty(exports, "CollectionsFound", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.CollectionsFound; } });
|
|
39
|
+
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.ConnectionType; } });
|
|
40
|
+
Object.defineProperty(exports, "FieldType", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.FieldType; } });
|
|
41
|
+
Object.defineProperty(exports, "ProtocolVersion", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.ProtocolVersion; } });
|
|
42
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return data_v1_external_database_connection_external_database_connections_universal_js_2.WebhookIdentityType; } });
|
|
43
|
+
//# sourceMappingURL=data-v1-external-database-connection-external-database-connections.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-v1-external-database-connection-external-database-connections.public.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection-external-database-connections.public.ts"],"names":[],"mappings":";;;AACA,uLAa2F;AAE9E,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,IAAA,+GAAsC,EACpC,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sEASC;AAaD,SAAgB,+BAA+B,CAC7C,UAAsB;IAEtB,OAAO,CAAC,OAAgD,EAAE,EAAE,CAC1D,IAAA,iHAAwC,EACtC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0EASC;AAcD,SAAgB,gCAAgC,CAC9C,UAAsB;IAEtB,OAAO,CACL,0BAAsD,EACtD,cAA8B,EAC9B,EAAE,CACF,IAAA,kHAAyC,EACvC,0BAA0B,EAC1B,cAAc;IACd,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,4EAaC;AAuBD,SAAgB,gCAAgC,CAC9C,UAAsB;IAEtB,OAAO,CACL,IAAY,EACZ,0BAA4D,EAC5D,EAAE,CACF,IAAA,kHAAyC,EACvC,IAAI,EACJ,0BAA0B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,4EAaC;AA0BD,SAAgB,gCAAgC,CAC9C,UAAsB;IAEtB,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,IAAA,kHAAyC,EACvC,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4EASC;AAYD,qLAuC2F;AApCzF,iLAAA,cAAc,OAAA;AACd,mLAAA,gBAAgB,OAAA;AAEhB,iLAAA,cAAc,OAAA;AAad,4KAAA,SAAS,OAAA;AAaT,kLAAA,eAAe,OAAA;AAMf,sLAAA,mBAAmB,OAAA"}
|
package/build/cjs/src/data-v1-external-database-connection-external-database-connections.types.d.ts
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
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
|
+
entityAsJson?: string;
|
|
238
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
239
|
+
restoreInfo?: RestoreInfo;
|
|
240
|
+
}
|
|
241
|
+
export interface RestoreInfo {
|
|
242
|
+
deletedDate?: Date | null;
|
|
243
|
+
}
|
|
244
|
+
export interface EntityUpdatedEvent {
|
|
245
|
+
/**
|
|
246
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
247
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
248
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
249
|
+
*/
|
|
250
|
+
currentEntityAsJson?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface EntityDeletedEvent {
|
|
253
|
+
/** Entity that was deleted */
|
|
254
|
+
deletedEntityAsJson?: string | null;
|
|
255
|
+
}
|
|
256
|
+
export interface ActionEvent {
|
|
257
|
+
bodyAsJson?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface MessageEnvelope {
|
|
260
|
+
/** App instance ID. */
|
|
261
|
+
instanceId?: string | null;
|
|
262
|
+
/** Event type. */
|
|
263
|
+
eventType?: string;
|
|
264
|
+
/** The identification type and identity data. */
|
|
265
|
+
identity?: IdentificationData;
|
|
266
|
+
/** Stringify payload. */
|
|
267
|
+
data?: string;
|
|
268
|
+
}
|
|
269
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
270
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
271
|
+
anonymousVisitorId?: string;
|
|
272
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
273
|
+
memberId?: string;
|
|
274
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
275
|
+
wixUserId?: string;
|
|
276
|
+
/** ID of an app. */
|
|
277
|
+
appId?: string;
|
|
278
|
+
/** @readonly */
|
|
279
|
+
identityType?: WebhookIdentityType;
|
|
280
|
+
}
|
|
281
|
+
/** @oneof */
|
|
282
|
+
export interface IdentificationDataIdOneOf {
|
|
283
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
284
|
+
anonymousVisitorId?: string;
|
|
285
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
286
|
+
memberId?: string;
|
|
287
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
288
|
+
wixUserId?: string;
|
|
289
|
+
/** ID of an app. */
|
|
290
|
+
appId?: string;
|
|
291
|
+
}
|
|
292
|
+
export declare enum WebhookIdentityType {
|
|
293
|
+
UNKNOWN = "UNKNOWN",
|
|
294
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
295
|
+
MEMBER = "MEMBER",
|
|
296
|
+
WIX_USER = "WIX_USER",
|
|
297
|
+
APP = "APP"
|
|
298
|
+
}
|
|
299
|
+
interface ConnectionStatusNonNullableFields {
|
|
300
|
+
successful: boolean;
|
|
301
|
+
causeOfFailure: CauseOfFailure;
|
|
302
|
+
hasCollections: CollectionsFound;
|
|
303
|
+
}
|
|
304
|
+
interface CapabilitiesNonNullableFields {
|
|
305
|
+
collectionModificationsSupported: boolean;
|
|
306
|
+
fieldTypes: FieldType[];
|
|
307
|
+
}
|
|
308
|
+
interface ExternalDatabaseConnectionNonNullableFields {
|
|
309
|
+
name: string;
|
|
310
|
+
connectionStatus?: ConnectionStatusNonNullableFields;
|
|
311
|
+
protocolVersion: ProtocolVersion;
|
|
312
|
+
capabilities?: CapabilitiesNonNullableFields;
|
|
313
|
+
}
|
|
314
|
+
export interface GetExternalDatabaseConnectionResponseNonNullableFields {
|
|
315
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
316
|
+
}
|
|
317
|
+
export interface ListExternalDatabaseConnectionsResponseNonNullableFields {
|
|
318
|
+
externalDatabaseConnections: ExternalDatabaseConnectionNonNullableFields[];
|
|
319
|
+
}
|
|
320
|
+
export interface CreateExternalDatabaseConnectionResponseNonNullableFields {
|
|
321
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
322
|
+
}
|
|
323
|
+
export interface UpdateExternalDatabaseConnectionResponseNonNullableFields {
|
|
324
|
+
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
325
|
+
}
|
|
326
|
+
export {};
|