@wix/auto_sdk_data_collections 1.0.66 → 1.0.68
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 +44 -12
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +44 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -11
- 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 +46 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +43 -11
- 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 +46 -14
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +43 -11
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -59,7 +59,7 @@ interface DataCollection {
|
|
|
59
59
|
* @maxSize 1000
|
|
60
60
|
*/
|
|
61
61
|
fields?: Field[];
|
|
62
|
-
/**
|
|
62
|
+
/** [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction#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.
|
|
@@ -780,13 +780,29 @@ declare enum Permission {
|
|
|
780
780
|
type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
|
|
781
781
|
/** Permissions defined by the lowest role needed to perform each action. */
|
|
782
782
|
interface Permissions {
|
|
783
|
-
/**
|
|
783
|
+
/**
|
|
784
|
+
* Role required to insert items into the collection.
|
|
785
|
+
*
|
|
786
|
+
* Default: `CMS_EDITOR`
|
|
787
|
+
*/
|
|
784
788
|
insert?: RoleWithLiterals;
|
|
785
|
-
/**
|
|
789
|
+
/**
|
|
790
|
+
* Role required to update collection items.
|
|
791
|
+
*
|
|
792
|
+
* Default: `CMS_EDITOR`
|
|
793
|
+
*/
|
|
786
794
|
update?: RoleWithLiterals;
|
|
787
|
-
/**
|
|
795
|
+
/**
|
|
796
|
+
* Role required to remove items from the collection.
|
|
797
|
+
*
|
|
798
|
+
* Default: `CMS_EDITOR`
|
|
799
|
+
*/
|
|
788
800
|
remove?: RoleWithLiterals;
|
|
789
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* Role required to read collection items.
|
|
803
|
+
*
|
|
804
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
805
|
+
*/
|
|
790
806
|
read?: RoleWithLiterals;
|
|
791
807
|
}
|
|
792
808
|
declare enum Role {
|
|
@@ -978,19 +994,35 @@ declare enum PagingMode {
|
|
|
978
994
|
}
|
|
979
995
|
/** @enumType */
|
|
980
996
|
type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
|
|
981
|
-
/**
|
|
997
|
+
/** Permissions defined by access level for each action. */
|
|
982
998
|
interface DataPermissions {
|
|
983
|
-
/**
|
|
999
|
+
/**
|
|
1000
|
+
* Access level required to read collection items.
|
|
1001
|
+
*
|
|
1002
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
1003
|
+
*/
|
|
984
1004
|
itemRead?: AccessLevelWithLiterals;
|
|
985
|
-
/**
|
|
1005
|
+
/**
|
|
1006
|
+
* Access level required to insert items into the collection.
|
|
1007
|
+
*
|
|
1008
|
+
* Default: `CMS_EDITOR`
|
|
1009
|
+
*/
|
|
986
1010
|
itemInsert?: AccessLevelWithLiterals;
|
|
987
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Access level required to update collection items.
|
|
1013
|
+
*
|
|
1014
|
+
* Default: `CMS_EDITOR`
|
|
1015
|
+
*/
|
|
988
1016
|
itemUpdate?: AccessLevelWithLiterals;
|
|
989
|
-
/**
|
|
1017
|
+
/**
|
|
1018
|
+
* Access level required to remove items from the collection.
|
|
1019
|
+
*
|
|
1020
|
+
* Default: `CMS_EDITOR`
|
|
1021
|
+
*/
|
|
990
1022
|
itemRemove?: AccessLevelWithLiterals;
|
|
991
1023
|
}
|
|
992
1024
|
/**
|
|
993
|
-
* Describes who can perform certain
|
|
1025
|
+
* Describes who can perform certain actions.
|
|
994
1026
|
* Each level includes all levels below it (except UNDEFINED).
|
|
995
1027
|
*/
|
|
996
1028
|
declare enum AccessLevel {
|