@wix/auto_sdk_automations_automations-v-2 1.0.27 → 1.0.29
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.
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +22 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +179 -264
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +36 -36
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +22 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +179 -264
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +36 -36
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +22 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +179 -264
- package/build/internal/cjs/index.typings.js +13 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +36 -36
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +22 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +179 -264
- package/build/internal/es/index.typings.mjs +13 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +36 -36
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { Automation, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, AutomationsQueryBuilder, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { 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,
|
|
3
|
+
export { 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, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, DeletedWithEntity, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsRequest, QueryPreinstalledAutomationsResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioUnassigned, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
6
6
|
interface CreateAutomationSignature {
|
|
@@ -203,14 +203,14 @@ declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAu
|
|
|
203
203
|
/**
|
|
204
204
|
* Triggered when a new automation is created.
|
|
205
205
|
*/
|
|
206
|
-
declare const onAutomationCreated: BuildEventDefinition<typeof onAutomationCreated$1
|
|
206
|
+
declare const onAutomationCreated: BuildEventDefinition<typeof onAutomationCreated$1> & typeof onAutomationCreated$1;
|
|
207
207
|
/**
|
|
208
208
|
* Triggered when an automation is deleted.
|
|
209
209
|
*/
|
|
210
|
-
declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDeleted$1
|
|
210
|
+
declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDeleted$1> & typeof onAutomationDeleted$1;
|
|
211
211
|
/**
|
|
212
212
|
* Triggered when an automation is updated.
|
|
213
213
|
*/
|
|
214
|
-
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1
|
|
214
|
+
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
|
|
215
215
|
|
|
216
216
|
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
package/build/cjs/index.js
CHANGED
|
@@ -746,6 +746,11 @@ var Operator = /* @__PURE__ */ ((Operator2) => {
|
|
|
746
746
|
Operator2["AND"] = "AND";
|
|
747
747
|
return Operator2;
|
|
748
748
|
})(Operator || {});
|
|
749
|
+
var Language = /* @__PURE__ */ ((Language2) => {
|
|
750
|
+
Language2["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
751
|
+
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
752
|
+
return Language2;
|
|
753
|
+
})(Language || {});
|
|
749
754
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
750
755
|
Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
751
756
|
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
@@ -767,19 +772,6 @@ var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
|
767
772
|
Origin2["PREINSTALLED"] = "PREINSTALLED";
|
|
768
773
|
return Origin2;
|
|
769
774
|
})(Origin || {});
|
|
770
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
771
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
772
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
773
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
774
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
775
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
776
|
-
return WebhookIdentityType2;
|
|
777
|
-
})(WebhookIdentityType || {});
|
|
778
|
-
var Language = /* @__PURE__ */ ((Language2) => {
|
|
779
|
-
Language2["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
780
|
-
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
781
|
-
return Language2;
|
|
782
|
-
})(Language || {});
|
|
783
775
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
784
776
|
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
785
777
|
RequestedFields2["OVERRIDE_SCHEMA"] = "OVERRIDE_SCHEMA";
|
|
@@ -904,6 +896,14 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
|
|
|
904
896
|
AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
|
|
905
897
|
return AutomationErrorType2;
|
|
906
898
|
})(AutomationErrorType || {});
|
|
899
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
900
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
901
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
902
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
903
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
904
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
905
|
+
return WebhookIdentityType2;
|
|
906
|
+
})(WebhookIdentityType || {});
|
|
907
907
|
async function createAutomation2(automation) {
|
|
908
908
|
const { httpClient, sideEffects } = arguments[1];
|
|
909
909
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1638,9 +1638,15 @@ var publishDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRES
|
|
|
1638
1638
|
var validateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateAutomation3);
|
|
1639
1639
|
var validateAutomationById4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateAutomationById3);
|
|
1640
1640
|
var getAutomationRevision4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationRevision3);
|
|
1641
|
-
var onAutomationCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1642
|
-
|
|
1643
|
-
|
|
1641
|
+
var onAutomationCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1642
|
+
onAutomationCreated
|
|
1643
|
+
);
|
|
1644
|
+
var onAutomationDeleted2 = (0, import_event_definition_modules.createEventModule)(
|
|
1645
|
+
onAutomationDeleted
|
|
1646
|
+
);
|
|
1647
|
+
var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1648
|
+
onAutomationUpdated
|
|
1649
|
+
);
|
|
1644
1650
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1645
1651
|
0 && (module.exports = {
|
|
1646
1652
|
ActionErrorType,
|