@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.
@@ -59,7 +59,7 @@ interface DataCollection {
59
59
  * @maxSize 1000
60
60
  */
61
61
  fields?: Field[];
62
- /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
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
- /** Lowest role needed to add a collection. */
783
+ /**
784
+ * Role required to insert items into the collection.
785
+ *
786
+ * Default: `CMS_EDITOR`
787
+ */
784
788
  insert?: RoleWithLiterals;
785
- /** Lowest role needed to update a collection. */
789
+ /**
790
+ * Role required to update collection items.
791
+ *
792
+ * Default: `CMS_EDITOR`
793
+ */
786
794
  update?: RoleWithLiterals;
787
- /** Lowest role needed to remove a collection. */
795
+ /**
796
+ * Role required to remove items from the collection.
797
+ *
798
+ * Default: `CMS_EDITOR`
799
+ */
788
800
  remove?: RoleWithLiterals;
789
- /** Lowest role needed to read a collection. */
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
- /** Data permissions defined by access level for each action. */
997
+ /** Permissions defined by access level for each action. */
982
998
  interface DataPermissions {
983
- /** Access level for data items read */
999
+ /**
1000
+ * Access level required to read collection items.
1001
+ *
1002
+ * Default: `SITE_MEMBER_AUTHOR`
1003
+ */
984
1004
  itemRead?: AccessLevelWithLiterals;
985
- /** Access level for data items insert */
1005
+ /**
1006
+ * Access level required to insert items into the collection.
1007
+ *
1008
+ * Default: `CMS_EDITOR`
1009
+ */
986
1010
  itemInsert?: AccessLevelWithLiterals;
987
- /** Access level for data items update */
1011
+ /**
1012
+ * Access level required to update collection items.
1013
+ *
1014
+ * Default: `CMS_EDITOR`
1015
+ */
988
1016
  itemUpdate?: AccessLevelWithLiterals;
989
- /** Access level for data items removal */
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 action.
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 {