@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
|
@@ -58,7 +58,7 @@ interface DataCollection {
|
|
|
58
58
|
* @maxSize 1000
|
|
59
59
|
*/
|
|
60
60
|
fields?: Field[];
|
|
61
|
-
/**
|
|
61
|
+
/** [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. */
|
|
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.
|
|
@@ -779,13 +779,29 @@ declare enum Permission {
|
|
|
779
779
|
type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
|
|
780
780
|
/** Permissions defined by the lowest role needed to perform each action. */
|
|
781
781
|
interface Permissions {
|
|
782
|
-
/**
|
|
782
|
+
/**
|
|
783
|
+
* Role required to insert items into the collection.
|
|
784
|
+
*
|
|
785
|
+
* Default: `CMS_EDITOR`
|
|
786
|
+
*/
|
|
783
787
|
insert?: RoleWithLiterals;
|
|
784
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* Role required to update collection items.
|
|
790
|
+
*
|
|
791
|
+
* Default: `CMS_EDITOR`
|
|
792
|
+
*/
|
|
785
793
|
update?: RoleWithLiterals;
|
|
786
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* Role required to remove items from the collection.
|
|
796
|
+
*
|
|
797
|
+
* Default: `CMS_EDITOR`
|
|
798
|
+
*/
|
|
787
799
|
remove?: RoleWithLiterals;
|
|
788
|
-
/**
|
|
800
|
+
/**
|
|
801
|
+
* Role required to read collection items.
|
|
802
|
+
*
|
|
803
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
804
|
+
*/
|
|
789
805
|
read?: RoleWithLiterals;
|
|
790
806
|
}
|
|
791
807
|
declare enum Role {
|
|
@@ -977,19 +993,35 @@ declare enum PagingMode {
|
|
|
977
993
|
}
|
|
978
994
|
/** @enumType */
|
|
979
995
|
type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
|
|
980
|
-
/**
|
|
996
|
+
/** Permissions defined by access level for each action. */
|
|
981
997
|
interface DataPermissions {
|
|
982
|
-
/**
|
|
998
|
+
/**
|
|
999
|
+
* Access level required to read collection items.
|
|
1000
|
+
*
|
|
1001
|
+
* Default: `SITE_MEMBER_AUTHOR`
|
|
1002
|
+
*/
|
|
983
1003
|
itemRead?: AccessLevelWithLiterals;
|
|
984
|
-
/**
|
|
1004
|
+
/**
|
|
1005
|
+
* Access level required to insert items into the collection.
|
|
1006
|
+
*
|
|
1007
|
+
* Default: `CMS_EDITOR`
|
|
1008
|
+
*/
|
|
985
1009
|
itemInsert?: AccessLevelWithLiterals;
|
|
986
|
-
/**
|
|
1010
|
+
/**
|
|
1011
|
+
* Access level required to update collection items.
|
|
1012
|
+
*
|
|
1013
|
+
* Default: `CMS_EDITOR`
|
|
1014
|
+
*/
|
|
987
1015
|
itemUpdate?: AccessLevelWithLiterals;
|
|
988
|
-
/**
|
|
1016
|
+
/**
|
|
1017
|
+
* Access level required to remove items from the collection.
|
|
1018
|
+
*
|
|
1019
|
+
* Default: `CMS_EDITOR`
|
|
1020
|
+
*/
|
|
989
1021
|
itemRemove?: AccessLevelWithLiterals;
|
|
990
1022
|
}
|
|
991
1023
|
/**
|
|
992
|
-
* Describes who can perform certain
|
|
1024
|
+
* Describes who can perform certain actions.
|
|
993
1025
|
* Each level includes all levels below it (except UNDEFINED).
|
|
994
1026
|
*/
|
|
995
1027
|
declare enum AccessLevel {
|
|
@@ -2083,7 +2115,7 @@ interface PatchDataCollection {
|
|
|
2083
2115
|
* @maxSize 1000
|
|
2084
2116
|
*/
|
|
2085
2117
|
fields?: Field[];
|
|
2086
|
-
/**
|
|
2118
|
+
/** [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. */
|
|
2087
2119
|
permissions?: Permissions;
|
|
2088
2120
|
/**
|
|
2089
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.
|