@wix/auto_sdk_automations_automations-v-2 1.0.82 → 1.0.84

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 (37) hide show
  1. package/build/cjs/index.d.ts +18 -9
  2. package/build/cjs/index.js +101 -34
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +77 -34
  5. package/build/cjs/index.typings.js +86 -30
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +46 -26
  8. package/build/cjs/meta.js +70 -27
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +18 -9
  11. package/build/es/index.mjs +100 -34
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +77 -34
  14. package/build/es/index.typings.mjs +85 -30
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +46 -26
  17. package/build/es/meta.mjs +69 -27
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +18 -9
  20. package/build/internal/cjs/index.js +101 -34
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +77 -34
  23. package/build/internal/cjs/index.typings.js +86 -30
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +46 -26
  26. package/build/internal/cjs/meta.js +70 -27
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +18 -9
  29. package/build/internal/es/index.mjs +100 -34
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +77 -34
  32. package/build/internal/es/index.typings.mjs +85 -30
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +46 -26
  35. package/build/internal/es/meta.mjs +69 -27
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -864,9 +864,19 @@ declare enum WebhookIdentityType {
864
864
  }
865
865
  /** @enumType */
866
866
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
867
- interface CreateAutomationRequest {
868
- /** Automation to create. */
869
- automation: Automation;
867
+ interface GetAutomationRevisionRequest {
868
+ /**
869
+ * Automation ID.
870
+ * @format GUID
871
+ */
872
+ automationId: string;
873
+ /** Revision number. */
874
+ revision?: string | null;
875
+ /**
876
+ * Requested fields.
877
+ * @maxSize 20
878
+ */
879
+ fields?: RequestedFieldsWithLiterals[];
870
880
  }
871
881
  declare enum RequestedFields {
872
882
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
@@ -875,6 +885,14 @@ declare enum RequestedFields {
875
885
  }
876
886
  /** @enumType */
877
887
  type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'OVERRIDE_SCHEMA';
888
+ interface GetAutomationRevisionResponse {
889
+ /** Automation revision. */
890
+ automation?: Automation;
891
+ }
892
+ interface CreateAutomationRequest {
893
+ /** Automation to create. */
894
+ automation: Automation;
895
+ }
878
896
  interface CreateAutomationResponse {
879
897
  /** Details of the created automation. */
880
898
  automation?: Automation;
@@ -2358,6 +2376,25 @@ interface UpgradeCTA {
2358
2376
  */
2359
2377
  label?: string;
2360
2378
  }
2379
+ interface GenerateActionInputMappingFromTemplateRequest {
2380
+ /**
2381
+ * Action app ID.
2382
+ * @format GUID
2383
+ */
2384
+ appId: string;
2385
+ /**
2386
+ * Action key.
2387
+ * @minLength 1
2388
+ * @maxLength 100
2389
+ */
2390
+ actionKey: string;
2391
+ /** Action input mapping template the action SPI provider will generate input mapping from. */
2392
+ actionInputMappingTemplate: Record<string, any> | null;
2393
+ }
2394
+ interface GenerateActionInputMappingFromTemplateResponse {
2395
+ /** Generated action input mapping. */
2396
+ generatedActionInputMapping?: Record<string, any> | null;
2397
+ }
2361
2398
  interface MigrateVeloActionAutomationsRequest {
2362
2399
  /** @format GUID */
2363
2400
  oldAppId?: string;
@@ -2379,24 +2416,6 @@ interface MergeOverridePreinstalledWithRuntimeVersionResponse {
2379
2416
  /** The merged automation after applying the latest runtime version of the preinstalled automation. */
2380
2417
  automation?: Automation;
2381
2418
  }
2382
- interface GetAutomationRevisionRequest {
2383
- /**
2384
- * Automation ID.
2385
- * @format GUID
2386
- */
2387
- automationId: string;
2388
- /** Revision number. */
2389
- revision?: string | null;
2390
- /**
2391
- * Requested fields.
2392
- * @maxSize 20
2393
- */
2394
- fields?: RequestedFieldsWithLiterals[];
2395
- }
2396
- interface GetAutomationRevisionResponse {
2397
- /** Automation revision. */
2398
- automation?: Automation;
2399
- }
2400
2419
  interface BaseEventMetadata {
2401
2420
  /**
2402
2421
  * App instance ID.
@@ -2500,6 +2519,26 @@ interface AutomationUpdatedEnvelope {
2500
2519
  * @documentationMaturity preview
2501
2520
  */
2502
2521
  declare function onAutomationUpdated(handler: (event: AutomationUpdatedEnvelope) => void | Promise<void>): void;
2522
+ /**
2523
+ * Gets the specified automation revision.
2524
+ * @param automationId - Automation ID.
2525
+ * @public
2526
+ * @documentationMaturity preview
2527
+ * @requiredField automationId
2528
+ * @permissionId AUTOMATIONS.AUTOMATION_REVISION_READ
2529
+ * @applicableIdentity APP
2530
+ * @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
2531
+ */
2532
+ declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
2533
+ interface GetAutomationRevisionOptions {
2534
+ /** Revision number. */
2535
+ revision?: string | null;
2536
+ /**
2537
+ * Requested fields.
2538
+ * @maxSize 20
2539
+ */
2540
+ fields?: RequestedFieldsWithLiterals[];
2541
+ }
2503
2542
  /**
2504
2543
  * Creates an automation.
2505
2544
  * @param automation - Automation to create.
@@ -3152,24 +3191,28 @@ interface ValidateAutomationByIdOptions {
3152
3191
  validationSettings?: ValidationSettings;
3153
3192
  }
3154
3193
  /**
3155
- * Gets the specified automation revision.
3156
- * @param automationId - Automation ID.
3194
+ * Generates action input mapping from a template.
3195
+ * @param appId - Action app ID.
3157
3196
  * @public
3158
3197
  * @documentationMaturity preview
3159
- * @requiredField automationId
3160
- * @permissionId AUTOMATIONS.AUTOMATION_REVISION_READ
3198
+ * @requiredField appId
3199
+ * @requiredField options
3200
+ * @requiredField options.actionInputMappingTemplate
3201
+ * @requiredField options.actionKey
3202
+ * @permissionId AUTOMATIONS.AUTOMATION_READ
3161
3203
  * @applicableIdentity APP
3162
- * @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
3204
+ * @fqn wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate
3163
3205
  */
3164
- declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
3165
- interface GetAutomationRevisionOptions {
3166
- /** Revision number. */
3167
- revision?: string | null;
3206
+ declare function generateActionInputMappingFromTemplate(appId: string, options: NonNullablePaths<GenerateActionInputMappingFromTemplateOptions, `actionInputMappingTemplate` | `actionKey`, 2>): Promise<GenerateActionInputMappingFromTemplateResponse>;
3207
+ interface GenerateActionInputMappingFromTemplateOptions {
3168
3208
  /**
3169
- * Requested fields.
3170
- * @maxSize 20
3209
+ * Action key.
3210
+ * @minLength 1
3211
+ * @maxLength 100
3171
3212
  */
3172
- fields?: RequestedFieldsWithLiterals[];
3213
+ actionKey: string;
3214
+ /** Action input mapping template the action SPI provider will generate input mapping from. */
3215
+ actionInputMappingTemplate: Record<string, any> | null;
3173
3216
  }
3174
3217
 
3175
- export { type AIMetadata, type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationQuery, type AutomationQuerySpec, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type CommonQueryWithEntityContext, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CreatedByAppIdUsageSummary, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type Note, type Notes, type OdeditorAssigned, type OdeditorUnassigned, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type Position, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsOptions, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryDraftAutomationsRequest, type QueryDraftAutomationsResponse, type QueryPreinstalledAutomationsForAppOptions, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, Severity, type SeverityWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerSettings, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, ValidationResultStatus, type ValidationResultStatusWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, typedQueryAutomations, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
3218
+ export { type AIMetadata, type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationQuery, type AutomationQuerySpec, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type CommonQueryWithEntityContext, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CreatedByAppIdUsageSummary, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GenerateActionInputMappingFromTemplateOptions, type GenerateActionInputMappingFromTemplateRequest, type GenerateActionInputMappingFromTemplateResponse, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type Note, type Notes, type OdeditorAssigned, type OdeditorUnassigned, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type Position, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsOptions, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryDraftAutomationsRequest, type QueryDraftAutomationsResponse, type QueryPreinstalledAutomationsForAppOptions, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, Severity, type SeverityWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerSettings, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, ValidationResultStatus, type ValidationResultStatusWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, typedQueryAutomations, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
@@ -50,6 +50,7 @@ __export(index_typings_exports, {
50
50
  createDraftAutomation: () => createDraftAutomation2,
51
51
  deleteAutomation: () => deleteAutomation2,
52
52
  deleteDraftAutomation: () => deleteDraftAutomation2,
53
+ generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate2,
53
54
  generatePreinstalledAutomation: () => generatePreinstalledAutomation2,
54
55
  getAggregatedUsageInfo: () => getAggregatedUsageInfo2,
55
56
  getAutomation: () => getAutomation2,
@@ -79,7 +80,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
79
80
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
80
81
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
81
82
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
82
- function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
83
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
83
84
  const domainToMappings = {
84
85
  "manage._base_domain_": [
85
86
  {
@@ -118,7 +119,7 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
118
119
  };
119
120
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
120
121
  }
121
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
122
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
122
123
  const domainToMappings = {
123
124
  "manage._base_domain_": [
124
125
  {
@@ -158,6 +159,38 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
158
159
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
159
160
  }
160
161
  var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
162
+ function getAutomationRevision(payload) {
163
+ function __getAutomationRevision({ host }) {
164
+ const metadata = {
165
+ entityFqdn: "wix.automations.v2.automation",
166
+ method: "GET",
167
+ methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
168
+ packageName: PACKAGE_NAME,
169
+ migrationOptions: {
170
+ optInTransformResponse: true
171
+ },
172
+ url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
173
+ protoPath: "/v1/automation-revisions/{automationId}",
174
+ data: payload,
175
+ host
176
+ }),
177
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
178
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
179
+ {
180
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
181
+ paths: [
182
+ { path: "automation.createdDate" },
183
+ { path: "automation.updatedDate" },
184
+ { path: "automation.draftUpdatedDate" },
185
+ { path: "automation.autoArchivePolicy.archiveDate" }
186
+ ]
187
+ }
188
+ ])
189
+ };
190
+ return metadata;
191
+ }
192
+ return __getAutomationRevision;
193
+ }
161
194
  function createAutomation(payload) {
162
195
  function __createAutomation({ host }) {
163
196
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -774,37 +807,26 @@ function validateAutomationById(payload) {
774
807
  }
775
808
  return __validateAutomationById;
776
809
  }
777
- function getAutomationRevision(payload) {
778
- function __getAutomationRevision({ host }) {
810
+ function generateActionInputMappingFromTemplate(payload) {
811
+ function __generateActionInputMappingFromTemplate({ host }) {
779
812
  const metadata = {
780
813
  entityFqdn: "wix.automations.v2.automation",
781
- method: "GET",
782
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
814
+ method: "POST",
815
+ methodFqn: "wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate",
783
816
  packageName: PACKAGE_NAME,
784
817
  migrationOptions: {
785
818
  optInTransformResponse: true
786
819
  },
787
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
788
- protoPath: "/v1/automation-revisions/{automationId}",
820
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
821
+ protoPath: "/v2/automations/actions/generate-action-input-mapping-from-template",
789
822
  data: payload,
790
823
  host
791
824
  }),
792
- params: (0, import_rest_modules.toURLSearchParams)(payload),
793
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
794
- {
795
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
796
- paths: [
797
- { path: "automation.createdDate" },
798
- { path: "automation.updatedDate" },
799
- { path: "automation.draftUpdatedDate" },
800
- { path: "automation.autoArchivePolicy.archiveDate" }
801
- ]
802
- }
803
- ])
825
+ data: payload
804
826
  };
805
827
  return metadata;
806
828
  }
807
- return __getAutomationRevision;
829
+ return __generateActionInputMappingFromTemplate;
808
830
  }
809
831
 
810
832
  // src/automations-v2-automation-automations-v-2.universal.ts
@@ -999,6 +1021,37 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
999
1021
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
1000
1022
  return AutomationErrorType2;
1001
1023
  })(AutomationErrorType || {});
1024
+ async function getAutomationRevision2(automationId, options) {
1025
+ const { httpClient, sideEffects } = arguments[2];
1026
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1027
+ automationId,
1028
+ revision: options?.revision,
1029
+ fields: options?.fields
1030
+ });
1031
+ const reqOpts = getAutomationRevision(payload);
1032
+ sideEffects?.onSiteCall?.();
1033
+ try {
1034
+ const result = await httpClient.request(reqOpts);
1035
+ sideEffects?.onSuccess?.(result);
1036
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1037
+ } catch (err) {
1038
+ const transformedError = (0, import_transform_error.transformError)(
1039
+ err,
1040
+ {
1041
+ spreadPathsToArguments: {},
1042
+ explicitPathsToArguments: {
1043
+ automationId: "$[0]",
1044
+ revision: "$[1].revision",
1045
+ fields: "$[1].fields"
1046
+ },
1047
+ singleArgumentUnchanged: false
1048
+ },
1049
+ ["automationId", "options"]
1050
+ );
1051
+ sideEffects?.onError?.(err);
1052
+ throw transformedError;
1053
+ }
1054
+ }
1002
1055
  async function createAutomation2(automation) {
1003
1056
  const { httpClient, sideEffects } = arguments[1];
1004
1057
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1541,14 +1594,16 @@ async function validateAutomationById2(automationId, options) {
1541
1594
  throw transformedError;
1542
1595
  }
1543
1596
  }
1544
- async function getAutomationRevision2(automationId, options) {
1597
+ async function generateActionInputMappingFromTemplate2(appId, options) {
1545
1598
  const { httpClient, sideEffects } = arguments[2];
1546
1599
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1547
- automationId,
1548
- revision: options?.revision,
1549
- fields: options?.fields
1600
+ appId,
1601
+ actionKey: options?.actionKey,
1602
+ actionInputMappingTemplate: options?.actionInputMappingTemplate
1550
1603
  });
1551
- const reqOpts = getAutomationRevision(payload);
1604
+ const reqOpts = generateActionInputMappingFromTemplate(
1605
+ payload
1606
+ );
1552
1607
  sideEffects?.onSiteCall?.();
1553
1608
  try {
1554
1609
  const result = await httpClient.request(reqOpts);
@@ -1560,13 +1615,13 @@ async function getAutomationRevision2(automationId, options) {
1560
1615
  {
1561
1616
  spreadPathsToArguments: {},
1562
1617
  explicitPathsToArguments: {
1563
- automationId: "$[0]",
1564
- revision: "$[1].revision",
1565
- fields: "$[1].fields"
1618
+ appId: "$[0]",
1619
+ actionKey: "$[1].actionKey",
1620
+ actionInputMappingTemplate: "$[1].actionInputMappingTemplate"
1566
1621
  },
1567
1622
  singleArgumentUnchanged: false
1568
1623
  },
1569
- ["automationId", "options"]
1624
+ ["appId", "options"]
1570
1625
  );
1571
1626
  sideEffects?.onError?.(err);
1572
1627
  throw transformedError;
@@ -1604,6 +1659,7 @@ async function getAutomationRevision2(automationId, options) {
1604
1659
  createDraftAutomation,
1605
1660
  deleteAutomation,
1606
1661
  deleteDraftAutomation,
1662
+ generateActionInputMappingFromTemplate,
1607
1663
  generatePreinstalledAutomation,
1608
1664
  getAggregatedUsageInfo,
1609
1665
  getAutomation,