@@ -26,7 +26,7 @@ export type LegalHoldPolicyStatusField =
2626 | string ;
2727export interface LegalHoldPolicyAssignmentCountsField {
2828 /**
29- * The number of users this policy is applied to. */
29+ * The number of users this policy is applied to with the `access` type assignment . */
3030 readonly user ?: number ;
3131 /**
3232 * The number of folders this policy is applied to. */
@@ -37,6 +37,12 @@ export interface LegalHoldPolicyAssignmentCountsField {
3737 /**
3838 * The number of file versions this policy is applied to. */
3939 readonly fileVersion ?: number ;
40+ /**
41+ * The number of users this policy is applied to with the `ownership` type assignment. */
42+ readonly ownership ?: number ;
43+ /**
44+ * The number of users this policy is applied to with the `interactions` type assignment. */
45+ readonly interactions ?: number ;
4046 readonly rawData ?: SerializedData ;
4147}
4248export class LegalHoldPolicy extends LegalHoldPolicyMini {
@@ -123,6 +129,8 @@ export function serializeLegalHoldPolicyAssignmentCountsField(
123129 [ 'folder' ] : val . folder ,
124130 [ 'file' ] : val . file ,
125131 [ 'file_version' ] : val . fileVersion ,
132+ [ 'ownership' ] : val . ownership ,
133+ [ 'interactions' ] : val . interactions ,
126134 } ;
127135}
128136export function deserializeLegalHoldPolicyAssignmentCountsField (
@@ -162,11 +170,29 @@ export function deserializeLegalHoldPolicyAssignmentCountsField(
162170 }
163171 const fileVersion : undefined | number =
164172 val . file_version == void 0 ? void 0 : val . file_version ;
173+ if ( ! ( val . ownership == void 0 ) && ! sdIsNumber ( val . ownership ) ) {
174+ throw new BoxSdkError ( {
175+ message :
176+ 'Expecting number for "ownership" of type "LegalHoldPolicyAssignmentCountsField"' ,
177+ } ) ;
178+ }
179+ const ownership : undefined | number =
180+ val . ownership == void 0 ? void 0 : val . ownership ;
181+ if ( ! ( val . interactions == void 0 ) && ! sdIsNumber ( val . interactions ) ) {
182+ throw new BoxSdkError ( {
183+ message :
184+ 'Expecting number for "interactions" of type "LegalHoldPolicyAssignmentCountsField"' ,
185+ } ) ;
186+ }
187+ const interactions : undefined | number =
188+ val . interactions == void 0 ? void 0 : val . interactions ;
165189 return {
166190 user : user ,
167191 folder : folder ,
168192 file : file ,
169193 fileVersion : fileVersion ,
194+ ownership : ownership ,
195+ interactions : interactions ,
170196 } satisfies LegalHoldPolicyAssignmentCountsField ;
171197}
172198export function serializeLegalHoldPolicy ( val : LegalHoldPolicy ) : SerializedData {
0 commit comments