@wix/auto_sdk_automations_action-catalog 1.0.53 → 1.0.54
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 +2 -44
- package/build/cjs/index.js +13 -291
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +3 -179
- package/build/cjs/index.typings.js +13 -265
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -39
- package/build/cjs/meta.js +8 -200
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -154
- package/build/cjs/schemas.js +2 -289
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +2 -44
- package/build/es/index.mjs +0 -275
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +3 -179
- package/build/es/index.typings.mjs +0 -249
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -39
- package/build/es/meta.mjs +1 -190
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -154
- package/build/es/schemas.mjs +1 -282
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -44
- package/build/internal/cjs/index.js +13 -291
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +3 -179
- package/build/internal/cjs/index.typings.js +13 -265
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -39
- package/build/internal/cjs/meta.js +8 -200
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -154
- package/build/internal/cjs/schemas.js +2 -289
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -44
- package/build/internal/es/index.mjs +0 -275
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +3 -179
- package/build/internal/es/index.typings.mjs +0 -249
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -39
- package/build/internal/es/meta.mjs +1 -190
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -154
- package/build/internal/es/schemas.mjs +1 -282
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Action,
|
|
2
|
+
import { Action, GetRuntimeActionIdentifiers, GetRuntimeActionResponse, GetRuntimeActionApplicationErrors, GetLatestActionIdentifiers, GetLatestActionOptions, GetLatestActionResponse, GetLatestActionApplicationErrors, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, GetActionDynamicInputSchemaApplicationErrors, ResolveActionsOptions, ResolveActionsResponse, ResolveActionsApplicationErrors, CopyInputMappingOptions, CopyInputMappingResponse, CopyInputMappingApplicationErrors, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, GetActionDynamicOutputSchemaApplicationErrors, ActionInputMappings, BulkGetActionDynamicOutputSchemasResponse, GenerateInputMappingFromIntentOptions, GenerateInputMappingFromIntentResponse, GenerateInputMappingFromIntentApplicationErrors, QueryV2, QueryLatestActionsResponse, ActionsQueryBuilder, ActionQuery, typedQueryActions } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, ActionAlreadyExistsError, ActionDeletedWithEntity, ActionEvent, ActionNotFoundError, ActionQuerySpec, ActionSpecInfo, ActionSpiImplementerNotFoundError, ActionsQueryResult, AdditionalInformationRequiredInfo, AddressLocation, ApplicationError, BulkActionMetadata, BulkActionOutputSchemaResult, BulkGetActionDynamicOutputSchemasRequest, CommonCursorPaging, CommonCursors, CommonPaging, CommonPagingMetadataV2, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonQueryWithEntityContext, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, CopyInputMappingRequest, CreateActionRequest, CreateActionResponse, CursorPaging, Cursors, DeleteActionRequest, DeleteActionResponse, DomainEvent, DomainEventBodyOneOf, DynamicInputSchemaMethodNotImplementedError, DynamicInputSchemaNotDefinedError, DynamicOutputSchemaMethodNotImplementedError, DynamicOutputSchemaNotDefinedError, EmptyIntentError, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExecutionType, ExecutionTypeWithLiterals, ExperimentActionType, ExperimentActionTypeWithLiterals, FocalPoint, GenerateInputMappingFromIntentMethodNotImplementedError, GenerateInputMappingFromIntentRequest, GenerateInputMappingFromIntentResponseStatusInfoOneOf, GenericOptions, GetActionDynamicInputSchemaRequest, GetActionDynamicOutputSchemaRequest, GetActionRequest, GetActionResponse, GetLatestActionRequest, GetRuntimeActionRequest, IdentificationData, IdentificationDataIdOneOf, ImplementedMethods, InputMappingGeneratedInfo, IntegrationOptions, IntegrationOptionsOptionsOneOf, IntegrationType, IntegrationTypeWithLiterals, InterfaceConfiguration, InterfaceConfigurationOptionsOneOf, InvalidDynamicOutputSchemaError, ItemMetadata, MessageEnvelope, Metadata, MigrateComponentToActionRequest, MigrateComponentToActionResponse, MissingMetaSiteContextError, OpenApiOptions, Paging, PagingMetadataV2, QueryActionsRequest, QueryActionsResponse, QueryLatestActionsRequest, QueryV2PagingMethodOneOf, ResolveActionsRequest, RestoreInfo, RetryExperimentCreation, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceOptionsOneOf, SourceType, SourceTypeWithLiterals, Status, StatusWithLiterals, Type, TypeWithLiterals, UnauthorizedAppAccessError, UpdateActionComponentRequest, UpdateActionComponentResponse, UpdateActionRequest, UpdateActionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WidgetComponentOptions, WixApiOptions, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getAction$1(httpClient: HttpClient): GetActionSignature;
|
|
@@ -16,45 +16,6 @@ interface GetActionSignature {
|
|
|
16
16
|
*/
|
|
17
17
|
(actionId: string): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.getQuotaInfo` | `executionType` | `interfaceConfiguration.type`, 3>>;
|
|
18
18
|
}
|
|
19
|
-
declare function createAction$1(httpClient: HttpClient): CreateActionSignature;
|
|
20
|
-
interface CreateActionSignature {
|
|
21
|
-
/**
|
|
22
|
-
* Creates an action for the specified app. Once created, users can [create automations](https://support.wix.com/en/wix-automations-7067897) that include this action.
|
|
23
|
-
*
|
|
24
|
-
* Learn more about [actions](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions).
|
|
25
|
-
*
|
|
26
|
-
* > **Note:** You can only create actions for [apps you own or collaborate on](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/manage-collaborators).
|
|
27
|
-
* @returns Created action.
|
|
28
|
-
*/
|
|
29
|
-
(options?: NonNullablePaths<CreateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.getQuotaInfo` | `executionType` | `interfaceConfiguration.type`, 3> & {
|
|
30
|
-
__applicationErrorsType?: CreateActionApplicationErrors;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
declare function updateAction$1(httpClient: HttpClient): UpdateActionSignature;
|
|
34
|
-
interface UpdateActionSignature {
|
|
35
|
-
/**
|
|
36
|
-
* Updates the specified action for the specified app.
|
|
37
|
-
*
|
|
38
|
-
* After the action is updated, it only contains the values specified in the request. Earlier values are replaced.
|
|
39
|
-
* @param - Action ID.
|
|
40
|
-
* @returns Updated action.
|
|
41
|
-
*/
|
|
42
|
-
(_id: string, options?: NonNullablePaths<UpdateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.getQuotaInfo` | `executionType` | `interfaceConfiguration.type`, 3> & {
|
|
43
|
-
__applicationErrorsType?: UpdateActionApplicationErrors;
|
|
44
|
-
}>;
|
|
45
|
-
}
|
|
46
|
-
declare function deleteAction$1(httpClient: HttpClient): DeleteActionSignature;
|
|
47
|
-
interface DeleteActionSignature {
|
|
48
|
-
/**
|
|
49
|
-
* Deletes an action from the specified app.
|
|
50
|
-
*
|
|
51
|
-
* > **Note:** [Automations that include the deleted action](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-4-choose-an-action) can no longer execute it.
|
|
52
|
-
* @param - ID of the app that defines the action.
|
|
53
|
-
*/
|
|
54
|
-
(actionAppId: string, options: NonNullablePaths<DeleteActionOptions, `actionKey`, 2>): Promise<void & {
|
|
55
|
-
__applicationErrorsType?: DeleteActionApplicationErrors;
|
|
56
|
-
}>;
|
|
57
|
-
}
|
|
58
19
|
declare function getRuntimeAction$1(httpClient: HttpClient): GetRuntimeActionSignature;
|
|
59
20
|
interface GetRuntimeActionSignature {
|
|
60
21
|
/**
|
|
@@ -173,9 +134,6 @@ declare function customQueryActions(httpClient: HttpClient): {
|
|
|
173
134
|
(query: ActionQuery): ReturnType<typeof typedQueryActions>;
|
|
174
135
|
};
|
|
175
136
|
declare const getAction: MaybeContext<BuildRESTFunction<typeof getAction$1> & typeof getAction$1>;
|
|
176
|
-
declare const createAction: MaybeContext<BuildRESTFunction<typeof createAction$1> & typeof createAction$1>;
|
|
177
|
-
declare const updateAction: MaybeContext<BuildRESTFunction<typeof updateAction$1> & typeof updateAction$1>;
|
|
178
|
-
declare const deleteAction: MaybeContext<BuildRESTFunction<typeof deleteAction$1> & typeof deleteAction$1>;
|
|
179
137
|
declare const getRuntimeAction: MaybeContext<BuildRESTFunction<typeof getRuntimeAction$1> & typeof getRuntimeAction$1>;
|
|
180
138
|
declare const getLatestAction: MaybeContext<BuildRESTFunction<typeof getLatestAction$1> & typeof getLatestAction$1>;
|
|
181
139
|
declare const getActionDynamicInputSchema: MaybeContext<BuildRESTFunction<typeof getActionDynamicInputSchema$1> & typeof getActionDynamicInputSchema$1>;
|
|
@@ -187,4 +145,4 @@ declare const generateInputMappingFromIntent: MaybeContext<BuildRESTFunction<typ
|
|
|
187
145
|
declare const queryLatestActions: MaybeContext<BuildRESTFunction<typeof queryLatestActions$1> & typeof queryLatestActions$1>;
|
|
188
146
|
declare const queryActions: MaybeContext<BuildRESTFunction<typeof customQueryActions> & typeof customQueryActions>;
|
|
189
147
|
|
|
190
|
-
export { Action, ActionInputMappings, ActionQuery, ActionsQueryBuilder, BulkGetActionDynamicOutputSchemasResponse, CopyInputMappingApplicationErrors, CopyInputMappingOptions, CopyInputMappingResponse,
|
|
148
|
+
export { Action, ActionInputMappings, ActionQuery, ActionsQueryBuilder, BulkGetActionDynamicOutputSchemasResponse, CopyInputMappingApplicationErrors, CopyInputMappingOptions, CopyInputMappingResponse, GenerateInputMappingFromIntentApplicationErrors, GenerateInputMappingFromIntentOptions, GenerateInputMappingFromIntentResponse, GetActionDynamicInputSchemaApplicationErrors, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, GetActionDynamicOutputSchemaApplicationErrors, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, GetLatestActionApplicationErrors, GetLatestActionIdentifiers, GetLatestActionOptions, GetLatestActionResponse, GetRuntimeActionApplicationErrors, GetRuntimeActionIdentifiers, GetRuntimeActionResponse, QueryLatestActionsResponse, QueryV2, ResolveActionsApplicationErrors, ResolveActionsOptions, ResolveActionsResponse, bulkGetActionDynamicOutputSchemas, copyInputMapping, generateInputMappingFromIntent, getAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getLatestAction, getRuntimeAction, queryActions, queryLatestActions, resolveActions };
|
package/build/cjs/index.js
CHANGED
|
@@ -31,8 +31,6 @@ __export(index_exports, {
|
|
|
31
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
32
|
bulkGetActionDynamicOutputSchemas: () => bulkGetActionDynamicOutputSchemas4,
|
|
33
33
|
copyInputMapping: () => copyInputMapping4,
|
|
34
|
-
createAction: () => createAction4,
|
|
35
|
-
deleteAction: () => deleteAction4,
|
|
36
34
|
generateInputMappingFromIntent: () => generateInputMappingFromIntent4,
|
|
37
35
|
getAction: () => getAction4,
|
|
38
36
|
getActionDynamicInputSchema: () => getActionDynamicInputSchema4,
|
|
@@ -42,7 +40,6 @@ __export(index_exports, {
|
|
|
42
40
|
queryActions: () => queryActions4,
|
|
43
41
|
queryLatestActions: () => queryLatestActions4,
|
|
44
42
|
resolveActions: () => resolveActions4,
|
|
45
|
-
updateAction: () => updateAction4,
|
|
46
43
|
utils: () => utils
|
|
47
44
|
});
|
|
48
45
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -57,7 +54,6 @@ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
|
57
54
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
58
55
|
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
59
56
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
60
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
61
57
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
62
58
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
63
59
|
function resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl(opts) {
|
|
@@ -148,7 +144,7 @@ function getAction(payload) {
|
|
|
148
144
|
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
149
145
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
150
146
|
{
|
|
151
|
-
transformFn:
|
|
147
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
152
148
|
paths: [
|
|
153
149
|
{ path: "action.createdDate" },
|
|
154
150
|
{ path: "action.updatedDate" },
|
|
@@ -168,137 +164,6 @@ function getAction(payload) {
|
|
|
168
164
|
}
|
|
169
165
|
return __getAction;
|
|
170
166
|
}
|
|
171
|
-
function createAction(payload) {
|
|
172
|
-
function __createAction({ host }) {
|
|
173
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
174
|
-
{
|
|
175
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
176
|
-
paths: [
|
|
177
|
-
{ path: "action.createdDate" },
|
|
178
|
-
{ path: "action.updatedDate" },
|
|
179
|
-
{ path: "action.icon.urlExpirationDate" }
|
|
180
|
-
]
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
184
|
-
paths: [
|
|
185
|
-
{ path: "action.icon.focalPoint.x" },
|
|
186
|
-
{ path: "action.icon.focalPoint.y" }
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
]);
|
|
190
|
-
const metadata = {
|
|
191
|
-
entityFqdn: "wix.automations.actioncatalog.v1.action",
|
|
192
|
-
method: "POST",
|
|
193
|
-
methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction",
|
|
194
|
-
packageName: PACKAGE_NAME,
|
|
195
|
-
migrationOptions: {
|
|
196
|
-
optInTransformResponse: true
|
|
197
|
-
},
|
|
198
|
-
url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
|
|
199
|
-
protoPath: "/v1/actions",
|
|
200
|
-
data: serializedData,
|
|
201
|
-
host
|
|
202
|
-
}),
|
|
203
|
-
data: serializedData,
|
|
204
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
205
|
-
{
|
|
206
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
207
|
-
paths: [
|
|
208
|
-
{ path: "action.createdDate" },
|
|
209
|
-
{ path: "action.updatedDate" },
|
|
210
|
-
{ path: "action.icon.urlExpirationDate" }
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
215
|
-
paths: [
|
|
216
|
-
{ path: "action.icon.focalPoint.x" },
|
|
217
|
-
{ path: "action.icon.focalPoint.y" }
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
])
|
|
221
|
-
};
|
|
222
|
-
return metadata;
|
|
223
|
-
}
|
|
224
|
-
return __createAction;
|
|
225
|
-
}
|
|
226
|
-
function updateAction(payload) {
|
|
227
|
-
function __updateAction({ host }) {
|
|
228
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
229
|
-
{
|
|
230
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
231
|
-
paths: [
|
|
232
|
-
{ path: "action.createdDate" },
|
|
233
|
-
{ path: "action.updatedDate" },
|
|
234
|
-
{ path: "action.icon.urlExpirationDate" }
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
239
|
-
paths: [
|
|
240
|
-
{ path: "action.icon.focalPoint.x" },
|
|
241
|
-
{ path: "action.icon.focalPoint.y" }
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
]);
|
|
245
|
-
const metadata = {
|
|
246
|
-
entityFqdn: "wix.automations.actioncatalog.v1.action",
|
|
247
|
-
method: "PATCH",
|
|
248
|
-
methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction",
|
|
249
|
-
packageName: PACKAGE_NAME,
|
|
250
|
-
migrationOptions: {
|
|
251
|
-
optInTransformResponse: true
|
|
252
|
-
},
|
|
253
|
-
url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
|
|
254
|
-
protoPath: "/v1/action/{action.id}",
|
|
255
|
-
data: serializedData,
|
|
256
|
-
host
|
|
257
|
-
}),
|
|
258
|
-
data: serializedData,
|
|
259
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
|
-
{
|
|
261
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
262
|
-
paths: [
|
|
263
|
-
{ path: "updatedAction.createdDate" },
|
|
264
|
-
{ path: "updatedAction.updatedDate" },
|
|
265
|
-
{ path: "updatedAction.icon.urlExpirationDate" }
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
270
|
-
paths: [
|
|
271
|
-
{ path: "updatedAction.icon.focalPoint.x" },
|
|
272
|
-
{ path: "updatedAction.icon.focalPoint.y" }
|
|
273
|
-
]
|
|
274
|
-
}
|
|
275
|
-
])
|
|
276
|
-
};
|
|
277
|
-
return metadata;
|
|
278
|
-
}
|
|
279
|
-
return __updateAction;
|
|
280
|
-
}
|
|
281
|
-
function deleteAction(payload) {
|
|
282
|
-
function __deleteAction({ host }) {
|
|
283
|
-
const metadata = {
|
|
284
|
-
entityFqdn: "wix.automations.actioncatalog.v1.action",
|
|
285
|
-
method: "DELETE",
|
|
286
|
-
methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction",
|
|
287
|
-
packageName: PACKAGE_NAME,
|
|
288
|
-
migrationOptions: {
|
|
289
|
-
optInTransformResponse: true
|
|
290
|
-
},
|
|
291
|
-
url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
|
|
292
|
-
protoPath: "/v1/action",
|
|
293
|
-
data: payload,
|
|
294
|
-
host
|
|
295
|
-
}),
|
|
296
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
297
|
-
};
|
|
298
|
-
return metadata;
|
|
299
|
-
}
|
|
300
|
-
return __deleteAction;
|
|
301
|
-
}
|
|
302
167
|
function getRuntimeAction(payload) {
|
|
303
168
|
function __getRuntimeAction({ host }) {
|
|
304
169
|
const metadata = {
|
|
@@ -317,7 +182,7 @@ function getRuntimeAction(payload) {
|
|
|
317
182
|
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
318
183
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
319
184
|
{
|
|
320
|
-
transformFn:
|
|
185
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
321
186
|
paths: [
|
|
322
187
|
{ path: "action.createdDate" },
|
|
323
188
|
{ path: "action.updatedDate" },
|
|
@@ -355,7 +220,7 @@ function getLatestAction(payload) {
|
|
|
355
220
|
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
356
221
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
357
222
|
{
|
|
358
|
-
transformFn:
|
|
223
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
359
224
|
paths: [
|
|
360
225
|
{ path: "action.createdDate" },
|
|
361
226
|
{ path: "action.updatedDate" },
|
|
@@ -423,7 +288,7 @@ function resolveActions(payload) {
|
|
|
423
288
|
data: serializedData,
|
|
424
289
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
425
290
|
{
|
|
426
|
-
transformFn:
|
|
291
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
427
292
|
paths: [
|
|
428
293
|
{ path: "actions.createdDate" },
|
|
429
294
|
{ path: "actions.updatedDate" },
|
|
@@ -545,7 +410,7 @@ function queryActions(payload) {
|
|
|
545
410
|
data: payload,
|
|
546
411
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
547
412
|
{
|
|
548
|
-
transformFn:
|
|
413
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
549
414
|
paths: [
|
|
550
415
|
{ path: "actions.createdDate" },
|
|
551
416
|
{ path: "actions.updatedDate" },
|
|
@@ -583,7 +448,7 @@ function queryLatestActions(payload) {
|
|
|
583
448
|
data: payload,
|
|
584
449
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
585
450
|
{
|
|
586
|
-
transformFn:
|
|
451
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
587
452
|
paths: [
|
|
588
453
|
{ path: "results.createdDate" },
|
|
589
454
|
{ path: "results.updatedDate" },
|
|
@@ -606,7 +471,6 @@ function queryLatestActions(payload) {
|
|
|
606
471
|
|
|
607
472
|
// src/automations-actioncatalog-v1-action-action-catalog.universal.ts
|
|
608
473
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
609
|
-
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
610
474
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
611
475
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
612
476
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
@@ -672,7 +536,7 @@ async function getAction2(actionId) {
|
|
|
672
536
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
673
537
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
674
538
|
{
|
|
675
|
-
transformFn:
|
|
539
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
676
540
|
paths: [{ path: "action.icon" }]
|
|
677
541
|
}
|
|
678
542
|
])
|
|
@@ -691,119 +555,6 @@ async function getAction2(actionId) {
|
|
|
691
555
|
throw transformedError;
|
|
692
556
|
}
|
|
693
557
|
}
|
|
694
|
-
async function createAction2(options) {
|
|
695
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
696
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
697
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
698
|
-
action: options?.action,
|
|
699
|
-
baseUri: options?.baseUri
|
|
700
|
-
}),
|
|
701
|
-
[
|
|
702
|
-
{
|
|
703
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
704
|
-
paths: [{ path: "action.icon" }]
|
|
705
|
-
}
|
|
706
|
-
]
|
|
707
|
-
);
|
|
708
|
-
const reqOpts = createAction(payload);
|
|
709
|
-
sideEffects?.onSiteCall?.();
|
|
710
|
-
try {
|
|
711
|
-
const result = await httpClient.request(reqOpts);
|
|
712
|
-
sideEffects?.onSuccess?.(result);
|
|
713
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
714
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
715
|
-
{
|
|
716
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
717
|
-
paths: [{ path: "action.icon" }]
|
|
718
|
-
}
|
|
719
|
-
])
|
|
720
|
-
)?.action;
|
|
721
|
-
} catch (err) {
|
|
722
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
723
|
-
err,
|
|
724
|
-
{
|
|
725
|
-
spreadPathsToArguments: {},
|
|
726
|
-
explicitPathsToArguments: {
|
|
727
|
-
action: "$[0].action",
|
|
728
|
-
baseUri: "$[0].baseUri"
|
|
729
|
-
},
|
|
730
|
-
singleArgumentUnchanged: false
|
|
731
|
-
},
|
|
732
|
-
["options"]
|
|
733
|
-
);
|
|
734
|
-
sideEffects?.onError?.(err);
|
|
735
|
-
throw transformedError;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
async function updateAction2(_id, options) {
|
|
739
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
740
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
741
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
742
|
-
action: { ...options?.action, id: _id }
|
|
743
|
-
}),
|
|
744
|
-
[
|
|
745
|
-
{
|
|
746
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
747
|
-
paths: [{ path: "action.icon" }]
|
|
748
|
-
}
|
|
749
|
-
]
|
|
750
|
-
);
|
|
751
|
-
const reqOpts = updateAction(payload);
|
|
752
|
-
sideEffects?.onSiteCall?.();
|
|
753
|
-
try {
|
|
754
|
-
const result = await httpClient.request(reqOpts);
|
|
755
|
-
sideEffects?.onSuccess?.(result);
|
|
756
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
757
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
758
|
-
{
|
|
759
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
760
|
-
paths: [{ path: "updatedAction.icon" }]
|
|
761
|
-
}
|
|
762
|
-
])
|
|
763
|
-
)?.updatedAction;
|
|
764
|
-
} catch (err) {
|
|
765
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
766
|
-
err,
|
|
767
|
-
{
|
|
768
|
-
spreadPathsToArguments: { action: "$[1].action" },
|
|
769
|
-
explicitPathsToArguments: { "action.id": "$[0]" },
|
|
770
|
-
singleArgumentUnchanged: false
|
|
771
|
-
},
|
|
772
|
-
["_id", "options"]
|
|
773
|
-
);
|
|
774
|
-
sideEffects?.onError?.(err);
|
|
775
|
-
throw transformedError;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
async function deleteAction2(actionAppId, options) {
|
|
779
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
780
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
781
|
-
actionAppId,
|
|
782
|
-
actionKey: options?.actionKey
|
|
783
|
-
});
|
|
784
|
-
const reqOpts = deleteAction(payload);
|
|
785
|
-
sideEffects?.onSiteCall?.();
|
|
786
|
-
try {
|
|
787
|
-
const result = await httpClient.request(reqOpts);
|
|
788
|
-
sideEffects?.onSuccess?.(result);
|
|
789
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
790
|
-
} catch (err) {
|
|
791
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
792
|
-
err,
|
|
793
|
-
{
|
|
794
|
-
spreadPathsToArguments: {},
|
|
795
|
-
explicitPathsToArguments: {
|
|
796
|
-
actionAppId: "$[0]",
|
|
797
|
-
actionKey: "$[1].actionKey"
|
|
798
|
-
},
|
|
799
|
-
singleArgumentUnchanged: false
|
|
800
|
-
},
|
|
801
|
-
["actionAppId", "options"]
|
|
802
|
-
);
|
|
803
|
-
sideEffects?.onError?.(err);
|
|
804
|
-
throw transformedError;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
558
|
async function getRuntimeAction2(identifiers) {
|
|
808
559
|
const { httpClient, sideEffects } = arguments[1];
|
|
809
560
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -818,7 +569,7 @@ async function getRuntimeAction2(identifiers) {
|
|
|
818
569
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
819
570
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
820
571
|
{
|
|
821
|
-
transformFn:
|
|
572
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
822
573
|
paths: [{ path: "action.icon" }]
|
|
823
574
|
}
|
|
824
575
|
])
|
|
@@ -855,7 +606,7 @@ async function getLatestAction2(identifiers, options) {
|
|
|
855
606
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
856
607
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
857
608
|
{
|
|
858
|
-
transformFn:
|
|
609
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
859
610
|
paths: [{ path: "action.icon" }]
|
|
860
611
|
}
|
|
861
612
|
])
|
|
@@ -924,7 +675,7 @@ async function resolveActions2(options) {
|
|
|
924
675
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
925
676
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
926
677
|
{
|
|
927
|
-
transformFn:
|
|
678
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
928
679
|
paths: [{ path: "actions.icon" }]
|
|
929
680
|
}
|
|
930
681
|
])
|
|
@@ -1097,7 +848,7 @@ function queryActions2() {
|
|
|
1097
848
|
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1098
849
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
1099
850
|
{
|
|
1100
|
-
transformFn:
|
|
851
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1101
852
|
paths: [{ path: "actions.icon" }]
|
|
1102
853
|
}
|
|
1103
854
|
])
|
|
@@ -1130,7 +881,7 @@ async function typedQueryActions(query) {
|
|
|
1130
881
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1131
882
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1132
883
|
{
|
|
1133
|
-
transformFn:
|
|
884
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1134
885
|
paths: [{ path: "actions.icon" }]
|
|
1135
886
|
}
|
|
1136
887
|
])
|
|
@@ -1165,7 +916,7 @@ async function queryLatestActions2(query) {
|
|
|
1165
916
|
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1166
917
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1167
918
|
{
|
|
1168
|
-
transformFn:
|
|
919
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1169
920
|
paths: [{ path: "results.icon" }]
|
|
1170
921
|
}
|
|
1171
922
|
])
|
|
@@ -1193,29 +944,6 @@ function getAction3(httpClient) {
|
|
|
1193
944
|
{ httpClient }
|
|
1194
945
|
);
|
|
1195
946
|
}
|
|
1196
|
-
function createAction3(httpClient) {
|
|
1197
|
-
return (options) => createAction2(
|
|
1198
|
-
options,
|
|
1199
|
-
// @ts-ignore
|
|
1200
|
-
{ httpClient }
|
|
1201
|
-
);
|
|
1202
|
-
}
|
|
1203
|
-
function updateAction3(httpClient) {
|
|
1204
|
-
return (_id, options) => updateAction2(
|
|
1205
|
-
_id,
|
|
1206
|
-
options,
|
|
1207
|
-
// @ts-ignore
|
|
1208
|
-
{ httpClient }
|
|
1209
|
-
);
|
|
1210
|
-
}
|
|
1211
|
-
function deleteAction3(httpClient) {
|
|
1212
|
-
return (actionAppId, options) => deleteAction2(
|
|
1213
|
-
actionAppId,
|
|
1214
|
-
options,
|
|
1215
|
-
// @ts-ignore
|
|
1216
|
-
{ httpClient }
|
|
1217
|
-
);
|
|
1218
|
-
}
|
|
1219
947
|
function getRuntimeAction3(httpClient) {
|
|
1220
948
|
return (identifiers) => getRuntimeAction2(
|
|
1221
949
|
identifiers,
|
|
@@ -1313,9 +1041,6 @@ function customQueryActions(httpClient) {
|
|
|
1313
1041
|
return overloadedQuery;
|
|
1314
1042
|
}
|
|
1315
1043
|
var getAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAction3);
|
|
1316
|
-
var createAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAction3);
|
|
1317
|
-
var updateAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAction3);
|
|
1318
|
-
var deleteAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAction3);
|
|
1319
1044
|
var getRuntimeAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRuntimeAction3);
|
|
1320
1045
|
var getLatestAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestAction3);
|
|
1321
1046
|
var getActionDynamicInputSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getActionDynamicInputSchema3);
|
|
@@ -1339,8 +1064,6 @@ var queryActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(c
|
|
|
1339
1064
|
WebhookIdentityType,
|
|
1340
1065
|
bulkGetActionDynamicOutputSchemas,
|
|
1341
1066
|
copyInputMapping,
|
|
1342
|
-
createAction,
|
|
1343
|
-
deleteAction,
|
|
1344
1067
|
generateInputMappingFromIntent,
|
|
1345
1068
|
getAction,
|
|
1346
1069
|
getActionDynamicInputSchema,
|
|
@@ -1350,7 +1073,6 @@ var queryActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(c
|
|
|
1350
1073
|
queryActions,
|
|
1351
1074
|
queryLatestActions,
|
|
1352
1075
|
resolveActions,
|
|
1353
|
-
updateAction,
|
|
1354
1076
|
utils
|
|
1355
1077
|
});
|
|
1356
1078
|
//# sourceMappingURL=index.js.map
|