@wix/auto_sdk_automations_automations-v-2 1.0.135 → 1.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +3 -36
  2. package/build/cjs/index.js +0 -234
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +4 -94
  5. package/build/cjs/index.typings.js +0 -207
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +5 -10
  8. package/build/cjs/meta.js +0 -167
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +1 -921
  11. package/build/cjs/schemas.js +0 -1644
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +3 -36
  14. package/build/es/index.mjs +0 -231
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +4 -94
  17. package/build/es/index.typings.mjs +0 -204
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +5 -10
  20. package/build/es/meta.mjs +0 -164
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +1 -921
  23. package/build/es/schemas.mjs +0 -1638
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +3 -36
  26. package/build/internal/cjs/index.js +0 -234
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +4 -94
  29. package/build/internal/cjs/index.typings.js +0 -207
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +5 -10
  32. package/build/internal/cjs/meta.js +0 -167
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +1 -921
  35. package/build/internal/cjs/schemas.js +0 -1644
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +3 -36
  38. package/build/internal/es/index.mjs +0 -231
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +4 -94
  41. package/build/internal/es/index.typings.mjs +0 -204
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +5 -10
  44. package/build/internal/es/meta.mjs +0 -164
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +1 -921
  47. package/build/internal/es/schemas.mjs +0 -1638
  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, 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';
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';
4
4
 
5
5
  declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
6
6
  interface GetAutomationRevisionSignature {
@@ -63,36 +63,6 @@ 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
- }
96
66
  declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
97
67
  interface GeneratePreinstalledAutomationSignature {
98
68
  /**
@@ -268,9 +238,6 @@ declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation
268
238
  declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
269
239
  declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAutomation$1> & typeof deleteAutomation$1>;
270
240
  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>;
274
241
  declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
275
242
  declare const queryPreinstalledAutomationsForApp: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomationsForApp$1> & typeof queryPreinstalledAutomationsForApp$1>;
276
243
  declare const queryPreinstalledAutomations: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomations$1> & typeof queryPreinstalledAutomations$1>;
@@ -302,4 +269,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
302
269
  */
303
270
  declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
304
271
 
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 };
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 };
@@ -50,10 +50,8 @@ __export(index_exports, {
50
50
  createAutomationFromTemplateId: () => createAutomationFromTemplateId4,
51
51
  createDraftAutomation: () => createDraftAutomation4,
52
52
  createDraftAutomationFromTemplateId: () => createDraftAutomationFromTemplateId4,
53
- createPreinstalledAutomation: () => createPreinstalledAutomation4,
54
53
  deleteAutomation: () => deleteAutomation4,
55
54
  deleteDraftAutomation: () => deleteDraftAutomation4,
56
- deletePreinstalledAutomation: () => deletePreinstalledAutomation4,
57
55
  generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate4,
58
56
  generatePreinstalledAutomation: () => generatePreinstalledAutomation4,
59
57
  getActionsQuotaInfo: () => getActionsQuotaInfo4,
@@ -71,7 +69,6 @@ __export(index_exports, {
71
69
  queryPreinstalledAutomationsForApp: () => queryPreinstalledAutomationsForApp4,
72
70
  updateAutomation: () => updateAutomation4,
73
71
  updateDraftAutomation: () => updateDraftAutomation4,
74
- updatePreinstalledAutomation: () => updatePreinstalledAutomation4,
75
72
  utils: () => utils,
76
73
  validateAutomation: () => validateAutomation4,
77
74
  validateAutomationById: () => validateAutomationById4
@@ -423,113 +420,6 @@ function bulkDeleteAutomations(payload) {
423
420
  }
424
421
  return __bulkDeleteAutomations;
425
422
  }
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
- }
533
423
  function generatePreinstalledAutomation(payload) {
534
424
  function __generatePreinstalledAutomation({ host }) {
535
425
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1470,100 +1360,6 @@ async function bulkDeleteAutomations2(automationIds) {
1470
1360
  throw transformedError;
1471
1361
  }
1472
1362
  }
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
- }
1567
1363
  async function generatePreinstalledAutomation2(automation, options) {
1568
1364
  const { httpClient, sideEffects } = arguments[2];
1569
1365
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2146,30 +1942,6 @@ function bulkDeleteAutomations3(httpClient) {
2146
1942
  { httpClient }
2147
1943
  );
2148
1944
  }
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
- }
2173
1945
  function generatePreinstalledAutomation3(httpClient) {
2174
1946
  return (automation, options) => generatePreinstalledAutomation2(
2175
1947
  automation,
@@ -2390,9 +2162,6 @@ var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
2390
2162
  var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
2391
2163
  var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAutomation3);
2392
2164
  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);
2396
2165
  var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
2397
2166
  var queryPreinstalledAutomationsForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomationsForApp3);
2398
2167
  var queryPreinstalledAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomations3);
@@ -2454,10 +2223,8 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2454
2223
  createAutomationFromTemplateId,
2455
2224
  createDraftAutomation,
2456
2225
  createDraftAutomationFromTemplateId,
2457
- createPreinstalledAutomation,
2458
2226
  deleteAutomation,
2459
2227
  deleteDraftAutomation,
2460
- deletePreinstalledAutomation,
2461
2228
  generateActionInputMappingFromTemplate,
2462
2229
  generatePreinstalledAutomation,
2463
2230
  getActionsQuotaInfo,
@@ -2475,7 +2242,6 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2475
2242
  queryPreinstalledAutomationsForApp,
2476
2243
  updateAutomation,
2477
2244
  updateDraftAutomation,
2478
- updatePreinstalledAutomation,
2479
2245
  utils,
2480
2246
  validateAutomation,
2481
2247
  validateAutomationById