@wix/data 1.0.175 → 1.0.176
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.176",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"service-plugins"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@wix/data_collections": "1.0.
|
|
25
|
+
"@wix/data_collections": "1.0.62",
|
|
26
26
|
"@wix/data_external-database": "1.0.27",
|
|
27
27
|
"@wix/data_external-database-connections": "1.0.49",
|
|
28
28
|
"@wix/data_indexes": "1.0.44",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"fqdn": ""
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "1418048968a1f04acac2ba30fb27b66efe016a8aa45757d2e3f841e8"
|
|
55
55
|
}
|
|
@@ -1035,12 +1035,12 @@ interface DataCollection {
|
|
|
1035
1035
|
/** Collection ID. For example, `my-first-collection`. May include a namespace. */
|
|
1036
1036
|
_id?: string;
|
|
1037
1037
|
/**
|
|
1038
|
-
* Collection type. Indicates how the collection was created and is stored.
|
|
1038
|
+
* Collection type. Indicates how the collection was created and how it is stored.
|
|
1039
1039
|
* @readonly
|
|
1040
1040
|
*/
|
|
1041
1041
|
collectionType?: CollectionType;
|
|
1042
1042
|
/**
|
|
1043
|
-
* ID of the app that defined this collection. For
|
|
1043
|
+
* ID of the app that defined this collection. For collections defined by Wix users, this value is null.
|
|
1044
1044
|
* @readonly
|
|
1045
1045
|
*/
|
|
1046
1046
|
ownerAppId?: string | null;
|
|
@@ -1054,17 +1054,17 @@ interface DataCollection {
|
|
|
1054
1054
|
/** Collection's display name as shown in the CMS. For example, `My First Collection`. */
|
|
1055
1055
|
displayName?: string | null;
|
|
1056
1056
|
/**
|
|
1057
|
-
*
|
|
1057
|
+
* Default item sorting order when a query doesn't specify one.
|
|
1058
1058
|
* @readonly
|
|
1059
1059
|
*/
|
|
1060
1060
|
defaultDisplayOrder?: Sort;
|
|
1061
1061
|
/**
|
|
1062
1062
|
* UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
|
|
1063
|
-
* Empty for all data collections not owned by
|
|
1063
|
+
* Empty for all data collections not owned by Wix apps.
|
|
1064
1064
|
* @readonly
|
|
1065
1065
|
*/
|
|
1066
1066
|
displayNamespace?: string | null;
|
|
1067
|
-
/**
|
|
1067
|
+
/** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
|
|
1068
1068
|
displayField?: string | null;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Capabilities the collection supports.
|
|
@@ -1076,14 +1076,14 @@ interface DataCollection {
|
|
|
1076
1076
|
/** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
|
|
1077
1077
|
permissions?: Permissions;
|
|
1078
1078
|
/**
|
|
1079
|
-
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must
|
|
1079
|
+
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.
|
|
1080
1080
|
* @readonly
|
|
1081
1081
|
*/
|
|
1082
1082
|
revision?: string | null;
|
|
1083
|
-
/**
|
|
1083
|
+
/** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
|
|
1084
1084
|
plugins?: Plugin[];
|
|
1085
1085
|
/**
|
|
1086
|
-
*
|
|
1086
|
+
* Paging modes the collection supports. In native collections, offset-based paging is supported by default.
|
|
1087
1087
|
* @readonly
|
|
1088
1088
|
*/
|
|
1089
1089
|
pagingModes?: PagingMode[];
|
|
@@ -1123,7 +1123,11 @@ declare enum Direction {
|
|
|
1123
1123
|
DESC = "DESC"
|
|
1124
1124
|
}
|
|
1125
1125
|
interface CollectionCapabilities {
|
|
1126
|
-
/**
|
|
1126
|
+
/**
|
|
1127
|
+
* Data operations the collection supports. The listed operations can be performed on data the collection contains.
|
|
1128
|
+
*
|
|
1129
|
+
* > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
|
|
1130
|
+
*/
|
|
1127
1131
|
dataOperations?: DataOperation[];
|
|
1128
1132
|
/** Collection operations supported. The listed operations can be performed on the collection itself. */
|
|
1129
1133
|
collectionOperations?: CollectionOperation[];
|
|
@@ -1176,14 +1180,14 @@ interface Field$1 extends FieldRangeValidationsOneOf {
|
|
|
1176
1180
|
arraySizeRange?: ArraySizeRange;
|
|
1177
1181
|
/** Unique identifier for the field. For example, `firstName`. */
|
|
1178
1182
|
key?: string;
|
|
1179
|
-
/** Field's display name when
|
|
1183
|
+
/** Field's display name when displayed in the CMS. For example, `First Name`. */
|
|
1180
1184
|
displayName?: string | null;
|
|
1181
1185
|
/** Field's data type. */
|
|
1182
1186
|
type?: Type;
|
|
1183
1187
|
/** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
|
|
1184
1188
|
typeMetadata?: TypeMetadata;
|
|
1185
1189
|
/**
|
|
1186
|
-
* Whether the field is a system field
|
|
1190
|
+
* Whether the field is a system field.
|
|
1187
1191
|
* @readonly
|
|
1188
1192
|
*/
|
|
1189
1193
|
systemField?: boolean;
|
|
@@ -1192,9 +1196,9 @@ interface Field$1 extends FieldRangeValidationsOneOf {
|
|
|
1192
1196
|
* @readonly
|
|
1193
1197
|
*/
|
|
1194
1198
|
capabilities?: FieldCapabilities;
|
|
1195
|
-
/**
|
|
1199
|
+
/** Whether the field is encrypted. */
|
|
1196
1200
|
encrypted?: boolean;
|
|
1197
|
-
/**
|
|
1201
|
+
/** Field description. */
|
|
1198
1202
|
description?: string | null;
|
|
1199
1203
|
plugin?: string | null;
|
|
1200
1204
|
/**
|
|
@@ -1300,11 +1304,7 @@ interface FieldCapabilities {
|
|
|
1300
1304
|
* Default: `false`
|
|
1301
1305
|
*/
|
|
1302
1306
|
sortable?: boolean;
|
|
1303
|
-
/**
|
|
1304
|
-
* Query operators that can be used for this field.
|
|
1305
|
-
*
|
|
1306
|
-
* Supported values: `EQ`, `LT`, `GT`, `NE`, `LTE`, `GTE`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `HAS_SOME`, `HAS_ALL`, `EXISTS`, `URLIZED`.
|
|
1307
|
-
*/
|
|
1307
|
+
/** Query operators that can be used for this field. */
|
|
1308
1308
|
queryOperators?: QueryOperator[];
|
|
1309
1309
|
}
|
|
1310
1310
|
declare enum QueryOperator {
|
|
@@ -1619,9 +1619,9 @@ interface AllowedDataPermissions {
|
|
|
1619
1619
|
itemRemove?: boolean;
|
|
1620
1620
|
}
|
|
1621
1621
|
interface DataCollectionClonedEvent {
|
|
1622
|
-
/**
|
|
1622
|
+
/** Instance ID of the collection from which the data is cloned. */
|
|
1623
1623
|
originInstanceId?: string;
|
|
1624
|
-
/**
|
|
1624
|
+
/** ID of the collection from which the data is cloned. */
|
|
1625
1625
|
originId?: string;
|
|
1626
1626
|
}
|
|
1627
1627
|
interface DataCollectionChangedEvent {
|
|
@@ -2340,14 +2340,14 @@ interface UpdateDataCollectionSignature {
|
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Updates a data collection.
|
|
2342
2342
|
*
|
|
2343
|
-
* A collection ID, revision number, permissions, and at least 1 field must be provided within `
|
|
2343
|
+
* A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.
|
|
2344
2344
|
* If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.
|
|
2345
2345
|
* Otherwise, the request fails.
|
|
2346
2346
|
*
|
|
2347
|
-
* When a collection is updated, its `
|
|
2347
|
+
* When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
|
|
2348
2348
|
*
|
|
2349
2349
|
* > **Note:**
|
|
2350
|
-
* > After a collection is updated, it only contains the properties included in the
|
|
2350
|
+
* > After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection has properties with values and those properties
|
|
2351
2351
|
* > aren't included in the updated collection details, their values are lost.
|
|
2352
2352
|
* @param - Updated collection details. The existing collection is replaced with this version.
|
|
2353
2353
|
* @param - Options for updating a data collection.
|
|
@@ -1035,12 +1035,12 @@ interface DataCollection {
|
|
|
1035
1035
|
/** Collection ID. For example, `my-first-collection`. May include a namespace. */
|
|
1036
1036
|
_id?: string;
|
|
1037
1037
|
/**
|
|
1038
|
-
* Collection type. Indicates how the collection was created and is stored.
|
|
1038
|
+
* Collection type. Indicates how the collection was created and how it is stored.
|
|
1039
1039
|
* @readonly
|
|
1040
1040
|
*/
|
|
1041
1041
|
collectionType?: CollectionType;
|
|
1042
1042
|
/**
|
|
1043
|
-
* ID of the app that defined this collection. For
|
|
1043
|
+
* ID of the app that defined this collection. For collections defined by Wix users, this value is null.
|
|
1044
1044
|
* @readonly
|
|
1045
1045
|
*/
|
|
1046
1046
|
ownerAppId?: string | null;
|
|
@@ -1054,17 +1054,17 @@ interface DataCollection {
|
|
|
1054
1054
|
/** Collection's display name as shown in the CMS. For example, `My First Collection`. */
|
|
1055
1055
|
displayName?: string | null;
|
|
1056
1056
|
/**
|
|
1057
|
-
*
|
|
1057
|
+
* Default item sorting order when a query doesn't specify one.
|
|
1058
1058
|
* @readonly
|
|
1059
1059
|
*/
|
|
1060
1060
|
defaultDisplayOrder?: Sort;
|
|
1061
1061
|
/**
|
|
1062
1062
|
* UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
|
|
1063
|
-
* Empty for all data collections not owned by
|
|
1063
|
+
* Empty for all data collections not owned by Wix apps.
|
|
1064
1064
|
* @readonly
|
|
1065
1065
|
*/
|
|
1066
1066
|
displayNamespace?: string | null;
|
|
1067
|
-
/**
|
|
1067
|
+
/** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
|
|
1068
1068
|
displayField?: string | null;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Capabilities the collection supports.
|
|
@@ -1076,14 +1076,14 @@ interface DataCollection {
|
|
|
1076
1076
|
/** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
|
|
1077
1077
|
permissions?: Permissions;
|
|
1078
1078
|
/**
|
|
1079
|
-
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must
|
|
1079
|
+
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.
|
|
1080
1080
|
* @readonly
|
|
1081
1081
|
*/
|
|
1082
1082
|
revision?: string | null;
|
|
1083
|
-
/**
|
|
1083
|
+
/** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
|
|
1084
1084
|
plugins?: Plugin[];
|
|
1085
1085
|
/**
|
|
1086
|
-
*
|
|
1086
|
+
* Paging modes the collection supports. In native collections, offset-based paging is supported by default.
|
|
1087
1087
|
* @readonly
|
|
1088
1088
|
*/
|
|
1089
1089
|
pagingModes?: PagingMode[];
|
|
@@ -1123,7 +1123,11 @@ declare enum Direction {
|
|
|
1123
1123
|
DESC = "DESC"
|
|
1124
1124
|
}
|
|
1125
1125
|
interface CollectionCapabilities {
|
|
1126
|
-
/**
|
|
1126
|
+
/**
|
|
1127
|
+
* Data operations the collection supports. The listed operations can be performed on data the collection contains.
|
|
1128
|
+
*
|
|
1129
|
+
* > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
|
|
1130
|
+
*/
|
|
1127
1131
|
dataOperations?: DataOperation[];
|
|
1128
1132
|
/** Collection operations supported. The listed operations can be performed on the collection itself. */
|
|
1129
1133
|
collectionOperations?: CollectionOperation[];
|
|
@@ -1176,14 +1180,14 @@ interface Field$1 extends FieldRangeValidationsOneOf {
|
|
|
1176
1180
|
arraySizeRange?: ArraySizeRange;
|
|
1177
1181
|
/** Unique identifier for the field. For example, `firstName`. */
|
|
1178
1182
|
key?: string;
|
|
1179
|
-
/** Field's display name when
|
|
1183
|
+
/** Field's display name when displayed in the CMS. For example, `First Name`. */
|
|
1180
1184
|
displayName?: string | null;
|
|
1181
1185
|
/** Field's data type. */
|
|
1182
1186
|
type?: Type;
|
|
1183
1187
|
/** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
|
|
1184
1188
|
typeMetadata?: TypeMetadata;
|
|
1185
1189
|
/**
|
|
1186
|
-
* Whether the field is a system field
|
|
1190
|
+
* Whether the field is a system field.
|
|
1187
1191
|
* @readonly
|
|
1188
1192
|
*/
|
|
1189
1193
|
systemField?: boolean;
|
|
@@ -1192,9 +1196,9 @@ interface Field$1 extends FieldRangeValidationsOneOf {
|
|
|
1192
1196
|
* @readonly
|
|
1193
1197
|
*/
|
|
1194
1198
|
capabilities?: FieldCapabilities;
|
|
1195
|
-
/**
|
|
1199
|
+
/** Whether the field is encrypted. */
|
|
1196
1200
|
encrypted?: boolean;
|
|
1197
|
-
/**
|
|
1201
|
+
/** Field description. */
|
|
1198
1202
|
description?: string | null;
|
|
1199
1203
|
plugin?: string | null;
|
|
1200
1204
|
/**
|
|
@@ -1300,11 +1304,7 @@ interface FieldCapabilities {
|
|
|
1300
1304
|
* Default: `false`
|
|
1301
1305
|
*/
|
|
1302
1306
|
sortable?: boolean;
|
|
1303
|
-
/**
|
|
1304
|
-
* Query operators that can be used for this field.
|
|
1305
|
-
*
|
|
1306
|
-
* Supported values: `EQ`, `LT`, `GT`, `NE`, `LTE`, `GTE`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `HAS_SOME`, `HAS_ALL`, `EXISTS`, `URLIZED`.
|
|
1307
|
-
*/
|
|
1307
|
+
/** Query operators that can be used for this field. */
|
|
1308
1308
|
queryOperators?: QueryOperator[];
|
|
1309
1309
|
}
|
|
1310
1310
|
declare enum QueryOperator {
|
|
@@ -1619,9 +1619,9 @@ interface AllowedDataPermissions {
|
|
|
1619
1619
|
itemRemove?: boolean;
|
|
1620
1620
|
}
|
|
1621
1621
|
interface DataCollectionClonedEvent {
|
|
1622
|
-
/**
|
|
1622
|
+
/** Instance ID of the collection from which the data is cloned. */
|
|
1623
1623
|
originInstanceId?: string;
|
|
1624
|
-
/**
|
|
1624
|
+
/** ID of the collection from which the data is cloned. */
|
|
1625
1625
|
originId?: string;
|
|
1626
1626
|
}
|
|
1627
1627
|
interface DataCollectionChangedEvent {
|
|
@@ -2340,14 +2340,14 @@ interface UpdateDataCollectionSignature {
|
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Updates a data collection.
|
|
2342
2342
|
*
|
|
2343
|
-
* A collection ID, revision number, permissions, and at least 1 field must be provided within `
|
|
2343
|
+
* A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.
|
|
2344
2344
|
* If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.
|
|
2345
2345
|
* Otherwise, the request fails.
|
|
2346
2346
|
*
|
|
2347
|
-
* When a collection is updated, its `
|
|
2347
|
+
* When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
|
|
2348
2348
|
*
|
|
2349
2349
|
* > **Note:**
|
|
2350
|
-
* > After a collection is updated, it only contains the properties included in the
|
|
2350
|
+
* > After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection has properties with values and those properties
|
|
2351
2351
|
* > aren't included in the updated collection details, their values are lost.
|
|
2352
2352
|
* @param - Updated collection details. The existing collection is replaced with this version.
|
|
2353
2353
|
* @param - Options for updating a data collection.
|
|
@@ -478,12 +478,12 @@ interface DataCollection$1 {
|
|
|
478
478
|
/** Collection ID. For example, `my-first-collection`. May include a namespace. */
|
|
479
479
|
id?: string;
|
|
480
480
|
/**
|
|
481
|
-
* Collection type. Indicates how the collection was created and is stored.
|
|
481
|
+
* Collection type. Indicates how the collection was created and how it is stored.
|
|
482
482
|
* @readonly
|
|
483
483
|
*/
|
|
484
484
|
collectionType?: CollectionType$1;
|
|
485
485
|
/**
|
|
486
|
-
* ID of the app that defined this collection. For
|
|
486
|
+
* ID of the app that defined this collection. For collections defined by Wix users, this value is null.
|
|
487
487
|
* @readonly
|
|
488
488
|
*/
|
|
489
489
|
ownerAppId?: string | null;
|
|
@@ -497,17 +497,17 @@ interface DataCollection$1 {
|
|
|
497
497
|
/** Collection's display name as shown in the CMS. For example, `My First Collection`. */
|
|
498
498
|
displayName?: string | null;
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
500
|
+
* Default item sorting order when a query doesn't specify one.
|
|
501
501
|
* @readonly
|
|
502
502
|
*/
|
|
503
503
|
defaultDisplayOrder?: Sort$1;
|
|
504
504
|
/**
|
|
505
505
|
* UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
|
|
506
|
-
* Empty for all data collections not owned by
|
|
506
|
+
* Empty for all data collections not owned by Wix apps.
|
|
507
507
|
* @readonly
|
|
508
508
|
*/
|
|
509
509
|
displayNamespace?: string | null;
|
|
510
|
-
/**
|
|
510
|
+
/** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
|
|
511
511
|
displayField?: string | null;
|
|
512
512
|
/**
|
|
513
513
|
* Capabilities the collection supports.
|
|
@@ -519,14 +519,14 @@ interface DataCollection$1 {
|
|
|
519
519
|
/** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
|
|
520
520
|
permissions?: Permissions$1;
|
|
521
521
|
/**
|
|
522
|
-
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must
|
|
522
|
+
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.
|
|
523
523
|
* @readonly
|
|
524
524
|
*/
|
|
525
525
|
revision?: string | null;
|
|
526
|
-
/**
|
|
526
|
+
/** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
|
|
527
527
|
plugins?: Plugin$1[];
|
|
528
528
|
/**
|
|
529
|
-
*
|
|
529
|
+
* Paging modes the collection supports. In native collections, offset-based paging is supported by default.
|
|
530
530
|
* @readonly
|
|
531
531
|
*/
|
|
532
532
|
pagingModes?: PagingMode$1[];
|
|
@@ -623,14 +623,14 @@ interface Field$3 extends FieldRangeValidationsOneOf$1 {
|
|
|
623
623
|
arraySizeRange?: ArraySizeRange$1;
|
|
624
624
|
/** Unique identifier for the field. For example, `firstName`. */
|
|
625
625
|
key?: string;
|
|
626
|
-
/** Field's display name when
|
|
626
|
+
/** Field's display name when displayed in the CMS. For example, `First Name`. */
|
|
627
627
|
displayName?: string | null;
|
|
628
628
|
/** Field's data type. */
|
|
629
629
|
type?: Type$1;
|
|
630
630
|
/** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
|
|
631
631
|
typeMetadata?: TypeMetadata$1;
|
|
632
632
|
/**
|
|
633
|
-
* Whether the field is a system field
|
|
633
|
+
* Whether the field is a system field.
|
|
634
634
|
* @readonly
|
|
635
635
|
*/
|
|
636
636
|
systemField?: boolean;
|
|
@@ -639,9 +639,9 @@ interface Field$3 extends FieldRangeValidationsOneOf$1 {
|
|
|
639
639
|
* @readonly
|
|
640
640
|
*/
|
|
641
641
|
capabilities?: FieldCapabilities$1;
|
|
642
|
-
/**
|
|
642
|
+
/** Whether the field is encrypted. */
|
|
643
643
|
encrypted?: boolean;
|
|
644
|
-
/**
|
|
644
|
+
/** Field description. */
|
|
645
645
|
description?: string | null;
|
|
646
646
|
plugin?: string | null;
|
|
647
647
|
/**
|
|
@@ -1299,12 +1299,12 @@ interface DataCollection {
|
|
|
1299
1299
|
/** Collection ID. For example, `my-first-collection`. May include a namespace. */
|
|
1300
1300
|
_id?: string;
|
|
1301
1301
|
/**
|
|
1302
|
-
* Collection type. Indicates how the collection was created and is stored.
|
|
1302
|
+
* Collection type. Indicates how the collection was created and how it is stored.
|
|
1303
1303
|
* @readonly
|
|
1304
1304
|
*/
|
|
1305
1305
|
collectionType?: CollectionType;
|
|
1306
1306
|
/**
|
|
1307
|
-
* ID of the app that defined this collection. For
|
|
1307
|
+
* ID of the app that defined this collection. For collections defined by Wix users, this value is null.
|
|
1308
1308
|
* @readonly
|
|
1309
1309
|
*/
|
|
1310
1310
|
ownerAppId?: string | null;
|
|
@@ -1318,17 +1318,17 @@ interface DataCollection {
|
|
|
1318
1318
|
/** Collection's display name as shown in the CMS. For example, `My First Collection`. */
|
|
1319
1319
|
displayName?: string | null;
|
|
1320
1320
|
/**
|
|
1321
|
-
*
|
|
1321
|
+
* Default item sorting order when a query doesn't specify one.
|
|
1322
1322
|
* @readonly
|
|
1323
1323
|
*/
|
|
1324
1324
|
defaultDisplayOrder?: Sort;
|
|
1325
1325
|
/**
|
|
1326
1326
|
* UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
|
|
1327
|
-
* Empty for all data collections not owned by
|
|
1327
|
+
* Empty for all data collections not owned by Wix apps.
|
|
1328
1328
|
* @readonly
|
|
1329
1329
|
*/
|
|
1330
1330
|
displayNamespace?: string | null;
|
|
1331
|
-
/**
|
|
1331
|
+
/** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
|
|
1332
1332
|
displayField?: string | null;
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Capabilities the collection supports.
|
|
@@ -1340,14 +1340,14 @@ interface DataCollection {
|
|
|
1340
1340
|
/** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
|
|
1341
1341
|
permissions?: Permissions;
|
|
1342
1342
|
/**
|
|
1343
|
-
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must
|
|
1343
|
+
* Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.
|
|
1344
1344
|
* @readonly
|
|
1345
1345
|
*/
|
|
1346
1346
|
revision?: string | null;
|
|
1347
|
-
/**
|
|
1347
|
+
/** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
|
|
1348
1348
|
plugins?: Plugin[];
|
|
1349
1349
|
/**
|
|
1350
|
-
*
|
|
1350
|
+
* Paging modes the collection supports. In native collections, offset-based paging is supported by default.
|
|
1351
1351
|
* @readonly
|
|
1352
1352
|
*/
|
|
1353
1353
|
pagingModes?: PagingMode[];
|
|
@@ -1387,7 +1387,11 @@ declare enum Direction {
|
|
|
1387
1387
|
DESC = "DESC"
|
|
1388
1388
|
}
|
|
1389
1389
|
interface CollectionCapabilities {
|
|
1390
|
-
/**
|
|
1390
|
+
/**
|
|
1391
|
+
* Data operations the collection supports. The listed operations can be performed on data the collection contains.
|
|
1392
|
+
*
|
|
1393
|
+
* > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
|
|
1394
|
+
*/
|
|
1391
1395
|
dataOperations?: DataOperation[];
|
|
1392
1396
|
/** Collection operations supported. The listed operations can be performed on the collection itself. */
|
|
1393
1397
|
collectionOperations?: CollectionOperation[];
|
|
@@ -1440,14 +1444,14 @@ interface Field$2 extends FieldRangeValidationsOneOf {
|
|
|
1440
1444
|
arraySizeRange?: ArraySizeRange;
|
|
1441
1445
|
/** Unique identifier for the field. For example, `firstName`. */
|
|
1442
1446
|
key?: string;
|
|
1443
|
-
/** Field's display name when
|
|
1447
|
+
/** Field's display name when displayed in the CMS. For example, `First Name`. */
|
|
1444
1448
|
displayName?: string | null;
|
|
1445
1449
|
/** Field's data type. */
|
|
1446
1450
|
type?: Type;
|
|
1447
1451
|
/** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
|
|
1448
1452
|
typeMetadata?: TypeMetadata;
|
|
1449
1453
|
/**
|
|
1450
|
-
* Whether the field is a system field
|
|
1454
|
+
* Whether the field is a system field.
|
|
1451
1455
|
* @readonly
|
|
1452
1456
|
*/
|
|
1453
1457
|
systemField?: boolean;
|
|
@@ -1456,9 +1460,9 @@ interface Field$2 extends FieldRangeValidationsOneOf {
|
|
|
1456
1460
|
* @readonly
|
|
1457
1461
|
*/
|
|
1458
1462
|
capabilities?: FieldCapabilities;
|
|
1459
|
-
/**
|
|
1463
|
+
/** Whether the field is encrypted. */
|
|
1460
1464
|
encrypted?: boolean;
|
|
1461
|
-
/**
|
|
1465
|
+
/** Field description. */
|
|
1462
1466
|
description?: string | null;
|
|
1463
1467
|
plugin?: string | null;
|
|
1464
1468
|
/**
|
|
@@ -1564,11 +1568,7 @@ interface FieldCapabilities {
|
|
|
1564
1568
|
* Default: `false`
|
|
1565
1569
|
*/
|
|
1566
1570
|
sortable?: boolean;
|
|
1567
|
-
/**
|
|
1568
|
-
* Query operators that can be used for this field.
|
|
1569
|
-
*
|
|
1570
|
-
* Supported values: `EQ`, `LT`, `GT`, `NE`, `LTE`, `GTE`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `HAS_SOME`, `HAS_ALL`, `EXISTS`, `URLIZED`.
|
|
1571
|
-
*/
|
|
1571
|
+
/** Query operators that can be used for this field. */
|
|
1572
1572
|
queryOperators?: QueryOperator[];
|
|
1573
1573
|
}
|
|
1574
1574
|
declare enum QueryOperator {
|