@wix/auto_sdk_automations_action-catalog 1.0.17 → 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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +12 -5
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +130 -20
  5. package/build/cjs/index.typings.js +12 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +426 -19
  8. package/build/cjs/meta.js +66 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +11 -5
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +130 -20
  14. package/build/es/index.typings.mjs +11 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +426 -19
  17. package/build/es/meta.mjs +58 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +12 -5
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +130 -20
  23. package/build/internal/cjs/index.typings.js +12 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +426 -19
  26. package/build/internal/cjs/meta.js +66 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +11 -5
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +130 -20
  32. package/build/internal/es/index.typings.mjs +11 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +426 -19
  35. package/build/internal/es/meta.mjs +58 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -332,13 +332,13 @@ interface GetActionDynamicInputSchemaResponse {
332
332
  }
333
333
  interface ResolveActionsRequest {
334
334
  /** Query options. */
335
- query?: QueryV2;
335
+ query?: CommonQueryV2;
336
336
  }
337
- interface QueryV2 extends QueryV2PagingMethodOneOf {
337
+ interface CommonQueryV2 extends CommonQueryV2PagingMethodOneOf {
338
338
  /** Paging options to limit and offset the number of items. */
339
- paging?: 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?: 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?: Sorting[];
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 QueryV2PagingMethodOneOf {
360
+ interface CommonQueryV2PagingMethodOneOf {
361
361
  /** Paging options to limit and offset the number of items. */
362
- paging?: 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?: CursorPaging;
364
+ cursorPaging?: CommonCursorPaging;
365
365
  }
366
- interface Sorting {
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?: SortOrderWithLiterals;
373
+ order?: CommonSortOrderWithLiterals;
374
374
  }
375
- declare enum SortOrder {
375
+ declare enum CommonSortOrder {
376
376
  ASC = "ASC",
377
377
  DESC = "DESC"
378
378
  }
379
379
  /** @enumType */
380
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
381
- interface Paging {
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 CursorPaging {
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?: PagingMetadataV2;
406
+ paging?: CommonPagingMetadataV2;
407
407
  }
408
- interface PagingMetadataV2 {
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?: Cursors;
418
+ cursors?: CommonCursors;
419
419
  }
420
- interface Cursors {
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?: QueryV2;
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 };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
+ CommonSortOrder: () => CommonSortOrder,
23
24
  ExecutionType: () => ExecutionType,
24
25
  ExperimentActionType: () => ExperimentActionType,
25
26
  SortOrder: () => SortOrder,
@@ -439,17 +440,22 @@ var ExperimentActionType = /* @__PURE__ */ ((ExperimentActionType2) => {
439
440
  ExperimentActionType2["DELETE_COMPONENT"] = "DELETE_COMPONENT";
440
441
  return ExperimentActionType2;
441
442
  })(ExperimentActionType || {});
442
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
443
- SortOrder2["ASC"] = "ASC";
444
- SortOrder2["DESC"] = "DESC";
445
- return SortOrder2;
446
- })(SortOrder || {});
443
+ var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
444
+ CommonSortOrder2["ASC"] = "ASC";
445
+ CommonSortOrder2["DESC"] = "DESC";
446
+ return CommonSortOrder2;
447
+ })(CommonSortOrder || {});
447
448
  var Status = /* @__PURE__ */ ((Status2) => {
448
449
  Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
449
450
  Status2["INPUT_MAPPING_GENERATED"] = "INPUT_MAPPING_GENERATED";
450
451
  Status2["ADDITIONAL_INFORMATION_REQUIRED"] = "ADDITIONAL_INFORMATION_REQUIRED";
451
452
  return Status2;
452
453
  })(Status || {});
454
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
455
+ SortOrder2["ASC"] = "ASC";
456
+ SortOrder2["DESC"] = "DESC";
457
+ return SortOrder2;
458
+ })(SortOrder || {});
453
459
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
454
460
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
455
461
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -770,6 +776,7 @@ async function bulkGetActionDynamicOutputSchemas2(actionsInputMappings) {
770
776
  }
771
777
  // Annotate the CommonJS export names for ESM import in node:
772
778
  0 && (module.exports = {
779
+ CommonSortOrder,
773
780
  ExecutionType,
774
781
  ExperimentActionType,
775
782
  SortOrder,