@wix/auto_sdk_automations_action-catalog 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/automations-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +22 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +349 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +199 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +67 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +51 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +490 -0
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.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/automations-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +13 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +337 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +164 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +49 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +48 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +455 -0
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.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/automations-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +22 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +349 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +199 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +67 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +51 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +490 -0
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.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/automations-actioncatalog-v1-action-action-catalog.context.d.ts +13 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +13 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +1 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +27 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +337 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +1 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +26 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +164 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +1 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +84 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +49 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +1 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +699 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +48 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +1 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts +964 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +455 -0
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,490 @@
|
|
|
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.bulkGetActionDynamicOutputSchemas = exports.getActionDynamicOutputSchema = exports.copyInputMapping = exports.resolveActions = exports.getActionDynamicInputSchema = exports.getRuntimeAction = exports.deleteAction = exports.updateAction = exports.createAction = exports.WebhookIdentityType = exports.SortOrder = exports.ExperimentActionType = exports.ExecutionType = exports.SourceType = exports.Type = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixAutomationsActioncatalogV1Action = __importStar(require("./automations-actioncatalog-v1-action-action-catalog.http.js"));
|
|
30
|
+
const image_1 = require("@wix/sdk-runtime/transformations/image");
|
|
31
|
+
const image_2 = require("@wix/sdk-runtime/transformations/image");
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
33
|
+
var Type;
|
|
34
|
+
(function (Type) {
|
|
35
|
+
/** Unknown action configuration UI. */
|
|
36
|
+
Type["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
37
|
+
/**
|
|
38
|
+
* The generic action configuration UI. This requires you to provide a
|
|
39
|
+
* [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
|
|
40
|
+
*/
|
|
41
|
+
Type["GENERIC"] = "GENERIC";
|
|
42
|
+
})(Type || (exports.Type = Type = {}));
|
|
43
|
+
var SourceType;
|
|
44
|
+
(function (SourceType) {
|
|
45
|
+
SourceType["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
46
|
+
/** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
|
|
47
|
+
SourceType["DEV_CENTER"] = "DEV_CENTER";
|
|
48
|
+
/** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
|
|
49
|
+
SourceType["WIX_API"] = "WIX_API";
|
|
50
|
+
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
51
|
+
var ExecutionType;
|
|
52
|
+
(function (ExecutionType) {
|
|
53
|
+
/** Unknown type. */
|
|
54
|
+
ExecutionType["UNKNOWN_EXECUTION_TYPE"] = "UNKNOWN_EXECUTION_TYPE";
|
|
55
|
+
/** Action completes immediately. */
|
|
56
|
+
ExecutionType["SYNC"] = "SYNC";
|
|
57
|
+
/** Action completes asynchronously. */
|
|
58
|
+
ExecutionType["ASYNC"] = "ASYNC";
|
|
59
|
+
})(ExecutionType || (exports.ExecutionType = ExecutionType = {}));
|
|
60
|
+
var ExperimentActionType;
|
|
61
|
+
(function (ExperimentActionType) {
|
|
62
|
+
ExperimentActionType["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
|
|
63
|
+
ExperimentActionType["CREATE_COMPONENT"] = "CREATE_COMPONENT";
|
|
64
|
+
ExperimentActionType["UPDATE_COMPONENT"] = "UPDATE_COMPONENT";
|
|
65
|
+
ExperimentActionType["DELETE_COMPONENT"] = "DELETE_COMPONENT";
|
|
66
|
+
})(ExperimentActionType || (exports.ExperimentActionType = ExperimentActionType = {}));
|
|
67
|
+
var SortOrder;
|
|
68
|
+
(function (SortOrder) {
|
|
69
|
+
SortOrder["ASC"] = "ASC";
|
|
70
|
+
SortOrder["DESC"] = "DESC";
|
|
71
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
72
|
+
var WebhookIdentityType;
|
|
73
|
+
(function (WebhookIdentityType) {
|
|
74
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
75
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
76
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
77
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
78
|
+
WebhookIdentityType["APP"] = "APP";
|
|
79
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
80
|
+
/**
|
|
81
|
+
* Create an action
|
|
82
|
+
* @public
|
|
83
|
+
* @documentationMaturity preview
|
|
84
|
+
* @requiredField options.action.actionKey
|
|
85
|
+
* @requiredField options.action.appId
|
|
86
|
+
* @returns The created action
|
|
87
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction
|
|
88
|
+
*/
|
|
89
|
+
async function createAction(options) {
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
92
|
+
const payload = (0, transform_paths_1.transformPaths)((0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
93
|
+
action: options?.action,
|
|
94
|
+
actionSpecInfo: options?.actionSpecInfo,
|
|
95
|
+
baseUri: options?.baseUri,
|
|
96
|
+
}), [
|
|
97
|
+
{
|
|
98
|
+
transformFn: image_1.transformSDKImageToRESTImage,
|
|
99
|
+
paths: [{ path: 'action.icon' }],
|
|
100
|
+
},
|
|
101
|
+
]);
|
|
102
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.createAction(payload);
|
|
103
|
+
sideEffects?.onSiteCall?.();
|
|
104
|
+
try {
|
|
105
|
+
const result = await httpClient.request(reqOpts);
|
|
106
|
+
sideEffects?.onSuccess?.(result);
|
|
107
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
|
|
108
|
+
{
|
|
109
|
+
transformFn: image_2.transformRESTImageToSDKImage,
|
|
110
|
+
paths: [{ path: 'action.icon' }],
|
|
111
|
+
},
|
|
112
|
+
]))?.action;
|
|
113
|
+
}
|
|
114
|
+
catch (err) {
|
|
115
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
116
|
+
spreadPathsToArguments: {},
|
|
117
|
+
explicitPathsToArguments: {
|
|
118
|
+
action: '$[0].action',
|
|
119
|
+
actionSpecInfo: '$[0].actionSpecInfo',
|
|
120
|
+
baseUri: '$[0].baseUri',
|
|
121
|
+
},
|
|
122
|
+
singleArgumentUnchanged: false,
|
|
123
|
+
}, ['options']);
|
|
124
|
+
sideEffects?.onError?.(err);
|
|
125
|
+
throw transformedError;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.createAction = createAction;
|
|
129
|
+
/**
|
|
130
|
+
* Create a new version for a trigger, update the latest version of the component to point to this trigger
|
|
131
|
+
* @param _id - Action ID.
|
|
132
|
+
* @public
|
|
133
|
+
* @documentationMaturity preview
|
|
134
|
+
* @requiredField _id
|
|
135
|
+
* @requiredField options.action.actionKey
|
|
136
|
+
* @requiredField options.action.appId
|
|
137
|
+
* @returns Action Configuration
|
|
138
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction
|
|
139
|
+
*/
|
|
140
|
+
async function updateAction(_id, options) {
|
|
141
|
+
// @ts-ignore
|
|
142
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
143
|
+
const payload = (0, transform_paths_1.transformPaths)((0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
144
|
+
action: { ...options?.action, id: _id },
|
|
145
|
+
actionSpecInfo: options?.actionSpecInfo,
|
|
146
|
+
}), [
|
|
147
|
+
{
|
|
148
|
+
transformFn: image_1.transformSDKImageToRESTImage,
|
|
149
|
+
paths: [{ path: 'action.icon' }],
|
|
150
|
+
},
|
|
151
|
+
]);
|
|
152
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.updateAction(payload);
|
|
153
|
+
sideEffects?.onSiteCall?.();
|
|
154
|
+
try {
|
|
155
|
+
const result = await httpClient.request(reqOpts);
|
|
156
|
+
sideEffects?.onSuccess?.(result);
|
|
157
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
|
|
158
|
+
{
|
|
159
|
+
transformFn: image_2.transformRESTImageToSDKImage,
|
|
160
|
+
paths: [{ path: 'updatedAction.icon' }],
|
|
161
|
+
},
|
|
162
|
+
]))?.updatedAction;
|
|
163
|
+
}
|
|
164
|
+
catch (err) {
|
|
165
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
166
|
+
spreadPathsToArguments: { action: '$[1].action' },
|
|
167
|
+
explicitPathsToArguments: {
|
|
168
|
+
'action.id': '$[0]',
|
|
169
|
+
actionSpecInfo: '$[1].actionSpecInfo',
|
|
170
|
+
},
|
|
171
|
+
singleArgumentUnchanged: false,
|
|
172
|
+
}, ['_id', 'options']);
|
|
173
|
+
sideEffects?.onError?.(err);
|
|
174
|
+
throw transformedError;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.updateAction = updateAction;
|
|
178
|
+
/**
|
|
179
|
+
* Delete a trigger by app id and key
|
|
180
|
+
* @param actionAppId - The action App Id
|
|
181
|
+
* @public
|
|
182
|
+
* @documentationMaturity preview
|
|
183
|
+
* @requiredField actionAppId
|
|
184
|
+
* @requiredField options
|
|
185
|
+
* @requiredField options.actionKey
|
|
186
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction
|
|
187
|
+
*/
|
|
188
|
+
async function deleteAction(actionAppId, options) {
|
|
189
|
+
// @ts-ignore
|
|
190
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
191
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
192
|
+
actionAppId: actionAppId,
|
|
193
|
+
actionKey: options?.actionKey,
|
|
194
|
+
});
|
|
195
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.deleteAction(payload);
|
|
196
|
+
sideEffects?.onSiteCall?.();
|
|
197
|
+
try {
|
|
198
|
+
const result = await httpClient.request(reqOpts);
|
|
199
|
+
sideEffects?.onSuccess?.(result);
|
|
200
|
+
}
|
|
201
|
+
catch (err) {
|
|
202
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
203
|
+
spreadPathsToArguments: {},
|
|
204
|
+
explicitPathsToArguments: {
|
|
205
|
+
actionAppId: '$[0]',
|
|
206
|
+
actionKey: '$[1].actionKey',
|
|
207
|
+
},
|
|
208
|
+
singleArgumentUnchanged: false,
|
|
209
|
+
}, ['actionAppId', 'options']);
|
|
210
|
+
sideEffects?.onError?.(err);
|
|
211
|
+
throw transformedError;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
exports.deleteAction = deleteAction;
|
|
215
|
+
/**
|
|
216
|
+
* Returns action configuration by action key
|
|
217
|
+
* @public
|
|
218
|
+
* @documentationMaturity preview
|
|
219
|
+
* @requiredField identifiers
|
|
220
|
+
* @requiredField identifiers.actionKey
|
|
221
|
+
* @requiredField identifiers.appId
|
|
222
|
+
* @permissionId AUTOMATIONS.ACTION_READ
|
|
223
|
+
* @permissionScope Manage Stores
|
|
224
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
225
|
+
* @permissionScope Set Up Automations
|
|
226
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
227
|
+
* @applicableIdentity APP
|
|
228
|
+
* @returns Action Configuration
|
|
229
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction
|
|
230
|
+
*/
|
|
231
|
+
async function getRuntimeAction(identifiers) {
|
|
232
|
+
// @ts-ignore
|
|
233
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
234
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
235
|
+
appId: identifiers?.appId,
|
|
236
|
+
actionKey: identifiers?.actionKey,
|
|
237
|
+
});
|
|
238
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getRuntimeAction(payload);
|
|
239
|
+
sideEffects?.onSiteCall?.();
|
|
240
|
+
try {
|
|
241
|
+
const result = await httpClient.request(reqOpts);
|
|
242
|
+
sideEffects?.onSuccess?.(result);
|
|
243
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
|
|
244
|
+
{
|
|
245
|
+
transformFn: image_2.transformRESTImageToSDKImage,
|
|
246
|
+
paths: [{ path: 'action.icon' }],
|
|
247
|
+
},
|
|
248
|
+
]))?.action;
|
|
249
|
+
}
|
|
250
|
+
catch (err) {
|
|
251
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
252
|
+
spreadPathsToArguments: {},
|
|
253
|
+
explicitPathsToArguments: {
|
|
254
|
+
appId: '$[0].appId',
|
|
255
|
+
actionKey: '$[0].actionKey',
|
|
256
|
+
},
|
|
257
|
+
singleArgumentUnchanged: false,
|
|
258
|
+
}, ['identifiers']);
|
|
259
|
+
sideEffects?.onError?.(err);
|
|
260
|
+
throw transformedError;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.getRuntimeAction = getRuntimeAction;
|
|
264
|
+
/**
|
|
265
|
+
* Returns action dynamic schema and ui schema for the given action key and input mapping (action config)
|
|
266
|
+
* @param appId - The App ID of the action's owner.
|
|
267
|
+
* @public
|
|
268
|
+
* @documentationMaturity preview
|
|
269
|
+
* @requiredField appId
|
|
270
|
+
* @requiredField options
|
|
271
|
+
* @requiredField options.actionKey
|
|
272
|
+
* @requiredField options.inputMapping
|
|
273
|
+
* @permissionId AUTOMATIONS.ACTION_READ
|
|
274
|
+
* @permissionScope Manage Stores
|
|
275
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
276
|
+
* @permissionScope Set Up Automations
|
|
277
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
278
|
+
* @applicableIdentity APP
|
|
279
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema
|
|
280
|
+
*/
|
|
281
|
+
async function getActionDynamicInputSchema(appId, options) {
|
|
282
|
+
// @ts-ignore
|
|
283
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
284
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
285
|
+
appId: appId,
|
|
286
|
+
actionKey: options?.actionKey,
|
|
287
|
+
inputMapping: options?.inputMapping,
|
|
288
|
+
});
|
|
289
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicInputSchema(payload);
|
|
290
|
+
sideEffects?.onSiteCall?.();
|
|
291
|
+
try {
|
|
292
|
+
const result = await httpClient.request(reqOpts);
|
|
293
|
+
sideEffects?.onSuccess?.(result);
|
|
294
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
295
|
+
}
|
|
296
|
+
catch (err) {
|
|
297
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
298
|
+
spreadPathsToArguments: {},
|
|
299
|
+
explicitPathsToArguments: {
|
|
300
|
+
appId: '$[0]',
|
|
301
|
+
actionKey: '$[1].actionKey',
|
|
302
|
+
inputMapping: '$[1].inputMapping',
|
|
303
|
+
},
|
|
304
|
+
singleArgumentUnchanged: false,
|
|
305
|
+
}, ['appId', 'options']);
|
|
306
|
+
sideEffects?.onError?.(err);
|
|
307
|
+
throw transformedError;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.getActionDynamicInputSchema = getActionDynamicInputSchema;
|
|
311
|
+
/**
|
|
312
|
+
* Returns action configurations that are installed on the site and exposed to Wix users.
|
|
313
|
+
* @public
|
|
314
|
+
* @documentationMaturity preview
|
|
315
|
+
* @permissionId AUTOMATIONS.ACTION_READ
|
|
316
|
+
* @permissionScope Manage Stores
|
|
317
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
318
|
+
* @permissionScope Set Up Automations
|
|
319
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
320
|
+
* @applicableIdentity APP
|
|
321
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions
|
|
322
|
+
*/
|
|
323
|
+
async function resolveActions(options) {
|
|
324
|
+
// @ts-ignore
|
|
325
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
326
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
327
|
+
query: options?.query,
|
|
328
|
+
});
|
|
329
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.resolveActions(payload);
|
|
330
|
+
sideEffects?.onSiteCall?.();
|
|
331
|
+
try {
|
|
332
|
+
const result = await httpClient.request(reqOpts);
|
|
333
|
+
sideEffects?.onSuccess?.(result);
|
|
334
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
|
|
335
|
+
{
|
|
336
|
+
transformFn: image_2.transformRESTImageToSDKImage,
|
|
337
|
+
paths: [{ path: 'actions.icon' }],
|
|
338
|
+
},
|
|
339
|
+
]));
|
|
340
|
+
}
|
|
341
|
+
catch (err) {
|
|
342
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
343
|
+
spreadPathsToArguments: {},
|
|
344
|
+
explicitPathsToArguments: { query: '$[0].query' },
|
|
345
|
+
singleArgumentUnchanged: false,
|
|
346
|
+
}, ['options']);
|
|
347
|
+
sideEffects?.onError?.(err);
|
|
348
|
+
throw transformedError;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
exports.resolveActions = resolveActions;
|
|
352
|
+
/**
|
|
353
|
+
* Get action input mapping copy
|
|
354
|
+
* The main use case is to call this method from the automations editor, when the user wants to copy an action. So
|
|
355
|
+
* this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing
|
|
356
|
+
* the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI
|
|
357
|
+
* endpoint is implemented.
|
|
358
|
+
* A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping
|
|
359
|
+
* so such that the `messageId` stays unique across multiple actions.
|
|
360
|
+
* @param appId - Action app id
|
|
361
|
+
* @public
|
|
362
|
+
* @documentationMaturity preview
|
|
363
|
+
* @requiredField appId
|
|
364
|
+
* @requiredField options
|
|
365
|
+
* @requiredField options.actionKey
|
|
366
|
+
* @requiredField options.inputMapping
|
|
367
|
+
* @permissionId AUTOMATIONS.ACTION_COPY
|
|
368
|
+
* @permissionScope Manage Stores
|
|
369
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
370
|
+
* @permissionScope Set Up Automations
|
|
371
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
372
|
+
* @applicableIdentity APP
|
|
373
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping
|
|
374
|
+
*/
|
|
375
|
+
async function copyInputMapping(appId, options) {
|
|
376
|
+
// @ts-ignore
|
|
377
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
378
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
379
|
+
appId: appId,
|
|
380
|
+
actionKey: options?.actionKey,
|
|
381
|
+
inputMapping: options?.inputMapping,
|
|
382
|
+
});
|
|
383
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.copyInputMapping(payload);
|
|
384
|
+
sideEffects?.onSiteCall?.();
|
|
385
|
+
try {
|
|
386
|
+
const result = await httpClient.request(reqOpts);
|
|
387
|
+
sideEffects?.onSuccess?.(result);
|
|
388
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
389
|
+
}
|
|
390
|
+
catch (err) {
|
|
391
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
392
|
+
spreadPathsToArguments: {},
|
|
393
|
+
explicitPathsToArguments: {
|
|
394
|
+
appId: '$[0]',
|
|
395
|
+
actionKey: '$[1].actionKey',
|
|
396
|
+
inputMapping: '$[1].inputMapping',
|
|
397
|
+
},
|
|
398
|
+
singleArgumentUnchanged: false,
|
|
399
|
+
}, ['appId', 'options']);
|
|
400
|
+
sideEffects?.onError?.(err);
|
|
401
|
+
throw transformedError;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
exports.copyInputMapping = copyInputMapping;
|
|
405
|
+
/**
|
|
406
|
+
* Returns action dynamic output schema for the given action key and the [users] action configuration
|
|
407
|
+
* @param appId - The App ID of the action's owner.
|
|
408
|
+
* @public
|
|
409
|
+
* @documentationMaturity preview
|
|
410
|
+
* @requiredField appId
|
|
411
|
+
* @requiredField options
|
|
412
|
+
* @requiredField options.actionKey
|
|
413
|
+
* @requiredField options.inputMapping
|
|
414
|
+
* @permissionId AUTOMATIONS.ACTION_READ
|
|
415
|
+
* @permissionScope Manage Stores
|
|
416
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
417
|
+
* @permissionScope Set Up Automations
|
|
418
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
419
|
+
* @applicableIdentity APP
|
|
420
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema
|
|
421
|
+
*/
|
|
422
|
+
async function getActionDynamicOutputSchema(appId, options) {
|
|
423
|
+
// @ts-ignore
|
|
424
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
425
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
426
|
+
appId: appId,
|
|
427
|
+
actionKey: options?.actionKey,
|
|
428
|
+
inputMapping: options?.inputMapping,
|
|
429
|
+
});
|
|
430
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.getActionDynamicOutputSchema(payload);
|
|
431
|
+
sideEffects?.onSiteCall?.();
|
|
432
|
+
try {
|
|
433
|
+
const result = await httpClient.request(reqOpts);
|
|
434
|
+
sideEffects?.onSuccess?.(result);
|
|
435
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
436
|
+
}
|
|
437
|
+
catch (err) {
|
|
438
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
439
|
+
spreadPathsToArguments: {},
|
|
440
|
+
explicitPathsToArguments: {
|
|
441
|
+
appId: '$[0]',
|
|
442
|
+
actionKey: '$[1].actionKey',
|
|
443
|
+
inputMapping: '$[1].inputMapping',
|
|
444
|
+
},
|
|
445
|
+
singleArgumentUnchanged: false,
|
|
446
|
+
}, ['appId', 'options']);
|
|
447
|
+
sideEffects?.onError?.(err);
|
|
448
|
+
throw transformedError;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports.getActionDynamicOutputSchema = getActionDynamicOutputSchema;
|
|
452
|
+
/**
|
|
453
|
+
* Returns action dynamic output schema for the given actions
|
|
454
|
+
* @param actionsInputMappings - list of actions details which will be used to generate the output schemas
|
|
455
|
+
* @public
|
|
456
|
+
* @documentationMaturity preview
|
|
457
|
+
* @requiredField actionsInputMappings
|
|
458
|
+
* @permissionId AUTOMATIONS.ACTION_READ
|
|
459
|
+
* @permissionScope Manage Stores
|
|
460
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
461
|
+
* @permissionScope Set Up Automations
|
|
462
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
463
|
+
* @applicableIdentity APP
|
|
464
|
+
* @fqn wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas
|
|
465
|
+
*/
|
|
466
|
+
async function bulkGetActionDynamicOutputSchemas(actionsInputMappings) {
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
469
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
470
|
+
actionsInputMappings: actionsInputMappings,
|
|
471
|
+
});
|
|
472
|
+
const reqOpts = ambassadorWixAutomationsActioncatalogV1Action.bulkGetActionDynamicOutputSchemas(payload);
|
|
473
|
+
sideEffects?.onSiteCall?.();
|
|
474
|
+
try {
|
|
475
|
+
const result = await httpClient.request(reqOpts);
|
|
476
|
+
sideEffects?.onSuccess?.(result);
|
|
477
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
478
|
+
}
|
|
479
|
+
catch (err) {
|
|
480
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
481
|
+
spreadPathsToArguments: {},
|
|
482
|
+
explicitPathsToArguments: { actionsInputMappings: '$[0]' },
|
|
483
|
+
singleArgumentUnchanged: false,
|
|
484
|
+
}, ['actionsInputMappings']);
|
|
485
|
+
sideEffects?.onError?.(err);
|
|
486
|
+
throw transformedError;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
exports.bulkGetActionDynamicOutputSchemas = bulkGetActionDynamicOutputSchemas;
|
|
490
|
+
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,sEAAuF;AACvF,oFAGiD;AAEjD,4IAA8H;AAC9H,kEAAsF;AACtF,kEAAsF;AACtF,sFAAkF;AA6ElF,IAAY,IAQX;AARD,WAAY,IAAI;IACd,uCAAuC;IACvC,qCAA6B,CAAA;IAC7B;;;OAGG;IACH,2BAAmB,CAAA;AACrB,CAAC,EARW,IAAI,oBAAJ,IAAI,QAQf;AAgBD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,uGAAuG;IACvG,uCAAyB,CAAA;IACzB,sGAAsG;IACtG,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AAqDD,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oBAAoB;IACpB,kEAAiD,CAAA;IACjD,oCAAoC;IACpC,8BAAa,CAAA;IACb,uCAAuC;IACvC,gCAAe,CAAA;AACjB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AA4ED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,yDAAiC,CAAA;IACjC,6DAAqC,CAAA;IACrC,6DAAqC,CAAA;IACrC,6DAAqC,CAAA;AACvC,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAoJD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAyUD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAmBD;;;;;;;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,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;AAlDD,8EAkDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/automations-actioncatalog-v1-action-action-catalog.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/automations-actioncatalog-v1-action-action-catalog.meta.js';
|
package/build/es/meta.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,kEAAkE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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';
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
export const createAction = /*#__PURE__*/ createRESTModule(publicCreateAction);
|
|
4
|
+
export const updateAction = /*#__PURE__*/ createRESTModule(publicUpdateAction);
|
|
5
|
+
export const deleteAction = /*#__PURE__*/ createRESTModule(publicDeleteAction);
|
|
6
|
+
export const getRuntimeAction = /*#__PURE__*/ createRESTModule(publicGetRuntimeAction);
|
|
7
|
+
export const getActionDynamicInputSchema = /*#__PURE__*/ createRESTModule(publicGetActionDynamicInputSchema);
|
|
8
|
+
export const resolveActions = /*#__PURE__*/ createRESTModule(publicResolveActions);
|
|
9
|
+
export const copyInputMapping = /*#__PURE__*/ createRESTModule(publicCopyInputMapping);
|
|
10
|
+
export const getActionDynamicOutputSchema = /*#__PURE__*/ createRESTModule(publicGetActionDynamicOutputSchema);
|
|
11
|
+
export const bulkGetActionDynamicOutputSchemas = /*#__PURE__*/ createRESTModule(publicBulkGetActionDynamicOutputSchemas);
|
|
12
|
+
export { Type, SourceType, ExecutionType, ExperimentActionType, SortOrder, WebhookIdentityType, } from './automations-actioncatalog-v1-action-action-catalog.universal.js';
|
|
13
|
+
//# sourceMappingURL=automations-actioncatalog-v1-action-action-catalog.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,2BAA2B,IAAI,iCAAiC,EAChE,cAAc,IAAI,oBAAoB,EACtC,gBAAgB,IAAI,sBAAsB,EAC1C,4BAA4B,IAAI,kCAAkC,EAClE,iCAAiC,IAAI,uCAAuC,GAC7E,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAGzB,aAAa,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAGpC,aAAa,CAAC,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;AACtE,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,gBAAgB,GAGzB,aAAa,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,4BAA4B,GAGrC,aAAa,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,iCAAiC,GAG1C,aAAa,CAAC,gBAAgB,CAAC,uCAAuC,CAAC,CAAC;AAE5E,OAAO,EACL,IAAI,EACJ,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,mBAAmB,GACpB,MAAM,mEAAmE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Create an action */
|
|
3
|
+
export declare function createAction(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/** Create a new version for a trigger, update the latest version of the component to point to this trigger */
|
|
5
|
+
export declare function updateAction(payload: object): RequestOptionsFactory<any>;
|
|
6
|
+
/** Delete a trigger by app id and key */
|
|
7
|
+
export declare function deleteAction(payload: object): RequestOptionsFactory<any>;
|
|
8
|
+
/** Returns action configuration by action key */
|
|
9
|
+
export declare function getRuntimeAction(payload: object): RequestOptionsFactory<any>;
|
|
10
|
+
/** Returns action dynamic schema and ui schema for the given action key and input mapping (action config) */
|
|
11
|
+
export declare function getActionDynamicInputSchema(payload: object): RequestOptionsFactory<any>;
|
|
12
|
+
/** Returns action configurations that are installed on the site and exposed to Wix users. */
|
|
13
|
+
export declare function resolveActions(payload: object): RequestOptionsFactory<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Get action input mapping copy
|
|
16
|
+
* The main use case is to call this method from the automations editor, when the user wants to copy an action. So
|
|
17
|
+
* this method is getting an input mapping of an existing action and returns a changed input mapping. It's changing
|
|
18
|
+
* the input mapping by passing it through the SPI endpoint of `DuplicateInputMapping` in the case that this SPI
|
|
19
|
+
* endpoint is implemented.
|
|
20
|
+
* A possible usage is by `triggered-email` action - Wix Emails need to change the `messageId` inside the input mapping
|
|
21
|
+
* so such that the `messageId` stays unique across multiple actions.
|
|
22
|
+
*/
|
|
23
|
+
export declare function copyInputMapping(payload: object): RequestOptionsFactory<any>;
|
|
24
|
+
/** Returns action dynamic output schema for the given action key and the [users] action configuration */
|
|
25
|
+
export declare function getActionDynamicOutputSchema(payload: object): RequestOptionsFactory<any>;
|
|
26
|
+
/** Returns action dynamic output schema for the given actions */
|
|
27
|
+
export declare function bulkGetActionDynamicOutputSchemas(payload: object): RequestOptionsFactory<any>;
|