@wix/auto_sdk_automations_automations-v-2 1.0.5 → 1.0.6
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/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +1 -3
- package/build/{internal → cjs}/index.d.ts +4 -4
- package/build/{internal → cjs}/index.js +5 -9
- package/build/cjs/index.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +1 -1
- package/build/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts → es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +1 -3
- package/build/{internal → es}/index.d.mts +4 -4
- package/build/{internal → es}/index.mjs +5 -9
- package/build/es/index.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +1 -1
- package/build/es/package.json +3 -0
- package/build/internal/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +1 -3
- package/build/{index.d.ts → internal/cjs/index.d.ts} +4 -4
- package/build/{index.js → internal/cjs/index.js} +5 -9
- package/build/internal/cjs/index.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +1 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/{automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts → es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +1 -3
- package/build/{index.d.mts → internal/es/index.d.mts} +4 -4
- package/build/{index.mjs → internal/es/index.mjs} +5 -9
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +1 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -10
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -2349,8 +2349,6 @@ interface GeneratePreinstalledAutomationOptions {
|
|
|
2349
2349
|
*/
|
|
2350
2350
|
appId?: string;
|
|
2351
2351
|
}
|
|
2352
|
-
interface QueryAutomationsOptions {
|
|
2353
|
-
}
|
|
2354
2352
|
interface QueryCursorResult {
|
|
2355
2353
|
cursors: Cursors;
|
|
2356
2354
|
hasNext: () => boolean;
|
|
@@ -2538,4 +2536,4 @@ interface GetAutomationRevisionOptions {
|
|
|
2538
2536
|
fields?: RequestedFieldsWithLiterals[];
|
|
2539
2537
|
}
|
|
2540
2538
|
|
|
2541
|
-
export { type
|
|
2539
|
+
export { type FutureDateActivationOffset as $, type Automation as A, type BulkDeleteAutomationsResponse as B, type CopyAutomationOptions as C, Domain as D, ValidationErrorType as E, ActionErrorType as F, type GeneratePreinstalledAutomationOptions as G, AutomationValidationErrorValidationErrorType as H, AutomationErrorType as I, type AutomationOriginInfoOneOf as J, type ActionSettings as K, Language as L, type Enrichment as M, Namespace as N, Operator as O, type PublishDraftAutomationResponse as P, type QueryAutomationsWithDraftsOptions as Q, RequestedFields as R, Status as S, TimeUnit as T, type UpdateAutomation as U, type ValidateAutomationOptions as V, WebhookIdentityType as W, type AuditInfo as X, type AuditInfoIdOneOf as Y, type AutomationConfiguration as Z, type Filter as _, type GeneratePreinstalledAutomationResponse as a, type GeneratePreinstalledAutomationRequest as a$, type RateLimit as a0, type FilterValueSelection as a1, type ConditionExpressionGroup as a2, type Path as a3, type AppDefinedAction as a4, type ConditionAction as a5, type DelayAction as a6, type RateLimitAction as a7, type SetVariablesAction as a8, type OutputAction as a9, type TestUpdateApplicationAutomationResponse as aA, type MessageEnvelope as aB, type IdentificationData as aC, type IdentificationDataIdOneOf as aD, type CodeSnippet as aE, type CodeConditionAction as aF, type CreateAutomationRequest as aG, type CreateAutomationResponse as aH, type GetAutomationRequest as aI, type GetAutomationResponse as aJ, type UpdateAutomationRequest as aK, type UpdateAutomationResponse as aL, type DeleteAutomationRequest as aM, type DeleteAutomationResponse as aN, type BulkDeleteAutomationsRequest as aO, type BulkDeleteResult as aP, type ItemMetadata as aQ, type ApplicationError as aR, type BulkActionMetadata as aS, type CreatePreinstalledAutomationRequest as aT, type PreinstalledAutomationSpecInfo as aU, type OriginAutomationInfo as aV, type CreatePreinstalledAutomationResponse as aW, type UpdatePreinstalledAutomationRequest as aX, type UpdatePreinstalledAutomationResponse as aY, type DeletePreinstalledAutomationRequest as aZ, type DeletePreinstalledAutomationResponse as a_, type SplitAction as aa, type Trigger as ab, type Action as ac, type ActionInfoOneOf as ad, type FilterableAppDefinedActions as ae, type ApplicationOrigin as af, type PreinstalledOrigin as ag, type AutomationSettings as ah, type DraftInfo as ai, type Enrichments as aj, type ExtendedFields as ak, type AutomationMigrationRequest as al, type UpdatedWithPreviousEntity as am, type DeletedWithEntity as an, type DraftPublished as ao, type DomainEvent as ap, type DomainEventBodyOneOf as aq, type EntityCreatedEvent as ar, type RestoreInfo as as, type EntityUpdatedEvent as at, type EntityDeletedEvent as au, type ActionEvent as av, type Empty as aw, type UpdateApplicationAutomationsRequest as ax, type UpdateApplicationAutomationsResponse as ay, type TestUpdateApplicationAutomationRequest as az, type AutomationsQueryBuilder as b, type GetAutomationActionSchemaResponse as b$, type QueryPreinstalledAutomationsForAppRequest as b0, type CursorQuery as b1, type CursorQueryPagingMethodOneOf as b2, type Sorting as b3, type CursorPaging as b4, type QueryPreinstalledAutomationsForAppResponse as b5, type CursorPagingMetadata as b6, type Cursors as b7, type QueryAutomationsRequest as b8, type QueryAutomationsResponse as b9, type OdeditorAssigned as bA, type OdeditorUnassigned as bB, type PicassoAssigned as bC, type PicassoUnassigned as bD, type CreateDraftAutomationRequest as bE, type GetOrCreateDraftAutomationRequest as bF, type UpdateDraftAutomationRequest as bG, type QueryAutomationsWithDraftsRequest as bH, type DraftsInfo as bI, type DeleteDraftAutomationRequest as bJ, type DeleteDraftAutomationResponse as bK, type PublishDraftAutomationRequest as bL, type ValidateAutomationRequest as bM, type ValidationSettings as bN, type TriggerValidationError as bO, type TriggerValidationErrorErrorOneOf as bP, type TriggerConfigurationError as bQ, type ProviderConfigurationError as bR, type ActionValidationInfo as bS, type ActionValidationError as bT, type ActionValidationErrorErrorOneOf as bU, type ActionConfigurationError as bV, type AutomationValidationError as bW, type AutomationValidationErrorErrorOneOf as bX, type AutomationConfigurationError as bY, type ValidateAutomationByIdRequest as bZ, type GetAutomationActionSchemaRequest as b_, type GetAggregatedUsageInfoRequest as ba, type GetAggregatedUsageInfoResponse as bb, type TriggerUsageSummary as bc, type ActionUsageSummary as bd, type CopyAutomationRequest as be, type MetaSiteSpecialEvent as bf, type MetaSiteSpecialEventPayloadOneOf as bg, type Asset as bh, type SiteCreated as bi, type SiteTransferred as bj, type SiteDeleted as bk, type DeleteContext as bl, type SiteUndeleted as bm, type SitePublished as bn, type SiteUnpublished as bo, type SiteMarkedAsTemplate as bp, type SiteMarkedAsWixSite as bq, type ServiceProvisioned as br, type ServiceRemoved as bs, type SiteRenamed as bt, type SiteHardDeleted as bu, type NamespaceChanged as bv, type StudioAssigned as bw, type StudioUnassigned as bx, type SiteUrlChanged as by, type SitePurgedExternally as bz, type CopyAutomationResponse as c, type GetActionsQuotaInfoRequest as c0, type GetActionsQuotaInfoResponse as c1, type ActionProviderQuotaInfo as c2, type ActionQuotaInfo as c3, type QuotaInfo as c4, type Plan as c5, type Quota as c6, type CTA as c7, type AdditionalInfo as c8, type UpgradeCTA as c9, type MigrateVeloActionAutomationsRequest as ca, type MigrateVeloActionAutomationsResponse as cb, type GetAutomationRevisionRequest as cc, type BaseEventMetadata as cd, type EventMetadata as ce, type AutomationsQueryResult as cf, type CreateDraftAutomationOptions as d, type CreateDraftAutomationResponse as e, type GetOrCreateDraftAutomationResponse as f, type UpdateDraftAutomation as g, type UpdateDraftAutomationResponse as h, type QueryAutomationsWithDraftsResponse as i, type ValidateAutomationResponse as j, type ValidateAutomationByIdOptions as k, type ValidateAutomationByIdResponse as l, type GetAutomationRevisionOptions as m, type GetAutomationRevisionResponse as n, type AutomationCreatedEnvelope as o, type AutomationDeletedEnvelope as p, type AutomationUpdatedEnvelope as q, Type as r, Origin as s, SortOrder as t, State as u, SiteCreatedContext as v, DeleteStatus as w, TriggerValidationErrorValidationErrorType as x, TriggerErrorType as y, ValidationErrorSeverity as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse,
|
|
3
|
-
export {
|
|
2
|
+
import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, Q as QueryAutomationsWithDraftsOptions, i as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, j as ValidateAutomationResponse, k as ValidateAutomationByIdOptions, l as ValidateAutomationByIdResponse, m as GetAutomationRevisionOptions, n as GetAutomationRevisionResponse, o as AutomationCreatedEnvelope, p as AutomationDeletedEnvelope, q as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.js';
|
|
3
|
+
export { ac as Action, bV as ActionConfigurationError, F as ActionErrorType, av as ActionEvent, ad as ActionInfoOneOf, c2 as ActionProviderQuotaInfo, c3 as ActionQuotaInfo, K as ActionSettings, bd as ActionUsageSummary, bT as ActionValidationError, bU as ActionValidationErrorErrorOneOf, bS as ActionValidationInfo, c8 as AdditionalInfo, a4 as AppDefinedAction, aR as ApplicationError, af as ApplicationOrigin, bh as Asset, X as AuditInfo, Y as AuditInfoIdOneOf, Z as AutomationConfiguration, bY as AutomationConfigurationError, I as AutomationErrorType, al as AutomationMigrationRequest, J as AutomationOriginInfoOneOf, ah as AutomationSettings, bW as AutomationValidationError, bX as AutomationValidationErrorErrorOneOf, H as AutomationValidationErrorValidationErrorType, cf as AutomationsQueryResult, cd as BaseEventMetadata, aS as BulkActionMetadata, aO as BulkDeleteAutomationsRequest, aP as BulkDeleteResult, c7 as CTA, aF as CodeConditionAction, aE as CodeSnippet, a5 as ConditionAction, a2 as ConditionExpressionGroup, be as CopyAutomationRequest, aG as CreateAutomationRequest, aH as CreateAutomationResponse, bE as CreateDraftAutomationRequest, aT as CreatePreinstalledAutomationRequest, aW as CreatePreinstalledAutomationResponse, b4 as CursorPaging, b6 as CursorPagingMetadata, b1 as CursorQuery, b2 as CursorQueryPagingMethodOneOf, b7 as Cursors, a6 as DelayAction, aM as DeleteAutomationRequest, aN as DeleteAutomationResponse, bl as DeleteContext, bJ as DeleteDraftAutomationRequest, bK as DeleteDraftAutomationResponse, aZ as DeletePreinstalledAutomationRequest, a_ as DeletePreinstalledAutomationResponse, w as DeleteStatus, an as DeletedWithEntity, D as Domain, ap as DomainEvent, aq as DomainEventBodyOneOf, ai as DraftInfo, ao as DraftPublished, bI as DraftsInfo, aw as Empty, M as Enrichment, aj as Enrichments, ar as EntityCreatedEvent, au as EntityDeletedEvent, at as EntityUpdatedEvent, ce as EventMetadata, ak as ExtendedFields, _ as Filter, a1 as FilterValueSelection, ae as FilterableAppDefinedActions, $ as FutureDateActivationOffset, a$ as GeneratePreinstalledAutomationRequest, c0 as GetActionsQuotaInfoRequest, c1 as GetActionsQuotaInfoResponse, ba as GetAggregatedUsageInfoRequest, bb as GetAggregatedUsageInfoResponse, b_ as GetAutomationActionSchemaRequest, b$ as GetAutomationActionSchemaResponse, aI as GetAutomationRequest, aJ as GetAutomationResponse, cc as GetAutomationRevisionRequest, bF as GetOrCreateDraftAutomationRequest, aC as IdentificationData, aD as IdentificationDataIdOneOf, aQ as ItemMetadata, L as Language, aB as MessageEnvelope, bf as MetaSiteSpecialEvent, bg as MetaSiteSpecialEventPayloadOneOf, ca as MigrateVeloActionAutomationsRequest, cb as MigrateVeloActionAutomationsResponse, N as Namespace, bv as NamespaceChanged, bA as OdeditorAssigned, bB as OdeditorUnassigned, O as Operator, s as Origin, aV as OriginAutomationInfo, a9 as OutputAction, a3 as Path, bC as PicassoAssigned, bD as PicassoUnassigned, c5 as Plan, aU as PreinstalledAutomationSpecInfo, ag as PreinstalledOrigin, bR as ProviderConfigurationError, bL as PublishDraftAutomationRequest, b8 as QueryAutomationsRequest, b9 as QueryAutomationsResponse, bH as QueryAutomationsWithDraftsRequest, b0 as QueryPreinstalledAutomationsForAppRequest, b5 as QueryPreinstalledAutomationsForAppResponse, c6 as Quota, c4 as QuotaInfo, a0 as RateLimit, a7 as RateLimitAction, R as RequestedFields, as as RestoreInfo, br as ServiceProvisioned, bs as ServiceRemoved, a8 as SetVariablesAction, bi as SiteCreated, v as SiteCreatedContext, bk as SiteDeleted, bu as SiteHardDeleted, bp as SiteMarkedAsTemplate, bq as SiteMarkedAsWixSite, bn as SitePublished, bz as SitePurgedExternally, bt as SiteRenamed, bj as SiteTransferred, bm as SiteUndeleted, bo as SiteUnpublished, by as SiteUrlChanged, t as SortOrder, b3 as Sorting, aa as SplitAction, u as State, S as Status, bw as StudioAssigned, bx as StudioUnassigned, az as TestUpdateApplicationAutomationRequest, aA as TestUpdateApplicationAutomationResponse, T as TimeUnit, ab as Trigger, bQ as TriggerConfigurationError, y as TriggerErrorType, bc as TriggerUsageSummary, bO as TriggerValidationError, bP as TriggerValidationErrorErrorOneOf, x as TriggerValidationErrorValidationErrorType, r as Type, ax as UpdateApplicationAutomationsRequest, ay as UpdateApplicationAutomationsResponse, aK as UpdateAutomationRequest, aL as UpdateAutomationResponse, bG as UpdateDraftAutomationRequest, aX as UpdatePreinstalledAutomationRequest, aY as UpdatePreinstalledAutomationResponse, am as UpdatedWithPreviousEntity, c9 as UpgradeCTA, bZ as ValidateAutomationByIdRequest, bM as ValidateAutomationRequest, z as ValidationErrorSeverity, E as ValidationErrorType, bN as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.js';
|
|
4
4
|
|
|
5
5
|
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
6
6
|
interface CreateAutomationSignature {
|
|
@@ -68,7 +68,7 @@ interface QueryAutomationsSignature {
|
|
|
68
68
|
*
|
|
69
69
|
* Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
70
70
|
*/
|
|
71
|
-
(
|
|
71
|
+
(): AutomationsQueryBuilder;
|
|
72
72
|
}
|
|
73
73
|
declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
|
|
74
74
|
interface CopyAutomationSignature {
|
|
@@ -199,4 +199,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
|
|
|
199
199
|
*/
|
|
200
200
|
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1>;
|
|
201
201
|
|
|
202
|
-
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse,
|
|
202
|
+
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
@@ -997,14 +997,11 @@ async function generatePreinstalledAutomation2(automation, options) {
|
|
|
997
997
|
throw transformedError;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
function queryAutomations2(
|
|
1001
|
-
const { httpClient, sideEffects } = arguments[
|
|
1000
|
+
function queryAutomations2() {
|
|
1001
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1002
1002
|
return (0, import_query_builder.queryBuilder)({
|
|
1003
1003
|
func: async (payload) => {
|
|
1004
|
-
const reqOpts = queryAutomations(
|
|
1005
|
-
...payload,
|
|
1006
|
-
...options ?? {}
|
|
1007
|
-
});
|
|
1004
|
+
const reqOpts = queryAutomations(payload);
|
|
1008
1005
|
sideEffects?.onSiteCall?.();
|
|
1009
1006
|
try {
|
|
1010
1007
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1016,7 +1013,7 @@ function queryAutomations2(options) {
|
|
|
1016
1013
|
}
|
|
1017
1014
|
},
|
|
1018
1015
|
requestTransformer: (query) => {
|
|
1019
|
-
const args = [query,
|
|
1016
|
+
const args = [query, {}];
|
|
1020
1017
|
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1021
1018
|
...args?.[1],
|
|
1022
1019
|
query: args?.[0]
|
|
@@ -1359,8 +1356,7 @@ function generatePreinstalledAutomation3(httpClient) {
|
|
|
1359
1356
|
);
|
|
1360
1357
|
}
|
|
1361
1358
|
function queryAutomations3(httpClient) {
|
|
1362
|
-
return (
|
|
1363
|
-
options,
|
|
1359
|
+
return () => queryAutomations2(
|
|
1364
1360
|
// @ts-ignore
|
|
1365
1361
|
{ httpClient }
|
|
1366
1362
|
);
|