@wix/auto_sdk_data_collections 1.0.69 → 1.0.71

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 +7 -6
  2. package/build/cjs/index.js +0 -8
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +22 -30
  5. package/build/cjs/index.typings.js +0 -8
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +12 -23
  8. package/build/cjs/meta.js +0 -8
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +7 -6
  11. package/build/es/index.mjs +0 -8
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +22 -30
  14. package/build/es/index.typings.mjs +0 -8
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +12 -23
  17. package/build/es/meta.mjs +0 -8
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +7 -6
  20. package/build/internal/cjs/index.js +0 -8
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +22 -30
  23. package/build/internal/cjs/index.typings.js +0 -8
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +12 -23
  26. package/build/internal/cjs/meta.js +0 -8
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +7 -6
  29. package/build/internal/es/index.mjs +0 -8
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +22 -30
  32. package/build/internal/es/index.typings.mjs +0 -8
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +12 -23
  35. package/build/internal/es/meta.mjs +0 -8
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -4,7 +4,8 @@ import '@wix/sdk-types';
4
4
  /** A data collection determines the structure of data to be stored in a database. */
5
5
  interface DataCollection {
6
6
  /**
7
- * Collection ID. For example, `my-first-collection`. May include a namespace.
7
+ * [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`.
8
+ * For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
8
9
  * @immutable
9
10
  * @maxLength 256
10
11
  */
@@ -51,6 +52,7 @@ interface DataCollection {
51
52
  displayField?: string | null;
52
53
  /**
53
54
  * Capabilities the collection supports.
55
+ * Capabilities are set by default. Values depend on the collection type.
54
56
  * @readonly
55
57
  */
56
58
  capabilities?: CollectionCapabilities;
@@ -123,7 +125,7 @@ interface CollectionCapabilities {
123
125
  /**
124
126
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
125
127
  *
126
- * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
128
+ * > **Note**: The `PATCH` and `BULK_PATCH` operations aren't currently supported.
127
129
  * @maxSize 100
128
130
  */
129
131
  dataOperations?: DataOperationWithLiterals[];
@@ -287,7 +289,6 @@ interface EnumValues {
287
289
  values?: string[];
288
290
  }
289
291
  declare enum Type {
290
- UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
291
292
  /** Plain-text string. */
292
293
  TEXT = "TEXT",
293
294
  /** Number. */
@@ -356,7 +357,7 @@ declare enum Type {
356
357
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
357
358
  }
358
359
  /** @enumType */
359
- type TypeWithLiterals = Type | 'UNKNOWN_FIELD_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';
360
+ 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';
360
361
  interface TypeMetadata extends TypeMetadataMetadataOneOf {
361
362
  /** Metadata for a reference field. */
362
363
  reference?: Reference;
@@ -460,8 +461,6 @@ interface CalculatorPatternOneOf {
460
461
  urlizedOnlyPattern?: UrlizedOnlyPattern;
461
462
  }
462
463
  declare enum PageLinkType {
463
- /** Default value. This value is unused. */
464
- UNKNOWN_PAGE_LINK_TYPE = "UNKNOWN_PAGE_LINK_TYPE",
465
464
  /**
466
465
  * Page link with field substitution patterns stored in the data collection.
467
466
  * Example: "path/{plainField}" where plainField can be any supported type.
@@ -477,7 +476,7 @@ declare enum PageLinkType {
477
476
  ROUTER_DEFINED = "ROUTER_DEFINED"
478
477
  }
479
478
  /** @enumType */
480
- type PageLinkTypeWithLiterals = PageLinkType | 'UNKNOWN_PAGE_LINK_TYPE' | 'COLLECTION_DEFINED' | 'ROUTER_DEFINED';
479
+ type PageLinkTypeWithLiterals = PageLinkType | 'COLLECTION_DEFINED' | 'ROUTER_DEFINED';
481
480
  interface Reference {
482
481
  /**
483
482
  * Referenced collection ID.
@@ -806,8 +805,6 @@ interface Permissions {
806
805
  read?: RoleWithLiterals;
807
806
  }
808
807
  declare enum Role {
809
- /** Unknown role. */
810
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
811
808
  /** Site administrator. */
812
809
  ADMIN = "ADMIN",
813
810
  /** Signed-in user who added content to this collection. */
@@ -818,7 +815,7 @@ declare enum Role {
818
815
  ANYONE = "ANYONE"
819
816
  }
820
817
  /** @enumType */
821
- type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'ADMIN' | 'SITE_MEMBER_AUTHOR' | 'SITE_MEMBER' | 'ANYONE';
818
+ type RoleWithLiterals = Role | 'ADMIN' | 'SITE_MEMBER_AUTHOR' | 'SITE_MEMBER' | 'ANYONE';
822
819
  /** Plugins that extend collection functionality. */
823
820
  interface Plugin extends PluginOptionsOneOf {
824
821
  /**
@@ -858,21 +855,19 @@ interface PluginOptionsOneOf {
858
855
  cmsOptions?: PluginCmsOptions;
859
856
  }
860
857
  declare enum Status {
861
- UNKNOWN_PUBLISH_PLUGIN_STATUS = "UNKNOWN_PUBLISH_PLUGIN_STATUS",
862
858
  PUBLISHED = "PUBLISHED",
863
859
  DRAFT = "DRAFT"
864
860
  }
865
861
  /** @enumType */
866
- type StatusWithLiterals = Status | 'UNKNOWN_PUBLISH_PLUGIN_STATUS' | 'PUBLISHED' | 'DRAFT';
862
+ type StatusWithLiterals = Status | 'PUBLISHED' | 'DRAFT';
867
863
  declare enum Format {
868
- UNKNOWN_URLIZED_PLUGIN_FORMAT = "UNKNOWN_URLIZED_PLUGIN_FORMAT",
869
864
  /** Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL. */
870
865
  ORIGINAL = "ORIGINAL",
871
866
  /** No changes are made before generating the encoded URL. */
872
867
  PLAIN = "PLAIN"
873
868
  }
874
869
  /** @enumType */
875
- type FormatWithLiterals = Format | 'UNKNOWN_URLIZED_PLUGIN_FORMAT' | 'ORIGINAL' | 'PLAIN';
870
+ type FormatWithLiterals = Format | 'ORIGINAL' | 'PLAIN';
876
871
  /** if CMS-defined sort is enabled and should be used in site */
877
872
  interface SiteSort {
878
873
  /**
@@ -882,8 +877,6 @@ interface SiteSort {
882
877
  sort?: Sort[];
883
878
  }
884
879
  declare enum PluginType {
885
- /** Unknown plugin type. */
886
- UNKNOWN_PLUGIN_TYPE = "UNKNOWN_PLUGIN_TYPE",
887
880
  /** Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors. */
888
881
  PUBLISH = "PUBLISH",
889
882
  /** Ensures the collection can have one item at most. Can only be applied to a new collection. */
@@ -902,7 +895,7 @@ declare enum PluginType {
902
895
  CMS = "CMS"
903
896
  }
904
897
  /** @enumType */
905
- type PluginTypeWithLiterals = PluginType | 'UNKNOWN_PLUGIN_TYPE' | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
898
+ type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
906
899
  interface PublishPluginOptions {
907
900
  /** Default status. */
908
901
  defaultStatus?: StatusWithLiterals;
@@ -1026,8 +1019,6 @@ interface DataPermissions {
1026
1019
  * Each level includes all levels below it (except UNDEFINED).
1027
1020
  */
1028
1021
  declare enum AccessLevel {
1029
- /** Not set. */
1030
- UNDEFINED = "UNDEFINED",
1031
1022
  /** Any subject, including visitors. */
1032
1023
  ANYONE = "ANYONE",
1033
1024
  /** Any signed-in user (both site members and collaborators). */
@@ -1040,7 +1031,7 @@ declare enum AccessLevel {
1040
1031
  PRIVILEGED = "PRIVILEGED"
1041
1032
  }
1042
1033
  /** @enumType */
1043
- type AccessLevelWithLiterals = AccessLevel | 'UNDEFINED' | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
1034
+ type AccessLevelWithLiterals = AccessLevel | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
1044
1035
  interface AllowedDataPermissions {
1045
1036
  /** If data items read permitted */
1046
1037
  itemRead?: boolean;
@@ -1607,8 +1598,6 @@ interface Failure {
1607
1598
  itemId?: string | null;
1608
1599
  }
1609
1600
  declare enum IndexSource {
1610
- /** Place holder. Never returned by the service. */
1611
- UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
1612
1601
  /**
1613
1602
  * Automatically created by Wix for all collections.
1614
1603
  *
@@ -1628,7 +1617,7 @@ declare enum IndexSource {
1628
1617
  AUTO = "AUTO"
1629
1618
  }
1630
1619
  /** @enumType */
1631
- type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
1620
+ type IndexSourceWithLiterals = IndexSource | 'SYSTEM' | 'USER' | 'AUTO';
1632
1621
  interface CreateDataCollectionsSnapshotRequest {
1633
1622
  }
1634
1623
  interface CreateDataCollectionsSnapshotResponse {
package/build/cjs/meta.js CHANGED
@@ -1307,7 +1307,6 @@ var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
1307
1307
  return CollectionOperation2;
1308
1308
  })(CollectionOperation || {});
1309
1309
  var Type = /* @__PURE__ */ ((Type2) => {
1310
- Type2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1311
1310
  Type2["TEXT"] = "TEXT";
1312
1311
  Type2["NUMBER"] = "NUMBER";
1313
1312
  Type2["DATE"] = "DATE";
@@ -1358,7 +1357,6 @@ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
1358
1357
  return QueryOperator2;
1359
1358
  })(QueryOperator || {});
1360
1359
  var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
1361
- PageLinkType2["UNKNOWN_PAGE_LINK_TYPE"] = "UNKNOWN_PAGE_LINK_TYPE";
1362
1360
  PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
1363
1361
  PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
1364
1362
  return PageLinkType2;
@@ -1374,7 +1372,6 @@ var Permission = /* @__PURE__ */ ((Permission2) => {
1374
1372
  return Permission2;
1375
1373
  })(Permission || {});
1376
1374
  var Role = /* @__PURE__ */ ((Role2) => {
1377
- Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
1378
1375
  Role2["ADMIN"] = "ADMIN";
1379
1376
  Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
1380
1377
  Role2["SITE_MEMBER"] = "SITE_MEMBER";
@@ -1382,19 +1379,16 @@ var Role = /* @__PURE__ */ ((Role2) => {
1382
1379
  return Role2;
1383
1380
  })(Role || {});
1384
1381
  var Status = /* @__PURE__ */ ((Status2) => {
1385
- Status2["UNKNOWN_PUBLISH_PLUGIN_STATUS"] = "UNKNOWN_PUBLISH_PLUGIN_STATUS";
1386
1382
  Status2["PUBLISHED"] = "PUBLISHED";
1387
1383
  Status2["DRAFT"] = "DRAFT";
1388
1384
  return Status2;
1389
1385
  })(Status || {});
1390
1386
  var Format = /* @__PURE__ */ ((Format2) => {
1391
- Format2["UNKNOWN_URLIZED_PLUGIN_FORMAT"] = "UNKNOWN_URLIZED_PLUGIN_FORMAT";
1392
1387
  Format2["ORIGINAL"] = "ORIGINAL";
1393
1388
  Format2["PLAIN"] = "PLAIN";
1394
1389
  return Format2;
1395
1390
  })(Format || {});
1396
1391
  var PluginType = /* @__PURE__ */ ((PluginType2) => {
1397
- PluginType2["UNKNOWN_PLUGIN_TYPE"] = "UNKNOWN_PLUGIN_TYPE";
1398
1392
  PluginType2["PUBLISH"] = "PUBLISH";
1399
1393
  PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
1400
1394
  PluginType2["URLIZED"] = "URLIZED";
@@ -1411,7 +1405,6 @@ var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
1411
1405
  return PagingMode2;
1412
1406
  })(PagingMode || {});
1413
1407
  var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
1414
- AccessLevel2["UNDEFINED"] = "UNDEFINED";
1415
1408
  AccessLevel2["ANYONE"] = "ANYONE";
1416
1409
  AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
1417
1410
  AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
@@ -1452,7 +1445,6 @@ var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
1452
1445
  return IndexStatus2;
1453
1446
  })(IndexStatus || {});
1454
1447
  var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
1455
- IndexSource2["UNKNOWN_INDEX_SOURCE"] = "UNKNOWN_INDEX_SOURCE";
1456
1448
  IndexSource2["SYSTEM"] = "SYSTEM";
1457
1449
  IndexSource2["USER"] = "USER";
1458
1450
  IndexSource2["AUTO"] = "AUTO";