@wix/auto_sdk_automations_action-catalog 1.0.52 → 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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +3 -45
  2. package/build/cjs/index.js +24 -293
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +14 -179
  5. package/build/cjs/index.typings.js +24 -267
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +15 -39
  8. package/build/cjs/meta.js +19 -202
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +5 -154
  11. package/build/cjs/schemas.js +9 -290
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +3 -45
  14. package/build/es/index.mjs +11 -277
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +14 -179
  17. package/build/es/index.typings.mjs +11 -251
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +15 -39
  20. package/build/es/meta.mjs +12 -192
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +5 -154
  23. package/build/es/schemas.mjs +8 -283
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +3 -45
  26. package/build/internal/cjs/index.js +24 -293
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +14 -179
  29. package/build/internal/cjs/index.typings.js +24 -267
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +15 -39
  32. package/build/internal/cjs/meta.js +19 -202
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +5 -154
  35. package/build/internal/cjs/schemas.js +9 -290
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +3 -45
  38. package/build/internal/es/index.mjs +11 -277
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +14 -179
  41. package/build/internal/es/index.typings.mjs +11 -251
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +15 -39
  44. package/build/internal/es/meta.mjs +12 -192
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +5 -154
  47. package/build/internal/es/schemas.mjs +8 -283
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
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, 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';
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
+ 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 {
@@ -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, 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 };
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 };
@@ -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: import_timestamp2.transformRESTTimestampToSDKTimestamp,
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: import_timestamp2.transformRESTTimestampToSDKTimestamp,
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: import_timestamp2.transformRESTTimestampToSDKTimestamp,
223
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
359
224
  paths: [
360
225
  { path: "action.createdDate" },
361
226
  { path: "action.updatedDate" },
@@ -398,6 +263,15 @@ function getActionDynamicInputSchema(payload) {
398
263
  }
399
264
  function resolveActions(payload) {
400
265
  function __resolveActions({ host }) {
266
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
267
+ {
268
+ transformFn: import_float.transformSDKFloatToRESTFloat,
269
+ paths: [
270
+ { path: "query.sort.origin.latitude" },
271
+ { path: "query.sort.origin.longitude" }
272
+ ]
273
+ }
274
+ ]);
401
275
  const metadata = {
402
276
  entityFqdn: "wix.automations.actioncatalog.v1.action",
403
277
  method: "POST",
@@ -408,13 +282,13 @@ function resolveActions(payload) {
408
282
  },
409
283
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
410
284
  protoPath: "/v1/actions/resolve",
411
- data: payload,
285
+ data: serializedData,
412
286
  host
413
287
  }),
