@wix/auto_sdk_data_collections 1.0.38 → 1.0.39

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.
@@ -1184,7 +1184,7 @@ interface SnapshotCollection {
1184
1184
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
1185
1185
  interface Index {
1186
1186
  /**
1187
- * Id of the index.
1187
+ * ID of the index.
1188
1188
  * @readonly
1189
1189
  * @format GUID
1190
1190
  */
@@ -1214,8 +1214,8 @@ interface Index {
1214
1214
  */
1215
1215
  failure?: Failure;
1216
1216
  /**
1217
- * Whether the index enforces uniqueness of values in the field for which it is defined.
1218
- * If `true`, the index can have only one field.
1217
+ * Whether the index enforces uniqueness of values in the field for which it's defined.
1218
+ * If `true`, the index can have only 1 field.
1219
1219
  *
1220
1220
  * Default: `false`
1221
1221
  */
@@ -1226,7 +1226,11 @@ interface Index {
1226
1226
  * Default: `false`
1227
1227
  */
1228
1228
  caseInsensitive?: boolean;
1229
- /** Specifies the origin of the index definition. */
1229
+ /**
1230
+ * Source of the index. See index sources in [Index Types](https://dev.wix.com/docs/api-reference/business-solutions/cms/indexes/index-types#index-sources).
1231
+ *
1232
+ * Default: `USER`
1233
+ */
1230
1234
  source?: IndexSourceWithLiterals;
1231
1235
  }
1232
1236
  /**
@@ -1295,11 +1299,22 @@ interface Failure {
1295
1299
  declare enum IndexSource {
1296
1300
  /** Place holder. Never returned by the service. */
1297
1301
  UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
1298
- /** Index is created by the system, present for all collections. */
1302
+ /**
1303
+ * Automatically created by Wix for all collections.
1304
+ *
1305
+ * System indexes are created for essential attributes, such as ID and creation date.
1306
+ * You can't delete them and they don't count towards the index limit.
1307
+ */
1299
1308
  SYSTEM = "SYSTEM",
1300
- /** Index was created by a user via API or UI. */
1309
+ /** Created by a Wix user via the API or in the dashboard. */
1301
1310
  USER = "USER",
1302
- /** Index is created automatically by the system based on user queries. */
1311
+ /**
1312
+ * Created automatically by Wix based on a Wix user's queries.
1313
+ *
1314
+ * For large collections, Wix identifies slow-running queries and creates indexes automatically to improve performance.
1315
+ * These indexes don't count towards the index limit. They're created dynamically, and may be deleted if they no longer fit
1316
+ * the system's parameters. To keep an automatic index permanently, manually create an identical `USER` index.
1317
+ */
1303
1318
  AUTO = "AUTO"
1304
1319
  }
1305
1320
  /** @enumType */