@wix/auto_sdk_automations_action-catalog 1.0.51 → 1.0.53
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 +33 -13
- package/build/cjs/index.js +12 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +277 -12
- package/build/cjs/index.typings.js +12 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +247 -2
- package/build/cjs/meta.js +11 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +4 -0
- package/build/cjs/schemas.js +7 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +33 -13
- package/build/es/index.mjs +12 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +277 -12
- package/build/es/index.typings.mjs +12 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +247 -2
- package/build/es/meta.mjs +11 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +4 -0
- package/build/es/schemas.mjs +7 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +33 -13
- package/build/internal/cjs/index.js +12 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +277 -12
- package/build/internal/cjs/index.typings.js +12 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +247 -2
- package/build/internal/cjs/meta.js +11 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +4 -0
- package/build/internal/cjs/schemas.js +7 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +33 -13
- package/build/internal/es/index.mjs +12 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +277 -12
- package/build/internal/es/index.typings.mjs +12 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +247 -2
- package/build/internal/es/meta.mjs +11 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +4 -0
- package/build/internal/es/schemas.mjs +7 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Action, CreateActionOptions, UpdateActionOptions, DeleteActionOptions, GetRuntimeActionIdentifiers, GetRuntimeActionResponse, GetLatestActionIdentifiers, GetLatestActionOptions, GetLatestActionResponse, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, ResolveActionsOptions, ResolveActionsResponse, CopyInputMappingOptions, CopyInputMappingResponse, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, ActionInputMappings, BulkGetActionDynamicOutputSchemasResponse, GenerateInputMappingFromIntentOptions, GenerateInputMappingFromIntentResponse, QueryV2, QueryLatestActionsResponse, ActionsQueryBuilder, ActionQuery, typedQueryActions } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionDeletedWithEntity, ActionEvent, ActionQuerySpec, ActionSpecInfo, ActionsQueryResult, AdditionalInformationRequiredInfo, ApplicationError, BulkActionMetadata, BulkActionOutputSchemaResult, BulkGetActionDynamicOutputSchemasRequest, CommonCursorPaging, CommonCursors, CommonPaging, CommonPagingMetadataV2, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonQueryWithEntityContext, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, CopyInputMappingRequest, CreateActionRequest, CreateActionResponse, CursorPaging, Cursors, DeleteActionRequest, DeleteActionResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExecutionType, ExecutionTypeWithLiterals, ExperimentActionType, ExperimentActionTypeWithLiterals, FocalPoint, GenerateInputMappingFromIntentRequest, GenerateInputMappingFromIntentResponseStatusInfoOneOf, GenericOptions, GetActionDynamicInputSchemaRequest, GetActionDynamicOutputSchemaRequest, GetActionRequest, GetActionResponse, GetLatestActionRequest, GetRuntimeActionRequest, IdentificationData, IdentificationDataIdOneOf, ImplementedMethods, InputMappingGeneratedInfo, IntegrationOptions, IntegrationOptionsOptionsOneOf, IntegrationType, IntegrationTypeWithLiterals, InterfaceConfiguration, InterfaceConfigurationOptionsOneOf, ItemMetadata, MessageEnvelope, Metadata, MigrateComponentToActionRequest, MigrateComponentToActionResponse, OpenApiOptions, Paging, PagingMetadataV2, QueryActionsRequest, QueryActionsResponse, QueryLatestActionsRequest, QueryV2PagingMethodOneOf, ResolveActionsRequest, RestoreInfo, RetryExperimentCreation, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceOptionsOneOf, SourceType, SourceTypeWithLiterals, Status, StatusWithLiterals, Type, TypeWithLiterals, UpdateActionComponentRequest, UpdateActionComponentResponse, UpdateActionRequest, UpdateActionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WidgetComponentOptions, WixApiOptions, utils } from './index.typings.js';
|
|
2
|
+
import { Action, CreateActionOptions, CreateActionApplicationErrors, UpdateActionOptions, UpdateActionApplicationErrors, DeleteActionOptions, DeleteActionApplicationErrors, 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
|
+
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;
|
|
6
6
|
interface GetActionSignature {
|
|
@@ -26,7 +26,9 @@ interface CreateActionSignature {
|
|
|
26
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
27
|
* @returns Created action.
|
|
28
28
|
*/
|
|
29
|
-
(options?: NonNullablePaths<CreateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.getQuotaInfo` | `executionType` | `interfaceConfiguration.type`, 3
|
|
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
|
+
}>;
|
|
30
32
|
}
|
|
31
33
|
declare function updateAction$1(httpClient: HttpClient): UpdateActionSignature;
|
|
32
34
|
interface UpdateActionSignature {
|
|
@@ -37,7 +39,9 @@ interface UpdateActionSignature {
|
|
|
37
39
|
* @param - Action ID.
|
|
38
40
|
* @returns Updated action.
|
|
39
41
|
*/
|
|
40
|
-
(_id: string, options?: NonNullablePaths<UpdateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.getQuotaInfo` | `executionType` | `interfaceConfiguration.type`, 3
|
|
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
|
+
}>;
|
|
41
45
|
}
|
|
42
46
|
declare function deleteAction$1(httpClient: HttpClient): DeleteActionSignature;
|
|
43
47
|
interface DeleteActionSignature {
|
|
@@ -47,7 +51,9 @@ interface DeleteActionSignature {
|
|
|
47
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.
|
|
48
52
|
* @param - ID of the app that defines the action.
|
|
49
53
|
*/
|
|
50
|
-
(actionAppId: string, options: NonNullablePaths<DeleteActionOptions, `actionKey`, 2>): Promise<void
|
|
54
|
+
(actionAppId: string, options: NonNullablePaths<DeleteActionOptions, `actionKey`, 2>): Promise<void & {
|
|
55
|
+
__applicationErrorsType?: DeleteActionApplicationErrors;
|
|
56
|
+
}>;
|
|
51
57
|
}
|
|
52
58
|
declare function getRuntimeAction$1(httpClient: HttpClient): GetRuntimeActionSignature;
|
|
53
59
|
interface GetRuntimeActionSignature {
|
|
@@ -57,7 +63,9 @@ interface GetRuntimeActionSignature {
|
|
|
57
63
|
* - To retrieve a specific action version by ID, call [Get Action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-catalog/get-action).
|
|
58
64
|
* - To retrieve the latest version of the action regardless of the site on which it's installed, call [Get Latest Action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-catalog/get-latest-action).
|
|
59
65
|
*/
|
|
60
|
-
(identifiers: NonNullablePaths<GetRuntimeActionIdentifiers, `actionKey` | `appId`, 2>): Promise<NonNullablePaths<GetRuntimeActionResponse, `action.appId` | `action.actionKey` | `action.implementedMethods.validateConfiguration` | `action.implementedMethods.getQuotaInfo` | `action.executionType` | `action.interfaceConfiguration.type`, 4
|
|
66
|
+
(identifiers: NonNullablePaths<GetRuntimeActionIdentifiers, `actionKey` | `appId`, 2>): Promise<NonNullablePaths<GetRuntimeActionResponse, `action.appId` | `action.actionKey` | `action.implementedMethods.validateConfiguration` | `action.implementedMethods.getQuotaInfo` | `action.executionType` | `action.interfaceConfiguration.type`, 4> & {
|
|
67
|
+
__applicationErrorsType?: GetRuntimeActionApplicationErrors;
|
|
68
|
+
}>;
|
|
61
69
|
}
|
|
62
70
|
declare function getLatestAction$1(httpClient: HttpClient): GetLatestActionSignature;
|
|
63
71
|
interface GetLatestActionSignature {
|
|
@@ -68,7 +76,9 @@ interface GetLatestActionSignature {
|
|
|
68
76
|
*
|
|
69
77
|
* - To retrieve the version of the action that's active on the current site, call [Get Runtime Action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-catalog/get-runtime-action).
|
|
70
78
|
*/
|
|
71
|
-
(identifiers: NonNullablePaths<GetLatestActionIdentifiers, `actionKey` | `appId`, 2>, options?: GetLatestActionOptions): Promise<NonNullablePaths<GetLatestActionResponse, `action.appId` | `action.actionKey` | `action.implementedMethods.validateConfiguration` | `action.implementedMethods.getQuotaInfo` | `action.executionType` | `action.interfaceConfiguration.type`, 4
|
|
79
|
+
(identifiers: NonNullablePaths<GetLatestActionIdentifiers, `actionKey` | `appId`, 2>, options?: GetLatestActionOptions): Promise<NonNullablePaths<GetLatestActionResponse, `action.appId` | `action.actionKey` | `action.implementedMethods.validateConfiguration` | `action.implementedMethods.getQuotaInfo` | `action.executionType` | `action.interfaceConfiguration.type`, 4> & {
|
|
80
|
+
__applicationErrorsType?: GetLatestActionApplicationErrors;
|
|
81
|
+
}>;
|
|
72
82
|
}
|
|
73
83
|
declare function getActionDynamicInputSchema$1(httpClient: HttpClient): GetActionDynamicInputSchemaSignature;
|
|
74
84
|
interface GetActionDynamicInputSchemaSignature {
|
|
@@ -76,7 +86,9 @@ interface GetActionDynamicInputSchemaSignature {
|
|
|
76
86
|
* Retrieves an action's dynamic [input schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema) and [UI schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-ui-schema), based on the [action's input mapping](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping).
|
|
77
87
|
* @param - ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/add-an-action-to-your-app).
|
|
78
88
|
*/
|
|
79
|
-
(appId: string, options: NonNullablePaths<GetActionDynamicInputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicInputSchemaResponse
|
|
89
|
+
(appId: string, options: NonNullablePaths<GetActionDynamicInputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicInputSchemaResponse & {
|
|
90
|
+
__applicationErrorsType?: GetActionDynamicInputSchemaApplicationErrors;
|
|
91
|
+
}>;
|
|
80
92
|
}
|
|
81
93
|
declare function resolveActions$1(httpClient: HttpClient): ResolveActionsSignature;
|
|
82
94
|
interface ResolveActionsSignature {
|
|
@@ -85,7 +97,9 @@ interface ResolveActionsSignature {
|
|
|
85
97
|
*
|
|
86
98
|
* The site's action catalog contains actions provided by all the apps installed on the site. Wix users can add these actions as building blocks in their automations. To reference a retrieved action when creating or updating an automation, use the `appId` and `actionKey` pair.
|
|
87
99
|
*/
|
|
88
|
-
(options?: ResolveActionsOptions): Promise<NonNullablePaths<ResolveActionsResponse, `actions` | `actions.${number}.appId` | `actions.${number}.actionKey` | `actions.${number}.implementedMethods.validateConfiguration` | `actions.${number}.implementedMethods.getQuotaInfo` | `actions.${number}.executionType` | `actions.${number}.interfaceConfiguration.type`, 5
|
|
100
|
+
(options?: ResolveActionsOptions): Promise<NonNullablePaths<ResolveActionsResponse, `actions` | `actions.${number}.appId` | `actions.${number}.actionKey` | `actions.${number}.implementedMethods.validateConfiguration` | `actions.${number}.implementedMethods.getQuotaInfo` | `actions.${number}.executionType` | `actions.${number}.interfaceConfiguration.type`, 5> & {
|
|
101
|
+
__applicationErrorsType?: ResolveActionsApplicationErrors;
|
|
102
|
+
}>;
|
|
89
103
|
}
|
|
90
104
|
declare function copyInputMapping$1(httpClient: HttpClient): CopyInputMappingSignature;
|
|
91
105
|
interface CopyInputMappingSignature {
|
|
@@ -95,7 +109,9 @@ interface CopyInputMappingSignature {
|
|
|
95
109
|
* Used by the automations editor when a Wix user duplicates an action that contains values, such as IDs, that must remain unique across multiple actions. If the action's service plugin implements `DuplicateInputMapping`, the input mapping is passed through it; otherwise, the original input mapping is returned unchanged.
|
|
96
110
|
* @param - ID of the app that defines the action.
|
|
97
111
|
*/
|
|
98
|
-
(appId: string, options: NonNullablePaths<CopyInputMappingOptions, `actionKey` | `inputMapping`, 2>): Promise<CopyInputMappingResponse
|
|
112
|
+
(appId: string, options: NonNullablePaths<CopyInputMappingOptions, `actionKey` | `inputMapping`, 2>): Promise<CopyInputMappingResponse & {
|
|
113
|
+
__applicationErrorsType?: CopyInputMappingApplicationErrors;
|
|
114
|
+
}>;
|
|
99
115
|
}
|
|
100
116
|
declare function getActionDynamicOutputSchema$1(httpClient: HttpClient): GetActionDynamicOutputSchemaSignature;
|
|
101
117
|
interface GetActionDynamicOutputSchemaSignature {
|
|
@@ -103,7 +119,9 @@ interface GetActionDynamicOutputSchemaSignature {
|
|
|
103
119
|
* Retrieves an [action's dynamic output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema), based on the action's input mapping.
|
|
104
120
|
* @param - ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/add-an-action-to-your-app).
|
|
105
121
|
*/
|
|
106
|
-
(appId: string, options: NonNullablePaths<GetActionDynamicOutputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicOutputSchemaResponse
|
|
122
|
+
(appId: string, options: NonNullablePaths<GetActionDynamicOutputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicOutputSchemaResponse & {
|
|
123
|
+
__applicationErrorsType?: GetActionDynamicOutputSchemaApplicationErrors;
|
|
124
|
+
}>;
|
|
107
125
|
}
|
|
108
126
|
declare function bulkGetActionDynamicOutputSchemas$1(httpClient: HttpClient): BulkGetActionDynamicOutputSchemasSignature;
|
|
109
127
|
interface BulkGetActionDynamicOutputSchemasSignature {
|
|
@@ -121,7 +139,9 @@ interface GenerateInputMappingFromIntentSignature {
|
|
|
121
139
|
* Generates an action's input mapping from a natural language description of the desired configuration.
|
|
122
140
|
* @param - ID of the app that defines the action.
|
|
123
141
|
*/
|
|
124
|
-
(appId: string, options: NonNullablePaths<GenerateInputMappingFromIntentOptions, `actionKey` | `actionSchema` | `conversationId` | `intent`, 2>): Promise<NonNullablePaths<GenerateInputMappingFromIntentResponse, `additionalInformationRequiredInfo.feedback` | `status`, 3
|
|
142
|
+
(appId: string, options: NonNullablePaths<GenerateInputMappingFromIntentOptions, `actionKey` | `actionSchema` | `conversationId` | `intent`, 2>): Promise<NonNullablePaths<GenerateInputMappingFromIntentResponse, `additionalInformationRequiredInfo.feedback` | `status`, 3> & {
|
|
143
|
+
__applicationErrorsType?: GenerateInputMappingFromIntentApplicationErrors;
|
|
144
|
+
}>;
|
|
125
145
|
}
|
|
126
146
|
declare function queryLatestActions$1(httpClient: HttpClient): QueryLatestActionsSignature;
|
|
127
147
|
interface QueryLatestActionsSignature {
|
|
@@ -167,4 +187,4 @@ declare const generateInputMappingFromIntent: MaybeContext<BuildRESTFunction<typ
|
|
|
167
187
|
declare const queryLatestActions: MaybeContext<BuildRESTFunction<typeof queryLatestActions$1> & typeof queryLatestActions$1>;
|
|
168
188
|
declare const queryActions: MaybeContext<BuildRESTFunction<typeof customQueryActions> & typeof customQueryActions>;
|
|
169
189
|
|
|
170
|
-
export { Action, ActionInputMappings, ActionQuery, ActionsQueryBuilder, BulkGetActionDynamicOutputSchemasResponse, CopyInputMappingOptions, CopyInputMappingResponse, CreateActionOptions, DeleteActionOptions, GenerateInputMappingFromIntentOptions, GenerateInputMappingFromIntentResponse, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, GetLatestActionIdentifiers, GetLatestActionOptions, GetLatestActionResponse, GetRuntimeActionIdentifiers, GetRuntimeActionResponse, QueryLatestActionsResponse, QueryV2, ResolveActionsOptions, ResolveActionsResponse, UpdateActionOptions, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, generateInputMappingFromIntent, getAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getLatestAction, getRuntimeAction, queryActions, queryLatestActions, resolveActions, updateAction };
|
|
190
|
+
export { Action, ActionInputMappings, ActionQuery, ActionsQueryBuilder, BulkGetActionDynamicOutputSchemasResponse, CopyInputMappingApplicationErrors, CopyInputMappingOptions, CopyInputMappingResponse, CreateActionApplicationErrors, CreateActionOptions, DeleteActionApplicationErrors, DeleteActionOptions, GenerateInputMappingFromIntentApplicationErrors, GenerateInputMappingFromIntentOptions, GenerateInputMappingFromIntentResponse, GetActionDynamicInputSchemaApplicationErrors, GetActionDynamicInputSchemaOptions, GetActionDynamicInputSchemaResponse, GetActionDynamicOutputSchemaApplicationErrors, GetActionDynamicOutputSchemaOptions, GetActionDynamicOutputSchemaResponse, GetLatestActionApplicationErrors, GetLatestActionIdentifiers, GetLatestActionOptions, GetLatestActionResponse, GetRuntimeActionApplicationErrors, GetRuntimeActionIdentifiers, GetRuntimeActionResponse, QueryLatestActionsResponse, QueryV2, ResolveActionsApplicationErrors, ResolveActionsOptions, ResolveActionsResponse, UpdateActionApplicationErrors, UpdateActionOptions, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, generateInputMappingFromIntent, getAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getLatestAction, getRuntimeAction, queryActions, queryLatestActions, resolveActions, updateAction };
|
package/build/cjs/index.js
CHANGED
|
@@ -398,6 +398,15 @@ function getActionDynamicInputSchema(payload) {
|
|
|
398
398
|
}
|
|
399
399
|
function resolveActions(payload) {
|
|
400
400
|
function __resolveActions({ host }) {
|
|
401
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
402
|
+
{
|
|
403
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
404
|
+
paths: [
|
|
405
|
+
{ path: "query.sort.origin.latitude" },
|
|
406
|
+
{ path: "query.sort.origin.longitude" }
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
]);
|
|
401
410
|
const metadata = {
|
|
402
411
|
entityFqdn: "wix.automations.actioncatalog.v1.action",
|
|
403
412
|
method: "POST",
|
|
@@ -408,10 +417,10 @@ function resolveActions(payload) {
|
|
|
408
417
|
},
|
|
409
418
|
url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
|
|
410
419
|
protoPath: "/v1/actions/resolve",
|
|
411
|
-
data:
|
|
420
|
+
data: serializedData,
|
|
412
421
|
host
|
|
413
422
|
}),
|
|
414
|
-
data:
|
|
423
|
+
data: serializedData,
|
|
415
424
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
416
425
|
{
|
|
417
426
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -777,6 +786,7 @@ async function deleteAction2(actionAppId, options) {
|
|
|
777
786
|
try {
|
|
778
787
|
const result = await httpClient.request(reqOpts);
|
|
779
788
|
sideEffects?.onSuccess?.(result);
|
|
789
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
780
790
|
} catch (err) {
|
|
781
791
|
const transformedError = (0, import_transform_error.transformError)(
|
|
782
792
|
err,
|