@wix/auto_sdk_automations_action-catalog 1.0.18 → 1.0.19
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 +1 -1
- package/build/cjs/index.js +12 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +130 -20
- package/build/cjs/index.typings.js +12 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +129 -19
- package/build/cjs/meta.js +12 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +11 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +130 -20
- package/build/es/index.typings.mjs +11 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +129 -19
- package/build/es/meta.mjs +11 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +12 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +130 -20
- package/build/internal/cjs/index.typings.js +12 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +129 -19
- package/build/internal/cjs/meta.js +12 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +11 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +130 -20
- package/build/internal/es/index.typings.mjs +11 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +129 -19
- package/build/internal/es/meta.mjs +11 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -332,13 +332,13 @@ interface GetActionDynamicInputSchemaResponse {
|
|
|
332
332
|
}
|
|
333
333
|
interface ResolveActionsRequest {
|
|
334
334
|
/** Query options. */
|
|
335
|
-
query?:
|
|
335
|
+
query?: CommonQueryV2;
|
|
336
336
|
}
|
|
337
|
-
interface
|
|
337
|
+
interface CommonQueryV2 extends CommonQueryV2PagingMethodOneOf {
|
|
338
338
|
/** Paging options to limit and offset the number of items. */
|
|
339
|
-
paging?:
|
|
339
|
+
paging?: CommonPaging;
|
|
340
340
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
341
|
-
cursorPaging?:
|
|
341
|
+
cursorPaging?: CommonCursorPaging;
|
|
342
342
|
/**
|
|
343
343
|
* Filter object.
|
|
344
344
|
*
|
|
@@ -350,41 +350,41 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
350
350
|
*
|
|
351
351
|
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
352
352
|
*/
|
|
353
|
-
sort?:
|
|
353
|
+
sort?: CommonSorting[];
|
|
354
354
|
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
355
355
|
fields?: string[];
|
|
356
356
|
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
357
357
|
fieldsets?: string[];
|
|
358
358
|
}
|
|
359
359
|
/** @oneof */
|
|
360
|
-
interface
|
|
360
|
+
interface CommonQueryV2PagingMethodOneOf {
|
|
361
361
|
/** Paging options to limit and offset the number of items. */
|
|
362
|
-
paging?:
|
|
362
|
+
paging?: CommonPaging;
|
|
363
363
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
364
|
-
cursorPaging?:
|
|
364
|
+
cursorPaging?: CommonCursorPaging;
|
|
365
365
|
}
|
|
366
|
-
interface
|
|
366
|
+
interface CommonSorting {
|
|
367
367
|
/**
|
|
368
368
|
* Name of the field to sort by.
|
|
369
369
|
* @maxLength 512
|
|
370
370
|
*/
|
|
371
371
|
fieldName?: string;
|
|
372
372
|
/** Sort order. */
|
|
373
|
-
order?:
|
|
373
|
+
order?: CommonSortOrderWithLiterals;
|
|
374
374
|
}
|
|
375
|
-
declare enum
|
|
375
|
+
declare enum CommonSortOrder {
|
|
376
376
|
ASC = "ASC",
|
|
377
377
|
DESC = "DESC"
|
|
378
378
|
}
|
|
379
379
|
/** @enumType */
|
|
380
|
-
type
|
|
381
|
-
interface
|
|
380
|
+
type CommonSortOrderWithLiterals = CommonSortOrder | 'ASC' | 'DESC';
|
|
381
|
+
interface CommonPaging {
|
|
382
382
|
/** Number of items to load. */
|
|
383
383
|
limit?: number | null;
|
|
384
384
|
/** Number of items to skip in the current sort order. */
|
|
385
385
|
offset?: number | null;
|
|
386
386
|
}
|
|
387
|
-
interface
|
|
387
|
+
interface CommonCursorPaging {
|
|
388
388
|
/**
|
|
389
389
|
* Maximum number of items to return in the results.
|
|
390
390
|
* @max 100
|
|
@@ -403,9 +403,9 @@ interface ResolveActionsResponse {
|
|
|
403
403
|
/** Retrieved actions. */
|
|
404
404
|
actions?: Action[];
|
|
405
405
|
/** Paging metadata of the response. */
|
|
406
|
-
paging?:
|
|
406
|
+
paging?: CommonPagingMetadataV2;
|
|
407
407
|
}
|
|
408
|
-
interface
|
|
408
|
+
interface CommonPagingMetadataV2 {
|
|
409
409
|
/** Number of items returned in the response. */
|
|
410
410
|
count?: number | null;
|
|
411
411
|
/** Offset that was requested. */
|
|
@@ -415,9 +415,9 @@ interface PagingMetadataV2 {
|
|
|
415
415
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
416
416
|
tooManyToCount?: boolean | null;
|
|
417
417
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
418
|
-
cursors?:
|
|
418
|
+
cursors?: CommonCursors;
|
|
419
419
|
}
|
|
420
|
-
interface
|
|
420
|
+
interface CommonCursors {
|
|
421
421
|
/**
|
|
422
422
|
* Cursor string pointing to the next page in the list of results.
|
|
423
423
|
* @maxLength 16000
|
|
@@ -607,6 +607,116 @@ interface AdditionalInformationRequiredInfo {
|
|
|
607
607
|
*/
|
|
608
608
|
feedback?: string;
|
|
609
609
|
}
|
|
610
|
+
interface QueryActionsRequest {
|
|
611
|
+
/** Query options. */
|
|
612
|
+
query?: QueryV2;
|
|
613
|
+
}
|
|
614
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
615
|
+
/** Paging options to limit and skip the number of items. */
|
|
616
|
+
paging?: Paging;
|
|
617
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
618
|
+
cursorPaging?: CursorPaging;
|
|
619
|
+
/**
|
|
620
|
+
* Filter object in the following format:
|
|
621
|
+
* `"filter" : {
|
|
622
|
+
* "fieldName1": "value1",
|
|
623
|
+
* "fieldName2":{"$operator":"value2"}
|
|
624
|
+
* }`
|
|
625
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
626
|
+
*/
|
|
627
|
+
filter?: Record<string, any> | null;
|
|
628
|
+
/**
|
|
629
|
+
* Sort object in the following format:
|
|
630
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
631
|
+
* @maxSize 4
|
|
632
|
+
*/
|
|
633
|
+
sort?: Sorting[];
|
|
634
|
+
/**
|
|
635
|
+
* Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
636
|
+
* @maxLength 200
|
|
637
|
+
* @maxSize 20
|
|
638
|
+
*/
|
|
639
|
+
fields?: string[];
|
|
640
|
+
/**
|
|
641
|
+
* Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
642
|
+
* @maxLength 200
|
|
643
|
+
* @maxSize 20
|
|
644
|
+
*/
|
|
645
|
+
fieldsets?: string[];
|
|
646
|
+
}
|
|
647
|
+
/** @oneof */
|
|
648
|
+
interface QueryV2PagingMethodOneOf {
|
|
649
|
+
/** Paging options to limit and skip the number of items. */
|
|
650
|
+
paging?: Paging;
|
|
651
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
652
|
+
cursorPaging?: CursorPaging;
|
|
653
|
+
}
|
|
654
|
+
interface Sorting {
|
|
655
|
+
/**
|
|
656
|
+
* Name of the field to sort by.
|
|
657
|
+
* @maxLength 512
|
|
658
|
+
*/
|
|
659
|
+
fieldName?: string;
|
|
660
|
+
/** Sort order. */
|
|
661
|
+
order?: SortOrderWithLiterals;
|
|
662
|
+
}
|
|
663
|
+
declare enum SortOrder {
|
|
664
|
+
ASC = "ASC",
|
|
665
|
+
DESC = "DESC"
|
|
666
|
+
}
|
|
667
|
+
/** @enumType */
|
|
668
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
669
|
+
interface Paging {
|
|
670
|
+
/** Number of items to load. */
|
|
671
|
+
limit?: number | null;
|
|
672
|
+
/** Number of items to skip in the current sort order. */
|
|
673
|
+
offset?: number | null;
|
|
674
|
+
}
|
|
675
|
+
interface CursorPaging {
|
|
676
|
+
/**
|
|
677
|
+
* Maximum number of items to return in the results.
|
|
678
|
+
* @max 500
|
|
679
|
+
*/
|
|
680
|
+
limit?: number | null;
|
|
681
|
+
/**
|
|
682
|
+
* Pointer to the next or previous page in the list of results.
|
|
683
|
+
*
|
|
684
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
685
|
+
* Not relevant for the first request.
|
|
686
|
+
* @maxLength 64000
|
|
687
|
+
*/
|
|
688
|
+
cursor?: string | null;
|
|
689
|
+
}
|
|
690
|
+
interface QueryActionsResponse {
|
|
691
|
+
/** Retrieved actions. */
|
|
692
|
+
actions?: Action[];
|
|
693
|
+
/** Paging metadata of the response. */
|
|
694
|
+
pagingMetadata?: PagingMetadataV2;
|
|
695
|
+
}
|
|
696
|
+
interface PagingMetadataV2 {
|
|
697
|
+
/** Number of items returned in the response. */
|
|
698
|
+
count?: number | null;
|
|
699
|
+
/** Offset that was requested. */
|
|
700
|
+
offset?: number | null;
|
|
701
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
702
|
+
total?: number | null;
|
|
703
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
704
|
+
tooManyToCount?: boolean | null;
|
|
705
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
706
|
+
cursors?: Cursors;
|
|
707
|
+
}
|
|
708
|
+
interface Cursors {
|
|
709
|
+
/**
|
|
710
|
+
* Cursor string pointing to the next page in the list of results.
|
|
711
|
+
* @maxLength 64000
|
|
712
|
+
*/
|
|
713
|
+
next?: string | null;
|
|
714
|
+
/**
|
|
715
|
+
* Cursor pointing to the previous page in the list of results.
|
|
716
|
+
* @maxLength 64000
|
|
717
|
+
*/
|
|
718
|
+
prev?: string | null;
|
|
719
|
+
}
|
|
610
720
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
611
721
|
createdEvent?: EntityCreatedEvent;
|
|
612
722
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -930,7 +1040,7 @@ interface GetActionDynamicInputSchemaOptions {
|
|
|
930
1040
|
declare function resolveActions(options?: ResolveActionsOptions): Promise<NonNullablePaths<ResolveActionsResponse, `actions` | `actions.${number}.appId` | `actions.${number}.actionKey` | `actions.${number}.implementedMethods.validateConfiguration` | `actions.${number}.implementedMethods.duplicateInputMapping` | `actions.${number}.implementedMethods.generateApplicationAutomationInputMapping` | `actions.${number}.implementedMethods.getQuotaInfo` | `actions.${number}.implementedMethods.onBeforeSave` | `actions.${number}.implementedMethods.onReset` | `actions.${number}.implementedMethods.generateActionInputMappingFromTemplate` | `actions.${number}.implementedMethods.onRemove` | `actions.${number}.implementedMethods.getDynamicInputSchema` | `actions.${number}.implementedMethods.mergeInputMappings` | `actions.${number}.implementedMethods.getDynamicOutputSchema` | `actions.${number}.implementedMethods.generateInputMappingFromIntent` | `actions.${number}.executionType` | `actions.${number}.interfaceConfiguration.type`, 5>>;
|
|
931
1041
|
interface ResolveActionsOptions {
|
|
932
1042
|
/** Query options. */
|
|
933
|
-
query?:
|
|
1043
|
+
query?: CommonQueryV2;
|
|
934
1044
|
}
|
|
935
1045
|
/**
|
|
936
1046
|
* Get action input mapping copy
|
|
@@ -1003,4 +1113,4 @@ interface GetActionDynamicOutputSchemaOptions {
|
|
|
1003
1113
|
*/
|
|
1004
1114
|
declare function bulkGetActionDynamicOutputSchemas(actionsInputMappings: ActionInputMappings[]): Promise<NonNullablePaths<BulkGetActionDynamicOutputSchemasResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
1005
1115
|
|
|
1006
|
-
export { type Action, type ActionEvent, type ActionInputMappings, type ActionSpecInfo, type AdditionalInformationRequiredInfo, type ApplicationError, type BulkActionMetadata, type BulkActionOutputSchemaResult, type BulkGetActionDynamicOutputSchemasRequest, type BulkGetActionDynamicOutputSchemasResponse, type CopyInputMappingOptions, type CopyInputMappingRequest, type CopyInputMappingResponse, type CreateActionOptions, type CreateActionRequest, type CreateActionResponse, type CursorPaging, type Cursors, type DeleteActionOptions, type DeleteActionRequest, type DeleteActionResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ExecutionType, type ExecutionTypeWithLiterals, ExperimentActionType, type ExperimentActionTypeWithLiterals, type FocalPoint, type GenerateInputMappingFromIntentRequest, type GenerateInputMappingFromIntentResponse, type GenerateInputMappingFromIntentResponseStatusInfoOneOf, type GenericOptions, type GetActionDynamicInputSchemaOptions, type GetActionDynamicInputSchemaRequest, type GetActionDynamicInputSchemaResponse, type GetActionDynamicOutputSchemaOptions, type GetActionDynamicOutputSchemaRequest, type GetActionDynamicOutputSchemaResponse, type GetRuntimeActionIdentifiers, type GetRuntimeActionRequest, type GetRuntimeActionResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImplementedMethods, type InputMappingGeneratedInfo, type InterfaceConfiguration, type InterfaceConfigurationOptionsOneOf, type ItemMetadata, type MessageEnvelope, type Metadata, type MigrateComponentToActionRequest, type MigrateComponentToActionResponse, type Paging, type PagingMetadataV2, type QueryV2, type QueryV2PagingMethodOneOf, type ResolveActionsOptions, type ResolveActionsRequest, type ResolveActionsResponse, type RestoreInfo, type RetryExperimentCreation, SortOrder, type SortOrderWithLiterals, type Sorting, type Source, type SourceOptionsOneOf, SourceType, type SourceTypeWithLiterals, Status, type StatusWithLiterals, Type, type TypeWithLiterals, type UpdateActionOptions, type UpdateActionRequest, type UpdateActionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WidgetComponentOptions, type WixApiOptions, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getRuntimeAction, resolveActions, updateAction };
|
|
1116
|
+
export { type Action, type ActionEvent, type ActionInputMappings, type ActionSpecInfo, type AdditionalInformationRequiredInfo, type ApplicationError, type BulkActionMetadata, type BulkActionOutputSchemaResult, type BulkGetActionDynamicOutputSchemasRequest, type BulkGetActionDynamicOutputSchemasResponse, type CommonCursorPaging, type CommonCursors, type CommonPaging, type CommonPagingMetadataV2, type CommonQueryV2, type CommonQueryV2PagingMethodOneOf, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, type CopyInputMappingOptions, type CopyInputMappingRequest, type CopyInputMappingResponse, type CreateActionOptions, type CreateActionRequest, type CreateActionResponse, type CursorPaging, type Cursors, type DeleteActionOptions, type DeleteActionRequest, type DeleteActionResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ExecutionType, type ExecutionTypeWithLiterals, ExperimentActionType, type ExperimentActionTypeWithLiterals, type FocalPoint, type GenerateInputMappingFromIntentRequest, type GenerateInputMappingFromIntentResponse, type GenerateInputMappingFromIntentResponseStatusInfoOneOf, type GenericOptions, type GetActionDynamicInputSchemaOptions, type GetActionDynamicInputSchemaRequest, type GetActionDynamicInputSchemaResponse, type GetActionDynamicOutputSchemaOptions, type GetActionDynamicOutputSchemaRequest, type GetActionDynamicOutputSchemaResponse, type GetRuntimeActionIdentifiers, type GetRuntimeActionRequest, type GetRuntimeActionResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImplementedMethods, type InputMappingGeneratedInfo, type InterfaceConfiguration, type InterfaceConfigurationOptionsOneOf, type ItemMetadata, type MessageEnvelope, type Metadata, type MigrateComponentToActionRequest, type MigrateComponentToActionResponse, type Paging, type PagingMetadataV2, type QueryActionsRequest, type QueryActionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ResolveActionsOptions, type ResolveActionsRequest, type ResolveActionsResponse, type RestoreInfo, type RetryExperimentCreation, SortOrder, type SortOrderWithLiterals, type Sorting, type Source, type SourceOptionsOneOf, SourceType, type SourceTypeWithLiterals, Status, type StatusWithLiterals, Type, type TypeWithLiterals, type UpdateActionOptions, type UpdateActionRequest, type UpdateActionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WidgetComponentOptions, type WixApiOptions, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getRuntimeAction, resolveActions, updateAction };
|
|
@@ -401,17 +401,22 @@ var ExperimentActionType = /* @__PURE__ */ ((ExperimentActionType2) => {
|
|
|
401
401
|
ExperimentActionType2["DELETE_COMPONENT"] = "DELETE_COMPONENT";
|
|
402
402
|
return ExperimentActionType2;
|
|
403
403
|
})(ExperimentActionType || {});
|
|
404
|
-
var
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
return
|
|
408
|
-
})(
|
|
404
|
+
var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
|
|
405
|
+
CommonSortOrder2["ASC"] = "ASC";
|
|
406
|
+
CommonSortOrder2["DESC"] = "DESC";
|
|
407
|
+
return CommonSortOrder2;
|
|
408
|
+
})(CommonSortOrder || {});
|
|
409
409
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
410
410
|
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
411
411
|
Status2["INPUT_MAPPING_GENERATED"] = "INPUT_MAPPING_GENERATED";
|
|
412
412
|
Status2["ADDITIONAL_INFORMATION_REQUIRED"] = "ADDITIONAL_INFORMATION_REQUIRED";
|
|
413
413
|
return Status2;
|
|
414
414
|
})(Status || {});
|
|
415
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
416
|
+
SortOrder2["ASC"] = "ASC";
|
|
417
|
+
SortOrder2["DESC"] = "DESC";
|
|
418
|
+
return SortOrder2;
|
|
419
|
+
})(SortOrder || {});
|
|
415
420
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
416
421
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
417
422
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -731,6 +736,7 @@ async function bulkGetActionDynamicOutputSchemas2(actionsInputMappings) {
|
|
|
731
736
|
}
|
|
732
737
|
}
|
|
733
738
|
export {
|
|
739
|
+
CommonSortOrder,
|
|
734
740
|
ExecutionType,
|
|
735
741
|
ExperimentActionType,
|
|
736
742
|
SortOrder,
|