@wix/auto_sdk_automations_action-catalog 1.0.3 → 1.0.5
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/{internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → cjs/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
- package/build/cjs/index.d.ts +94 -1
- package/build/cjs/index.js +814 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +496 -1
- package/build/cjs/meta.js +534 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → es/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
- package/build/es/index.d.mts +94 -0
- package/build/es/index.mjs +779 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/{src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.mts} +72 -279
- package/build/es/meta.mjs +502 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → internal/cjs/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
- package/build/internal/cjs/index.d.ts +94 -1
- package/build/internal/cjs/index.js +814 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +496 -1
- package/build/internal/cjs/meta.js +534 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
- package/build/internal/es/index.d.mts +94 -0
- package/build/internal/es/index.mjs +779 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → internal/es/meta.d.mts} +72 -279
- package/build/internal/es/meta.mjs +502 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +0 -703
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +0 -703
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { bulkGetActionDynamicOutputSchemas as universalBulkGetActionDynamicOutputSchemas, copyInputMapping as universalCopyInputMapping, createAction as universalCreateAction, deleteAction as universalDeleteAction, getActionDynamicInputSchema as universalGetActionDynamicInputSchema, getActionDynamicOutputSchema as universalGetActionDynamicOutputSchema, getRuntimeAction as universalGetRuntimeAction, resolveActions as universalResolveActions, updateAction as universalUpdateAction, } from './automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/automations' };
|
|
3
|
-
export function createAction(httpClient) {
|
|
4
|
-
return (options) => universalCreateAction(options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export function updateAction(httpClient) {
|
|
9
|
-
return (_id, options) => universalUpdateAction(_id, options,
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
{ httpClient });
|
|
12
|
-
}
|
|
13
|
-
export function deleteAction(httpClient) {
|
|
14
|
-
return (actionAppId, options) => universalDeleteAction(actionAppId, options,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
{ httpClient });
|
|
17
|
-
}
|
|
18
|
-
export function getRuntimeAction(httpClient) {
|
|
19
|
-
return (identifiers) => universalGetRuntimeAction(identifiers,
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
{ httpClient });
|
|
22
|
-
}
|
|
23
|
-
export function getActionDynamicInputSchema(httpClient) {
|
|
24
|
-
return (appId, options) => universalGetActionDynamicInputSchema(appId, options,
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
{ httpClient });
|
|
27
|
-
}
|
|
28
|
-
export function resolveActions(httpClient) {
|
|
29
|
-
return (options) => universalResolveActions(options,
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
{ httpClient });
|
|
32
|
-
}
|
|
33
|
-
export function copyInputMapping(httpClient) {
|
|
34
|
-
return (appId, options) => universalCopyInputMapping(appId, options,
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
{ httpClient });
|
|
37
|
-
}
|
|
38
|
-
export function getActionDynamicOutputSchema(httpClient) {
|
|
39
|
-
return (appId, options) => universalGetActionDynamicOutputSchema(appId, options,
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
{ httpClient });
|
|
42
|
-
}
|
|
43
|
-
export function bulkGetActionDynamicOutputSchemas(httpClient) {
|
|
44
|
-
return (actionsInputMappings) => universalBulkGetActionDynamicOutputSchemas(actionsInputMappings,
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
{ httpClient });
|
|
47
|
-
}
|
|
48
|
-
export { ExecutionType, ExperimentActionType, SortOrder, SourceType, Type, WebhookIdentityType, } from './automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
49
|
-
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-actioncatalog-v1-action-action-catalog.public.js","sourceRoot":"","sources":["../../../src/automations-actioncatalog-v1-action-action-catalog.public.ts"],"names":[],"mappings":"AACA,OAAO,EAgBL,iCAAiC,IAAI,0CAA0C,EAC/E,gBAAgB,IAAI,yBAAyB,EAC7C,YAAY,IAAI,qBAAqB,EACrC,YAAY,IAAI,qBAAqB,EACrC,2BAA2B,IAAI,oCAAoC,EACnE,4BAA4B,IAAI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;IAEtB,OAAO,CACL,KAAa,EACb,OAGC,EACD,EAAE,CACF,yBAAyB,CACvB,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmBD,MAAM,UAAU,4BAA4B,CAC1C,UAAsB;IAEtB,OAAO,CACL,KAAa,EACb,OAGC,EACD,EAAE,CACF,qCAAqC,CACnC,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,MAAM,UAAU,iCAAiC,CAC/C,UAAsB;IAEtB,OAAO,CAAC,oBAA2C,EAAE,EAAE,CACrD,0CAA0C,CACxC,oBAAoB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,OAAO,EA0BL,aAAa,EACb,oBAAoB,EA+BpB,SAAS,EAIT,UAAU,EACV,IAAI,EAIJ,mBAAmB,GAGpB,MAAM,mEAAmE,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export var Type;
|
|
2
|
-
(function (Type) {
|
|
3
|
-
/** Unknown action configuration UI. */
|
|
4
|
-
Type["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
5
|
-
/**
|
|
6
|
-
* The generic action configuration UI. This requires you to provide a
|
|
7
|
-
* [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
|
|
8
|
-
*/
|
|
9
|
-
Type["GENERIC"] = "GENERIC";
|
|
10
|
-
})(Type || (Type = {}));
|
|
11
|
-
export var SourceType;
|
|
12
|
-
(function (SourceType) {
|
|
13
|
-
SourceType["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
14
|
-
/** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
|
|
15
|
-
SourceType["DEV_CENTER"] = "DEV_CENTER";
|
|
16
|
-
/** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
|
|
17
|
-
SourceType["WIX_API"] = "WIX_API";
|
|
18
|
-
})(SourceType || (SourceType = {}));
|
|
19
|
-
export var ExecutionType;
|
|
20
|
-
(function (ExecutionType) {
|
|
21
|
-
/** Unknown type. */
|
|
22
|
-
ExecutionType["UNKNOWN_EXECUTION_TYPE"] = "UNKNOWN_EXECUTION_TYPE";
|
|
23
|
-
/** Action completes immediately. */
|
|
24
|
-
ExecutionType["SYNC"] = "SYNC";
|
|
25
|
-
/** Action completes asynchronously. */
|
|
26
|
-
ExecutionType["ASYNC"] = "ASYNC";
|
|
27
|
-
})(ExecutionType || (ExecutionType = {}));
|
|
28
|
-
export var ExperimentActionType;
|
|
29
|
-
(function (ExperimentActionType) {
|
|
30
|
-
ExperimentActionType["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
|
|
31
|
-
ExperimentActionType["CREATE_COMPONENT"] = "CREATE_COMPONENT";
|
|
32
|
-
ExperimentActionType["UPDATE_COMPONENT"] = "UPDATE_COMPONENT";
|
|
33
|
-
ExperimentActionType["DELETE_COMPONENT"] = "DELETE_COMPONENT";
|
|
34
|
-
})(ExperimentActionType || (ExperimentActionType = {}));
|
|
35
|
-
export var SortOrder;
|
|
36
|
-
(function (SortOrder) {
|
|
37
|
-
SortOrder["ASC"] = "ASC";
|
|
38
|
-
SortOrder["DESC"] = "DESC";
|
|
39
|
-
})(SortOrder || (SortOrder = {}));
|
|
40
|
-
export var WebhookIdentityType;
|
|
41
|
-
(function (WebhookIdentityType) {
|
|
42
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
43
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
44
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
45
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
46
|
-
WebhookIdentityType["APP"] = "APP";
|
|
47
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
48
|
-
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-actioncatalog-v1-action-action-catalog.types.js","sourceRoot":"","sources":["../../../src/automations-actioncatalog-v1-action-action-catalog.types.ts"],"names":[],"mappings":"AA2EA,MAAM,CAAN,IAAY,IAQX;AARD,WAAY,IAAI;IACd,uCAAuC;IACvC,qCAA6B,CAAA;IAC7B;;;OAGG;IACH,2BAAmB,CAAA;AACrB,CAAC,EARW,IAAI,KAAJ,IAAI,QAQf;AAmBD,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,uGAAuG;IACvG,uCAAyB,CAAA;IACzB,sGAAsG;IACtG,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AA4DD,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oBAAoB;IACpB,kEAAiD,CAAA;IACjD,oCAAoC;IACpC,8BAAa,CAAA;IACb,uCAAuC;IACvC,gCAAe,CAAA;AACjB,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA2GD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,yDAAiC,CAAA;IACjC,6DAAqC,CAAA;IACrC,6DAAqC,CAAA;IACrC,6DAAqC,CAAA;AACvC,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AA4JD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsUD,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"}
|
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
-
import * as ambassadorWixAutomationsActioncatalogV1Action from './automations-actioncatalog-v1-action-action-catalog.http.js';
|
|
4
|
-
import { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';
|
|
5
|
-
import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
|
|
6
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
7
|
-
export var Type;
|
|
8
|
-
(function (Type) {
|
|
9
|
-
/** Unknown action configuration UI. */
|
|
10
|
-
Type["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
11
|
-
/**
|
|
12
|
-
* The generic action configuration UI. This requires you to provide a
|
|
13
|
-
* [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
|
|
14
|
-
*/
|
|
15
|
-
Type["GENERIC"] = "GENERIC";
|
|
16
|
-
})(Type || (Type = {}));
|
|
17
|
-
export var SourceType;
|
|
18
|
-
(function (SourceType) {
|
|
19
|
-
SourceType["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
20
|
-
/** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
|
|
21
|
-
SourceType["DEV_CENTER"] = "DEV_CENTER";
|
|
22
|
-
/** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
|
|
23
|
-
SourceType["WIX_API"] = "WIX_API";
|
|
24
|
-
})(SourceType || (SourceType = {}));
|
|
25
|
-
export var ExecutionType;
|
|
26
|
-
(function (ExecutionType) {
|
|
27
|
-
/** Unknown type. */
|
|
28
|
-
ExecutionType["UNKNOWN_EXECUTION_TYPE"] = "UNKNOWN_EXECUTION_TYPE";
|
|
29
|
-
/** Action completes immediately. */
|
|
30
|
-
ExecutionType["SYNC"] = "SYNC";
|
|
31
|
-
/** Action completes asynchronously. */
|
|
32
|
-
ExecutionType["ASYNC"] = "ASYNC";
|
|
33
|
-
})(ExecutionType || (ExecutionType = {}));
|
|
34
|
-
export var ExperimentActionType;
|
|
35
|
-
(function (ExperimentActionType) {
|
|
36
|
-
ExperimentActionType["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
|
|
37
|
-
ExperimentActionType["CREATE_COMPONENT"] = "CREATE_COMPONENT";
|
|
38
|
-
ExperimentActionType["UPDATE_COMPONENT"] = "UPDATE_COMPONENT";
|
|
39
|
-
ExperimentActionType["DELETE_COMPONENT"] = "DELETE_COMPONENT";
|
|
40
|
-
})(ExperimentActionType || (ExperimentActionType = {}));
|
|
41
|
-
export var SortOrder;
|
|
42
|
-
(function (SortOrder) {
|
|
43
|
-
SortOrder["ASC"] = "ASC";
|
|
44
|
-
SortOrder["DESC"] = "DESC";
|
|
45
|
-
})(SortOrder || (SortOrder = {}));
|
|
46
|
-
export var WebhookIdentityType;
|
|
47
|
-
(function (WebhookIdentityType) {
|
|
48
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
49
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
50
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
51
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
52
|
-
WebhookIdentityType["APP"] = "APP";
|
|
53
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
54
|
-
/**
|
|
55
|
-
* Create an action
|
|
56
|
-
* @public
|
|
57
|
-
* @documentationMaturity preview
|
|
58
|
-
* @requiredField options.action.actionKey
|
|
59
|
-
* @requiredField options.action.appId
|
|
60
|
-
* @returns The created action
|
|
61
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction
|
|
62
|
-
*/
|
|
63
|
-
export async function createAction(options) {
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
66
|
-
const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
|
|
67
|
-
action: options?.action,
|
|
68
|
-
actionSpecInfo: options?.actionSpecInfo,
|
|
69
|
-
baseUri: options?.baseUri,
|
|
70
|
-
}), [
|
|
71
|
-
{
|
|
72
|
-
transformFn: transformSDKImageToRESTImage,
|
|
73
|
-
paths: [{ path: 'action.icon' }],
|
|
74
|
-
},
|
|
75
|
-
]);
|
|
76
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.createAction(payload);
|
|
77
|
-
sideEffects?.onSiteCall?.();
|
|
78
|
-
try {
|
|
79
|
-
const result = await httpClient.request(reqOpts);
|
|
80
|
-
sideEffects?.onSuccess?.(result);
|
|
81
|
-
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
82
|
-
{
|
|
83
|
-
transformFn: transformRESTImageToSDKImage,
|
|
84
|
-
paths: [{ path: 'action.icon' }],
|
|
85
|
-
},
|
|
86
|
-
]))?.action;
|
|
87
|
-
}
|
|
88
|
-
catch (err) {
|
|
89
|
-
const transformedError = sdkTransformError(err, {
|
|
90
|
-
spreadPathsToArguments: {},
|
|
91
|
-
explicitPathsToArguments: {
|
|
92
|
-
action: '$[0].action',
|
|
93
|
-
actionSpecInfo: '$[0].actionSpecInfo',
|
|
94
|
-
baseUri: '$[0].baseUri',
|
|
95
|
-
},
|
|
96
|
-
singleArgumentUnchanged: false,
|
|
97
|
-
}, ['options']);
|
|
98
|
-
sideEffects?.onError?.(err);
|
|
99
|
-
throw transformedError;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Create a new version for a trigger, update the latest version of the component to point to this trigger
|
|
104
|
-
* @param _id - Action ID.
|
|
105
|
-
* @public
|
|
106
|
-
* @documentationMaturity preview
|
|
107
|
-
* @requiredField _id
|
|
108
|
-
* @requiredField options.action.actionKey
|
|
109
|
-
* @requiredField options.action.appId
|
|
110
|
-
* @returns Action Configuration
|
|
111
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction
|
|
112
|
-
*/
|
|
113
|
-
export async function updateAction(_id, options) {
|
|
114
|
-
// @ts-ignore
|
|
115
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
116
|
-
const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
|
|
117
|
-
action: { ...options?.action, id: _id },
|
|
118
|
-
actionSpecInfo: options?.actionSpecInfo,
|
|
119
|
-
}), [
|
|
120
|
-
{
|
|
121
|
-
transformFn: transformSDKImageToRESTImage,
|
|
122
|
-
paths: [{ path: 'action.icon' }],
|
|
123
|
-
},
|
|
124
|
-
]);
|
|
125
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.updateAction(payload);
|
|
126
|
-
sideEffects?.onSiteCall?.();
|
|
127
|
-
try {
|
|
128
|
-
const result = await httpClient.request(reqOpts);
|
|
129
|
-
sideEffects?.onSuccess?.(result);
|
|
130
|
-
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
131
|
-
{
|
|
132
|
-
transformFn: transformRESTImageToSDKImage,
|
|
133
|
-
paths: [{ path: 'updatedAction.icon' }],
|
|
134
|
-
},
|
|
135
|
-
]))?.updatedAction;
|
|
136
|
-
}
|
|
137
|
-
catch (err) {
|
|
138
|
-
const transformedError = sdkTransformError(err, {
|
|
139
|
-
spreadPathsToArguments: { action: '$[1].action' },
|
|
140
|
-
explicitPathsToArguments: {
|
|
141
|
-
'action.id': '$[0]',
|
|
142
|
-
actionSpecInfo: '$[1].actionSpecInfo',
|
|
143
|
-
},
|
|
144
|
-
singleArgumentUnchanged: false,
|
|
145
|
-
}, ['_id', 'options']);
|
|
146
|
-
sideEffects?.onError?.(err);
|
|
147
|
-
throw transformedError;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Delete a trigger by app id and key
|
|
152
|
-
* @param actionAppId - The action App Id
|
|
153
|
-
* @public
|
|
154
|
-
* @documentationMaturity preview
|
|
155
|
-
* @requiredField actionAppId
|
|
156
|
-
* @requiredField options
|
|
157
|
-
* @requiredField options.actionKey
|
|
158
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction
|
|
159
|
-
*/
|
|
160
|
-
export async function deleteAction(actionAppId, options) {
|
|
161
|
-
// @ts-ignore
|
|
162
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
163
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
164
|
-
actionAppId: actionAppId,
|
|
165
|
-
actionKey: options?.actionKey,
|
|
166
|
-
});
|
|
167
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.deleteAction(payload);
|
|
168
|
-
sideEffects?.onSiteCall?.();
|
|
169
|
-
try {
|
|
170
|
-
const result = await httpClient.request(reqOpts);
|
|
171
|
-
sideEffects?.onSuccess?.(result);
|
|
172
|
-
}
|
|
173
|
-
catch (err) {
|
|
174
|
-
const transformedError = sdkTransformError(err, {
|
|
175
|
-
spreadPathsToArguments: {},
|
|
176
|
-
explicitPathsToArguments: {
|
|
177
|
-
actionAppId: '$[0]',
|
|
178
|
-
actionKey: '$[1].actionKey',
|
|
179
|
-
},
|
|
180
|
-
singleArgumentUnchanged: false,
|
|
181
|
-
}, ['actionAppId', 'options']);
|
|
182
|
-
sideEffects?.onError?.(err);
|
|
183
|
-
throw transformedError;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Returns action configuration by action key
|
|
188
|
-
* @public
|
|
189
|
-
* @documentationMaturity preview
|
|
190
|
-
* @requiredField identifiers
|
|
191
|
-
* @requiredField identifiers.actionKey
|
|
192
|
-
* @requiredField identifiers.appId
|
|
193
|
-
* @permissionId AUTOMATIONS.ACTION_READ
|
|
194
|
-
* @permissionScope Manage Stores
|
|
195
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
196
|
-
* @permissionScope Set Up Automations
|
|
197
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
198
|
-
* @applicableIdentity APP
|
|
199
|
-
* @returns Action Configuration
|
|
200
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction
|
|
201
|
-
*/
|
|
202
|
-
export async function getRuntimeAction(identifiers) {
|
|
203
|
-
// @ts-ignore
|
|
204
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
205
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
206
|
-
appId: identifiers?.appId,
|
|
207
|
-
actionKey: identifiers?.actionKey,
|
|
208
|
-
});
|
|
209
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getRuntimeAction(payload);
|
|
210
|
-
sideEffects?.onSiteCall?.();
|
|
211
|
-
try {
|
|
212
|
-
const result = await httpClient.request(reqOpts);
|
|
213
|
-
sideEffects?.onSuccess?.(result);
|
|
214
|
-
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
215
|
-
{
|
|
216
|
-
transformFn: transformRESTImageToSDKImage,
|
|
217
|
-
paths: [{ path: 'action.icon' }],
|
|
218
|
-
},
|
|
219
|
-
]))?.action;
|
|
220
|
-
}
|
|
221
|
-
catch (err) {
|
|
222
|
-
const transformedError = sdkTransformError(err, {
|
|
223
|
-
spreadPathsToArguments: {},
|
|
224
|
-
explicitPathsToArguments: {
|
|
225
|
-
appId: '$[0].appId',
|
|
226
|
-
actionKey: '$[0].actionKey',
|
|
227
|
-
},
|
|
228
|
-
singleArgumentUnchanged: false,
|
|
229
|
-
}, ['identifiers']);
|
|
230
|
-
sideEffects?.onError?.(err);
|
|
231
|
-
throw transformedError;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Returns action dynamic schema and ui schema for the given action key and input mapping (action config)
|
|
236
|
-
* @param appId - The App ID of the action's owner.
|
|
237
|
-
* @public
|
|
238
|
-
* @documentationMaturity preview
|
|
239
|
-
* @requiredField appId
|
|
240
|
-
* @requiredField options
|
|
241
|
-
* @requiredField options.actionKey
|
|
242
|
-
* @requiredField options.inputMapping
|
|
243
|
-
* @permissionId AUTOMATIONS.ACTION_READ
|
|
244
|
-
* @permissionScope Manage Stores
|
|
245
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
246
|
-
* @permissionScope Set Up Automations
|
|
247
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
248
|
-
* @applicableIdentity APP
|
|
249
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema
|
|
250
|
-
*/
|
|
251
|
-
export async function getActionDynamicInputSchema(appId, options) {
|
|
252
|
-
// @ts-ignore
|
|
253
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
254
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
255
|
-
appId: appId,
|
|
256
|
-
actionKey: options?.actionKey,
|
|
257
|
-
inputMapping: options?.inputMapping,
|
|
258
|
-
});
|
|
259
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicInputSchema(payload);
|
|
260
|
-
sideEffects?.onSiteCall?.();
|
|
261
|
-
try {
|
|
262
|
-
const result = await httpClient.request(reqOpts);
|
|
263
|
-
sideEffects?.onSuccess?.(result);
|
|
264
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
265
|
-
}
|
|
266
|
-
catch (err) {
|
|
267
|
-
const transformedError = sdkTransformError(err, {
|
|
268
|
-
spreadPathsToArguments: {},
|
|
269
|
-
explicitPathsToArguments: {
|
|
270
|
-
appId: '$[0]',
|
|
271
|
-
actionKey: '$[1].actionKey',
|
|
272
|
-
inputMapping: '$[1].inputMapping',
|
|
273
|
-
},
|
|
274
|
-
singleArgumentUnchanged: false,
|
|
275
|
-
}, ['appId', 'options']);
|
|
276
|
-
sideEffects?.onError?.(err);
|
|
277
|
-
throw transformedError;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Returns action configurations that are installed on the site and exposed to Wix users.
|
|
282
|
-
* @public
|
|
283
|
-
* @documentationMaturity preview
|
|
284
|
-
* @permissionId AUTOMATIONS.ACTION_READ
|
|
285
|
-
* @permissionScope Manage Stores
|
|
286
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
287
|
-
* @permissionScope Set Up Automations
|
|
288
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
289
|
-
* @applicableIdentity APP
|
|
290
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions
|
|
291
|
-
*/
|
|
292
|
-
export async function resolveActions(options) {
|
|
293
|
-
// @ts-ignore
|
|
294
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
295
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
296
|
-
query: options?.query,
|
|
297
|
-
});
|
|
298
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.resolveActions(payload);
|
|
299
|
-
sideEffects?.onSiteCall?.();
|
|
300
|
-
try {
|
|
301
|
-
const result = await httpClient.request(reqOpts);
|
|
302
|
-
sideEffects?.onSuccess?.(result);
|
|
303
|
-
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
304
|
-
{
|
|
305
|
-
transformFn: transformRESTImageToSDKImage,
|
|
306
|
-
paths: [{ path: 'actions.icon' }],
|
|
307
|
-
},
|
|
308
|
-
]));
|
|
309
|
-
}
|
|
310
|
-
catch (err) {
|
|
311
|
-
const transformedError = sdkTransformError(err, {
|
|
312
|
-
spreadPathsToArguments: {},
|
|
313
|
-
explicitPathsToArguments: { query: '$[0].query' },
|
|
314
|
-
singleArgumentUnchanged: false,
|
|
315
|
-
}, ['options']);
|
|
316
|
-
sideEffects?.onError?.(err);
|
|
317
|
-
throw transformedError;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Get action input mapping copy
|
|
322
|
-
* The main use case is to call this method from the automations editor, when the user wants to copy an action. So
|
|
323
|
-
* this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing
|
|
324
|
-
* the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI
|
|
325
|
-
* endpoint is implemented.
|
|
326
|
-
* A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping
|
|
327
|
-
* so such that the `messageId` stays unique across multiple actions.
|
|
328
|
-
* @param appId - Action app id
|
|
329
|
-
* @public
|
|
330
|
-
* @documentationMaturity preview
|
|
331
|
-
* @requiredField appId
|
|
332
|
-
* @requiredField options
|
|
333
|
-
* @requiredField options.actionKey
|
|
334
|
-
* @requiredField options.inputMapping
|
|
335
|
-
* @permissionId AUTOMATIONS.ACTION_COPY
|
|
336
|
-
* @permissionScope Manage Stores
|
|
337
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
338
|
-
* @permissionScope Set Up Automations
|
|
339
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
340
|
-
* @applicableIdentity APP
|
|
341
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping
|
|
342
|
-
*/
|
|
343
|
-
export async function copyInputMapping(appId, options) {
|
|
344
|
-
// @ts-ignore
|
|
345
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
346
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
347
|
-
appId: appId,
|
|
348
|
-
actionKey: options?.actionKey,
|
|
349
|
-
inputMapping: options?.inputMapping,
|
|
350
|
-
});
|
|
351
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.copyInputMapping(payload);
|
|
352
|
-
sideEffects?.onSiteCall?.();
|
|
353
|
-
try {
|
|
354
|
-
const result = await httpClient.request(reqOpts);
|
|
355
|
-
sideEffects?.onSuccess?.(result);
|
|
356
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
357
|
-
}
|
|
358
|
-
catch (err) {
|
|
359
|
-
const transformedError = sdkTransformError(err, {
|
|
360
|
-
spreadPathsToArguments: {},
|
|
361
|
-
explicitPathsToArguments: {
|
|
362
|
-
appId: '$[0]',
|
|
363
|
-
actionKey: '$[1].actionKey',
|
|
364
|
-
inputMapping: '$[1].inputMapping',
|
|
365
|
-
},
|
|
366
|
-
singleArgumentUnchanged: false,
|
|
367
|
-
}, ['appId', 'options']);
|
|
368
|
-
sideEffects?.onError?.(err);
|
|
369
|
-
throw transformedError;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Returns action dynamic output schema for the given action key and the [users] action configuration
|
|
374
|
-
* @param appId - The App ID of the action's owner.
|
|
375
|
-
* @public
|
|
376
|
-
* @documentationMaturity preview
|
|
377
|
-
* @requiredField appId
|
|
378
|
-
* @requiredField options
|
|
379
|
-
* @requiredField options.actionKey
|
|
380
|
-
* @requiredField options.inputMapping
|
|
381
|
-
* @permissionId AUTOMATIONS.ACTION_READ
|
|
382
|
-
* @permissionScope Manage Stores
|
|
383
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
384
|
-
* @permissionScope Set Up Automations
|
|
385
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
386
|
-
* @applicableIdentity APP
|
|
387
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema
|
|
388
|
-
*/
|
|
389
|
-
export async function getActionDynamicOutputSchema(appId, options) {
|
|
390
|
-
// @ts-ignore
|
|
391
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
392
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
393
|
-
appId: appId,
|
|
394
|
-
actionKey: options?.actionKey,
|
|
395
|
-
inputMapping: options?.inputMapping,
|
|
396
|
-
});
|
|
397
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicOutputSchema(payload);
|
|
398
|
-
sideEffects?.onSiteCall?.();
|
|
399
|
-
try {
|
|
400
|
-
const result = await httpClient.request(reqOpts);
|
|
401
|
-
sideEffects?.onSuccess?.(result);
|
|
402
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
403
|
-
}
|
|
404
|
-
catch (err) {
|
|
405
|
-
const transformedError = sdkTransformError(err, {
|
|
406
|
-
spreadPathsToArguments: {},
|
|
407
|
-
explicitPathsToArguments: {
|
|
408
|
-
appId: '$[0]',
|
|
409
|
-
actionKey: '$[1].actionKey',
|
|
410
|
-
inputMapping: '$[1].inputMapping',
|
|
411
|
-
},
|
|
412
|
-
singleArgumentUnchanged: false,
|
|
413
|
-
}, ['appId', 'options']);
|
|
414
|
-
sideEffects?.onError?.(err);
|
|
415
|
-
throw transformedError;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Returns action dynamic output schema for the given actions
|
|
420
|
-
* @param actionsInputMappings - list of actions details which will be used to generate the output schemas
|
|
421
|
-
* @public
|
|
422
|
-
* @documentationMaturity preview
|
|
423
|
-
* @requiredField actionsInputMappings
|
|
424
|
-
* @permissionId AUTOMATIONS.ACTION_READ
|
|
425
|
-
* @permissionScope Manage Stores
|
|
426
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
427
|
-
* @permissionScope Set Up Automations
|
|
428
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
429
|
-
* @applicableIdentity APP
|
|
430
|
-
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas
|
|
431
|
-
*/
|
|
432
|
-
export async function bulkGetActionDynamicOutputSchemas(actionsInputMappings) {
|
|
433
|
-
// @ts-ignore
|
|
434
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
435
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
436
|
-
actionsInputMappings: actionsInputMappings,
|
|
437
|
-
});
|
|
438
|
-
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.bulkGetActionDynamicOutputSchemas(payload);
|
|
439
|
-
sideEffects?.onSiteCall?.();
|
|
440
|
-
try {
|
|
441
|
-
const result = await httpClient.request(reqOpts);
|
|
442
|
-
sideEffects?.onSuccess?.(result);
|
|
443
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
444
|
-
}
|
|
445
|
-
catch (err) {
|
|
446
|
-
const transformedError = sdkTransformError(err, {
|
|
447
|
-
spreadPathsToArguments: {},
|
|
448
|
-
explicitPathsToArguments: { actionsInputMappings: '$[0]' },
|
|
449
|
-
singleArgumentUnchanged: false,
|
|
450
|
-
}, ['actionsInputMappings']);
|
|
451
|
-
sideEffects?.onError?.(err);
|
|
452
|
-
throw transformedError;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-actioncatalog-v1-action-action-catalog.universal.js","sourceRoot":"","sources":["../../../src/automations-actioncatalog-v1-action-action-catalog.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,8DAA8D,CAAC;AAC9H,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA6ElF,MAAM,CAAN,IAAY,IAQX;AARD,WAAY,IAAI;IACd,uCAAuC;IACvC,qCAA6B,CAAA;IAC7B;;;OAGG;IACH,2BAAmB,CAAA;AACrB,CAAC,EARW,IAAI,KAAJ,IAAI,QAQf;AAmBD,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,uGA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AE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,oBAAoB,EAAE,oBAAoB;KAC3C,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,6CAA6C,CAAC,iCAAiC,CAC7E,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;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,oBAAoB,EAAE,MAAM,EAAE;YAC1D,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,sBAAsB,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/automations-actioncatalog-v1-action-action-catalog.universal.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wGAAsF"}
|
package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createAction as publicCreateAction, updateAction as publicUpdateAction, deleteAction as publicDeleteAction, getRuntimeAction as publicGetRuntimeAction, getActionDynamicInputSchema as publicGetActionDynamicInputSchema, resolveActions as publicResolveActions, copyInputMapping as publicCopyInputMapping, getActionDynamicOutputSchema as publicGetActionDynamicOutputSchema, bulkGetActionDynamicOutputSchemas as publicBulkGetActionDynamicOutputSchemas } from './automations-actioncatalog-v1-action-action-catalog.public.js';
|
|
2
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
-
export declare const createAction: MaybeContext<BuildRESTFunction<typeof publicCreateAction> & typeof publicCreateAction>;
|
|
4
|
-
export declare const updateAction: MaybeContext<BuildRESTFunction<typeof publicUpdateAction> & typeof publicUpdateAction>;
|
|
5
|
-
export declare const deleteAction: MaybeContext<BuildRESTFunction<typeof publicDeleteAction> & typeof publicDeleteAction>;
|
|
6
|
-
export declare const getRuntimeAction: MaybeContext<BuildRESTFunction<typeof publicGetRuntimeAction> & typeof publicGetRuntimeAction>;
|
|
7
|
-
export declare const getActionDynamicInputSchema: MaybeContext<BuildRESTFunction<typeof publicGetActionDynamicInputSchema> & typeof publicGetActionDynamicInputSchema>;
|
|
8
|
-
export declare const resolveActions: MaybeContext<BuildRESTFunction<typeof publicResolveActions> & typeof publicResolveActions>;
|
|
9
|
-
export declare const copyInputMapping: MaybeContext<BuildRESTFunction<typeof publicCopyInputMapping> & typeof publicCopyInputMapping>;
|
|
10
|
-
export declare const getActionDynamicOutputSchema: MaybeContext<BuildRESTFunction<typeof publicGetActionDynamicOutputSchema> & typeof publicGetActionDynamicOutputSchema>;
|
|
11
|
-
export declare const bulkGetActionDynamicOutputSchemas: MaybeContext<BuildRESTFunction<typeof publicBulkGetActionDynamicOutputSchemas> & typeof publicBulkGetActionDynamicOutputSchemas>;
|
|
12
|
-
export { Type, SourceType, ExecutionType, ExperimentActionType, SortOrder, WebhookIdentityType, } from './automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
13
|
-
export { Action, WidgetComponentOptions, GenericOptions, WixApiOptions, Metadata, ImplementedMethods, InterfaceConfiguration, InterfaceConfigurationOptionsOneOf, FocalPoint, Source, SourceOptionsOneOf, RetryExperimentCreation, ActionSpecInfo, CreateActionRequest, CreateActionResponse, UpdateActionRequest, UpdateActionResponse, DeleteActionRequest, DeleteActionResponse, MigrateComponentToActionRequest, MigrateComponentToActionResponse, GetRuntimeActionRequest, GetRuntimeActionResponse, GetActionDynamicInputSchemaRequest, GetActionDynamicInputSchemaResponse, ResolveActionsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, ResolveActionsResponse, PagingMetadataV2, Cursors, CopyInputMappingRequest, CopyInputMappingResponse, GetActionDynamicOutputSchemaRequest, GetActionDynamicOutputSchemaResponse, BulkGetActionDynamicOutputSchemasRequest, ActionInputMappings, BulkGetActionDynamicOutputSchemasResponse, ItemMetadata, ApplicationError, BulkActionOutputSchemaResult, BulkActionMetadata, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, CreateActionOptions, UpdateActionOptions, DeleteActionOptions, GetRuntimeActionIdentifiers, GetActionDynamicInputSchemaOptions, ResolveActionsOptions, CopyInputMappingOptions, GetActionDynamicOutputSchemaOptions, } from './automations-actioncatalog-v1-action-action-catalog.universal.js';
|
package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.SortOrder = exports.ExperimentActionType = exports.ExecutionType = exports.SourceType = exports.Type = exports.bulkGetActionDynamicOutputSchemas = exports.getActionDynamicOutputSchema = exports.copyInputMapping = exports.resolveActions = exports.getActionDynamicInputSchema = exports.getRuntimeAction = exports.deleteAction = exports.updateAction = exports.createAction = void 0;
|
|
4
|
-
const automations_actioncatalog_v1_action_action_catalog_public_js_1 = require("./automations-actioncatalog-v1-action-action-catalog.public.js");
|
|
5
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
-
exports.createAction = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.createAction);
|
|
7
|
-
exports.updateAction = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.updateAction);
|
|
8
|
-
exports.deleteAction = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.deleteAction);
|
|
9
|
-
exports.getRuntimeAction = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.getRuntimeAction);
|
|
10
|
-
exports.getActionDynamicInputSchema = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.getActionDynamicInputSchema);
|
|
11
|
-
exports.resolveActions = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.resolveActions);
|
|
12
|
-
exports.copyInputMapping = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.copyInputMapping);
|
|
13
|
-
exports.getActionDynamicOutputSchema = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.getActionDynamicOutputSchema);
|
|
14
|
-
exports.bulkGetActionDynamicOutputSchemas = (0, rest_modules_1.createRESTModule)(automations_actioncatalog_v1_action_action_catalog_public_js_1.bulkGetActionDynamicOutputSchemas);
|
|
15
|
-
var automations_actioncatalog_v1_action_action_catalog_universal_js_1 = require("./automations-actioncatalog-v1-action-action-catalog.universal.js");
|
|
16
|
-
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.Type; } });
|
|
17
|
-
Object.defineProperty(exports, "SourceType", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.SourceType; } });
|
|
18
|
-
Object.defineProperty(exports, "ExecutionType", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.ExecutionType; } });
|
|
19
|
-
Object.defineProperty(exports, "ExperimentActionType", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.ExperimentActionType; } });
|
|
20
|
-
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.SortOrder; } });
|
|
21
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return automations_actioncatalog_v1_action_action_catalog_universal_js_1.WebhookIdentityType; } });
|
|
22
|
-
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.context.js.map
|
package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-actioncatalog-v1-action-action-catalog.context.js","sourceRoot":"","sources":["../../../../src/automations-actioncatalog-v1-action-action-catalog.context.ts"],"names":[],"mappings":";;;AAAA,iJAUwE;AACxE,gEAAiE;AAGpD,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2EAAkB,CAAC,CAAC;AAC1C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2EAAkB,CAAC,CAAC;AAC1C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2EAAkB,CAAC,CAAC;AAC1C,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,+EAAsB,CAAC,CAAC;AAC9C,QAAA,2BAA2B,GAGtB,IAAA,+BAAgB,EAAC,0FAAiC,CAAC,CAAC;AACzD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,6EAAoB,CAAC,CAAC;AAC5C,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,+EAAsB,CAAC,CAAC;AAC9C,QAAA,4BAA4B,GAGvB,IAAA,+BAAgB,EAAC,2FAAkC,CAAC,CAAC;AAC1D,QAAA,iCAAiC,GAG5B,IAAA,+BAAgB,EAAC,gGAAuC,CAAC,CAAC;AAE5E,qJAO2E;AANzE,uJAAA,IAAI,OAAA;AACJ,6JAAA,UAAU,OAAA;AACV,gKAAA,aAAa,OAAA;AACb,uKAAA,oBAAoB,OAAA;AACpB,4JAAA,SAAS,OAAA;AACT,sKAAA,mBAAmB,OAAA"}
|