@goauthentik/api 2022.5.2-1653148926 → 2022.5.2-1653240797

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.
@@ -34,7 +34,7 @@ export interface NotificationRule {
34
34
  * @type {Array<string>}
35
35
  * @memberof NotificationRule
36
36
  */
37
- transports: Array<string>;
37
+ transports?: Array<string>;
38
38
  /**
39
39
  * Controls which severity level the created notifications will have.
40
40
  * @type {SeverityEnum}
@@ -24,7 +24,7 @@ export function NotificationRuleFromJSONTyped(json, ignoreDiscriminator) {
24
24
  return {
25
25
  'pk': json['pk'],
26
26
  'name': json['name'],
27
- 'transports': json['transports'],
27
+ 'transports': !exists(json, 'transports') ? undefined : json['transports'],
28
28
  'severity': !exists(json, 'severity') ? undefined : SeverityEnumFromJSON(json['severity']),
29
29
  'group': !exists(json, 'group') ? undefined : json['group'],
30
30
  'groupObj': GroupFromJSON(json['group_obj']),
@@ -27,7 +27,7 @@ export interface NotificationRuleRequest {
27
27
  * @type {Array<string>}
28
28
  * @memberof NotificationRuleRequest
29
29
  */
30
- transports: Array<string>;
30
+ transports?: Array<string>;
31
31
  /**
32
32
  * Controls which severity level the created notifications will have.
33
33
  * @type {SeverityEnum}
@@ -22,7 +22,7 @@ export function NotificationRuleRequestFromJSONTyped(json, ignoreDiscriminator)
22
22
  }
23
23
  return {
24
24
  'name': json['name'],
25
- 'transports': json['transports'],
25
+ 'transports': !exists(json, 'transports') ? undefined : json['transports'],
26
26
  'severity': !exists(json, 'severity') ? undefined : SeverityEnumFromJSON(json['severity']),
27
27
  'group': !exists(json, 'group') ? undefined : json['group'],
28
28
  };
@@ -34,7 +34,7 @@ export interface NotificationRule {
34
34
  * @type {Array<string>}
35
35
  * @memberof NotificationRule
36
36
  */
37
- transports: Array<string>;
37
+ transports?: Array<string>;
38
38
  /**
39
39
  * Controls which severity level the created notifications will have.
40
40
  * @type {SeverityEnum}
@@ -28,7 +28,7 @@ function NotificationRuleFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'pk': json['pk'],
30
30
  'name': json['name'],
31
- 'transports': json['transports'],
31
+ 'transports': !runtime_1.exists(json, 'transports') ? undefined : json['transports'],
32
32
  'severity': !runtime_1.exists(json, 'severity') ? undefined : SeverityEnum_1.SeverityEnumFromJSON(json['severity']),
33
33
  'group': !runtime_1.exists(json, 'group') ? undefined : json['group'],
34
34
  'groupObj': Group_1.GroupFromJSON(json['group_obj']),
@@ -27,7 +27,7 @@ export interface NotificationRuleRequest {
27
27
  * @type {Array<string>}
28
28
  * @memberof NotificationRuleRequest
29
29
  */
30
- transports: Array<string>;
30
+ transports?: Array<string>;
31
31
  /**
32
32
  * Controls which severity level the created notifications will have.
33
33
  * @type {SeverityEnum}
@@ -26,7 +26,7 @@ function NotificationRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
26
26
  }
27
27
  return {
28
28
  'name': json['name'],
29
- 'transports': json['transports'],
29
+ 'transports': !runtime_1.exists(json, 'transports') ? undefined : json['transports'],
30
30
  'severity': !runtime_1.exists(json, 'severity') ? undefined : SeverityEnum_1.SeverityEnumFromJSON(json['severity']),
31
31
  'group': !runtime_1.exists(json, 'group') ? undefined : json['group'],
32
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.5.2-1653148926",
3
+ "version": "2022.5.2-1653240797",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -49,7 +49,7 @@ export interface NotificationRule {
49
49
  * @type {Array<string>}
50
50
  * @memberof NotificationRule
51
51
  */
52
- transports: Array<string>;
52
+ transports?: Array<string>;
53
53
  /**
54
54
  * Controls which severity level the created notifications will have.
55
55
  * @type {SeverityEnum}
@@ -82,7 +82,7 @@ export function NotificationRuleFromJSONTyped(json: any, ignoreDiscriminator: bo
82
82
 
83
83
  'pk': json['pk'],
84
84
  'name': json['name'],
85
- 'transports': json['transports'],
85
+ 'transports': !exists(json, 'transports') ? undefined : json['transports'],
86
86
  'severity': !exists(json, 'severity') ? undefined : SeverityEnumFromJSON(json['severity']),
87
87
  'group': !exists(json, 'group') ? undefined : json['group'],
88
88
  'groupObj': GroupFromJSON(json['group_obj']),
@@ -37,7 +37,7 @@ export interface NotificationRuleRequest {
37
37
  * @type {Array<string>}
38
38
  * @memberof NotificationRuleRequest
39
39
  */
40
- transports: Array<string>;
40
+ transports?: Array<string>;
41
41
  /**
42
42
  * Controls which severity level the created notifications will have.
43
43
  * @type {SeverityEnum}
@@ -63,7 +63,7 @@ export function NotificationRuleRequestFromJSONTyped(json: any, ignoreDiscrimina
63
63
  return {
64
64
 
65
65
  'name': json['name'],
66
- 'transports': json['transports'],
66
+ 'transports': !exists(json, 'transports') ? undefined : json['transports'],
67
67
  'severity': !exists(json, 'severity') ? undefined : SeverityEnumFromJSON(json['severity']),
68
68
  'group': !exists(json, 'group') ? undefined : json['group'],
69
69
  };