@wix/auto_sdk_data_collections 1.0.65 → 1.0.67

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 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.
@@ -256,7 +256,6 @@ interface Field extends FieldRangeValidationsOneOf {
256
256
  plugins?: FieldPlugin[];
257
257
  /**
258
258
  * This indicates that this fields is conditional and is not retrieved by default.
259
- * To request the field pass `conditional_fields` parameter in data retrieval requests.
260
259
  * @readonly
261
260
  */
262
261
  condition?: FieldCondition;
@@ -763,8 +762,12 @@ interface CategoryFieldOptions {
763
762
  isPrimary?: boolean;
764
763
  }
765
764
  interface FieldCondition {
766
- /** @maxLength 100 */
765
+ /**
766
+ * If `group_name` is set, this field will not be present in query results. To retrieve this field, pass `group_name` value to `includeFieldGroups` parameter in query operations.
767
+ * @maxLength 100
768
+ */
767
769
  groupName?: string | null;
770
+ /** If present, the field may be omitted from the results, if the requester lacks sufficient permissions to access data stored in the field. */
768
771
  permission?: PermissionWithLiterals;
769
772
  }
770
773
  declare enum Permission {
@@ -777,13 +780,29 @@ declare enum Permission {
777
780
  type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
778
781
  /** Permissions defined by the lowest role needed to perform each action. */
779
782
  interface Permissions {
780
- /** Lowest role needed to add a collection. */
783
+ /**
784
+ * Role required to insert items into the collection.
785
+ *
786
+ * Default: `CMS_EDITOR`
787
+ */
781
788
  insert?: RoleWithLiterals;
782
- /** Lowest role needed to update a collection. */
789
+ /**
790
+ * Role required to update collection items.
791
+ *
792
+ * Default: `CMS_EDITOR`
793
+ */
783
794
  update?: RoleWithLiterals;
784
- /** Lowest role needed to remove a collection. */
795
+ /**
796
+ * Role required to remove items from the collection.
797
+ *
798
+ * Default: `CMS_EDITOR`
799
+ */
785
800
  remove?: RoleWithLiterals;
786
- /** Lowest role needed to read a collection. */
801
+ /**
802
+ * Role required to read collection items.
803
+ *
804
+ * Default: `SITE_MEMBER_AUTHOR`
805
+ */
787
806
  read?: RoleWithLiterals;
788
807
  }
789
808
  declare enum Role {
@@ -975,19 +994,35 @@ declare enum PagingMode {
975
994
  }
976
995
  /** @enumType */
977
996
  type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
978
- /** Data permissions defined by access level for each action. */
997
+ /** Permissions defined by access level for each action. */
979
998
  interface DataPermissions {
980
- /** Access level for data items read */
999
+ /**
1000
+ * Access level required to read collection items.
1001
+ *
1002
+ * Default: `SITE_MEMBER_AUTHOR`
1003
+ */
981
1004
  itemRead?: AccessLevelWithLiterals;
982
- /** Access level for data items insert */
1005
+ /**
1006
+ * Access level required to insert items into the collection.
1007
+ *
1008
+ * Default: `CMS_EDITOR`
1009
+ */
983
1010
  itemInsert?: AccessLevelWithLiterals;
984
- /** Access level for data items update */
1011
+ /**
1012
+ * Access level required to update collection items.
1013
+ *
1014
+ * Default: `CMS_EDITOR`
1015
+ */
985
1016
  itemUpdate?: AccessLevelWithLiterals;
986
- /** Access level for data items removal */
1017
+ /**
1018
+ * Access level required to remove items from the collection.
1019
+ *
1020
+ * Default: `CMS_EDITOR`
1021
+ */
987
1022
  itemRemove?: AccessLevelWithLiterals;
988
1023
  }
989
1024
  /**
990
- * Describes who can perform certain action.
1025
+ * Describes who can perform certain actions.
991
1026
  * Each level includes all levels below it (except UNDEFINED).
992
1027
  */
993
1028
  declare enum AccessLevel {