@wix/auto_sdk_data_collections 1.0.112 → 1.0.113

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.
@@ -97,6 +97,11 @@ interface DataCollection {
97
97
  * @readonly
98
98
  */
99
99
  updatedDate?: Date | null;
100
+ /**
101
+ * Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`
102
+ * @readonly
103
+ */
104
+ allowedDataPermissions?: AllowedDataPermissions;
100
105
  /**
101
106
  * Deprecation metadata for this collection. App collections set this metadata to direct users to a replacement collection.
102
107
  * @readonly
@@ -378,6 +383,11 @@ declare enum Type {
378
383
  * @documentationMaturity preview
379
384
  */
380
385
  EMAIL = "EMAIL",
386
+ /**
387
+ * Secured media object with digital file metadata.
388
+ * @documentationMaturity preview
389
+ */
390
+ SECURED_MEDIA = "SECURED_MEDIA",
381
391
  /**
382
392
  * Media image object.
383
393
  * @documentationMaturity preview
@@ -390,7 +400,7 @@ declare enum Type {
390
400
  MEDIA_VECTOR_ART = "MEDIA_VECTOR_ART"
391
401
  }
392
402
  /** @enumType */
393
- type TypeWithLiterals = Type | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO' | 'SLUG' | 'EMAIL' | 'MEDIA_IMAGE' | 'MEDIA_VECTOR_ART';
403
+ type TypeWithLiterals = Type | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO' | 'SLUG' | 'EMAIL' | 'SECURED_MEDIA' | 'MEDIA_IMAGE' | 'MEDIA_VECTOR_ART';
394
404
  interface TypeMetadata extends TypeMetadataMetadataOneOf {
395
405
  /** Metadata for a reference field. */
396
406
  reference?: Reference;
@@ -402,6 +412,48 @@ interface TypeMetadata extends TypeMetadataMetadataOneOf {
402
412
  array?: _Array;
403
413
  /** Metadata for a page link field. */
404
414
  pageLink?: PageLink;
415
+ /** Metadata for a slug field. */
416
+ slug?: Slug;
417
+ /** Metadata for TEXT. */
418
+ text?: Text;
419
+ /** Metadata for NUMBER. */
420
+ number?: _Number;
421
+ /** Metadata for DATE. */
422
+ date?: _Date;
423
+ /** Metadata for DATETIME. */
424
+ datetime?: Datetime;
425
+ /** Metadata for IMAGE. */
426
+ image?: Image;
427
+ /** Metadata for BOOLEAN. */
428
+ boolean?: _Boolean;
429
+ /** Metadata for DOCUMENT. */
430
+ document?: Document;
431
+ /** Metadata for URL. */
432
+ url?: Url;
433
+ /** Metadata for RICH_TEXT. */
434
+ richText?: RichText;
435
+ /** Metadata for VIDEO. */
436
+ video?: Video;
437
+ /** Metadata for ARRAY_STRING. */
438
+ arrayString?: ArrayString;
439
+ /** Metadata for ARRAY_DOCUMENT. */
440
+ arrayDocument?: ArrayDocument;
441
+ /** Metadata for AUDIO. */
442
+ audio?: Audio;
443
+ /** Metadata for TIME. */
444
+ time?: Time;
445
+ /** Metadata for RICH_CONTENT. */
446
+ richContent?: RichContent;
447
+ /** Metadata for MEDIA_GALLERY. */
448
+ mediaGallery?: MediaGallery;
449
+ /** Metadata for ADDRESS. */
450
+ address?: Address;
451
+ /** Metadata for EMAIL. */
452
+ email?: Email;
453
+ /** Metadata for LEGACY_COLOR. */
454
+ legacyColor?: LegacyColor;
455
+ /** Metadata for MEDIA_IMAGE. */
456
+ mediaImage?: MediaImage;
405
457
  }
406
458
  /** @oneof */
407
459
  interface TypeMetadataMetadataOneOf {
@@ -415,6 +467,48 @@ interface TypeMetadataMetadataOneOf {
415
467
  array?: _Array;
416
468
  /** Metadata for a page link field. */
417
469
  pageLink?: PageLink;
470
+ /** Metadata for a slug field. */
471
+ slug?: Slug;
472
+ /** Metadata for TEXT. */
473
+ text?: Text;
474
+ /** Metadata for NUMBER. */
475
+ number?: _Number;
476
+ /** Metadata for DATE. */
477
+ date?: _Date;
478
+ /** Metadata for DATETIME. */
479
+ datetime?: Datetime;
480
+ /** Metadata for IMAGE. */
481
+ image?: Image;
482
+ /** Metadata for BOOLEAN. */
483
+ boolean?: _Boolean;
484
+ /** Metadata for DOCUMENT. */
485
+ document?: Document;
486
+ /** Metadata for URL. */
487
+ url?: Url;
488
+ /** Metadata for RICH_TEXT. */
489
+ richText?: RichText;
490
+ /** Metadata for VIDEO. */
491
+ video?: Video;
492
+ /** Metadata for ARRAY_STRING. */
493
+ arrayString?: ArrayString;
494
+ /** Metadata for ARRAY_DOCUMENT. */
495
+ arrayDocument?: ArrayDocument;
496
+ /** Metadata for AUDIO. */
497
+ audio?: Audio;
498
+ /** Metadata for TIME. */
499
+ time?: Time;
500
+ /** Metadata for RICH_CONTENT. */
501
+ richContent?: RichContent;
502
+ /** Metadata for MEDIA_GALLERY. */
503
+ mediaGallery?: MediaGallery;
504
+ /** Metadata for ADDRESS. */
505
+ address?: Address;
506
+ /** Metadata for EMAIL. */
507
+ email?: Email;
508
+ /** Metadata for LEGACY_COLOR. */
509
+ legacyColor?: LegacyColor;
510
+ /** Metadata for MEDIA_IMAGE. */
511
+ mediaImage?: MediaImage;
418
512
  }
419
513
  interface FieldCapabilities {
420
514
  /**
@@ -549,12 +643,19 @@ interface _Object {
549
643
  * @maxSize 1000
550
644
  */
551
645
  fields?: ObjectField[];
646
+ /** Value assigned when a data item omits this field. */
647
+ defaultValue?: Record<string, any> | null;
552
648
  }
553
649
  interface _Array {
554
650
  /** Element's data type. */
555
651
  elementType?: TypeWithLiterals;
556
652
  /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
557
653
  typeMetadata?: TypeMetadata;
654
+ /** Minimum permitted number of items in an array field. */
655
+ minSize?: number | null;
656
+ /** Maximum permitted number of items in an array field. */
657
+ maxSize?: number | null;
658
+ defaultValue?: any[];
558
659
  }
559
660
  interface PageLink {
560
661
  /** Calculation pattern used to generate the page link. Required for page link fields. */
@@ -564,6 +665,8 @@ interface PageLink {
564
665
  * @maxLength 1000
565
666
  */
566
667
  linkedRouterPage?: string | null;
668
+ /** Defines the type of the page link. */
669
+ pageLinkType?: PageLinkTypeWithLiterals;
567
670
  }
568
671
  interface Slug {
569
672
  /**
@@ -572,6 +675,11 @@ interface Slug {
572
675
  * @maxLength 1000
573
676
  */
574
677
  pattern?: string;
678
+ /** Minimum permitted length for a string field. */
679
+ minLength?: number | null;
680
+ /** Maximum permitted length for a string field. */
681
+ maxLength?: number | null;
682
+ defaultValue?: string | null;
575
683
  }
576
684
  interface Text extends TextValidationOneOf {
577
685
  /** Length and pattern constraints for the text value. */
@@ -1457,6 +1565,8 @@ interface GetDataCollectionRequest {
1457
1565
  * Default: `false`
1458
1566
  */
1459
1567
  consistentRead?: boolean;
1568
+ /** If set allowed for caller data permissions would be included in the response */
1569
+ includeAllowedDataPermissions?: boolean;
1460
1570
  /**
1461
1571
  * Top-level collection properties to return, using camelCase names, such as `displayName`.
1462
1572
  * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
@@ -1500,6 +1610,8 @@ interface ListDataCollectionsRequest {
1500
1610
  * Default: `false`
1501
1611
  */
1502
1612
  consistentRead?: boolean;
1613
+ /** If set allowed for caller data permissions would be included in the response */
1614
+ includeAllowedDataPermissions?: boolean;
1503
1615
  /**
1504
1616
  * Top-level collection properties to return, using camelCase names, such as `displayName`.
1505
1617
  * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
@@ -1582,6 +1694,8 @@ interface BulkGetDataCollectionsRequest {
1582
1694
  * Default: `false`
1583
1695
  */
1584
1696
  consistentRead?: boolean;
1697
+ /** If set allowed for caller data permissions would be included in the response */
1698
+ includeAllowedDataPermissions?: boolean;
1585
1699
  /**
1586
1700
  * Top-level collection properties to return, using camelCase names, such as `displayName`.
1587
1701
  * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.