@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.
@@ -58,7 +58,7 @@ interface DataCollection {
58
58
  * @maxSize 1000
59
59
  */
60
60
  fields?: Field[];
61
- /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
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.
@@ -87,7 +87,7 @@ interface DataCollection {
87
87
  */
88
88
  _updatedDate?: Date | null;
89
89
  /**
90
- * Levels of permission for accessing and modifying data.
90
+ * [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 access level required to perform each action.
91
91
  * @internal
92
92
  */
93
93
  dataPermissions?: DataPermissions;
@@ -795,13 +795,29 @@ declare enum Permission {
795
795
  type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
796
796
  /** Permissions defined by the lowest role needed to perform each action. */
797
797
  interface Permissions {
798
- /** Lowest role needed to add a collection. */
798
+ /**
799
+ * Role required to insert items into the collection.
800
+ *
801
+ * Default: `CMS_EDITOR`
802
+ */
799
803
  insert?: RoleWithLiterals;
800
- /** Lowest role needed to update a collection. */
804
+ /**
805
+ * Role required to update collection items.
806
+ *
807
+ * Default: `CMS_EDITOR`
808
+ */
801
809
  update?: RoleWithLiterals;
802
- /** Lowest role needed to remove a collection. */
810
+ /**
811
+ * Role required to remove items from the collection.
812
+ *
813
+ * Default: `CMS_EDITOR`
814
+ */
803
815
  remove?: RoleWithLiterals;
804
- /** Lowest role needed to read a collection. */
816
+ /**
817
+ * Role required to read collection items.
818
+ *
819
+ * Default: `SITE_MEMBER_AUTHOR`
820
+ */
805
821
  read?: RoleWithLiterals;
806
822
  }
807
823
  declare enum Role {
@@ -993,19 +1009,35 @@ declare enum PagingMode {
993
1009
  }
994
1010
  /** @enumType */
995
1011
  type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
996
- /** Data permissions defined by access level for each action. */
1012
+ /** Permissions defined by access level for each action. */
997
1013
  interface DataPermissions {
998
- /** Access level for data items read */
1014
+ /**
1015
+ * Access level required to read collection items.
1016
+ *
1017
+ * Default: `SITE_MEMBER_AUTHOR`
1018
+ */
999
1019
  itemRead?: AccessLevelWithLiterals;
1000
- /** Access level for data items insert */
1020
+ /**
1021
+ * Access level required to insert items into the collection.
1022
+ *
1023
+ * Default: `CMS_EDITOR`
1024
+ */
1001
1025
  itemInsert?: AccessLevelWithLiterals;
1002
- /** Access level for data items update */
1026
+ /**
1027
+ * Access level required to update collection items.
1028
+ *
1029
+ * Default: `CMS_EDITOR`
1030
+ */
1003
1031
  itemUpdate?: AccessLevelWithLiterals;
1004
- /** Access level for data items removal */
1032
+ /**
1033
+ * Access level required to remove items from the collection.
1034
+ *
1035
+ * Default: `CMS_EDITOR`
1036
+ */
1005
1037
  itemRemove?: AccessLevelWithLiterals;
1006
1038
  }
1007
1039
  /**
1008
- * Describes who can perform certain action.
1040
+ * Describes who can perform certain actions.
1009
1041
  * Each level includes all levels below it (except UNDEFINED).
1010
1042
  */
1011
1043
  declare enum AccessLevel {
@@ -2137,7 +2169,7 @@ interface PatchDataCollection {
2137
2169
  * @maxSize 1000
2138
2170
  */
2139
2171
  fields?: Field[];
2140
- /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
2172
+ /** [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. */
2141
2173
  permissions?: Permissions;
2142
2174
  /**
2143
2175
  * 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.
@@ -2166,7 +2198,7 @@ interface PatchDataCollection {
2166
2198
  */
2167
2199
  _updatedDate?: Date | null;
2168
2200
  /**
2169
- * Levels of permission for accessing and modifying data.
2201
+ * [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 access level required to perform each action.
2170
2202
  * @internal
2171
2203
  */
2172
2204
  dataPermissions?: DataPermissions;