@wix/auto_sdk_automations_automations-v-2 1.0.137 → 1.0.138

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 +36 -3
  2. package/build/cjs/index.js +234 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +94 -4
  5. package/build/cjs/index.typings.js +207 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +10 -5
  8. package/build/cjs/meta.js +167 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +921 -1
  11. package/build/cjs/schemas.js +1644 -0
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +36 -3
  14. package/build/es/index.mjs +231 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +94 -4
  17. package/build/es/index.typings.mjs +204 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +10 -5
  20. package/build/es/meta.mjs +164 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +921 -1
  23. package/build/es/schemas.mjs +1638 -0
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +36 -3
  26. package/build/internal/cjs/index.js +234 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +94 -4
  29. package/build/internal/cjs/index.typings.js +207 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +10 -5
  32. package/build/internal/cjs/meta.js +167 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +921 -1
  35. package/build/internal/cjs/schemas.js +1644 -0
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +36 -3
  38. package/build/internal/es/index.mjs +231 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +94 -4
  41. package/build/internal/es/index.typings.mjs +204 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +10 -5
  44. package/build/internal/es/meta.mjs +164 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +921 -1
  47. package/build/internal/es/schemas.mjs +1638 -0
  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, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, CreateAutomationFromTemplateIdResponse, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, CursorQuery, QueryPreinstalledAutomationsResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CreateDraftAutomationFromTemplateIdResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetActionsQuotaInfoResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
