@wix/auto_sdk_automations_automations-v-2 1.0.109 → 1.0.111
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 +13 -3
- package/build/cjs/index.js +68 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +19 -5
- package/build/cjs/index.typings.js +60 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -3
- package/build/cjs/meta.js +52 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +13 -3
- package/build/es/index.mjs +67 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +19 -5
- package/build/es/index.typings.mjs +59 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -3
- package/build/es/meta.mjs +51 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -3
- package/build/internal/cjs/index.js +68 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +19 -5
- package/build/internal/cjs/index.typings.js +60 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -3
- package/build/internal/cjs/meta.js +52 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -3
- package/build/internal/es/index.mjs +67 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +19 -5
- package/build/internal/es/index.typings.mjs +59 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -3
- package/build/internal/es/meta.mjs +51 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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
|
-
import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, UpdateAutomation, BulkDeleteAutomationsResponse, CreatePreinstalledAutomationOptions, CreatePreinstalledAutomationResponse, UpdatePreinstalledAutomationOptions, UpdatePreinstalledAutomationResponse, DeletePreinstalledAutomationOptions, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, 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, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata,
|
|
2
|
+
import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, UpdateAutomation, BulkDeleteAutomationsResponse, CreatePreinstalledAutomationOptions, CreatePreinstalledAutomationResponse, UpdatePreinstalledAutomationOptions, UpdatePreinstalledAutomationResponse, DeletePreinstalledAutomationOptions, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, CursorQuery, QueryPreinstalledAutomationsResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, 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, CreateAutomationRequest, CreateAutomationResponse, 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, 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, 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, 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 {
|
|
@@ -106,6 +106,15 @@ interface QueryPreinstalledAutomationsForAppSignature {
|
|
|
106
106
|
*/
|
|
107
107
|
(options?: QueryPreinstalledAutomationsForAppOptions): Promise<NonNullablePaths<QueryPreinstalledAutomationsForAppResponse, `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.archived`, 6>>;
|
|
108
108
|
}
|
|
109
|
+
declare function queryPreinstalledAutomations$1(httpClient: HttpClient): QueryPreinstalledAutomationsSignature;
|
|
110
|
+
interface QueryPreinstalledAutomationsSignature {
|
|
111
|
+
/**
|
|
112
|
+
* Allows querying preinstalled automations with flexible filters and pagination. useful to get older versions
|
|
113
|
+
* @param - Query.
|
|
114
|
+
* Learn more about [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language).
|
|
115
|
+
*/
|
|
116
|
+
(query: CursorQuery): Promise<NonNullablePaths<QueryPreinstalledAutomationsResponse, `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.archived`, 6>>;
|
|
117
|
+
}
|
|
109
118
|
declare function getAggregatedUsageInfo$1(httpClient: HttpClient): GetAggregatedUsageInfoSignature;
|
|
110
119
|
interface GetAggregatedUsageInfoSignature {
|
|
111
120
|
/**
|
|
@@ -245,6 +254,7 @@ declare const updatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeo
|
|
|
245
254
|
declare const deletePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof deletePreinstalledAutomation$1> & typeof deletePreinstalledAutomation$1>;
|
|
246
255
|
declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
|
|
247
256
|
declare const queryPreinstalledAutomationsForApp: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomationsForApp$1> & typeof queryPreinstalledAutomationsForApp$1>;
|
|
257
|
+
declare const queryPreinstalledAutomations: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomations$1> & typeof queryPreinstalledAutomations$1>;
|
|
248
258
|
declare const getAggregatedUsageInfo: MaybeContext<BuildRESTFunction<typeof getAggregatedUsageInfo$1> & typeof getAggregatedUsageInfo$1>;
|
|
249
259
|
declare const copyAutomation: MaybeContext<BuildRESTFunction<typeof copyAutomation$1> & typeof copyAutomation$1>;
|
|
250
260
|
declare const createDraftAutomation: MaybeContext<BuildRESTFunction<typeof createDraftAutomation$1> & typeof createDraftAutomation$1>;
|
|
@@ -272,4 +282,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
|
|
|
272
282
|
*/
|
|
273
283
|
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
|
|
274
284
|
|
|
275
|
-
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CreatePreinstalledAutomationOptions, CreatePreinstalledAutomationResponse, DeletePreinstalledAutomationOptions, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, UpdatePreinstalledAutomationOptions, UpdatePreinstalledAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, createPreinstalledAutomation, deleteAutomation, deleteDraftAutomation, deletePreinstalledAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, updatePreinstalledAutomation, validateAutomation, validateAutomationById };
|
|
285
|
+
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, 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, createDraftAutomation, createPreinstalledAutomation, deleteAutomation, deleteDraftAutomation, deletePreinstalledAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomations, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, updatePreinstalledAutomation, validateAutomation, validateAutomationById };
|
package/build/cjs/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __export(index_exports, {
|
|
|
65
65
|
publishDraftAutomation: () => publishDraftAutomation4,
|
|
66
66
|
queryAutomations: () => queryAutomations4,
|
|
67
67
|
queryAutomationsWithDrafts: () => queryAutomationsWithDrafts4,
|
|
68
|
+
queryPreinstalledAutomations: () => queryPreinstalledAutomations4,
|
|
68
69
|
queryPreinstalledAutomationsForApp: () => queryPreinstalledAutomationsForApp4,
|
|
69
70
|
updateAutomation: () => updateAutomation4,
|
|
70
71
|
updateDraftAutomation: () => updateDraftAutomation4,
|
|
@@ -550,6 +551,38 @@ function queryPreinstalledAutomationsForApp(payload) {
|
|
|
550
551
|
}
|
|
551
552
|
return __queryPreinstalledAutomationsForApp;
|
|
552
553
|
}
|
|
554
|
+
function queryPreinstalledAutomations(payload) {
|
|
555
|
+
function __queryPreinstalledAutomations({ host }) {
|
|
556
|
+
const metadata = {
|
|
557
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
558
|
+
method: "POST",
|
|
559
|
+
methodFqn: "wix.automations.v2.AutomationsService.QueryPreinstalledAutomations",
|
|
560
|
+
packageName: PACKAGE_NAME,
|
|
561
|
+
migrationOptions: {
|
|
562
|
+
optInTransformResponse: true
|
|
563
|
+
},
|
|
564
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
565
|
+
protoPath: "/v2/preinstalled-automations/global/query",
|
|
566
|
+
data: payload,
|
|
567
|
+
host
|
|
568
|
+
}),
|
|
569
|
+
data: payload,
|
|
570
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
571
|
+
{
|
|
572
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
573
|
+
paths: [
|
|
574
|
+
{ path: "automations.createdDate" },
|
|
575
|
+
{ path: "automations.updatedDate" },
|
|
576
|
+
{ path: "automations.draftUpdatedDate" },
|
|
577
|
+
{ path: "automations.autoArchivePolicy.archiveDate" }
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
])
|
|
581
|
+
};
|
|
582
|
+
return metadata;
|
|
583
|
+
}
|
|
584
|
+
return __queryPreinstalledAutomations;
|
|
585
|
+
}
|
|
553
586
|
function queryAutomations(payload) {
|
|
554
587
|
function __queryAutomations({ host }) {
|
|
555
588
|
const metadata = {
|
|
@@ -1480,6 +1513,29 @@ async function queryPreinstalledAutomationsForApp2(options) {
|
|
|
1480
1513
|
throw transformedError;
|
|
1481
1514
|
}
|
|
1482
1515
|
}
|
|
1516
|
+
async function queryPreinstalledAutomations2(query) {
|
|
1517
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1518
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
1519
|
+
const reqOpts = queryPreinstalledAutomations(payload);
|
|
1520
|
+
sideEffects?.onSiteCall?.();
|
|
1521
|
+
try {
|
|
1522
|
+
const result = await httpClient.request(reqOpts);
|
|
1523
|
+
sideEffects?.onSuccess?.(result);
|
|
1524
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1525
|
+
} catch (err) {
|
|
1526
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1527
|
+
err,
|
|
1528
|
+
{
|
|
1529
|
+
spreadPathsToArguments: {},
|
|
1530
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1531
|
+
singleArgumentUnchanged: false
|
|
1532
|
+
},
|
|
1533
|
+
["query"]
|
|
1534
|
+
);
|
|
1535
|
+
sideEffects?.onError?.(err);
|
|
1536
|
+
throw transformedError;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1483
1539
|
function queryAutomations2(options) {
|
|
1484
1540
|
const { httpClient, sideEffects } = arguments[1];
|
|
1485
1541
|
return (0, import_query_builder.queryBuilder)({
|
|
@@ -1553,7 +1609,9 @@ async function typedQueryAutomations(query, options) {
|
|
|
1553
1609
|
}
|
|
1554
1610
|
}
|
|
1555
1611
|
var utils = {
|
|
1556
|
-
|
|
1612
|
+
query: {
|
|
1613
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1614
|
+
}
|
|
1557
1615
|
};
|
|
1558
1616
|
async function getAggregatedUsageInfo2(options) {
|
|
1559
1617
|
const { httpClient, sideEffects } = arguments[1];
|
|
@@ -1986,6 +2044,13 @@ function queryPreinstalledAutomationsForApp3(httpClient) {
|
|
|
1986
2044
|
{ httpClient }
|
|
1987
2045
|
);
|
|
1988
2046
|
}
|
|
2047
|
+
function queryPreinstalledAutomations3(httpClient) {
|
|
2048
|
+
return (query) => queryPreinstalledAutomations2(
|
|
2049
|
+
query,
|
|
2050
|
+
// @ts-ignore
|
|
2051
|
+
{ httpClient }
|
|
2052
|
+
);
|
|
2053
|
+
}
|
|
1989
2054
|
function queryAutomations3(httpClient) {
|
|
1990
2055
|
return (options) => queryAutomations2(
|
|
1991
2056
|
options,
|
|
@@ -2181,6 +2246,7 @@ var updatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.cre
|
|
|
2181
2246
|
var deletePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePreinstalledAutomation3);
|
|
2182
2247
|
var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
|
|
2183
2248
|
var queryPreinstalledAutomationsForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomationsForApp3);
|
|
2249
|
+
var queryPreinstalledAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomations3);
|
|
2184
2250
|
var getAggregatedUsageInfo4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAggregatedUsageInfo3);
|
|
2185
2251
|
var copyAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copyAutomation3);
|
|
2186
2252
|
var createDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftAutomation3);
|
|
@@ -2253,6 +2319,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2253
2319
|
publishDraftAutomation,
|
|
2254
2320
|
queryAutomations,
|
|
2255
2321
|
queryAutomationsWithDrafts,
|
|
2322
|
+
queryPreinstalledAutomations,
|
|
2256
2323
|
queryPreinstalledAutomationsForApp,
|
|
2257
2324
|
updateAutomation,
|
|
2258
2325
|
updateDraftAutomation,
|