@wix/auto_sdk_automations_automations-v-2 1.0.137 → 1.0.139

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 +235 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +101 -6
  5. package/build/cjs/index.typings.js +208 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +17 -7
  8. package/build/cjs/meta.js +168 -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 +232 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +101 -6
  17. package/build/es/index.typings.mjs +205 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +17 -7
  20. package/build/es/meta.mjs +165 -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 +235 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +101 -6
  29. package/build/internal/cjs/index.typings.js +208 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +17 -7
  32. package/build/internal/cjs/meta.js +168 -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 +232 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +101 -6
  41. package/build/internal/es/index.typings.mjs +205 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +17 -7
  44. package/build/internal/es/meta.mjs +165 -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, [
@@ -1106,6 +1216,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
1106
1216
  Namespace2["NAUTILUS"] = "NAUTILUS";
1107
1217
  Namespace2["SYMPHONY"] = "SYMPHONY";
1108
1218
  Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
1219
+ Namespace2["VIBU"] = "VIBU";
1109
1220
  return Namespace2;
1110
1221
  })(Namespace || {});
1111
1222
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
@@ -1360,6 +1471,100 @@ async function bulkDeleteAutomations2(automationIds) {
1360
1471
  throw transformedError;
1361
1472
  }
1362
1473
  }
1474
+ async function createPreinstalledAutomation2(automation, options) {
1475
+ const { httpClient, sideEffects } = arguments[2];
1476
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1477
+ automation,
1478
+ specInfo: options?.specInfo,
1479
+ originAutomationInfo: options?.originAutomationInfo,
1480
+ appId: options?.appId
1481
+ });
1482
+ const reqOpts = createPreinstalledAutomation(payload);
1483
+ sideEffects?.onSiteCall?.();
1484
+ try {
1485
+ const result = await httpClient.request(reqOpts);
1486
+ sideEffects?.onSuccess?.(result);
1487
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1488
+ } catch (err) {
1489
+ const transformedError = (0, import_transform_error.transformError)(
1490
+ err,
1491
+ {
1492
+ spreadPathsToArguments: {},
1493
+ explicitPathsToArguments: {
1494
+ automation: "$[0]",
1495
+ specInfo: "$[1].specInfo",
1496
+ originAutomationInfo: "$[1].originAutomationInfo",
1497
+ appId: "$[1].appId"
1498
+ },
1499
+ singleArgumentUnchanged: false
1500
+ },
1501
+ ["automation", "options"]
1502
+ );
1503
+ sideEffects?.onError?.(err);
1504
+ throw transformedError;
1505
+ }
1506
+ }
1507
+ async function updatePreinstalledAutomation2(automation, options) {
1508
+ const { httpClient, sideEffects } = arguments[2];
1509
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1510
+ automation,
1511
+ specInfo: options?.specInfo,
1512
+ appId: options?.appId
1513
+ });
1514
+ const reqOpts = updatePreinstalledAutomation(payload);
1515
+ sideEffects?.onSiteCall?.();
1516
+ try {
1517
+ const result = await httpClient.request(reqOpts);
1518
+ sideEffects?.onSuccess?.(result);
1519
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1520
+ } catch (err) {
1521
+ const transformedError = (0, import_transform_error.transformError)(
1522
+ err,
1523
+ {
1524
+ spreadPathsToArguments: {},
1525
+ explicitPathsToArguments: {
1526
+ automation: "$[0]",
1527
+ specInfo: "$[1].specInfo",
1528
+ appId: "$[1].appId"
1529
+ },
1530
+ singleArgumentUnchanged: false
1531
+ },
1532
+ ["automation", "options"]
1533
+ );
1534
+ sideEffects?.onError?.(err);
1535
+ throw transformedError;
1536
+ }
1537
+ }
1538
+ async function deletePreinstalledAutomation2(componentId, options) {
1539
+ const { httpClient, sideEffects } = arguments[2];
1540
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1541
+ componentId,
1542
+ specInfo: options?.specInfo,
1543
+ appId: options?.appId
1544
+ });
1545
+ const reqOpts = deletePreinstalledAutomation(payload);
1546
+ sideEffects?.onSiteCall?.();
1547
+ try {
1548
+ const result = await httpClient.request(reqOpts);
1549
+ sideEffects?.onSuccess?.(result);
1550
+ } catch (err) {
1551
+ const transformedError = (0, import_transform_error.transformError)(
1552
+ err,
1553
+ {
1554
+ spreadPathsToArguments: {},
1555
+ explicitPathsToArguments: {
1556
+ componentId: "$[0]",
1557
+ specInfo: "$[1].specInfo",
1558
+ appId: "$[1].appId"
1559
+ },
1560
+ singleArgumentUnchanged: false
1561
+ },
1562
+ ["componentId", "options"]
1563
+ );
1564
+ sideEffects?.onError?.(err);
1565
+ throw transformedError;
1566
+ }
1567
+ }
1363
1568
  async function generatePreinstalledAutomation2(automation, options) {
1364
1569
  const { httpClient, sideEffects } = arguments[2];
1365
1570
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1942,6 +2147,30 @@ function bulkDeleteAutomations3(httpClient) {
1942
2147
  { httpClient }
1943
2148
  );
1944
2149
  }
2150
+ function createPreinstalledAutomation3(httpClient) {
2151
+ return (automation, options) => createPreinstalledAutomation2(
2152
+ automation,
2153
+ options,
2154
+ // @ts-ignore
2155
+ { httpClient }
2156
+ );
2157
+ }
2158
+ function updatePreinstalledAutomation3(httpClient) {
2159
+ return (automation, options) => updatePreinstalledAutomation2(
2160
+ automation,
2161
+ options,
2162
+ // @ts-ignore
2163
+ { httpClient }
2164
+ );
2165
+ }
2166
+ function deletePreinstalledAutomation3(httpClient) {
2167
+ return (componentId, options) => deletePreinstalledAutomation2(
2168
+ componentId,
2169
+ options,
2170
+ // @ts-ignore
2171
+ { httpClient }
2172
+ );
2173
+ }
1945
2174
  function generatePreinstalledAutomation3(httpClient) {
1946
2175
  return (automation, options) => generatePreinstalledAutomation2(
1947
2176
  automation,
@@ -2162,6 +2391,9 @@ var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
2162
2391
  var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
2163
2392
  var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAutomation3);
2164
2393
  var bulkDeleteAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAutomations3);
2394
+ var createPreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPreinstalledAutomation3);
2395
+ var updatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePreinstalledAutomation3);
2396
+ var deletePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePreinstalledAutomation3);
2165
2397
  var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
2166
2398
  var queryPreinstalledAutomationsForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomationsForApp3);
2167
2399
  var queryPreinstalledAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomations3);
@@ -2223,8 +2455,10 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2223
2455
  createAutomationFromTemplateId,
2224
2456
  createDraftAutomation,
2225
2457
  createDraftAutomationFromTemplateId,
2458
+ createPreinstalledAutomation,
2226
2459
  deleteAutomation,
2227
2460
  deleteDraftAutomation,
2461
+ deletePreinstalledAutomation,
2228
2462
  generateActionInputMappingFromTemplate,
2229
2463
  generatePreinstalledAutomation,
2230
2464
  getActionsQuotaInfo,
@@ -2242,6 +2476,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
2242
2476
  queryPreinstalledAutomationsForApp,
2243
2477
  updateAutomation,
2244
2478
  updateDraftAutomation,
2479
+ updatePreinstalledAutomation,
2245
2480
  utils,
2246
2481
  validateAutomation,
2247
2482
  validateAutomationById