3
- export { AIMetadata, AccountInfo, AccountInfoMetadata, Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationQuerySpec, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, CommonQueryWithEntityContext, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationFromTemplateIdRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationFromTemplateIdRequest, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStalePreinstalledAutomationRequest, DeleteStalePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, DuplicateAutomationForMigrationRequest, DuplicateAutomationForMigrationResponse, EditorlessAssigned, EditorlessUnassigned, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GenerateActionInputMappingFromTemplateRequest, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeAction, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryDraftAutomationsRequest, QueryDraftAutomationsResponse, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsRequest, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, Severity, SeverityWithLiterals, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TemplateOrigin, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpgradeCTA, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js';
2
+ import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, CreateAutomationFromTemplateIdResponse, UpdateAutomation, BulkDeleteAutomationsResponse, CreatePreinstalledAutomationOptions, CreatePreinstalledAutomationResponse, UpdatePreinstalledAutomationOptions, UpdatePreinstalledAutomationResponse, DeletePreinstalledAutomationOptions, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, CursorQuery, QueryPreinstalledAutomationsResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CreateDraftAutomationFromTemplateIdResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetActionsQuotaInfoResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
3
+ export { AIMetadata, AccountInfo, AccountInfoMetadata, Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationQuerySpec, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, CommonQueryWithEntityContext, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationFromTemplateIdRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationFromTemplateIdRequest, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStalePreinstalledAutomationRequest, DeleteStalePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, DuplicateAutomationForMigrationRequest, DuplicateAutomationForMigrationResponse, EditorlessAssigned, EditorlessUnassigned, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GenerateActionInputMappingFromTemplateRequest, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeAction, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryDraftAutomationsRequest, QueryDraftAutomationsResponse, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsRequest, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, Severity, SeverityWithLiterals, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TemplateOrigin, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpgradeCTA, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js';
4
4
 
5
5
  declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
6
6
  interface GetAutomationRevisionSignature {
@@ -63,6 +63,36 @@ interface BulkDeleteAutomationsSignature {
63
63
  */
64
64
  (automationIds: string[]): Promise<NonNullablePaths<BulkDeleteAutomationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
65
65
  }
66
+ declare function createPreinstalledAutomation$1(httpClient: HttpClient): CreatePreinstalledAutomationSignature;
67
+ interface CreatePreinstalledAutomationSignature {
68
+ /**
69
+ * Creates a preinstalled automation.
70
+ *
71
+ * > **Note**: You must have an account permission to edit an app.
72
+ * @param - Preinstalled automation to create.
73
+ */
74
+ (automation: NonNullablePaths<Automation, `configuration` | `configuration.actions` | `configuration.rootActionIds` | `configuration.status` | `configuration.trigger` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `name`, 4>, options?: CreatePreinstalledAutomationOptions): Promise<NonNullablePaths<CreatePreinstalledAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.templateInfo.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>>;
75
+ }
76
+ declare function updatePreinstalledAutomation$1(httpClient: HttpClient): UpdatePreinstalledAutomationSignature;
77
+ interface UpdatePreinstalledAutomationSignature {
78
+ /**
79
+ * Updates the specified preinstalled automation.
80
+ *
81
+ * > **Note**: You must have an account permission to edit an app.
82
+ * @param - Preinstalled automation to update.
83
+ */
84
+ (automation: NonNullablePaths<Automation, `preinstalledInfo`, 2>, options?: UpdatePreinstalledAutomationOptions): Promise<NonNullablePaths<UpdatePreinstalledAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.templateInfo.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>>;
85
+ }
86
+ declare function deletePreinstalledAutomation$1(httpClient: HttpClient): DeletePreinstalledAutomationSignature;
87
+ interface DeletePreinstalledAutomationSignature {
88
+ /**
89
+ * Deletes the preinstalled automation.
90
+ *
91
+ * > **Note**: You must have an account permission to edit an app.
92
+ * @param - ID of the preinstalled component.
93
+ */
94
+ (componentId: string, options?: DeletePreinstalledAutomationOptions): Promise<void>;
95
+ }
66
96
  declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
67
97
  interface GeneratePreinstalledAutomationSignature {
68
98
  /**
@@ -238,6 +268,9 @@ declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation
238
268
  declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
239
269
  declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAutomation$1> & typeof deleteAutomation$1>;
240
270
  declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
271
+ declare const createPreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof createPreinstalledAutomation$1> & typeof createPreinstalledAutomation$1>;
272
+ declare const updatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof updatePreinstalledAutomation$1> & typeof updatePreinstalledAutomation$1>;
273
+ declare const deletePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof deletePreinstalledAutomation$1> & typeof deletePreinstalledAutomation$1>;
241
274
  declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
242
275
  declare const queryPreinstalledAutomationsForApp: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomationsForApp$1> & typeof queryPreinstalledAutomationsForApp$1>;
243
276
  declare const queryPreinstalledAutomations: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomations$1> & typeof queryPreinstalledAutomations$1>;
@@ -269,4 +302,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
269
302
  */
270
303
  declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
271
304
 
272
- export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateAutomationFromTemplateIdResponse, CreateDraftAutomationFromTemplateIdResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CursorQuery, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createAutomationFromTemplateId, createDraftAutomation, createDraftAutomationFromTemplateId, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomations, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
305
+ export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateAutomationFromTemplateIdResponse, CreateDraftAutomationFromTemplateIdResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CreatePreinstalledAutomationOptions, CreatePreinstalledAutomationResponse, CursorQuery, DeletePreinstalledAutomationOptions, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, UpdatePreinstalledAutomationOptions, UpdatePreinstalledAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createAutomationFromTemplateId, createDraftAutomation, createDraftAutomationFromTemplateId, createPreinstalledAutomation, deleteAutomation, deleteDraftAutomation, deletePreinstalledAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomations, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, updatePreinstalledAutomation, validateAutomation, validateAutomationById };
@@ -50,8 +50,10 @@ __export(index_exports, {
50
50
  createAutomationFromTemplateId: () => createAutomationFromTemplateId4,
51
51
  createDraftAutomation: () => createDraftAutomation4,
52
52
  createDraftAutomationFromTemplateId: () => createDraftAutomationFromTemplateId4,
53
+ createPreinstalledAutomation: () => createPreinstalledAutomation4,
53
54
  deleteAutomation: () => deleteAutomation4,
54
55
  deleteDraftAutomation: () => deleteDraftAutomation4,
56
+ deletePreinstalledAutomation: () => deletePreinstalledAutomation4,
55
57
  generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate4,
56
58
  generatePreinstalledAutomation: () => generatePreinstalledAutomation4,
57
59
  getActionsQuotaInfo: () => getActionsQuotaInfo4,
@@ -69,6 +71,7 @@ __export(index_exports, {
69
71
  queryPreinstalledAutomationsForApp: () => queryPreinstalledAutomationsForApp4,
70
72
  updateAutomation: () => updateAutomation4,
71
73
  updateDraftAutomation: () => updateDraftAutomation4,
74
+ updatePreinstalledAutomation: () => updatePreinstalledAutomation4,
72
75
  utils: () => utils,
73
76
  validateAutomation: () => validateAutomation4,
74
77
  validateAutomationById: () => validateAutomationById4
@@ -420,6 +423,113 @@ function bulkDeleteAutomations(payload) {
420
423
  }
421
424
  return __bulkDeleteAutomations;
422
425
  }
426
+ function createPreinstalledAutomation(payload) {
427
+ function __createPreinstalledAutomation({ host }) {
428
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
429
+ {
430
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
431
+ paths: [
432
+ { path: "automation.createdDate" },
433
+ { path: "automation.updatedDate" },
434
+ { path: "automation.draftUpdatedDate" },
435
+ { path: "automation.autoArchivePolicy.archiveDate" }
436
+ ]
437
+ }
438
+ ]);
439
+ const metadata = {
440
+ entityFqdn: "wix.automations.v2.automation",
441
+ method: "POST",
442
+ methodFqn: "wix.automations.v2.AutomationsService.CreatePreinstalledAutomation",
443
+ packageName: PACKAGE_NAME,
444
+ migrationOptions: {
445
+ optInTransformResponse: true
446
+ },
447
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
448
+ protoPath: "/v2/preinstalled-automation",
449
+ data: serializedData,
450
+ host
451
+ }),
452
+ data: serializedData,
453
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
454
+ {
455
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
456
+ paths: [
457
+ { path: "automation.createdDate" },
458
+ { path: "automation.updatedDate" },
459
+ { path: "automation.draftUpdatedDate" },
460
+ { path: "automation.autoArchivePolicy.archiveDate" }
461
+ ]
462
+ }
463
+ ])
464
+ };
465
+ return metadata;
466
+ }
467
+ return __createPreinstalledAutomation;
468
+ }
469
+ function updatePreinstalledAutomation(payload) {
470
+ function __updatePreinstalledAutomation({ host }) {
471
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
472
+ {
473
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
474
+ paths: [
475
+ { path: "automation.createdDate" },
476
+ { path: "automation.updatedDate" },
477
+ { path: "automation.draftUpdatedDate" },
478
+ { path: "automation.autoArchivePolicy.archiveDate" }
479
+ ]
480
+ }
481
+ ]);
482
+ const metadata = {
483
+ entityFqdn: "wix.automations.v2.automation",
484
+ method: "PATCH",
485
+ methodFqn: "wix.automations.v2.AutomationsService.UpdatePreinstalledAutomation",
486
+ packageName: PACKAGE_NAME,
487
+ migrationOptions: {
488
+ optInTransformResponse: true
489
+ },
490
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
491
+ protoPath: "/v2/preinstalled-automation",
492
+ data: serializedData,
493
+ host
494
+ }),
495
+ data: serializedData,
496
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
497
+ {
498
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
499
+ paths: [
500
+ { path: "automation.createdDate" },
501
+ { path: "automation.updatedDate" },
502
+ { path: "automation.draftUpdatedDate" },
503
+ { path: "automation.autoArchivePolicy.archiveDate" }
504
+ ]
505
+ }
506
+ ])
507
+ };
508
+ return metadata;
509
+ }
510
+ return __updatePreinstalledAutomation;
511
+ }
512
+ function deletePreinstalledAutomation(payload) {
513
+ function __deletePreinstalledAutomation({ host }) {
514
+ const metadata = {
515
+ entityFqdn: "wix.automations.v2.automation",
516
+ method: "DELETE",
517
+ methodFqn: "wix.automations.v2.AutomationsService.DeletePreinstalledAutomation",
518
+ packageName: PACKAGE_NAME,
519
+ migrationOptions: {
520
+ optInTransformResponse: true
521
+ },
522
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
523
+ protoPath: "/v2/preinstalled-automation/{componentId}",
524
+ data: payload,
525
+ host
526
+ }),
527
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
528
+ };
529
+ return metadata;
530
+ }
531
+ return __deletePreinstalledAutomation;
532
+ }
423
533
  function generatePreinstalledAutomation(payload) {
424
534
  function __generatePreinstalledAutomation({ host }) {
425
535
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1360,6 +1470,100 @@ async function bulkDeleteAutomations2(automationIds) {
1360
1470
  throw transformedError;
1361
1471
  }
1362
1472
  }
1473
+ async function createPreinstalledAutomation2(automation, options) {
1474
+ const { httpClient, sideEffects } = arguments[2];
1475
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1476
+ automation,
1477
+ specInfo: options?.specInfo,
1478
+ originAutomationInfo: options?.originAutomationInfo,
1479
+ appId: options?.appId
1480
+ });
1481
+ const reqOpts = createPreinstalledAutomation(payload);
1482
+ sideEffects?.onSiteCall?.();
1483
+ try {
1484
+ const result = await httpClient.request(reqOpts);
1485
+ sideEffects?.onSuccess?.(result);
1486
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1487
+ } catch (err) {
1488
+ const transformedError = (0, import_transform_error.transformError)(
1489
+ err,
1490
+ {
1491
+ spreadPathsToArguments: {},
1492
+ explicitPathsToArguments: {
1493
+ automation: "$[0]",
1494
+ specInfo: "$[1].specInfo",
1495
+ originAutomationInfo: "$[1].originAutomationInfo",
1496
+ appId: "$[1].appId"
1497
+ },
1498
+ singleArgumentUnchanged: false
1499
+ },
1500
+ ["automation", "options"]
1501
+ );
1502
+ sideEffects?.onError?.(err);
1503
+ throw transformedError;
1504
+ }
1505
+ }
1506
+ async function updatePreinstalledAutomation2(automation, options) {
1507
+ const { httpClient, sideEffects } = arguments[2];
1508
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1509
+ automation,
1510
+ specInfo: options?.specInfo,
1511
+ appId: options?.appId
1512
+ });
1513
+ const reqOpts = updatePreinstalledAutomation(payload);
1514
+ sideEffects?.onSiteCall?.();
1515
+ try {
1516
+ const result = await httpClient.request(reqOpts);
1517
+ sideEffects?.onSuccess?.(result);
1518
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1519
+ } catch (err) {
1520
+ const transformedError = (0, import_transform_error.transformError)(
1521
+ err,
1522
+ {
1523
+ spreadPathsToArguments: {},
1524
+ explicitPathsToArguments: {
1525
+ automation: "$[0]",
1526
+ specInfo: "$[1].specInfo",
1527
+ appId: "$[1].appId"
1528
+ },
1529
+ singleArgumentUnchanged: false
1530
+ },
1531
+ ["automation", "options"]
1532
+ );
1533
+ sideEffects?.onError?.(err);
1534
+ throw transformedError;
1535
+ }
1536
+ }
1537
+ async function deletePreinstalledAutomation2(componentId, options) {
1538
+ const { httpClient, sideEffects } = arguments[2];
1539
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1540
+ componentId,
1541
+ specInfo: options?.specInfo,
1542
+ appId: options?.appId
1543
+ });
1544
+ const reqOpts = deletePreinstalledAutomation(payload);
1545
+ sideEffects?.onSiteCall?.();
1546
+ try {
1547
+ const result = await httpClient.request(reqOpts);
1548
+ sideEffects?.onSuccess?.(result);
1549
+ } catch (err) {
1550
+ const transformedError = (0, import_transform_error.transformError)(
1551
+ err,
1552
+ {
1553
+ spreadPathsToArguments: {},
1554
+ explicitPathsToArguments: {
1555
+ componentId: "$[0]",
1556
+ specInfo: "$[1].specInfo",
1557
+ appId: "$[1].appId"
1558
+ },
1559
+ singleArgumentUnchanged: false
1560
+ },
1561
+ ["componentId", "options"]
1562
+ );
1563
+ sideEffects?.onError?.(err);
1564
+ throw transformedError;
1565
+ }
1566
+ }
1363
1567
  async function generatePreinstalledAutomation2(automation, options) {
1364
1568
  const { httpClient, sideEffects } = arguments[2];
1365
1569
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1942,6 +2146,30 @@ function bulkDeleteAutomations3(httpClient) {
1942
2146
  { httpClient }
1943
2147
  );
1944
2148
  }
