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