@dynamic-labs/sdk-api 0.70.0 → 0.71.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.70.0",
3
+ "version": "0.71.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -17,6 +17,8 @@ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminat
17
17
  'v': json['v'],
18
18
  'id': json['id'],
19
19
  'when': !runtime.exists(json, 'when') ? undefined : WaasPolicyRuleWhen.WaasPolicyRuleWhenFromJSON(json['when']),
20
+ 'eligibleApproverRoles': !runtime.exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
21
+ 'mandatoryApproverRoles': !runtime.exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
20
22
  'eligibleApproverRole': !runtime.exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
21
23
  'mandatoryApproverRole': !runtime.exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
22
24
  'requiredApprovals': json['requiredApprovals'],
@@ -34,6 +36,8 @@ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
34
36
  'v': value.v,
35
37
  'id': value.id,
36
38
  'when': WaasPolicyRuleWhen.WaasPolicyRuleWhenToJSON(value.when),
39
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
40
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
37
41
  'eligibleApproverRole': value.eligibleApproverRole,
38
42
  'mandatoryApproverRole': value.mandatoryApproverRole,
39
43
  'requiredApprovals': value.requiredApprovals,
@@ -35,13 +35,25 @@ export interface WaasPolicyRuleApprovalRequirements {
35
35
  */
36
36
  when?: WaasPolicyRuleWhen;
37
37
  /**
38
- * Name of the role whose holders may satisfy this requirement.
38
+ * Names of the roles whose holders may satisfy this requirement. A holder of any listed role may approve. An empty array means no restriction.
39
+ * @type {Array<string>}
40
+ * @memberof WaasPolicyRuleApprovalRequirements
41
+ */
42
+ eligibleApproverRoles?: Array<string>;
43
+ /**
44
+ * Names of the roles that must each be represented among the approvers, regardless of eligibleApproverRoles. An empty array means none.
45
+ * @type {Array<string>}
46
+ * @memberof WaasPolicyRuleApprovalRequirements
47
+ */
48
+ mandatoryApproverRoles?: Array<string>;
49
+ /**
50
+ * Deprecated. Use eligibleApproverRoles. Do not send both.
39
51
  * @type {string}
40
52
  * @memberof WaasPolicyRuleApprovalRequirements
41
53
  */
42
54
  eligibleApproverRole?: string;
43
55
  /**
44
- * Name of the role whose holders must approve, regardless of eligibleApproverRole.
56
+ * Deprecated. Use mandatoryApproverRoles. Do not send both.
45
57
  * @type {string}
46
58
  * @memberof WaasPolicyRuleApprovalRequirements
47
59
  */
@@ -13,6 +13,8 @@ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminat
13
13
  'v': json['v'],
14
14
  'id': json['id'],
15
15
  'when': !exists(json, 'when') ? undefined : WaasPolicyRuleWhenFromJSON(json['when']),
16
+ 'eligibleApproverRoles': !exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
17
+ 'mandatoryApproverRoles': !exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
16
18
  'eligibleApproverRole': !exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
17
19
  'mandatoryApproverRole': !exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
18
20
  'requiredApprovals': json['requiredApprovals'],
@@ -30,6 +32,8 @@ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
30
32
  'v': value.v,
31
33
  'id': value.id,
32
34
  'when': WaasPolicyRuleWhenToJSON(value.when),
35
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
36
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
33
37
  'eligibleApproverRole': value.eligibleApproverRole,
34
38
  'mandatoryApproverRole': value.mandatoryApproverRole,
35
39
  'requiredApprovals': value.requiredApprovals,