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