@wix/auto_sdk_data_collections 1.0.53 → 1.0.55

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 +325 -33
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +163 -1
  5. package/build/cjs/index.typings.js +325 -33
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +163 -1
  8. package/build/cjs/meta.js +325 -33
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +325 -33
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +163 -1
  14. package/build/es/index.typings.mjs +325 -33
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +163 -1
  17. package/build/es/meta.mjs +325 -33
  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 +325 -33
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +163 -1
  23. package/build/internal/cjs/index.typings.js +325 -33
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +163 -1
  26. package/build/internal/cjs/meta.js +325 -33
  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 +325 -33
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +163 -1
  32. package/build/internal/es/index.typings.mjs +325 -33
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +163 -1
  35. package/build/internal/es/meta.mjs +325 -33
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -263,6 +263,23 @@ interface FieldRangeValidationsOneOf {
263
263
  /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
264
264
  arraySizeRange?: ArraySizeRange;
265
265
  }
266
+ interface TextValidation {
267
+ /** Minimum permitted length for a text field. */
268
+ minLength?: number | null;
269
+ /** Maximum permitted length for a text field. */
270
+ maxLength?: number | null;
271
+ /** Custom regex pattern for string validation. */
272
+ pattern?: string | null;
273
+ }
274
+ interface EnumValues {
275
+ /**
276
+ * Allowed enum values for string fields.
277
+ * @minSize 1
278
+ * @maxSize 512
279
+ * @maxLength 1000
280
+ */
281
+ values?: string[];
282
+ }
266
283
  declare enum Type {
267
284
  UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
268
285
  /** Plain-text string. */
@@ -507,6 +524,149 @@ interface Slug {
507
524
  */
508
525
  pattern?: string;
509
526
  }
527
+ interface Text extends TextValidationOneOf {
528
+ textValidation?: TextValidation;
529
+ enumValues?: EnumValues;
530
+ defaultValue?: string | null;
531
+ }
532
+ /** @oneof */
533
+ interface TextValidationOneOf {
534
+ textValidation?: TextValidation;
535
+ enumValues?: EnumValues;
536
+ }
537
+ interface _Number {
538
+ defaultValue?: number | null;
539
+ /** Minimum permitted value for a numerical field. */
540
+ min?: number | null;
541
+ /** Maximum permitted value for a numerical field. */
542
+ max?: number | null;
543
+ }
544
+ interface _Date extends _DateDefaultValueOneOf, _DateMinDateOneOf, _DateMaxDateOneOf {
545
+ defaultValueFixed?: Date | null;
546
+ defaultValueOffsetFromNowInDays?: number | null;
547
+ minDateFixed?: Date | null;
548
+ minValueOffsetFromNowInDays?: number | null;
549
+ maxDateFixed?: Date | null;
550
+ maxValueOffsetFromNowInDays?: number | null;
551
+ }
552
+ /** @oneof */
553
+ interface _DateDefaultValueOneOf {
554
+ defaultValueFixed?: Date | null;
555
+ defaultValueOffsetFromNowInDays?: number | null;
556
+ }
557
+ /** @oneof */
558
+ interface _DateMinDateOneOf {
559
+ minDateFixed?: Date | null;
560
+ minValueOffsetFromNowInDays?: number | null;
561
+ }
562
+ /** @oneof */
563
+ interface _DateMaxDateOneOf {
564
+ maxDateFixed?: Date | null;
565
+ maxValueOffsetFromNowInDays?: number | null;
566
+ }
567
+ interface Datetime extends DatetimeDefaultValueOneOf, DatetimeMinDateOneOf, DatetimeMaxDateOneOf {
568
+ defaultValueFixed?: Date | null;
569
+ defaultValueOffsetFromNowInSeconds?: number | null;
570
+ minDateFixed?: Date | null;
571
+ minDateOffsetFromNowInDays?: number | null;
572
+ maxDateFixed?: Date | null;
573
+ maxDateOffsetFromNowInDays?: number | null;
574
+ }
575
+ /** @oneof */
576
+ interface DatetimeDefaultValueOneOf {
577
+ defaultValueFixed?: Date | null;
578
+ defaultValueOffsetFromNowInSeconds?: number | null;
579
+ }
580
+ /** @oneof */
581
+ interface DatetimeMinDateOneOf {
582
+ minDateFixed?: Date | null;
583
+ minDateOffsetFromNowInDays?: number | null;
584
+ }
585
+ /** @oneof */
586
+ interface DatetimeMaxDateOneOf {
587
+ maxDateFixed?: Date | null;
588
+ maxDateOffsetFromNowInDays?: number | null;
589
+ }
590
+ interface Image {
591
+ defaultValue?: string | null;
592
+ }
593
+ interface _Boolean {
594
+ defaultValue?: boolean | null;
595
+ }
596
+ interface Document {
597
+ defaultValue?: string | null;
598
+ }
599
+ interface Url {
600
+ /** @format WEB_URL */
601
+ defaultValue?: string | null;
602
+ textValidation?: TextValidation;
603
+ }
604
+ interface RichText {
605
+ defaultValue?: string | null;
606
+ /** Minimum permitted length for a string field. */
607
+ minLength?: number | null;
608
+ /** Maximum permitted length for a string field. */
609
+ maxLength?: number | null;
610
+ }
611
+ interface Video {
612
+ defaultValue?: string | null;
613
+ }
614
+ interface ArrayString {
615
+ defaultValue?: string[] | null;
616
+ /** Minimum permitted number of items in an array field. */
617
+ minSize?: number | null;
618
+ /** Maximum permitted number of items in an array field. */
619
+ maxSize?: number | null;
620
+ /** Minimum permitted length for a each item. */
621
+ minLengthForItem?: number | null;
622
+ /** Maximum permitted length for a each item. */
623
+ maxLengthForItem?: number | null;
624
+ }
625
+ interface ArrayDocument {
626
+ defaultValue?: string[] | null;
627
+ /** Minimum permitted number of items in an array field. */
628
+ minSize?: number | null;
629
+ /** Maximum permitted number of items in an array field. */
630
+ maxSize?: number | null;
631
+ }
632
+ interface Audio {
633
+ defaultValue?: string | null;
634
+ }
635
+ interface Time {
636
+ /**
637
+ * Time value in format: hh:mm (e.g., "00:00", "09:30").
638
+ * @minLength 5
639
+ * @maxLength 5
640
+ */
641
+ defaultValue?: string | null;
642
+ /**
643
+ * Minimum permitted time-of-day (inclusive).
644
+ * Time value in format: hh:mm (e.g., "00:00", "09:30").
645
+ * @minLength 5
646
+ * @maxLength 5
647
+ */
648
+ minTime?: string | null;
649
+ /**
650
+ * Maximum permitted time-of-day (inclusive).
651
+ * Time value in format: hh:mm (e.g., "23:59", "17:00").
652
+ * @minLength 5
653
+ * @maxLength 5
654
+ */
655
+ maxTime?: string | null;
656
+ }
657
+ interface RichContent {
658
+ defaultValue?: Record<string, any> | null;
659
+ }
660
+ interface MediaGallery {
661
+ defaultValue?: Record<string, any>[] | null;
662
+ }
663
+ interface Address {
664
+ defaultValue?: Record<string, any> | null;
665
+ }
666
+ interface Email {
667
+ /** @format EMAIL */
668
+ defaultValue?: string | null;
669
+ }
510
670
  interface NumberRange {
511
671
  /**
512
672
  * Minimum permitted value for a numerical field.
@@ -1563,6 +1723,8 @@ interface MessageEnvelope {
1563
1723
  identity?: IdentificationData;
1564
1724
  /** Stringify payload. */
1565
1725
  data?: string;
1726
+ /** Details related to the account */
1727
+ accountInfo?: AccountInfo;
1566
1728
  }
1567
1729
  interface IdentificationData extends IdentificationDataIdOneOf {
1568
1730
  /**
@@ -2015,4 +2177,4 @@ interface DeleteDataCollectionPluginOptions {
2015
2177
  */
2016
2178
  declare function patchDataCollectionField(dataCollectionId: string, field: Field): Promise<NonNullablePaths<PatchDataCollectionFieldResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
2017
2179
 
2018
- export { AccessLevel, type AccessLevelWithLiterals, type AccountInfo, type ActionEvent, type AddDataCollectionPluginOptions, type AddDataCollectionPluginRequest, type AddDataCollectionPluginResponse, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionPluginOptions, type DeleteDataCollectionPluginRequest, type DeleteDataCollectionPluginResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, PageLinkType, type PageLinkTypeWithLiterals, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type PatchDataCollection, type PatchDataCollectionFieldRequest, type PatchDataCollectionFieldResponse, type PatchDataCollectionRequest, type PatchDataCollectionResponse, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type Slug, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
2180
+ export { AccessLevel, type AccessLevelWithLiterals, type AccountInfo, type ActionEvent, type AddDataCollectionPluginOptions, type AddDataCollectionPluginRequest, type AddDataCollectionPluginResponse, type Address, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArrayDocument, type ArraySizeRange, type ArrayString, type Audio, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type Datetime, type DatetimeDefaultValueOneOf, type DatetimeMaxDateOneOf, type DatetimeMinDateOneOf, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionPluginOptions, type DeleteDataCollectionPluginRequest, type DeleteDataCollectionPluginResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type Document, type DomainEvent, type DomainEventBodyOneOf, type Email, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EnumValues, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MediaGallery, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, PageLinkType, type PageLinkTypeWithLiterals, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type PatchDataCollection, type PatchDataCollectionFieldRequest, type PatchDataCollectionFieldResponse, type PatchDataCollectionRequest, type PatchDataCollectionResponse, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, type RichContent, type RichText, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type Slug, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, type Text, type TextValidation, type TextValidationOneOf, type Time, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type Url, type UrlizedOnlyPattern, type UrlizedPluginOptions, type Video, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Boolean, type _Date, type _DateDefaultValueOneOf, type _DateMaxDateOneOf, type _DateMinDateOneOf, type _Number, type _Object, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, updateDataCollection, updateDataCollectionField };