@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.
@@ -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 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 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;
@@ -271,7 +271,6 @@ interface Field extends FieldRangeValidationsOneOf {
271
271
  plugins?: FieldPlugin[];
272
272
  /**
273
273
  * This indicates that this fields is conditional and is not retrieved by default.
274
- * To request the field pass `conditional_fields` parameter in data retrieval requests.
275
274
  * @readonly
276
275
  */
277
276
  condition?: FieldCondition;
@@ -778,8 +777,12 @@ interface CategoryFieldOptions {
778
777
  isPrimary?: boolean;
779
778
  }
780
779
  interface FieldCondition {
781
- /** @maxLength 100 */
780
+ /**
781
+ * 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.
782
+ * @maxLength 100
783
+ */
782
784
  groupName?: string | null;
785
+ /** If present, the field may be omitted from the results, if the requester lacks sufficient permissions to access data stored in the field. */
783
786
  permission?: PermissionWithLiterals;
784
787
  }
785
788
  declare enum Permission {
@@ -792,13 +795,29 @@ declare enum Permission {
792
795
  type PermissionWithLiterals = Permission | 'ANYONE' | 'RESTRICTED';
793
796
  /** Permissions defined by the lowest role needed to perform each action. */
794
797
  interface Permissions {
795
- /** Lowest role needed to add a collection. */
798
+ /**
799
+ * Role required to insert items into the collection.
800
+ *
801
+ * Default: `CMS_EDITOR`
802
+ */
796
803
  insert?: RoleWithLiterals;
797
- /** Lowest role needed to update a collection. */
804
+ /**
805
+ * Role required to update collection items.
806
+ *
807
+ * Default: `CMS_EDITOR`
808
+ */
798
809
  update?: RoleWithLiterals;
799
- /** Lowest role needed to remove a collection. */
810
+ /**
811
+ * Role required to remove items from the collection.
812
+ *
813
+ * Default: `CMS_EDITOR`
814
+ */
800
815
  remove?: RoleWithLiterals;
801
- /** Lowest role needed to read a collection. */
816
+ /**
817
+ * Role required to read collection items.
818
+ *
819
+ * Default: `SITE_MEMBER_AUTHOR`
820
+ */
802
821
  read?: RoleWithLiterals;
803
822
  }
804
823
  declare enum Role {
@@ -990,19 +1009,35 @@ declare enum PagingMode {
990
1009
  }
991
1010
  /** @enumType */
992
1011
  type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
993
- /** Data permissions defined by access level for each action. */
1012
+ /** Permissions defined by access level for each action. */
994
1013
  interface DataPermissions {
995
- /** Access level for data items read */
1014
+ /**
1015
+ * Access level required to read collection items.
1016
+ *
1017
+ * Default: `SITE_MEMBER_AUTHOR`
1018
+ */
996
1019
  itemRead?: AccessLevelWithLiterals;
997
- /** Access level for data items insert */
1020
+ /**
1021
+ * Access level required to insert items into the collection.
1022
+ *
1023
+ * Default: `CMS_EDITOR`
1024
+ */
998
1025
  itemInsert?: AccessLevelWithLiterals;
999
- /** Access level for data items update */
1026
+ /**
1027
+ * Access level required to update collection items.
1028
+ *
1029
+ * Default: `CMS_EDITOR`
1030
+ */
1000
1031
  itemUpdate?: AccessLevelWithLiterals;
1001
- /** Access level for data items removal */
1032
+ /**
1033
+ * Access level required to remove items from the collection.
1034
+ *
1035
+ * Default: `CMS_EDITOR`
1036
+ */
1002
1037
  itemRemove?: AccessLevelWithLiterals;
1003
1038
  }
1004
1039
  /**
1005
- * Describes who can perform certain action.
1040
+ * Describes who can perform certain actions.
1006
1041
  * Each level includes all levels below it (except UNDEFINED).
1007
1042
  */
1008
1043
  declare enum AccessLevel {
@@ -2134,7 +2169,7 @@ interface PatchDataCollection {
2134
2169
  * @maxSize 1000
2135
2170
  */
2136
2171
  fields?: Field[];
2137
- /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
2172
+ /** Permissions required to access and modify collection items, defined by the lowest role needed to perform each action. */
2138
2173
  permissions?: Permissions;
2139
2174
  /**
2140
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.
@@ -2163,7 +2198,7 @@ interface PatchDataCollection {
2163
2198
  */
2164
2199
  _updatedDate?: Date | null;
2165
2200
  /**
2166
- * Levels of permission for accessing and modifying data.
2201
+ * Permissions required to access and modify collection items, defined by the lowest access level required to perform each action.
2167
2202
  * @internal
2168
2203
  */
2169
2204
  dataPermissions?: DataPermissions;