2149
+ function createPreinstalledAutomation3(httpClient) {
2150
+ return (automation, options) => createPreinstalledAutomation2(
2151
+ automation,
2152
+ options,
2153
+ // @ts-ignore
2154
+ { httpClient }
2155
+ );
2156
+ }
2157
+ function updatePreinstalledAutomation3(httpClient) {
2158
+ return (automation, options) => updatePreinstalledAutomation2(
2159
+ automation,
2160
+ options,
2161
+ // @ts-ignore
2162
+ { httpClient }
2163
+ );
2164
+ }
2165
+ function deletePreinstalledAutomation3(httpClient) {
2166
+ return (componentId, options) => deletePreinstalledAutomation2(
2167
+ componentId,
2168
+ options,
2169
+ // @ts-ignore
2170
+ { httpClient }
2171
+ );
2172
+ }
1945
2173
  function generatePreinstalledAutomation3(httpClient) {
1946
2174
  return (automation, options) => generatePreinstalledAutomation2(
1947
2175
  automation,
@@ -2162,6 +2390,9 @@ var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
2162
2390
  var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
2163
2391
  var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAutomation3);
2164
2392
  var bulkDeleteAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAutomations3);
2393
+ var createPreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPreinstalledAutomation3);
2394
+ var updatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePreinstalledAutomation3);
2395
+ var deletePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePreinstalledAutomation3);
2165
2396
  var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
2166
2397
  var queryPreinstalledAutomationsForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomationsForApp3);
2167
2398
  var queryPreinstalledAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomations3);
@@ -2223,8 +2454,10 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2223
2454
  createAutomationFromTemplateId,
2224
2455
  createDraftAutomation,
2225
2456
  createDraftAutomationFromTemplateId,
2457
+ createPreinstalledAutomation,
2226
2458
  deleteAutomation,
2227
2459
  deleteDraftAutomation,
2460
+ deletePreinstalledAutomation,
2228
2461
  generateActionInputMappingFromTemplate,
2229
2462
  generatePreinstalledAutomation,
2230
2463
  getActionsQuotaInfo,
@@ -2242,6 +2475,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2242
2475
  queryPreinstalledAutomationsForApp,
2243
2476
  updateAutomation,
2244
2477
  updateDraftAutomation,
2478
+ updatePreinstalledAutomation,
2245
2479
  utils,
2246
2480
  validateAutomation,
2247
2481
  validateAutomationById