414
- data: payload,
288
+ data: serializedData,
415
289
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
416
290
  {
417
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
291
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
418
292
  paths: [
419
293
  { path: "actions.createdDate" },
420
294
  { path: "actions.updatedDate" },
@@ -536,7 +410,7 @@ function queryActions(payload) {
536
410
  data: payload,
537
411
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
538
412
  {
539
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
413
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
540
414
  paths: [
541
415
  { path: "actions.createdDate" },
542
416
  { path: "actions.updatedDate" },
@@ -574,7 +448,7 @@ function queryLatestActions(payload) {
574
448
  data: payload,
575
449
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
576
450
  {
577
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
451
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
578
452
  paths: [
579
453
  { path: "results.createdDate" },
580
454
  { path: "results.updatedDate" },
@@ -597,7 +471,6 @@ function queryLatestActions(payload) {
597
471
 
598
472
  // src/automations-actioncatalog-v1-action-action-catalog.universal.ts
599
473
  var import_image = require("@wix/sdk-runtime/transformations/image");
600
- var import_image2 = require("@wix/sdk-runtime/transformations/image");
601
474
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
602
475
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
603
476
  var Type = /* @__PURE__ */ ((Type2) => {
@@ -663,7 +536,7 @@ async function getAction2(actionId) {
663
536
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
664
537
  (0, import_transform_paths2.transformPaths)(result.data, [
665
538
  {
666
- transformFn: import_image2.transformRESTImageToSDKImage,
539
+ transformFn: import_image.transformRESTImageToSDKImage,
667
540
  paths: [{ path: "action.icon" }]
668
541
  }
669
542
  ])
@@ -682,119 +555,6 @@ async function getAction2(actionId) {
682
555
  throw transformedError;
683
556
  }
684
557
  }
685
- async function createAction2(options) {
686
- const { httpClient, sideEffects } = arguments[1];
687
- const payload = (0, import_transform_paths2.transformPaths)(
688
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
689
- action: options?.action,
690
- baseUri: options?.baseUri
691
- }),
692
- [
693
- {
694
- transformFn: import_image.transformSDKImageToRESTImage,
695
- paths: [{ path: "action.icon" }]
696
- }
697
- ]
698
- );
699
- const reqOpts = createAction(payload);
700
- sideEffects?.onSiteCall?.();
701
- try {
702
- const result = await httpClient.request(reqOpts);
703
- sideEffects?.onSuccess?.(result);
704
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
705
- (0, import_transform_paths2.transformPaths)(result.data, [
706
- {
707
- transformFn: import_image2.transformRESTImageToSDKImage,
708
- paths: [{ path: "action.icon" }]
709
- }
710
- ])
711
- )?.action;
712
- } catch (err) {
713
- const transformedError = (0, import_transform_error.transformError)(
714
- err,
715
- {
716
- spreadPathsToArguments: {},
717
- explicitPathsToArguments: {
718
- action: "$[0].action",
719
- baseUri: "$[0].baseUri"
720
- },
721
- singleArgumentUnchanged: false
722
- },
723
- ["options"]
724
- );
725
- sideEffects?.onError?.(err);
726
- throw transformedError;
727
- }
728
- }
729
- async function updateAction2(_id, options) {
730
- const { httpClient, sideEffects } = arguments[2];
731
- const payload = (0, import_transform_paths2.transformPaths)(
732
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
733
- action: { ...options?.action, id: _id }
734
- }),
735
- [
736
- {
737
- transformFn: import_image.transformSDKImageToRESTImage,
738
- paths: [{ path: "action.icon" }]
739
- }
740
- ]
741
- );
742
- const reqOpts = updateAction(payload);
743
- sideEffects?.onSiteCall?.();
744
- try {
745
- const result = await httpClient.request(reqOpts);
746
- sideEffects?.onSuccess?.(result);
747
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
748
- (0, import_transform_paths2.transformPaths)(result.data, [
749
- {
750
- transformFn: import_image2.transformRESTImageToSDKImage,
751
- paths: [{ path: "updatedAction.icon" }]
752
- }
753
- ])
754
- )?.updatedAction;
755
- } catch (err) {
756
- const transformedError = (0, import_transform_error.transformError)(
757
- err,
758
- {
759
- spreadPathsToArguments: { action: "$[1].action" },
760
- explicitPathsToArguments: { "action.id": "$[0]" },
761
- singleArgumentUnchanged: false
762
- },
763
- ["_id", "options"]
764
- );
765
- sideEffects?.onError?.(err);
766
- throw transformedError;
767
- }
768
- }
769
- async function deleteAction2(actionAppId, options) {
770
- const { httpClient, sideEffects } = arguments[2];
771
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
772
- actionAppId,
773
- actionKey: options?.actionKey
774
- });
775
- const reqOpts = deleteAction(payload);
776
- sideEffects?.onSiteCall?.();
777
- try {
778
- const result = await httpClient.request(reqOpts);
779
- sideEffects?.onSuccess?.(result);
780
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
781
- } catch (err) {
782
- const transformedError = (0, import_transform_error.transformError)(
783
- err,
784
- {
785
- spreadPathsToArguments: {},
786
- explicitPathsToArguments: {
787
- actionAppId: "$[0]",
788
- actionKey: "$[1].actionKey"
789
- },
790
- singleArgumentUnchanged: false
791
- },
792
- ["actionAppId", "options"]
793
- );
794
- sideEffects?.onError?.(err);
795
- throw transformedError;
796
- }
797
- }
798
558
  async function getRuntimeAction2(identifiers) {
799
559
  const { httpClient, sideEffects } = arguments[1];
800
560
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -809,7 +569,7 @@ async function getRuntimeAction2(identifiers) {
809
569
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
810
570
  (0, import_transform_paths2.transformPaths)(result.data, [
811
571
  {
812
- transformFn: import_image2.transformRESTImageToSDKImage,
572
+ transformFn: import_image.transformRESTImageToSDKImage,
813
573
  paths: [{ path: "action.icon" }]
814
574
  }
815
575
  ])
@@ -846,7 +606,7 @@ async function getLatestAction2(identifiers, options) {
846
606
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
847
607
  (0, import_transform_paths2.transformPaths)(result.data, [
848
608
  {
849
- transformFn: import_image2.transformRESTImageToSDKImage,
609
+ transformFn: import_image.transformRESTImageToSDKImage,
850
610
  paths: [{ path: "action.icon" }]
851
611
  }
852
612
  ])
@@ -915,7 +675,7 @@ async function resolveActions2(options) {
915
675
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
916
676
  (0, import_transform_paths2.transformPaths)(result.data, [
917
677
  {
918
- transformFn: import_image2.transformRESTImageToSDKImage,
678
+ transformFn: import_image.transformRESTImageToSDKImage,
919
679
  paths: [{ path: "actions.icon" }]
920
680
  }
921
681
  ])
@@ -1088,7 +848,7 @@ function queryActions2() {
1088
848
  const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1089
849
  (0, import_transform_paths2.transformPaths)(data, [
1090
850
  {
1091
- transformFn: import_image2.transformRESTImageToSDKImage,
851
+ transformFn: import_image.transformRESTImageToSDKImage,
1092
852
  paths: [{ path: "actions.icon" }]
1093
853
  }
1094
854
  ])
@@ -1121,7 +881,7 @@ async function typedQueryActions(query) {
1121
881
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1122
882
  (0, import_transform_paths2.transformPaths)(result.data, [
1123
883
  {
1124
- transformFn: import_image2.transformRESTImageToSDKImage,
884
+ transformFn: import_image.transformRESTImageToSDKImage,
1125
885
  paths: [{ path: "actions.icon" }]
1126
886
  }
1127
887
  ])
@@ -1156,7 +916,7 @@ async function queryLatestActions2(query) {
1156
916
  return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1157
917
  (0, import_transform_paths2.transformPaths)(result.data, [
1158
918
  {
1159
- transformFn: import_image2.transformRESTImageToSDKImage,
919
+ transformFn: import_image.transformRESTImageToSDKImage,
1160
920
  paths: [{ path: "results.icon" }]
1161
921
  }
1162
922
  ])
@@ -1184,29 +944,6 @@ function getAction3(httpClient) {
1184
944
  { httpClient }
1185
945
  );
1186
946
  }
1187
- function createAction3(httpClient) {
1188
- return (options) => createAction2(
1189
- options,
1190
- // @ts-ignore
1191
- { httpClient }
1192
- );
1193
- }
1194
- function updateAction3(httpClient) {
1195
- return (_id, options) => updateAction2(
1196
- _id,
1197
- options,
1198
- // @ts-ignore
1199
- { httpClient }
1200
- );
1201
- }
1202
- function deleteAction3(httpClient) {
1203
- return (actionAppId, options) => deleteAction2(
1204
- actionAppId,
1205
- options,
1206
- // @ts-ignore
1207
- { httpClient }
1208
- );
1209
- }
1210
947
  function getRuntimeAction3(httpClient) {
1211
948
  return (identifiers) => getRuntimeAction2(
1212
949
  identifiers,
@@ -1304,9 +1041,6 @@ function customQueryActions(httpClient) {
1304
1041
  return overloadedQuery;
1305
1042
  }
1306
1043
  var getAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAction3);
1307
- var createAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAction3);
1308
- var updateAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAction3);
1309
- var deleteAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAction3);
1310
1044
  var getRuntimeAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRuntimeAction3);
1311
1045
  var getLatestAction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestAction3);
1312
1046
  var getActionDynamicInputSchema4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getActionDynamicInputSchema3);
@@ -1330,8 +1064,6 @@ var queryActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(c
1330
1064
  WebhookIdentityType,
1331
1065
  bulkGetActionDynamicOutputSchemas,
1332
1066
  copyInputMapping,
1333
- createAction,
1334
- deleteAction,
1335
1067
  generateInputMappingFromIntent,
1336
1068
  getAction,
1337
1069
  getActionDynamicInputSchema,
@@ -1341,7 +1073,6 @@ var queryActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(c
1341
1073
  queryActions,
1342
1074
  queryLatestActions,
1343
1075
  resolveActions,
1344
- updateAction,
1345
1076
  utils
1346
1077
  });
1347
1078
  //# sourceMappingURL=index.js.map