@wix/auto_sdk_data_collections 1.0.54 → 1.0.56
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 +325 -33
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +161 -1
- package/build/cjs/index.typings.js +325 -33
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +161 -1
- package/build/cjs/meta.js +325 -33
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +325 -33
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +161 -1
- package/build/es/index.typings.mjs +325 -33
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +161 -1
- package/build/es/meta.mjs +325 -33
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +325 -33
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +161 -1
- package/build/internal/cjs/index.typings.js +325 -33
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +161 -1
- package/build/internal/cjs/meta.js +325 -33
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +325 -33
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +161 -1
- package/build/internal/es/index.typings.mjs +325 -33
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +161 -1
- package/build/internal/es/meta.mjs +325 -33
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -279,6 +279,23 @@ interface FieldRangeValidationsOneOf {
|
|
|
279
279
|
/** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
|
|
280
280
|
arraySizeRange?: ArraySizeRange;
|
|
281
281
|
}
|
|
282
|
+
interface TextValidation {
|
|
283
|
+
/** Minimum permitted length for a text field. */
|
|
284
|
+
minLength?: number | null;
|
|
285
|
+
/** Maximum permitted length for a text field. */
|
|
286
|
+
maxLength?: number | null;
|
|
287
|
+
/** Custom regex pattern for string validation. */
|
|
288
|
+
pattern?: string | null;
|
|
289
|
+
}
|
|
290
|
+
interface EnumValues {
|
|
291
|
+
/**
|
|
292
|
+
* Allowed enum values for string fields.
|
|
293
|
+
* @minSize 1
|
|
294
|
+
* @maxSize 512
|
|
295
|
+
* @maxLength 1000
|
|
296
|
+
*/
|
|
297
|
+
values?: string[];
|
|
298
|
+
}
|
|
282
299
|
declare enum Type {
|
|
283
300
|
UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
|
|
284
301
|
/** Plain-text string. */
|
|
@@ -523,6 +540,149 @@ interface Slug {
|
|
|
523
540
|
*/
|
|
524
541
|
pattern?: string;
|
|
525
542
|
}
|
|
543
|
+
interface Text extends TextValidationOneOf {
|
|
544
|
+
textValidation?: TextValidation;
|
|
545
|
+
enumValues?: EnumValues;
|
|
546
|
+
defaultValue?: string | null;
|
|
547
|
+
}
|
|
548
|
+
/** @oneof */
|
|
549
|
+
interface TextValidationOneOf {
|
|
550
|
+
textValidation?: TextValidation;
|
|
551
|
+
enumValues?: EnumValues;
|
|
552
|
+
}
|
|
553
|
+
interface _Number {
|
|
554
|
+
defaultValue?: number | null;
|
|
555
|
+
/** Minimum permitted value for a numerical field. */
|
|
556
|
+
min?: number | null;
|
|
557
|
+
/** Maximum permitted value for a numerical field. */
|
|
558
|
+
max?: number | null;
|
|
559
|
+
}
|
|
560
|
+
interface _Date extends _DateDefaultValueOneOf, _DateMinDateOneOf, _DateMaxDateOneOf {
|
|
561
|
+
defaultValueFixed?: Date | null;
|
|
562
|
+
defaultValueOffsetFromNowInDays?: number | null;
|
|
563
|
+
minDateFixed?: Date | null;
|
|
564
|
+
minValueOffsetFromNowInDays?: number | null;
|
|
565
|
+
maxDateFixed?: Date | null;
|
|
566
|
+
maxValueOffsetFromNowInDays?: number | null;
|
|
567
|
+
}
|
|
568
|
+
/** @oneof */
|
|
569
|
+
interface _DateDefaultValueOneOf {
|
|
570
|
+
defaultValueFixed?: Date | null;
|
|
571
|
+
defaultValueOffsetFromNowInDays?: number | null;
|
|
572
|
+
}
|
|
573
|
+
/** @oneof */
|
|
574
|
+
interface _DateMinDateOneOf {
|
|
575
|
+
minDateFixed?: Date | null;
|
|
576
|
+
minValueOffsetFromNowInDays?: number | null;
|
|
577
|
+
}
|
|
578
|
+
/** @oneof */
|
|
579
|
+
interface _DateMaxDateOneOf {
|
|
580
|
+
maxDateFixed?: Date | null;
|
|
581
|
+
maxValueOffsetFromNowInDays?: number | null;
|
|
582
|
+
}
|
|
583
|
+
interface Datetime extends DatetimeDefaultValueOneOf, DatetimeMinDateOneOf, DatetimeMaxDateOneOf {
|
|
584
|
+
defaultValueFixed?: Date | null;
|
|
585
|
+
defaultValueOffsetFromNowInSeconds?: number | null;
|
|
586
|
+
minDateFixed?: Date | null;
|
|
587
|
+
minDateOffsetFromNowInDays?: number | null;
|
|
588
|
+
maxDateFixed?: Date | null;
|
|
589
|
+
maxDateOffsetFromNowInDays?: number | null;
|
|
590
|
+
}
|
|
591
|
+
/** @oneof */
|
|
592
|
+
interface DatetimeDefaultValueOneOf {
|
|
593
|
+
defaultValueFixed?: Date | null;
|
|
594
|
+
defaultValueOffsetFromNowInSeconds?: number | null;
|
|
595
|
+
}
|
|
596
|
+
/** @oneof */
|
|
597
|
+
interface DatetimeMinDateOneOf {
|
|
598
|
+
minDateFixed?: Date | null;
|
|
599
|
+
minDateOffsetFromNowInDays?: number | null;
|
|
600
|
+
}
|
|
601
|
+
/** @oneof */
|
|
602
|
+
interface DatetimeMaxDateOneOf {
|
|
603
|
+
maxDateFixed?: Date | null;
|
|
604
|
+
maxDateOffsetFromNowInDays?: number | null;
|
|
605
|
+
}
|
|
606
|
+
interface Image {
|
|
607
|
+
defaultValue?: string | null;
|
|
608
|
+
}
|
|
609
|
+
interface _Boolean {
|
|
610
|
+
defaultValue?: boolean | null;
|
|
611
|
+
}
|
|
612
|
+
interface Document {
|
|
613
|
+
defaultValue?: string | null;
|
|
614
|
+
}
|
|
615
|
+
interface Url {
|
|
616
|
+
/** @format WEB_URL */
|
|
617
|
+
defaultValue?: string | null;
|
|
618
|
+
textValidation?: TextValidation;
|
|
619
|
+
}
|
|
620
|
+
interface RichText {
|
|
621
|
+
defaultValue?: string | null;
|
|
622
|
+
/** Minimum permitted length for a string field. */
|
|
623
|
+
minLength?: number | null;
|
|
624
|
+
/** Maximum permitted length for a string field. */
|
|
625
|
+
maxLength?: number | null;
|
|
626
|
+
}
|
|
627
|
+
interface Video {
|
|
628
|
+
defaultValue?: string | null;
|
|
629
|
+
}
|
|
630
|
+
interface ArrayString {
|
|
631
|
+
defaultValue?: string[] | null;
|
|
632
|
+
/** Minimum permitted number of items in an array field. */
|
|
633
|
+
minSize?: number | null;
|
|
634
|
+
/** Maximum permitted number of items in an array field. */
|
|
635
|
+
maxSize?: number | null;
|
|
636
|
+
/** Minimum permitted length for a each item. */
|
|
637
|
+
minLengthForItem?: number | null;
|
|
638
|
+
/** Maximum permitted length for a each item. */
|
|
639
|
+
maxLengthForItem?: number | null;
|
|
640
|
+
}
|
|
641
|
+
interface ArrayDocument {
|
|
642
|
+
defaultValue?: string[] | null;
|
|
643
|
+
/** Minimum permitted number of items in an array field. */
|
|
644
|
+
minSize?: number | null;
|
|
645
|
+
/** Maximum permitted number of items in an array field. */
|
|
646
|
+
maxSize?: number | null;
|
|
647
|
+
}
|
|
648
|
+
interface Audio {
|
|
649
|
+
defaultValue?: string | null;
|
|
650
|
+
}
|
|
651
|
+
interface Time {
|
|
652
|
+
/**
|
|
653
|
+
* Time value in format: hh:mm (e.g., "00:00", "09:30").
|
|
654
|
+
* @minLength 5
|
|
655
|
+
* @maxLength 5
|
|
656
|
+
*/
|
|
657
|
+
defaultValue?: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* Minimum permitted time-of-day (inclusive).
|
|
660
|
+
* Time value in format: hh:mm (e.g., "00:00", "09:30").
|
|
661
|
+
* @minLength 5
|
|
662
|
+
* @maxLength 5
|
|
663
|
+
*/
|
|
664
|
+
minTime?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* Maximum permitted time-of-day (inclusive).
|
|
667
|
+
* Time value in format: hh:mm (e.g., "23:59", "17:00").
|
|
668
|
+
* @minLength 5
|
|
669
|
+
* @maxLength 5
|
|
670
|
+
*/
|
|
671
|
+
maxTime?: string | null;
|
|
672
|
+
}
|
|
673
|
+
interface RichContent {
|
|
674
|
+
defaultValue?: Record<string, any> | null;
|
|
675
|
+
}
|
|
676
|
+
interface MediaGallery {
|
|
677
|
+
defaultValue?: Record<string, any>[] | null;
|
|
678
|
+
}
|
|
679
|
+
interface Address {
|
|
680
|
+
defaultValue?: Record<string, any> | null;
|
|
681
|
+
}
|
|
682
|
+
interface Email {
|
|
683
|
+
/** @format EMAIL */
|
|
684
|
+
defaultValue?: string | null;
|
|
685
|
+
}
|
|
526
686
|
interface NumberRange {
|
|
527
687
|
/**
|
|
528
688
|
* Minimum permitted value for a numerical field.
|
|
@@ -2082,4 +2242,4 @@ interface DeleteDataCollectionPluginOptions {
|
|
|
2082
2242
|
*/
|
|
2083
2243
|
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>>;
|
|
2084
2244
|
|
|
2085
|
-
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, restoreDataCollection, updateDataCollection, updateDataCollectionField };
|
|
2245
|
+
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, restoreDataCollection, updateDataCollection, updateDataCollectionField };
|