@wix/auto_sdk_data_collections 1.0.65 → 1.0.67
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +49 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +48 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +49 -14
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +48 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +51 -16
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +48 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +51 -16
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +48 -13
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -59,7 +59,7 @@ interface DataCollection {
|
|
|
59
59
|
* @maxSize 1000
|
|
60
60
|
*/
|
|
61
61
|
fields?: Field[];
|
|
62
|
-
/**
|
|
62
|
+
/** Permissions required to access and modify collection items, defined by the lowest role needed to perform each action. */
|
|
63
63
|
permissions?: Permissions;
|
|
64
64
|
/**
|
|
65
65
|
* 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.
|
|
@@ -256,7 +256,6 @@ interface Field extends FieldRangeValidationsOneOf {
|
|
|
256
256
|
plugins?: FieldPlugin[];
|
|
257
257
|
/**
|
|
258
258
|
* This indicates that this fields is conditional and is not retrieved by default.
|
|
259
|
-
* To request the field pass `conditional_fields` parameter in data retrieval requests.
|
|
260
259
|
* @readonly
|
|
261
260
|
*/
|
|
262
261
|
condition?: FieldCondition;
|
|
@@ -763,8 +762,12 @@ interface CategoryFieldOptions {
|
|
|
763
762
|
isPrimary?: boolean;
|
|
764
763
|
}
|
|
765
764
|
interface FieldCondition {
|
|
766
|
-
/**
|
|
765
|
+
/**
|
|
766
|
+
* If `group_name` is set, this field will not be present in query results. To retrieve this field, pass `group_name` value to `includeFieldGroups` parameter in query operations.
|
|
767
|
+
* @maxLength 100
|
|
768
|
+
*/
|
|
767
769
|
groupName?: string | null;
|
|
770
|
+
/** If present, the field may be omitted from the results, if the requester lacks sufficient permissions to access data stored in the field. */
|
|
768
771
|
permission?: PermissionWithLiterals;
|
|
769
772
|
}
|
|
770
773
|
declare enum Permission {
|
|
@@ -777,13 +780,29 @@ declare enum Permission {
|
|
|
777
780
|
type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
|
|
778
781
|
/** Permissions defined by the lowest role needed to perform each action. */
|
|
779
782
|
interface Permissions {
|
|
780
|
-
/**
|
|
783
|
+
/**
|
|
784
|
+
* Role required to insert items into the collection.
|
|
785
|
+
*
|
|
786
|
+
* Default: `CMS_EDITOR`
|
|
787
|
+
*/
|
|
781
788
|
insert?: RoleWithLiterals;
|
|
782
|
-
/**
|
|
789
|
+
/**
|
|
790
|
+
* Role required to update collection items.
|
|
791
|
+
*
|
|
792
|
+
* Default: `CMS_EDITOR`
|
|
793
|
+
*/
|
|
783
794
|
update?: RoleWithLiterals;
|
|
784
|
-
/**
|
|
795
|
+
/**
|
|
796
|
+
* Role required to remove items from the collection.
|
|
797
|
+
*
|
|
798
|
+
* Default: `CMS_EDITOR`
|
|
799
|
+
*/
|
|
785
800
|
remove?: RoleWithLiterals;
|
|
786
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* Role required to read collection items.
|
|
803
|
+
*
|
|
804
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
805
|
+
*/
|
|
787
806
|
read?: RoleWithLiterals;
|
|
788
807
|
}
|
|
789
808
|
declare enum Role {
|
|
@@ -975,19 +994,35 @@ declare enum PagingMode {
|
|
|
975
994
|
}
|
|
976
995
|
/** @enumType */
|
|
977
996
|
type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
|
|
978
|
-
/**
|
|
997
|
+
/** Permissions defined by access level for each action. */
|
|
979
998
|
interface DataPermissions {
|
|
980
|
-
/**
|
|
999
|
+
/**
|
|
1000
|
+
* Access level required to read collection items.
|
|
1001
|
+
*
|
|
1002
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
1003
|
+
*/
|
|
981
1004
|
itemRead?: AccessLevelWithLiterals;
|
|
982
|
-
/**
|
|
1005
|
+
/**
|
|
1006
|
+
* Access level required to insert items into the collection.
|
|
1007
|
+
*
|
|
1008
|
+
* Default: `CMS_EDITOR`
|
|
1009
|
+
*/
|
|
983
1010
|
itemInsert?: AccessLevelWithLiterals;
|
|
984
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Access level required to update collection items.
|
|
1013
|
+
*
|
|
1014
|
+
* Default: `CMS_EDITOR`
|
|
1015
|
+
*/
|
|
985
1016
|
itemUpdate?: AccessLevelWithLiterals;
|
|
986
|
-
/**
|
|
1017
|
+
/**
|
|
1018
|
+
* Access level required to remove items from the collection.
|
|
1019
|
+
*
|
|
1020
|
+
* Default: `CMS_EDITOR`
|
|
1021
|
+
*/
|
|
987
1022
|
itemRemove?: AccessLevelWithLiterals;
|
|
988
1023
|
}
|
|
989
1024
|
/**
|
|
990
|
-
* Describes who can perform certain
|
|
1025
|
+
* Describes who can perform certain actions.
|
|
991
1026
|
* Each level includes all levels below it (except UNDEFINED).
|
|
992
1027
|
*/
|
|
993
1028
|
declare enum AccessLevel {
|