@dynamic-labs/sdk-api 0.0.759 → 0.0.760

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.0.759",
3
+ "version": "0.0.760",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../runtime.cjs');
5
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
6
6
 
7
7
  /* tslint:disable */
8
8
  function WaasPolicyResponseFromJSON(json) {
@@ -15,8 +15,9 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
15
15
  return {
16
16
  'policyId': json['policyId'],
17
17
  'projectEnvironmentId': json['projectEnvironmentId'],
18
- 'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
19
- 'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
18
+ 'createdAt': (new Date(json['createdAt'])),
19
+ 'updatedAt': (new Date(json['updatedAt'])),
20
+ 'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
20
21
  };
21
22
  }
22
23
  function WaasPolicyResponseToJSON(value) {
@@ -29,8 +30,9 @@ function WaasPolicyResponseToJSON(value) {
29
30
  return {
30
31
  'policyId': value.policyId,
31
32
  'projectEnvironmentId': value.projectEnvironmentId,
32
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
33
- 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
33
+ 'createdAt': (value.createdAt.toISOString()),
34
+ 'updatedAt': (value.updatedAt.toISOString()),
35
+ 'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
34
36
  };
35
37
  }
36
38
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { WaasPolicyRule } from './WaasPolicyRule';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -32,13 +33,19 @@ export interface WaasPolicyResponse {
32
33
  * @type {Date}
33
34
  * @memberof WaasPolicyResponse
34
35
  */
35
- createdAt?: Date;
36
+ createdAt: Date;
36
37
  /**
37
38
  *
38
39
  * @type {Date}
39
40
  * @memberof WaasPolicyResponse
40
41
  */
41
- updatedAt?: Date;
42
+ updatedAt: Date;
43
+ /**
44
+ * Array of rules defining the policy permissions
45
+ * @type {Array<WaasPolicyRule>}
46
+ * @memberof WaasPolicyResponse
47
+ */
48
+ policyContent: Array<WaasPolicyRule>;
42
49
  }
43
50
  export declare function WaasPolicyResponseFromJSON(json: any): WaasPolicyResponse;
44
51
  export declare function WaasPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyResponse;
@@ -1,4 +1,4 @@
1
- import { exists } from '../runtime.js';
1
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
2
2
 
3
3
  /* tslint:disable */
4
4
  function WaasPolicyResponseFromJSON(json) {
@@ -11,8 +11,9 @@ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
11
11
  return {
12
12
  'policyId': json['policyId'],
13
13
  'projectEnvironmentId': json['projectEnvironmentId'],
14
- 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
15
- 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
14
+ 'createdAt': (new Date(json['createdAt'])),
15
+ 'updatedAt': (new Date(json['updatedAt'])),
16
+ 'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
16
17
  };
17
18
  }
18
19
  function WaasPolicyResponseToJSON(value) {
@@ -25,8 +26,9 @@ function WaasPolicyResponseToJSON(value) {
25
26
  return {
26
27
  'policyId': value.policyId,
27
28
  'projectEnvironmentId': value.projectEnvironmentId,
28
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
29
- 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
29
+ 'createdAt': (value.createdAt.toISOString()),
30
+ 'updatedAt': (value.updatedAt.toISOString()),
31
+ 'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
30
32
  };
31
33
  }
32
34