@wix/auto_sdk_automations_automations-v-2 1.0.84 → 1.0.86
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 +10 -10
- package/build/cjs/index.js +75 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +82 -65
- package/build/cjs/index.typings.js +66 -65
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +66 -49
- package/build/cjs/meta.js +53 -52
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -10
- package/build/es/index.mjs +75 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +82 -65
- package/build/es/index.typings.mjs +66 -65
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +66 -49
- package/build/es/meta.mjs +53 -52
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.js +75 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +82 -65
- package/build/internal/cjs/index.typings.js +66 -65
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +66 -49
- package/build/internal/cjs/meta.js +53 -52
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.mjs +75 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +82 -65
- package/build/internal/es/index.typings.mjs +66 -65
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +66 -49
- package/build/internal/es/meta.mjs +53 -52
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAutomationRequest as CreateAutomationRequest$1, CreateAutomationResponse as CreateAutomationResponse$1, GetAutomationRequest as GetAutomationRequest$1, GetAutomationResponse as GetAutomationResponse$1, UpdateAutomationRequest as UpdateAutomationRequest$1, UpdateAutomationResponse as UpdateAutomationResponse$1, DeleteAutomationRequest as DeleteAutomationRequest$1, DeleteAutomationResponse as DeleteAutomationResponse$1, BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest$1, BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse$1, GeneratePreinstalledAutomationRequest as GeneratePreinstalledAutomationRequest$1, GeneratePreinstalledAutomationResponse as GeneratePreinstalledAutomationResponse$1, QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequest$1, QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponse$1, QueryAutomationsRequest as QueryAutomationsRequest$1, QueryAutomationsResponse as QueryAutomationsResponse$1, GetAggregatedUsageInfoRequest as GetAggregatedUsageInfoRequest$1, GetAggregatedUsageInfoResponse as GetAggregatedUsageInfoResponse$1, CopyAutomationRequest as CopyAutomationRequest$1, CopyAutomationResponse as CopyAutomationResponse$1, CreateDraftAutomationRequest as CreateDraftAutomationRequest$1, CreateDraftAutomationResponse as CreateDraftAutomationResponse$1, GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest$1, GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse$1, UpdateDraftAutomationRequest as UpdateDraftAutomationRequest$1, UpdateDraftAutomationResponse as UpdateDraftAutomationResponse$1, QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest$1, QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse$1, BulkCountAutomationsWithDraftsRequest as BulkCountAutomationsWithDraftsRequest$1, BulkCountAutomationsWithDraftsResponse as BulkCountAutomationsWithDraftsResponse$1, DeleteDraftAutomationRequest as DeleteDraftAutomationRequest$1, DeleteDraftAutomationResponse as DeleteDraftAutomationResponse$1, PublishDraftAutomationRequest as PublishDraftAutomationRequest$1, PublishDraftAutomationResponse as PublishDraftAutomationResponse$1, ValidateAutomationRequest as ValidateAutomationRequest$1, ValidateAutomationResponse as ValidateAutomationResponse$1, ValidateAutomationByIdRequest as ValidateAutomationByIdRequest$1, ValidateAutomationByIdResponse as ValidateAutomationByIdResponse$1, GenerateActionInputMappingFromTemplateRequest as GenerateActionInputMappingFromTemplateRequest$1, GenerateActionInputMappingFromTemplateResponse as GenerateActionInputMappingFromTemplateResponse$1, GetAutomationRevisionRequest as GetAutomationRevisionRequest$1, GetAutomationRevisionResponse as GetAutomationRevisionResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Automation extends AutomationOriginInfoOneOf {
|
|
@@ -89,17 +89,19 @@ interface AIMetadata {
|
|
|
89
89
|
}
|
|
90
90
|
interface ActionSettings {
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* IDs of actions whose `skipActionExpression` can't be modified.
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
* An action's `skipActionExpression` determines whether the action is skipped. Including an action's ID in this array makes its `skipActionExpression` permanent, so it can't be changed.
|
|
95
|
+
*
|
|
96
|
+
* When empty, the `skipActionExpression` of all actions can be edited.
|
|
95
97
|
* @maxSize 30
|
|
96
98
|
* @format GUID
|
|
97
99
|
*/
|
|
98
100
|
permanentActionIds?: string[];
|
|
99
101
|
/**
|
|
100
|
-
*
|
|
102
|
+
* IDs of read-only actions. Read-only actions cannot be modified.
|
|
101
103
|
*
|
|
102
|
-
* When empty
|
|
104
|
+
* When empty and the automation's `settings.readonly` is `false`, all actions are modifiable.
|
|
103
105
|
* @maxSize 30
|
|
104
106
|
* @format GUID
|
|
105
107
|
*/
|
|
@@ -309,15 +311,29 @@ declare enum Type {
|
|
|
309
311
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
310
312
|
/** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action). This action type is available in the site dashboard. */
|
|
311
313
|
APP_DEFINED = "APP_DEFINED",
|
|
312
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* Condition action. Evaluates a condition to determine which action runs next.
|
|
316
|
+
*
|
|
317
|
+
* Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.
|
|
318
|
+
*
|
|
319
|
+
* > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `conditionInfo.truePostActionIds` run and those in `conditionInfo.falsePostActionIds` are skipped.
|
|
320
|
+
*/
|
|
313
321
|
CONDITION = "CONDITION",
|
|
322
|
+
/**
|
|
323
|
+
* Code condition action. Evaluates custom code to determine which action runs next.
|
|
324
|
+
*
|
|
325
|
+
* Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.
|
|
326
|
+
*
|
|
327
|
+
* > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `codeConditionInfo.truePostActionIds` run and those in `codeConditionInfo.falsePostActionIds` are skipped.
|
|
328
|
+
*/
|
|
329
|
+
CODE_CONDITION = "CODE_CONDITION",
|
|
314
330
|
/** Delay. The automation must wait before executing the next step. */
|
|
315
331
|
DELAY = "DELAY",
|
|
316
332
|
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
317
333
|
RATE_LIMIT = "RATE_LIMIT"
|
|
318
334
|
}
|
|
319
335
|
/** @enumType */
|
|
320
|
-
type TypeWithLiterals = Type | 'UNKNOWN_ACTION_TYPE' | 'APP_DEFINED' | 'CONDITION' | 'DELAY' | 'RATE_LIMIT';
|
|
336
|
+
type TypeWithLiterals = Type | 'UNKNOWN_ACTION_TYPE' | 'APP_DEFINED' | 'CONDITION' | 'CODE_CONDITION' | 'DELAY' | 'RATE_LIMIT';
|
|
321
337
|
interface AppDefinedAction {
|
|
322
338
|
/**
|
|
323
339
|
* ID of the app that defines the action.
|
|
@@ -535,15 +551,15 @@ interface Trigger {
|
|
|
535
551
|
overrideSchema?: Record<string, any> | null;
|
|
536
552
|
}
|
|
537
553
|
interface Action extends ActionInfoOneOf {
|
|
538
|
-
/** Details of the action
|
|
554
|
+
/** Details of the action whose `type` is `APP_DEFINED`. */
|
|
539
555
|
appDefinedInfo?: AppDefinedAction;
|
|
540
|
-
/** Details of the action
|
|
556
|
+
/** Details of the action whose `type` is `CONDITION`. */
|
|
541
557
|
conditionInfo?: ConditionAction;
|
|
542
|
-
/** Details of the action
|
|
558
|
+
/** Details of the action whose `type` is `CODE_CONDITION`. */
|
|
543
559
|
codeConditionInfo?: CodeConditionAction;
|
|
544
|
-
/** Details of the action
|
|
560
|
+
/** Details of the action whose `type` is `DELAY`. */
|
|
545
561
|
delayInfo?: DelayAction;
|
|
546
|
-
/** Details of the action
|
|
562
|
+
/** Details of the action whose `type` is `RATE_LIMIT`. */
|
|
547
563
|
rateLimitInfo?: RateLimitAction;
|
|
548
564
|
/**
|
|
549
565
|
* Action ID.
|
|
@@ -571,24 +587,24 @@ interface Action extends ActionInfoOneOf {
|
|
|
571
587
|
*/
|
|
572
588
|
namespace?: string | null;
|
|
573
589
|
/**
|
|
574
|
-
* Evaluated to
|
|
575
|
-
*
|
|
576
|
-
*
|
|
590
|
+
* Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.
|
|
591
|
+
*
|
|
592
|
+
* When empty, the action runs.
|
|
577
593
|
* @maxLength 1000
|
|
578
594
|
*/
|
|
579
595
|
skipActionExpression?: string | null;
|
|
580
596
|
}
|
|
581
597
|
/** @oneof */
|
|
582
598
|
interface ActionInfoOneOf {
|
|
583
|
-
/** Details of the action
|
|
599
|
+
/** Details of the action whose `type` is `APP_DEFINED`. */
|
|
584
600
|
appDefinedInfo?: AppDefinedAction;
|
|
585
|
-
/** Details of the action
|
|
601
|
+
/** Details of the action whose `type` is `CONDITION`. */
|
|
586
602
|
conditionInfo?: ConditionAction;
|
|
587
|
-
/** Details of the action
|
|
603
|
+
/** Details of the action whose `type` is `CODE_CONDITION`. */
|
|
588
604
|
codeConditionInfo?: CodeConditionAction;
|
|
589
|
-
/** Details of the action
|
|
605
|
+
/** Details of the action whose `type` is `DELAY`. */
|
|
590
606
|
delayInfo?: DelayAction;
|
|
591
|
-
/** Details of the action
|
|
607
|
+
/** Details of the action whose `type` is `RATE_LIMIT`. */
|
|
592
608
|
rateLimitInfo?: RateLimitAction;
|
|
593
609
|
}
|
|
594
610
|
interface FilterableAppDefinedActions {
|
|
@@ -652,11 +668,12 @@ interface AutomationSettings {
|
|
|
652
668
|
hidden?: boolean;
|
|
653
669
|
/**
|
|
654
670
|
* Whether the automation is read-only.
|
|
655
|
-
* If true - modifications to the automation trigger or action/s are disabled.
|
|
656
|
-
* **Note**: this setting takes precedent over triggerSettings/actionSettings.
|
|
657
|
-
* If false - allows selective read-only settings via those fields.
|
|
658
671
|
*
|
|
659
|
-
*
|
|
672
|
+
* When `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.
|
|
673
|
+
*
|
|
674
|
+
* Default: `false`.
|
|
675
|
+
*
|
|
676
|
+
* > **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.
|
|
660
677
|
*/
|
|
661
678
|
readonly?: boolean;
|
|
662
679
|
/**
|
|
@@ -666,7 +683,7 @@ interface AutomationSettings {
|
|
|
666
683
|
*/
|
|
667
684
|
disableDelete?: boolean;
|
|
668
685
|
/**
|
|
669
|
-
* Whether to disable the option to change the automation's `configuration.status
|
|
686
|
+
* Whether to disable the option to change the automation's `configuration.status`.
|
|
670
687
|
*
|
|
671
688
|
* Default: `false`.
|
|
672
689
|
*/
|
|
@@ -867,19 +884,9 @@ declare enum WebhookIdentityType {
|
|
|
867
884
|
}
|
|
868
885
|
/** @enumType */
|
|
869
886
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
870
|
-
interface
|
|
871
|
-
/**
|
|
872
|
-
|
|
873
|
-
* @format GUID
|
|
874
|
-
*/
|
|
875
|
-
automationId: string;
|
|
876
|
-
/** Revision number. */
|
|
877
|
-
revision?: string | null;
|
|
878
|
-
/**
|
|
879
|
-
* Requested fields.
|
|
880
|
-
* @maxSize 20
|
|
881
|
-
*/
|
|
882
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
887
|
+
interface CreateAutomationRequest {
|
|
888
|
+
/** Automation to create. */
|
|
889
|
+
automation: Automation;
|
|
883
890
|
}
|
|
884
891
|
declare enum RequestedFields {
|
|
885
892
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
@@ -888,14 +895,6 @@ declare enum RequestedFields {
|
|
|
888
895
|
}
|
|
889
896
|
/** @enumType */
|
|
890
897
|
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'OVERRIDE_SCHEMA';
|
|
891
|
-
interface GetAutomationRevisionResponse {
|
|
892
|
-
/** Automation revision. */
|
|
893
|
-
automation?: Automation;
|
|
894
|
-
}
|
|
895
|
-
interface CreateAutomationRequest {
|
|
896
|
-
/** Automation to create. */
|
|
897
|
-
automation: Automation;
|
|
898
|
-
}
|
|
899
898
|
interface CreateAutomationResponse {
|
|
900
899
|
/** Details of the created automation. */
|
|
901
900
|
automation?: Automation;
|
|
@@ -2419,6 +2418,24 @@ interface MergeOverridePreinstalledWithRuntimeVersionResponse {
|
|
|
2419
2418
|
/** The merged automation after applying the latest runtime version of the preinstalled automation. */
|
|
2420
2419
|
automation?: Automation;
|
|
2421
2420
|
}
|
|
2421
|
+
interface GetAutomationRevisionRequest {
|
|
2422
|
+
/**
|
|
2423
|
+
* Automation ID.
|
|
2424
|
+
* @format GUID
|
|
2425
|
+
*/
|
|
2426
|
+
automationId: string;
|
|
2427
|
+
/** Revision number. */
|
|
2428
|
+
revision?: string | null;
|
|
2429
|
+
/**
|
|
2430
|
+
* Requested fields.
|
|
2431
|
+
* @maxSize 20
|
|
2432
|
+
*/
|
|
2433
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
2434
|
+
}
|
|
2435
|
+
interface GetAutomationRevisionResponse {
|
|
2436
|
+
/** Automation revision. */
|
|
2437
|
+
automation?: Automation;
|
|
2438
|
+
}
|
|
2422
2439
|
|
|
2423
2440
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
2424
2441
|
getUrl: (context: any) => string;
|
|
@@ -2430,9 +2447,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
2430
2447
|
__responseType: Q;
|
|
2431
2448
|
__originalResponseType: R;
|
|
2432
2449
|
};
|
|
2433
|
-
declare function getAutomationRevision(): __PublicMethodMetaInfo<'GET', {
|
|
2434
|
-
automationId: string;
|
|
2435
|
-
}, GetAutomationRevisionRequest$1, GetAutomationRevisionRequest, GetAutomationRevisionResponse$1, GetAutomationRevisionResponse>;
|
|
2436
2450
|
declare function createAutomation(): __PublicMethodMetaInfo<'POST', {}, CreateAutomationRequest$1, CreateAutomationRequest, CreateAutomationResponse$1, CreateAutomationResponse>;
|
|
2437
2451
|
declare function getAutomation(): __PublicMethodMetaInfo<'GET', {
|
|
2438
2452
|
automationId: string;
|
|
@@ -2471,5 +2485,8 @@ declare function validateAutomationById(): __PublicMethodMetaInfo<'POST', {
|
|
|
2471
2485
|
automationId: string;
|
|
2472
2486
|
}, ValidateAutomationByIdRequest$1, ValidateAutomationByIdRequest, ValidateAutomationByIdResponse$1, ValidateAutomationByIdResponse>;
|
|
2473
2487
|
declare function generateActionInputMappingFromTemplate(): __PublicMethodMetaInfo<'POST', {}, GenerateActionInputMappingFromTemplateRequest$1, GenerateActionInputMappingFromTemplateRequest, GenerateActionInputMappingFromTemplateResponse$1, GenerateActionInputMappingFromTemplateResponse>;
|
|
2488
|
+
declare function getAutomationRevision(): __PublicMethodMetaInfo<'GET', {
|
|
2489
|
+
automationId: string;
|
|
2490
|
+
}, GetAutomationRevisionRequest$1, GetAutomationRevisionRequest, GetAutomationRevisionResponse$1, GetAutomationRevisionResponse>;
|
|
2474
2491
|
|
|
2475
2492
|
export { type AIMetadata as AIMetadataOriginal, type ActionConfigurationError as ActionConfigurationErrorOriginal, ActionErrorType as ActionErrorTypeOriginal, type ActionErrorTypeWithLiterals as ActionErrorTypeWithLiteralsOriginal, type ActionEvent as ActionEventOriginal, type ActionInfoOneOf as ActionInfoOneOfOriginal, type Action as ActionOriginal, type ActionProviderQuotaInfo as ActionProviderQuotaInfoOriginal, type ActionQuotaInfo as ActionQuotaInfoOriginal, type ActionSettings as ActionSettingsOriginal, type ActionUsageSummary as ActionUsageSummaryOriginal, type ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOfOriginal, type ActionValidationError as ActionValidationErrorOriginal, type ActionValidationInfo as ActionValidationInfoOriginal, type AdditionalInfo as AdditionalInfoOriginal, type AppDefinedAction as AppDefinedActionOriginal, type ApplicationError as ApplicationErrorOriginal, type ApplicationOrigin as ApplicationOriginOriginal, type Asset as AssetOriginal, type AuditInfoIdOneOf as AuditInfoIdOneOfOriginal, type AuditInfo as AuditInfoOriginal, type AutoArchivePolicy as AutoArchivePolicyOriginal, type AutomationConfigurationError as AutomationConfigurationErrorOriginal, type AutomationConfiguration as AutomationConfigurationOriginal, AutomationErrorType as AutomationErrorTypeOriginal, type AutomationErrorTypeWithLiterals as AutomationErrorTypeWithLiteralsOriginal, type AutomationOriginInfoOneOf as AutomationOriginInfoOneOfOriginal, type Automation as AutomationOriginal, type AutomationSettings as AutomationSettingsOriginal, type AutomationValidationErrorErrorOneOf as AutomationValidationErrorErrorOneOfOriginal, type AutomationValidationError as AutomationValidationErrorOriginal, AutomationValidationErrorValidationErrorType as AutomationValidationErrorValidationErrorTypeOriginal, type AutomationValidationErrorValidationErrorTypeWithLiterals as AutomationValidationErrorValidationErrorTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCountAutomationsWithDraftsRequest as BulkCountAutomationsWithDraftsRequestOriginal, type BulkCountAutomationsWithDraftsResponse as BulkCountAutomationsWithDraftsResponseOriginal, type BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequestOriginal, type BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponseOriginal, type BulkDeleteResult as BulkDeleteResultOriginal, type CTA as CTAOriginal, type CodeConditionAction as CodeConditionActionOriginal, type CodeSnippet as CodeSnippetOriginal, type ConditionAction as ConditionActionOriginal, type ConditionExpressionGroup as ConditionExpressionGroupOriginal, type CopyAutomationRequest as CopyAutomationRequestOriginal, type CopyAutomationResponse as CopyAutomationResponseOriginal, type CreateAutomationRequest as CreateAutomationRequestOriginal, type CreateAutomationResponse as CreateAutomationResponseOriginal, type CreateDraftAutomationRequest as CreateDraftAutomationRequestOriginal, type CreateDraftAutomationResponse as CreateDraftAutomationResponseOriginal, type CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequestOriginal, type CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponseOriginal, type CreatedByAppIdUsageSummary as CreatedByAppIdUsageSummaryOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DelayAction as DelayActionOriginal, type DeleteAutomationRequest as DeleteAutomationRequestOriginal, type DeleteAutomationResponse as DeleteAutomationResponseOriginal, type DeleteContext as DeleteContextOriginal, type DeleteDraftAutomationRequest as DeleteDraftAutomationRequestOriginal, type DeleteDraftAutomationResponse as DeleteDraftAutomationResponseOriginal, type DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequestOriginal, type DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponseOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type Dimensions as DimensionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, Domain as DomainOriginal, type DomainWithLiterals as DomainWithLiteralsOriginal, type DraftInfo as DraftInfoOriginal, type DraftPublished as DraftPublishedOriginal, type DraftsInfo as DraftsInfoOriginal, type Empty as EmptyOriginal, type Enrichment as EnrichmentOriginal, type Enrichments as EnrichmentsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type Filter as FilterOriginal, type FilterValueSelection as FilterValueSelectionOriginal, type FilterableAppDefinedActions as FilterableAppDefinedActionsOriginal, type FutureDateActivationOffset as FutureDateActivationOffsetOriginal, type GenerateActionInputMappingFromTemplateRequest as GenerateActionInputMappingFromTemplateRequestOriginal, type GenerateActionInputMappingFromTemplateResponse as GenerateActionInputMappingFromTemplateResponseOriginal, type GeneratePreinstalledAutomationRequest as GeneratePreinstalledAutomationRequestOriginal, type GeneratePreinstalledAutomationResponse as GeneratePreinstalledAutomationResponseOriginal, type GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequestOriginal, type GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponseOriginal, type GetAggregatedUsageInfoRequest as GetAggregatedUsageInfoRequestOriginal, type GetAggregatedUsageInfoResponse as GetAggregatedUsageInfoResponseOriginal, type GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequestOriginal, type GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponseOriginal, type GetAutomationRequest as GetAutomationRequestOriginal, type GetAutomationResponse as GetAutomationResponseOriginal, type GetAutomationRevisionRequest as GetAutomationRevisionRequestOriginal, type GetAutomationRevisionResponse as GetAutomationRevisionResponseOriginal, type GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequestOriginal, type GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, Language as LanguageOriginal, type LanguageWithLiterals as LanguageWithLiteralsOriginal, type MergeOverridePreinstalledWithRuntimeVersionRequest as MergeOverridePreinstalledWithRuntimeVersionRequestOriginal, type MergeOverridePreinstalledWithRuntimeVersionResponse as MergeOverridePreinstalledWithRuntimeVersionResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type MigrateVeloActionAutomationsRequest as MigrateVeloActionAutomationsRequestOriginal, type MigrateVeloActionAutomationsResponse as MigrateVeloActionAutomationsResponseOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type Note as NoteOriginal, type Notes as NotesOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type Offset as OffsetOriginal, Operator as OperatorOriginal, type OperatorWithLiterals as OperatorWithLiteralsOriginal, type OriginAutomationInfo as OriginAutomationInfoOriginal, Origin as OriginOriginal, type OriginWithLiterals as OriginWithLiteralsOriginal, type OutputAction as OutputActionOriginal, type Path as PathOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, type Plan as PlanOriginal, type Position as PositionOriginal, type PreinstalledAutomationSpecInfo as PreinstalledAutomationSpecInfoOriginal, type PreinstalledOrigin as PreinstalledOriginOriginal, type ProviderConfigurationError as ProviderConfigurationErrorOriginal, type PublishDraftAutomationRequest as PublishDraftAutomationRequestOriginal, type PublishDraftAutomationResponse as PublishDraftAutomationResponseOriginal, type QueryAutomationsRequest as QueryAutomationsRequestOriginal, type QueryAutomationsResponse as QueryAutomationsResponseOriginal, type QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequestOriginal, type QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponseOriginal, type QueryDraftAutomationsRequest as QueryDraftAutomationsRequestOriginal, type QueryDraftAutomationsResponse as QueryDraftAutomationsResponseOriginal, type QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequestOriginal, type QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponseOriginal, type QueryPreinstalledAutomationsRequest as QueryPreinstalledAutomationsRequestOriginal, type QueryPreinstalledAutomationsResponse as QueryPreinstalledAutomationsResponseOriginal, type QuotaInfo as QuotaInfoOriginal, type Quota as QuotaOriginal, type RateLimitAction as RateLimitActionOriginal, type RateLimit as RateLimitOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, type SetVariablesAction as SetVariablesActionOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SplitAction as SplitActionOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioTwoAssigned as StudioTwoAssignedOriginal, type StudioTwoUnassigned as StudioTwoUnassignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, TimeUnit as TimeUnitOriginal, type TimeUnitWithLiterals as TimeUnitWithLiteralsOriginal, type TriggerConfigurationError as TriggerConfigurationErrorOriginal, TriggerErrorType as TriggerErrorTypeOriginal, type TriggerErrorTypeWithLiterals as TriggerErrorTypeWithLiteralsOriginal, type Trigger as TriggerOriginal, type TriggerSettings as TriggerSettingsOriginal, type TriggerUsageSummary as TriggerUsageSummaryOriginal, type TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOfOriginal, type TriggerValidationError as TriggerValidationErrorOriginal, TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorTypeOriginal, type TriggerValidationErrorValidationErrorTypeWithLiterals as TriggerValidationErrorValidationErrorTypeWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdateAutomationRequest as UpdateAutomationRequestOriginal, type UpdateAutomationResponse as UpdateAutomationResponseOriginal, type UpdateDraftAutomationRequest as UpdateDraftAutomationRequestOriginal, type UpdateDraftAutomationResponse as UpdateDraftAutomationResponseOriginal, type UpdatePreinstalledAutomationRequest as UpdatePreinstalledAutomationRequestOriginal, type UpdatePreinstalledAutomationResponse as UpdatePreinstalledAutomationResponseOriginal, type UpgradeCTA as UpgradeCTAOriginal, type ValidateAutomationByIdRequest as ValidateAutomationByIdRequestOriginal, type ValidateAutomationByIdResponse as ValidateAutomationByIdResponseOriginal, type ValidateAutomationRequest as ValidateAutomationRequestOriginal, type ValidateAutomationResponse as ValidateAutomationResponseOriginal, ValidationErrorSeverity as ValidationErrorSeverityOriginal, type ValidationErrorSeverityWithLiterals as ValidationErrorSeverityWithLiteralsOriginal, ValidationErrorType as ValidationErrorTypeOriginal, type ValidationErrorTypeWithLiterals as ValidationErrorTypeWithLiteralsOriginal, ValidationResultStatus as ValidationResultStatusOriginal, type ValidationResultStatusWithLiterals as ValidationResultStatusWithLiteralsOriginal, type ValidationSettings as ValidationSettingsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixelAssigned as WixelAssignedOriginal, type WixelUnassigned as WixelUnassignedOriginal, type __PublicMethodMetaInfo, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
@@ -74,7 +74,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
74
74
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
75
75
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
76
76
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
77
|
-
function
|
|
77
|
+
function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
|
|
78
78
|
const domainToMappings = {
|
|
79
79
|
"manage._base_domain_": [
|
|
80
80
|
{
|
|
@@ -113,7 +113,7 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
|
|
|
113
113
|
};
|
|
114
114
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
|
|
117
117
|
const domainToMappings = {
|
|
118
118
|
"manage._base_domain_": [
|
|
119
119
|
{
|
|
@@ -153,38 +153,6 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
|
|
|
153
153
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
154
154
|
}
|
|
155
155
|
var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
|
|
156
|
-
function getAutomationRevision(payload) {
|
|
157
|
-
function __getAutomationRevision({ host }) {
|
|
158
|
-
const metadata = {
|
|
159
|
-
entityFqdn: "wix.automations.v2.automation",
|
|
160
|
-
method: "GET",
|
|
161
|
-
methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
|
|
162
|
-
packageName: PACKAGE_NAME,
|
|
163
|
-
migrationOptions: {
|
|
164
|
-
optInTransformResponse: true
|
|
165
|
-
},
|
|
166
|
-
url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
|
|
167
|
-
protoPath: "/v1/automation-revisions/{automationId}",
|
|
168
|
-
data: payload,
|
|
169
|
-
host
|
|
170
|
-
}),
|
|
171
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
172
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
173
|
-
{
|
|
174
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
175
|
-
paths: [
|
|
176
|
-
{ path: "automation.createdDate" },
|
|
177
|
-
{ path: "automation.updatedDate" },
|
|
178
|
-
{ path: "automation.draftUpdatedDate" },
|
|
179
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
])
|
|
183
|
-
};
|
|
184
|
-
return metadata;
|
|
185
|
-
}
|
|
186
|
-
return __getAutomationRevision;
|
|
187
|
-
}
|
|
188
156
|
function createAutomation(payload) {
|
|
189
157
|
function __createAutomation({ host }) {
|
|
190
158
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -822,6 +790,38 @@ function generateActionInputMappingFromTemplate(payload) {
|
|
|
822
790
|
}
|
|
823
791
|
return __generateActionInputMappingFromTemplate;
|
|
824
792
|
}
|
|
793
|
+
function getAutomationRevision(payload) {
|
|
794
|
+
function __getAutomationRevision({ host }) {
|
|
795
|
+
const metadata = {
|
|
796
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
797
|
+
method: "GET",
|
|
798
|
+
methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
|
|
799
|
+
packageName: PACKAGE_NAME,
|
|
800
|
+
migrationOptions: {
|
|
801
|
+
optInTransformResponse: true
|
|
802
|
+
},
|
|
803
|
+
url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
|
|
804
|
+
protoPath: "/v1/automation-revisions/{automationId}",
|
|
805
|
+
data: payload,
|
|
806
|
+
host
|
|
807
|
+
}),
|
|
808
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
809
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
810
|
+
{
|
|
811
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
812
|
+
paths: [
|
|
813
|
+
{ path: "automation.createdDate" },
|
|
814
|
+
{ path: "automation.updatedDate" },
|
|
815
|
+
{ path: "automation.draftUpdatedDate" },
|
|
816
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
])
|
|
820
|
+
};
|
|
821
|
+
return metadata;
|
|
822
|
+
}
|
|
823
|
+
return __getAutomationRevision;
|
|
824
|
+
}
|
|
825
825
|
|
|
826
826
|
// src/automations-v2-automation-automations-v-2.types.ts
|
|
827
827
|
var Domain = /* @__PURE__ */ ((Domain2) => {
|
|
@@ -854,6 +854,7 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
854
854
|
Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
855
855
|
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
856
856
|
Type2["CONDITION"] = "CONDITION";
|
|
857
|
+
Type2["CODE_CONDITION"] = "CODE_CONDITION";
|
|
857
858
|
Type2["DELAY"] = "DELAY";
|
|
858
859
|
Type2["RATE_LIMIT"] = "RATE_LIMIT";
|
|
859
860
|
return Type2;
|
|
@@ -1016,24 +1017,6 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
|
|
|
1016
1017
|
})(AutomationErrorType || {});
|
|
1017
1018
|
|
|
1018
1019
|
// src/automations-v2-automation-automations-v-2.meta.ts
|
|
1019
|
-
function getAutomationRevision2() {
|
|
1020
|
-
const payload = { automationId: ":automationId" };
|
|
1021
|
-
const getRequestOptions = getAutomationRevision(payload);
|
|
1022
|
-
const getUrl = (context) => {
|
|
1023
|
-
const { url } = getRequestOptions(context);
|
|
1024
|
-
return url;
|
|
1025
|
-
};
|
|
1026
|
-
return {
|
|
1027
|
-
getUrl,
|
|
1028
|
-
httpMethod: "GET",
|
|
1029
|
-
path: "/v1/automation-revisions/{automationId}",
|
|
1030
|
-
pathParams: { automationId: "automationId" },
|
|
1031
|
-
__requestType: null,
|
|
1032
|
-
__originalRequestType: null,
|
|
1033
|
-
__responseType: null,
|
|
1034
|
-
__originalResponseType: null
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
1020
|
function createAutomation2() {
|
|
1038
1021
|
const payload = {};
|
|
1039
1022
|
const getRequestOptions = createAutomation(payload);
|
|
@@ -1402,6 +1385,24 @@ function generateActionInputMappingFromTemplate2() {
|
|
|
1402
1385
|
__originalResponseType: null
|
|
1403
1386
|
};
|
|
1404
1387
|
}
|
|
1388
|
+
function getAutomationRevision2() {
|
|
1389
|
+
const payload = { automationId: ":automationId" };
|
|
1390
|
+
const getRequestOptions = getAutomationRevision(payload);
|
|
1391
|
+
const getUrl = (context) => {
|
|
1392
|
+
const { url } = getRequestOptions(context);
|
|
1393
|
+
return url;
|
|
1394
|
+
};
|
|
1395
|
+
return {
|
|
1396
|
+
getUrl,
|
|
1397
|
+
httpMethod: "GET",
|
|
1398
|
+
path: "/v1/automation-revisions/{automationId}",
|
|
1399
|
+
pathParams: { automationId: "automationId" },
|
|
1400
|
+
__requestType: null,
|
|
1401
|
+
__originalRequestType: null,
|
|
1402
|
+
__responseType: null,
|
|
1403
|
+
__originalResponseType: null
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1405
1406
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1406
1407
|
0 && (module.exports = {
|
|
1407
1408
|
ActionErrorTypeOriginal,
|