Skip to content

Commit

Permalink
fix: Export missing RetentionType (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjankowski authored Oct 28, 2022
1 parent bafd85a commit 7e6b244
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions src/managers/retention-policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ enum RetentionPolicyType {
* @readonly
* @enum {RetentionType}
*/
enum RetentionType {
/**
* You can modify the retention policy. For example, you can add or remove folders,
* shorten or lengthen the policy duration, or delete the assignment.
* Use this type if your retention policy is not related to any regulatory purposes.
*/
enum RetentionType {
/**
* You can modify the retention policy. For example, you can add or remove folders,
* shorten or lengthen the policy duration, or delete the assignment.
* Use this type if your retention policy is not related to any regulatory purposes.
*/
MODIFIABLE = 'modifiable',
/**
* You can modify the retention policy only in a limited way: add a folder, lengthen the duration,
* retire the policy, change the disposition action or notification settings.
* You cannot perform other actions, such as deleting the assignment or shortening the policy duration.
* Use this type to ensure compliance with regulatory retention policies.
*/
/**
* You can modify the retention policy only in a limited way: add a folder, lengthen the duration,
* retire the policy, change the disposition action or notification settings.
* You cannot perform other actions, such as deleting the assignment or shortening the policy duration.
* Use this type to ensure compliance with regulatory retention policies.
*/
NON_MODIFIABLE = 'non_modifiable',
}

Expand Down Expand Up @@ -105,6 +105,7 @@ class RetentionPolicies {
policyTypes!: typeof RetentionPolicyType;
dispositionActions!: typeof RetentionPolicyDispositionAction;
assignmentTypes!: typeof RetentionPolicyAssignmentType;
retentionTypes!: typeof RetentionType;

constructor(client: BoxClient) {
this.client = client;
Expand Down Expand Up @@ -558,4 +559,11 @@ RetentionPolicies.prototype.dispositionActions =
*/
RetentionPolicies.prototype.assignmentTypes = RetentionPolicyAssignmentType;

/**
* Enum of valid retention types. Could be either modifiable or non-modifiable.
* @readonly
* @enum {RetentionType}
*/
RetentionPolicies.prototype.retentionTypes = RetentionType;

export = RetentionPolicies;

0 comments on commit 7e6b244

Please sign in to comment.