@wix/auto_sdk_automations_automations-v-2 1.0.81 → 1.0.83

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 +23 -6
  2. package/build/cjs/index.js +137 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +72 -8
  5. package/build/cjs/index.typings.js +118 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +26 -5
  8. package/build/cjs/meta.js +97 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +23 -6
  11. package/build/es/index.mjs +135 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +72 -8
  14. package/build/es/index.typings.mjs +116 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +26 -5
  17. package/build/es/meta.mjs +95 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +23 -6
  20. package/build/internal/cjs/index.js +137 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +72 -8
  23. package/build/internal/cjs/index.typings.js +118 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +26 -5
  26. package/build/internal/cjs/meta.js +97 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +23 -6
  29. package/build/internal/es/index.mjs +135 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +72 -8
  32. package/build/internal/es/index.typings.mjs +116 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +26 -5
  35. package/build/internal/es/meta.mjs +95 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1900,7 +1900,7 @@ interface ValidateAutomationRequest {
1900
1900
  *
1901
1901
  * When not specified, the method validates the full automation. This includes the trigger, actions, and provider validation logic.
1902
1902
  *
1903
- * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugins](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
1903
+ * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
1904
1904
  */
1905
1905
  validationSettings?: ValidationSettings;
1906
1906
  }
@@ -1910,13 +1910,13 @@ interface ValidationSettings {
1910
1910
  *
1911
1911
  * When specified, only these actions are validated.
1912
1912
  *
1913
- * When not specified, the full automation is validated. This includes the trigger, actions, and custom logic added by the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
1913
+ * When not specified, the full automation is validated. This includes the trigger, actions, and custom logic added by the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
1914
1914
  * @maxSize 30
1915
1915
  * @format GUID
1916
1916
  */
1917
1917
  actionIds?: string[];
1918
1918
  /**
1919
- * Whether to skip [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) validations.
1919
+ * Whether to skip [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) validations.
1920
1920
  *
1921
1921
  * Default: `false`.
1922
1922
  */
@@ -2358,6 +2358,25 @@ interface UpgradeCTA {
2358
2358
  */
2359
2359
  label?: string;
2360
2360
  }
2361
+ interface GenerateActionInputMappingFromTemplateRequest {
2362
+ /**
2363
+ * Action app ID.
2364
+ * @format GUID
2365
+ */
2366
+ appId: string;
2367
+ /**
2368
+ * Action key.
2369
+ * @minLength 1
2370
+ * @maxLength 100
2371
+ */
2372
+ actionKey: string;
2373
+ /** Action input mapping template the action SPI provider will generate input mapping from. */
2374
+ actionInputMappingTemplate: Record<string, any> | null;
2375
+ }
2376
+ interface GenerateActionInputMappingFromTemplateResponse {
2377
+ /** Generated action input mapping. */
2378
+ generatedActionInputMapping?: Record<string, any> | null;
2379
+ }
2361
2380
  interface MigrateVeloActionAutomationsRequest {
2362
2381
  /** @format GUID */
2363
2382
  oldAppId?: string;
@@ -2482,6 +2501,7 @@ declare function onAutomationDeleted(handler: (event: AutomationDeletedEnvelope)
2482
2501
  interface AutomationUpdatedEnvelope {
2483
2502
  entity: Automation;
2484
2503
  metadata: EventMetadata;
2504
+ /** @hidden */
2485
2505
  modifiedFields: Record<string, any>;
2486
2506
  }
2487
2507
  /**
@@ -2661,6 +2681,28 @@ interface GeneratePreinstalledAutomationOptions {
2661
2681
  */
2662
2682
  appId?: string;
2663
2683
  }
2684
+ /**
2685
+ * Allows an app to query its preinstalled automations.
2686
+ *
2687
+ * > **Note**: You must have an account permission to edit an app.
2688
+ * @public
2689
+ * @documentationMaturity preview
2690
+ * @fqn wix.automations.v2.AutomationsService.QueryPreinstalledAutomationsForApp
2691
+ */
2692
+ declare function queryPreinstalledAutomationsForApp(options?: QueryPreinstalledAutomationsForAppOptions): Promise<NonNullablePaths<QueryPreinstalledAutomationsForAppResponse, `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.archived`, 6>>;
2693
+ interface QueryPreinstalledAutomationsForAppOptions {
2694
+ /**
2695
+ * Query.
2696
+ *
2697
+ * Learn more about [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language).
2698
+ */
2699
+ query?: CursorQuery;
2700
+ /**
2701
+ * ID of the app for which to query preinstalled automations.
2702
+ * @format GUID
2703
+ */
2704
+ appId?: string;
2705
+ }
2664
2706
  /**
2665
2707
  * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.
2666
2708
  *
@@ -3093,9 +3135,7 @@ declare function publishDraftAutomation(automationId: string): Promise<NonNullab
3093
3135
  *
3094
3136
  * - Validates that the [trigger is properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger).
3095
3137
  * - Validates that all [actions are properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) with correct [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) and other mappings.
3096
- * - Validates custom logic added by [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3097
- *
3098
- * > **Note**: This method identifies configuration errors but doesn't fix them. It does not modify the automation.
3138
+ * - Validates custom logic added by [trigger providers](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3099
3139
  * @param automation - Automation to validate.
3100
3140
  * @public
3101
3141
  * @documentationMaturity preview
@@ -3111,7 +3151,7 @@ interface ValidateAutomationOptions {
3111
3151
  *
3112
3152
  * When not specified, the method validates the full automation. This includes the trigger, actions, and provider validation logic.
3113
3153
  *
3114
- * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugins](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3154
+ * > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
3115
3155
  */
3116
3156
  validationSettings?: ValidationSettings;
3117
3157
  }
@@ -3130,6 +3170,30 @@ interface ValidateAutomationByIdOptions {
3130
3170
  /** Validation settings. */
3131
3171
  validationSettings?: ValidationSettings;
3132
3172
  }
3173
+ /**
3174
+ * Generates action input mapping from a template.
3175
+ * @param appId - Action app ID.
3176
+ * @public
3177
+ * @documentationMaturity preview
3178
+ * @requiredField appId
3179
+ * @requiredField options
3180
+ * @requiredField options.actionInputMappingTemplate
3181
+ * @requiredField options.actionKey
3182
+ * @permissionId AUTOMATIONS.AUTOMATION_READ
3183
+ * @applicableIdentity APP
3184
+ * @fqn wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate
3185
+ */
3186
+ declare function generateActionInputMappingFromTemplate(appId: string, options: NonNullablePaths<GenerateActionInputMappingFromTemplateOptions, `actionInputMappingTemplate` | `actionKey`, 2>): Promise<GenerateActionInputMappingFromTemplateResponse>;
3187
+ interface GenerateActionInputMappingFromTemplateOptions {
3188
+ /**
3189
+ * Action key.
3190
+ * @minLength 1
3191
+ * @maxLength 100
3192
+ */
3193
+ actionKey: string;
3194
+ /** Action input mapping template the action SPI provider will generate input mapping from. */
3195
+ actionInputMappingTemplate: Record<string, any> | null;
3196
+ }
3133
3197
  /**
3134
3198
  * Gets the specified automation revision.
3135
3199
  * @param automationId - Automation ID.
@@ -3151,4 +3215,4 @@ interface GetAutomationRevisionOptions {
3151
3215
  fields?: RequestedFieldsWithLiterals[];
3152
3216
  }
3153
3217
 
3154
- 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 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, 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 };
@@ -299,6 +299,38 @@ function generatePreinstalledAutomation(payload) {
299
299
  }
300
300
  return __generatePreinstalledAutomation;
301
301
  }
302
+ function queryPreinstalledAutomationsForApp(payload) {
303
+ function __queryPreinstalledAutomationsForApp({ host }) {
304
+ const metadata = {
305
+ entityFqdn: "wix.automations.v2.automation",
306
+ method: "POST",
307
+ methodFqn: "wix.automations.v2.AutomationsService.QueryPreinstalledAutomationsForApp",
308
+ packageName: PACKAGE_NAME,
309
+ migrationOptions: {
310
+ optInTransformResponse: true
311
+ },
312
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
313
+ protoPath: "/v2/preinstalled-automations/query",
314
+ data: payload,
315
+ host
316
+ }),
317
+ data: payload,
318
+ transformResponse: (payload2) => transformPaths(payload2, [
319
+ {
320
+ transformFn: transformRESTTimestampToSDKTimestamp,
321
+ paths: [
322
+ { path: "automations.createdDate" },
323
+ { path: "automations.updatedDate" },
324
+ { path: "automations.draftUpdatedDate" },
325
+ { path: "automations.autoArchivePolicy.archiveDate" }
326
+ ]
327
+ }
328
+ ])
329
+ };
330
+ return metadata;
331
+ }
332
+ return __queryPreinstalledAutomationsForApp;
333
+ }
302
334
  function queryAutomations(payload) {
303
335
  function __queryAutomations({ host }) {
304
336
  const metadata = {
@@ -676,6 +708,27 @@ function validateAutomationById(payload) {
676
708
  }
677
709
  return __validateAutomationById;
678
710
  }
711
+ function generateActionInputMappingFromTemplate(payload) {
712
+ function __generateActionInputMappingFromTemplate({ host }) {
713
+ const metadata = {
714
+ entityFqdn: "wix.automations.v2.automation",
715
+ method: "POST",
716
+ methodFqn: "wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate",
717
+ packageName: PACKAGE_NAME,
718
+ migrationOptions: {
719
+ optInTransformResponse: true
720
+ },
721
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
722
+ protoPath: "/v2/automations/actions/generate-action-input-mapping-from-template",
723
+ data: payload,
724
+ host
725
+ }),
726
+ data: payload
727
+ };
728
+ return metadata;
729
+ }
730
+ return __generateActionInputMappingFromTemplate;
731
+ }
679
732
  function getAutomationRevision(payload) {
680
733
  function __getAutomationRevision({ host }) {
681
734
  const metadata = {
@@ -1053,6 +1106,34 @@ async function generatePreinstalledAutomation2(automation, options) {
1053
1106
  throw transformedError;
1054
1107
  }
1055
1108
  }
1109
+ async function queryPreinstalledAutomationsForApp2(options) {
1110
+ const { httpClient, sideEffects } = arguments[1];
1111
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1112
+ query: options?.query,
1113
+ appId: options?.appId
1114
+ });
1115
+ const reqOpts = queryPreinstalledAutomationsForApp(
1116
+ payload
1117
+ );
1118
+ sideEffects?.onSiteCall?.();
1119
+ try {
1120
+ const result = await httpClient.request(reqOpts);
1121
+ sideEffects?.onSuccess?.(result);
1122
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1123
+ } catch (err) {
1124
+ const transformedError = sdkTransformError(
1125
+ err,
1126
+ {
1127
+ spreadPathsToArguments: {},
1128
+ explicitPathsToArguments: { query: "$[0].query", appId: "$[0].appId" },
1129
+ singleArgumentUnchanged: false
1130
+ },
1131
+ ["options"]
1132
+ );
1133
+ sideEffects?.onError?.(err);
1134
+ throw transformedError;
1135
+ }
1136
+ }
1056
1137
  function queryAutomations2(options) {
1057
1138
  const { httpClient, sideEffects } = arguments[1];
1058
1139
  return queryBuilder({
@@ -1415,6 +1496,39 @@ async function validateAutomationById2(automationId, options) {
1415
1496
  throw transformedError;
1416
1497
  }
1417
1498
  }
1499
+ async function generateActionInputMappingFromTemplate2(appId, options) {
1500
+ const { httpClient, sideEffects } = arguments[2];
1501
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1502
+ appId,
1503
+ actionKey: options?.actionKey,
1504
+ actionInputMappingTemplate: options?.actionInputMappingTemplate
1505
+ });
1506
+ const reqOpts = generateActionInputMappingFromTemplate(
1507
+ payload
1508
+ );
1509
+ sideEffects?.onSiteCall?.();
1510
+ try {
1511
+ const result = await httpClient.request(reqOpts);
1512
+ sideEffects?.onSuccess?.(result);
1513
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1514
+ } catch (err) {
1515
+ const transformedError = sdkTransformError(
1516
+ err,
1517
+ {
1518
+ spreadPathsToArguments: {},
1519
+ explicitPathsToArguments: {
1520
+ appId: "$[0]",
1521
+ actionKey: "$[1].actionKey",
1522
+ actionInputMappingTemplate: "$[1].actionInputMappingTemplate"
1523
+ },
1524
+ singleArgumentUnchanged: false
1525
+ },
1526
+ ["appId", "options"]
1527
+ );
1528
+ sideEffects?.onError?.(err);
1529
+ throw transformedError;
1530
+ }
1531
+ }
1418
1532
  async function getAutomationRevision2(automationId, options) {
1419
1533
  const { httpClient, sideEffects } = arguments[2];
1420
1534
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1477,6 +1591,7 @@ export {
1477
1591
  createDraftAutomation2 as createDraftAutomation,
1478
1592
  deleteAutomation2 as deleteAutomation,
1479
1593
  deleteDraftAutomation2 as deleteDraftAutomation,
1594
+ generateActionInputMappingFromTemplate2 as generateActionInputMappingFromTemplate,
1480
1595
  generatePreinstalledAutomation2 as generatePreinstalledAutomation,
1481
1596
  getAggregatedUsageInfo2 as getAggregatedUsageInfo,
1482
1597
  getAutomation2 as getAutomation,
@@ -1485,6 +1600,7 @@ export {
1485
1600
  publishDraftAutomation2 as publishDraftAutomation,
1486
1601
  queryAutomations2 as queryAutomations,
1487
1602
  queryAutomationsWithDrafts2 as queryAutomationsWithDrafts,
1603
+ queryPreinstalledAutomationsForApp2 as queryPreinstalledAutomationsForApp,
1488
1604
  typedQueryAutomations,
1489
1605
  updateAutomation2 as updateAutomation,
1490
1606
  updateDraftAutomation2 as updateDraftAutomation,