@notificationapi/node 0.0.2-alpha.5 → 0.0.2-alpha.7

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.
Files changed (39) hide show
  1. package/dist/generated/src/apis/ComponentsApi.d.ts +5 -5
  2. package/dist/generated/src/apis/ComponentsApi.js +2 -3
  3. package/dist/generated/src/apis/TemplatesApi.d.ts +5 -5
  4. package/dist/generated/src/apis/TemplatesApi.js +2 -3
  5. package/dist/generated/src/apis/TypesApi.d.ts +5 -5
  6. package/dist/generated/src/apis/TypesApi.js +2 -3
  7. package/dist/generated/src/models/ChannelsEnum.d.ts +30 -0
  8. package/dist/generated/src/models/ChannelsEnum.js +58 -0
  9. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.d.ts +3 -15
  10. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.js +3 -17
  11. package/dist/generated/src/models/Environment.d.ts +3 -15
  12. package/dist/generated/src/models/Environment.js +3 -17
  13. package/dist/generated/src/models/EnvironmentPatchRequest.d.ts +3 -15
  14. package/dist/generated/src/models/EnvironmentPatchRequest.js +7 -17
  15. package/dist/generated/src/models/GetEnvironmentsResponseInner.d.ts +3 -15
  16. package/dist/generated/src/models/GetEnvironmentsResponseInner.js +3 -17
  17. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.d.ts +3 -15
  18. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.js +3 -17
  19. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.d.ts +3 -15
  20. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.js +3 -17
  21. package/dist/generated/src/models/GetNotificationsResponseInner.d.ts +3 -15
  22. package/dist/generated/src/models/GetNotificationsResponseInner.js +3 -17
  23. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.d.ts +3 -15
  24. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.js +3 -17
  25. package/dist/generated/src/models/GetTemplatesResponse.d.ts +3 -15
  26. package/dist/generated/src/models/GetTemplatesResponse.js +3 -17
  27. package/dist/generated/src/models/Notification.d.ts +3 -15
  28. package/dist/generated/src/models/Notification.js +3 -17
  29. package/dist/generated/src/models/NotificationPatchRequest.d.ts +3 -15
  30. package/dist/generated/src/models/NotificationPatchRequest.js +7 -17
  31. package/dist/generated/src/models/SenderPostBody.d.ts +3 -15
  32. package/dist/generated/src/models/SenderPostBody.js +7 -17
  33. package/dist/generated/src/models/Template.d.ts +3 -15
  34. package/dist/generated/src/models/Template.js +3 -17
  35. package/dist/generated/src/models/index.d.ts +1 -1
  36. package/dist/generated/src/models/index.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/generated/src/models/DeleteTemplateResponse.d.ts +0 -32
  39. package/dist/generated/src/models/DeleteTemplateResponse.js +0 -50
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum = void 0;
17
16
  exports.instanceOfGetInappNotificationsResponseNotificationsInnerTemplate = instanceOfGetInappNotificationsResponseNotificationsInnerTemplate;
18
17
  exports.GetInappNotificationsResponseNotificationsInnerTemplateFromJSON = GetInappNotificationsResponseNotificationsInnerTemplateFromJSON;
19
18
  exports.GetInappNotificationsResponseNotificationsInnerTemplateFromJSONTyped = GetInappNotificationsResponseNotificationsInnerTemplateFromJSONTyped;
20
19
  exports.GetInappNotificationsResponseNotificationsInnerTemplateToJSON = GetInappNotificationsResponseNotificationsInnerTemplateToJSON;
21
20
  exports.GetInappNotificationsResponseNotificationsInnerTemplateToJSONTyped = GetInappNotificationsResponseNotificationsInnerTemplateToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum;
27
- (function (GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum) {
28
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["Email"] = "EMAIL";
29
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["InappWeb"] = "INAPP_WEB";
30
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["Sms"] = "SMS";
31
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["Call"] = "CALL";
32
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["Push"] = "PUSH";
33
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["WebPush"] = "WEB_PUSH";
34
- GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum["Slack"] = "SLACK";
35
- })(GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum || (exports.GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum = GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the GetInappNotificationsResponseNotificationsInnerTemplate interface.
38
24
  */
@@ -60,7 +46,7 @@ function GetInappNotificationsResponseNotificationsInnerTemplateFromJSONTyped(js
60
46
  envId: json['envId'],
61
47
  notificationId: json['notificationId'],
62
48
  templateId: json['templateId'],
63
- channel: json['channel'],
49
+ channel: (0, ChannelsEnum_1.ChannelsEnumFromJSON)(json['channel']),
64
50
  _default: json['default'],
65
51
  isDefaultFor: json['isDefaultFor'] == null ? undefined : json['isDefaultFor']
66
52
  };
@@ -76,7 +62,7 @@ function GetInappNotificationsResponseNotificationsInnerTemplateToJSONTyped(valu
76
62
  envId: value['envId'],
77
63
  notificationId: value['notificationId'],
78
64
  templateId: value['templateId'],
79
- channel: value['channel'],
65
+ channel: (0, ChannelsEnum_1.ChannelsEnumToJSON)(value['channel']),
80
66
  default: value['_default'],
81
67
  isDefaultFor: value['isDefaultFor']
82
68
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ChannelsEnum } from './ChannelsEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -35,10 +36,10 @@ export interface GetInappNotificationsResponseNotificationsInnerTemplateAnyOf {
35
36
  templateId: string;
36
37
  /**
37
38
  *
38
- * @type {string}
39
+ * @type {ChannelsEnum}
39
40
  * @memberof GetInappNotificationsResponseNotificationsInnerTemplateAnyOf
40
41
  */
41
- channel: GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum;
42
+ channel: ChannelsEnum;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -54,19 +55,6 @@ export interface GetInappNotificationsResponseNotificationsInnerTemplateAnyOf {
54
55
  [key: string]: boolean;
55
56
  };
56
57
  }
57
- /**
58
- * @export
59
- * @enum {string}
60
- */
61
- export declare enum GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum {
62
- Email = "EMAIL",
63
- InappWeb = "INAPP_WEB",
64
- Sms = "SMS",
65
- Call = "CALL",
66
- Push = "PUSH",
67
- WebPush = "WEB_PUSH",
68
- Slack = "SLACK"
69
- }
70
58
  /**
71
59
  * Check if a given object implements the GetInappNotificationsResponseNotificationsInnerTemplateAnyOf interface.
72
60
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum = void 0;
17
16
  exports.instanceOfGetInappNotificationsResponseNotificationsInnerTemplateAnyOf = instanceOfGetInappNotificationsResponseNotificationsInnerTemplateAnyOf;
18
17
  exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfFromJSON = GetInappNotificationsResponseNotificationsInnerTemplateAnyOfFromJSON;
19
18
  exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfFromJSONTyped = GetInappNotificationsResponseNotificationsInnerTemplateAnyOfFromJSONTyped;
20
19
  exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfToJSON = GetInappNotificationsResponseNotificationsInnerTemplateAnyOfToJSON;
21
20
  exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfToJSONTyped = GetInappNotificationsResponseNotificationsInnerTemplateAnyOfToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum;
27
- (function (GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum) {
28
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["Email"] = "EMAIL";
29
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["InappWeb"] = "INAPP_WEB";
30
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["Sms"] = "SMS";
31
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["Call"] = "CALL";
32
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["Push"] = "PUSH";
33
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["WebPush"] = "WEB_PUSH";
34
- GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum["Slack"] = "SLACK";
35
- })(GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum || (exports.GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum = GetInappNotificationsResponseNotificationsInnerTemplateAnyOfChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the GetInappNotificationsResponseNotificationsInnerTemplateAnyOf interface.
38
24
  */
@@ -60,7 +46,7 @@ function GetInappNotificationsResponseNotificationsInnerTemplateAnyOfFromJSONTyp
60
46
  envId: json['envId'],
61
47
  notificationId: json['notificationId'],
62
48
  templateId: json['templateId'],
63
- channel: json['channel'],
49
+ channel: (0, ChannelsEnum_1.ChannelsEnumFromJSON)(json['channel']),
64
50
  _default: json['default'],
65
51
  isDefaultFor: json['isDefaultFor'] == null ? undefined : json['isDefaultFor']
66
52
  };
@@ -76,7 +62,7 @@ function GetInappNotificationsResponseNotificationsInnerTemplateAnyOfToJSONTyped
76
62
  envId: value['envId'],
77
63
  notificationId: value['notificationId'],
78
64
  templateId: value['templateId'],
79
- channel: value['channel'],
65
+ channel: (0, ChannelsEnum_1.ChannelsEnumToJSON)(value['channel']),
80
66
  default: value['_default'],
81
67
  isDefaultFor: value['isDefaultFor']
82
68
  };
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { GetNotificationsResponseInnerDeduplication } from './GetNotificationsResponseInnerDeduplication';
13
13
  import type { GetNotificationsResponseInnerThrottling } from './GetNotificationsResponseInnerThrottling';
14
+ import type { ChannelsEnum } from './ChannelsEnum';
14
15
  import type { GetNotificationsResponseInnerOptions } from './GetNotificationsResponseInnerOptions';
15
16
  import type { GetNotificationsResponseInnerTemplatesInner } from './GetNotificationsResponseInnerTemplatesInner';
16
17
  /**
@@ -39,10 +40,10 @@ export interface GetNotificationsResponseInner {
39
40
  title: string;
40
41
  /**
41
42
  *
42
- * @type {Array<string>}
43
+ * @type {Array<ChannelsEnum>}
43
44
  * @memberof GetNotificationsResponseInner
44
45
  */
45
- channels: Array<GetNotificationsResponseInnerChannelsEnum>;
46
+ channels: Array<ChannelsEnum>;
46
47
  /**
47
48
  *
48
49
  * @type {boolean}
@@ -80,19 +81,6 @@ export interface GetNotificationsResponseInner {
80
81
  */
81
82
  templates?: Array<GetNotificationsResponseInnerTemplatesInner>;
82
83
  }
83
- /**
84
- * @export
85
- * @enum {string}
86
- */
87
- export declare enum GetNotificationsResponseInnerChannelsEnum {
88
- Email = "EMAIL",
89
- InappWeb = "INAPP_WEB",
90
- Sms = "SMS",
91
- Call = "CALL",
92
- Push = "PUSH",
93
- WebPush = "WEB_PUSH",
94
- Slack = "SLACK"
95
- }
96
84
  /**
97
85
  * Check if a given object implements the GetNotificationsResponseInner interface.
98
86
  */
@@ -13,7 +13,6 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetNotificationsResponseInnerChannelsEnum = void 0;
17
16
  exports.instanceOfGetNotificationsResponseInner = instanceOfGetNotificationsResponseInner;
18
17
  exports.GetNotificationsResponseInnerFromJSON = GetNotificationsResponseInnerFromJSON;
19
18
  exports.GetNotificationsResponseInnerFromJSONTyped = GetNotificationsResponseInnerFromJSONTyped;
@@ -21,22 +20,9 @@ exports.GetNotificationsResponseInnerToJSON = GetNotificationsResponseInnerToJSO
21
20
  exports.GetNotificationsResponseInnerToJSONTyped = GetNotificationsResponseInnerToJSONTyped;
22
21
  const GetNotificationsResponseInnerDeduplication_1 = require("./GetNotificationsResponseInnerDeduplication");
23
22
  const GetNotificationsResponseInnerThrottling_1 = require("./GetNotificationsResponseInnerThrottling");
23
+ const ChannelsEnum_1 = require("./ChannelsEnum");
24
24
  const GetNotificationsResponseInnerOptions_1 = require("./GetNotificationsResponseInnerOptions");
25
25
  const GetNotificationsResponseInnerTemplatesInner_1 = require("./GetNotificationsResponseInnerTemplatesInner");
26
- /**
27
- * @export
28
- * @enum {string}
29
- */
30
- var GetNotificationsResponseInnerChannelsEnum;
31
- (function (GetNotificationsResponseInnerChannelsEnum) {
32
- GetNotificationsResponseInnerChannelsEnum["Email"] = "EMAIL";
33
- GetNotificationsResponseInnerChannelsEnum["InappWeb"] = "INAPP_WEB";
34
- GetNotificationsResponseInnerChannelsEnum["Sms"] = "SMS";
35
- GetNotificationsResponseInnerChannelsEnum["Call"] = "CALL";
36
- GetNotificationsResponseInnerChannelsEnum["Push"] = "PUSH";
37
- GetNotificationsResponseInnerChannelsEnum["WebPush"] = "WEB_PUSH";
38
- GetNotificationsResponseInnerChannelsEnum["Slack"] = "SLACK";
39
- })(GetNotificationsResponseInnerChannelsEnum || (exports.GetNotificationsResponseInnerChannelsEnum = GetNotificationsResponseInnerChannelsEnum = {}));
40
26
  /**
41
27
  * Check if a given object implements the GetNotificationsResponseInner interface.
42
28
  */
@@ -64,7 +50,7 @@ function GetNotificationsResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
64
50
  envId: json['envId'],
65
51
  notificationId: json['notificationId'],
66
52
  title: json['title'],
67
- channels: json['channels'],
53
+ channels: json['channels'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
68
54
  enabled: json['enabled'],
69
55
  deduplication: json['deduplication'] == null
70
56
  ? undefined
@@ -92,7 +78,7 @@ function GetNotificationsResponseInnerToJSONTyped(value, ignoreDiscriminator = f
92
78
  envId: value['envId'],
93
79
  notificationId: value['notificationId'],
94
80
  title: value['title'],
95
- channels: value['channels'],
81
+ channels: value['channels'].map(ChannelsEnum_1.ChannelsEnumToJSON),
96
82
  enabled: value['enabled'],
97
83
  deduplication: (0, GetNotificationsResponseInnerDeduplication_1.GetNotificationsResponseInnerDeduplicationToJSON)(value['deduplication']),
98
84
  throttling: (0, GetNotificationsResponseInnerThrottling_1.GetNotificationsResponseInnerThrottlingToJSON)(value['throttling']),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ChannelsEnum } from './ChannelsEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface GetNotificationsResponseInnerTemplatesInner {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {ChannelsEnum}
21
22
  * @memberof GetNotificationsResponseInnerTemplatesInner
22
23
  */
23
- channel: GetNotificationsResponseInnerTemplatesInnerChannelEnum;
24
+ channel: ChannelsEnum;
24
25
  /**
25
26
  *
26
27
  * @type {Array<string>}
@@ -28,19 +29,6 @@ export interface GetNotificationsResponseInnerTemplatesInner {
28
29
  */
29
30
  templateIds: Array<string>;
30
31
  }
31
- /**
32
- * @export
33
- * @enum {string}
34
- */
35
- export declare enum GetNotificationsResponseInnerTemplatesInnerChannelEnum {
36
- Email = "EMAIL",
37
- InappWeb = "INAPP_WEB",
38
- Sms = "SMS",
39
- Call = "CALL",
40
- Push = "PUSH",
41
- WebPush = "WEB_PUSH",
42
- Slack = "SLACK"
43
- }
44
32
  /**
45
33
  * Check if a given object implements the GetNotificationsResponseInnerTemplatesInner interface.
46
34
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetNotificationsResponseInnerTemplatesInnerChannelEnum = void 0;
17
16
  exports.instanceOfGetNotificationsResponseInnerTemplatesInner = instanceOfGetNotificationsResponseInnerTemplatesInner;
18
17
  exports.GetNotificationsResponseInnerTemplatesInnerFromJSON = GetNotificationsResponseInnerTemplatesInnerFromJSON;
19
18
  exports.GetNotificationsResponseInnerTemplatesInnerFromJSONTyped = GetNotificationsResponseInnerTemplatesInnerFromJSONTyped;
20
19
  exports.GetNotificationsResponseInnerTemplatesInnerToJSON = GetNotificationsResponseInnerTemplatesInnerToJSON;
21
20
  exports.GetNotificationsResponseInnerTemplatesInnerToJSONTyped = GetNotificationsResponseInnerTemplatesInnerToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var GetNotificationsResponseInnerTemplatesInnerChannelEnum;
27
- (function (GetNotificationsResponseInnerTemplatesInnerChannelEnum) {
28
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["Email"] = "EMAIL";
29
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["InappWeb"] = "INAPP_WEB";
30
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["Sms"] = "SMS";
31
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["Call"] = "CALL";
32
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["Push"] = "PUSH";
33
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["WebPush"] = "WEB_PUSH";
34
- GetNotificationsResponseInnerTemplatesInnerChannelEnum["Slack"] = "SLACK";
35
- })(GetNotificationsResponseInnerTemplatesInnerChannelEnum || (exports.GetNotificationsResponseInnerTemplatesInnerChannelEnum = GetNotificationsResponseInnerTemplatesInnerChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the GetNotificationsResponseInnerTemplatesInner interface.
38
24
  */
@@ -51,7 +37,7 @@ function GetNotificationsResponseInnerTemplatesInnerFromJSONTyped(json, ignoreDi
51
37
  return json;
52
38
  }
53
39
  return {
54
- channel: json['channel'],
40
+ channel: (0, ChannelsEnum_1.ChannelsEnumFromJSON)(json['channel']),
55
41
  templateIds: json['templateIds']
56
42
  };
57
43
  }
@@ -63,7 +49,7 @@ function GetNotificationsResponseInnerTemplatesInnerToJSONTyped(value, ignoreDis
63
49
  return value;
64
50
  }
65
51
  return {
66
- channel: value['channel'],
52
+ channel: (0, ChannelsEnum_1.ChannelsEnumToJSON)(value['channel']),
67
53
  templateIds: value['templateIds']
68
54
  };
69
55
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ChannelsEnum } from './ChannelsEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -35,10 +36,10 @@ export interface GetTemplatesResponse {
35
36
  templateId: string;
36
37
  /**
37
38
  *
38
- * @type {string}
39
+ * @type {ChannelsEnum}
39
40
  * @memberof GetTemplatesResponse
40
41
  */
41
- channel: GetTemplatesResponseChannelEnum;
42
+ channel: ChannelsEnum;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -54,19 +55,6 @@ export interface GetTemplatesResponse {
54
55
  [key: string]: boolean;
55
56
  };
56
57
  }
57
- /**
58
- * @export
59
- * @enum {string}
60
- */
61
- export declare enum GetTemplatesResponseChannelEnum {
62
- Email = "EMAIL",
63
- InappWeb = "INAPP_WEB",
64
- Sms = "SMS",
65
- Call = "CALL",
66
- Push = "PUSH",
67
- WebPush = "WEB_PUSH",
68
- Slack = "SLACK"
69
- }
70
58
  /**
71
59
  * Check if a given object implements the GetTemplatesResponse interface.
72
60
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetTemplatesResponseChannelEnum = void 0;
17
16
  exports.instanceOfGetTemplatesResponse = instanceOfGetTemplatesResponse;
18
17
  exports.GetTemplatesResponseFromJSON = GetTemplatesResponseFromJSON;
19
18
  exports.GetTemplatesResponseFromJSONTyped = GetTemplatesResponseFromJSONTyped;
20
19
  exports.GetTemplatesResponseToJSON = GetTemplatesResponseToJSON;
21
20
  exports.GetTemplatesResponseToJSONTyped = GetTemplatesResponseToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var GetTemplatesResponseChannelEnum;
27
- (function (GetTemplatesResponseChannelEnum) {
28
- GetTemplatesResponseChannelEnum["Email"] = "EMAIL";
29
- GetTemplatesResponseChannelEnum["InappWeb"] = "INAPP_WEB";
30
- GetTemplatesResponseChannelEnum["Sms"] = "SMS";
31
- GetTemplatesResponseChannelEnum["Call"] = "CALL";
32
- GetTemplatesResponseChannelEnum["Push"] = "PUSH";
33
- GetTemplatesResponseChannelEnum["WebPush"] = "WEB_PUSH";
34
- GetTemplatesResponseChannelEnum["Slack"] = "SLACK";
35
- })(GetTemplatesResponseChannelEnum || (exports.GetTemplatesResponseChannelEnum = GetTemplatesResponseChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the GetTemplatesResponse interface.
38
24
  */
@@ -60,7 +46,7 @@ function GetTemplatesResponseFromJSONTyped(json, ignoreDiscriminator) {
60
46
  envId: json['envId'],
61
47
  notificationId: json['notificationId'],
62
48
  templateId: json['templateId'],
63
- channel: json['channel'],
49
+ channel: (0, ChannelsEnum_1.ChannelsEnumFromJSON)(json['channel']),
64
50
  _default: json['default'],
65
51
  isDefaultFor: json['isDefaultFor'] == null ? undefined : json['isDefaultFor']
66
52
  };
@@ -76,7 +62,7 @@ function GetTemplatesResponseToJSONTyped(value, ignoreDiscriminator = false) {
76
62
  envId: value['envId'],
77
63
  notificationId: value['notificationId'],
78
64
  templateId: value['templateId'],
79
- channel: value['channel'],
65
+ channel: (0, ChannelsEnum_1.ChannelsEnumToJSON)(value['channel']),
80
66
  default: value['_default'],
81
67
  isDefaultFor: value['isDefaultFor']
82
68
  };
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { GetNotificationsResponseInnerDeduplication } from './GetNotificationsResponseInnerDeduplication';
13
13
  import type { GetNotificationsResponseInnerThrottling } from './GetNotificationsResponseInnerThrottling';
14
+ import type { ChannelsEnum } from './ChannelsEnum';
14
15
  import type { GetNotificationsResponseInnerOptions } from './GetNotificationsResponseInnerOptions';
15
16
  import type { GetNotificationsResponseInnerTemplatesInner } from './GetNotificationsResponseInnerTemplatesInner';
16
17
  /**
@@ -39,10 +40,10 @@ export interface Notification {
39
40
  title: string;
40
41
  /**
41
42
  *
42
- * @type {Array<string>}
43
+ * @type {Array<ChannelsEnum>}
43
44
  * @memberof Notification
44
45
  */
45
- channels: Array<NotificationChannelsEnum>;
46
+ channels: Array<ChannelsEnum>;
46
47
  /**
47
48
  *
48
49
  * @type {boolean}
@@ -80,19 +81,6 @@ export interface Notification {
80
81
  */
81
82
  templates?: Array<GetNotificationsResponseInnerTemplatesInner>;
82
83
  }
83
- /**
84
- * @export
85
- * @enum {string}
86
- */
87
- export declare enum NotificationChannelsEnum {
88
- Email = "EMAIL",
89
- InappWeb = "INAPP_WEB",
90
- Sms = "SMS",
91
- Call = "CALL",
92
- Push = "PUSH",
93
- WebPush = "WEB_PUSH",
94
- Slack = "SLACK"
95
- }
96
84
  /**
97
85
  * Check if a given object implements the Notification interface.
98
86
  */
@@ -13,7 +13,6 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NotificationChannelsEnum = void 0;
17
16
  exports.instanceOfNotification = instanceOfNotification;
18
17
  exports.NotificationFromJSON = NotificationFromJSON;
19
18
  exports.NotificationFromJSONTyped = NotificationFromJSONTyped;
@@ -21,22 +20,9 @@ exports.NotificationToJSON = NotificationToJSON;
21
20
  exports.NotificationToJSONTyped = NotificationToJSONTyped;
22
21
  const GetNotificationsResponseInnerDeduplication_1 = require("./GetNotificationsResponseInnerDeduplication");
23
22
  const GetNotificationsResponseInnerThrottling_1 = require("./GetNotificationsResponseInnerThrottling");
23
+ const ChannelsEnum_1 = require("./ChannelsEnum");
24
24
  const GetNotificationsResponseInnerOptions_1 = require("./GetNotificationsResponseInnerOptions");
25
25
  const GetNotificationsResponseInnerTemplatesInner_1 = require("./GetNotificationsResponseInnerTemplatesInner");
26
- /**
27
- * @export
28
- * @enum {string}
29
- */
30
- var NotificationChannelsEnum;
31
- (function (NotificationChannelsEnum) {
32
- NotificationChannelsEnum["Email"] = "EMAIL";
33
- NotificationChannelsEnum["InappWeb"] = "INAPP_WEB";
34
- NotificationChannelsEnum["Sms"] = "SMS";
35
- NotificationChannelsEnum["Call"] = "CALL";
36
- NotificationChannelsEnum["Push"] = "PUSH";
37
- NotificationChannelsEnum["WebPush"] = "WEB_PUSH";
38
- NotificationChannelsEnum["Slack"] = "SLACK";
39
- })(NotificationChannelsEnum || (exports.NotificationChannelsEnum = NotificationChannelsEnum = {}));
40
26
  /**
41
27
  * Check if a given object implements the Notification interface.
42
28
  */
@@ -64,7 +50,7 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
64
50
  envId: json['envId'],
65
51
  notificationId: json['notificationId'],
66
52
  title: json['title'],
67
- channels: json['channels'],
53
+ channels: json['channels'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
68
54
  enabled: json['enabled'],
69
55
  deduplication: json['deduplication'] == null
70
56
  ? undefined
@@ -92,7 +78,7 @@ function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
92
78
  envId: value['envId'],
93
79
  notificationId: value['notificationId'],
94
80
  title: value['title'],
95
- channels: value['channels'],
81
+ channels: value['channels'].map(ChannelsEnum_1.ChannelsEnumToJSON),
96
82
  enabled: value['enabled'],
97
83
  deduplication: (0, GetNotificationsResponseInnerDeduplication_1.GetNotificationsResponseInnerDeduplicationToJSON)(value['deduplication']),
98
84
  throttling: (0, GetNotificationsResponseInnerThrottling_1.GetNotificationsResponseInnerThrottlingToJSON)(value['throttling']),
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { GetNotificationsResponseInnerDeduplication } from './GetNotificationsResponseInnerDeduplication';
13
13
  import type { GetNotificationsResponseInnerThrottling } from './GetNotificationsResponseInnerThrottling';
14
+ import type { ChannelsEnum } from './ChannelsEnum';
14
15
  import type { GetNotificationsResponseInnerOptions } from './GetNotificationsResponseInnerOptions';
15
16
  /**
16
17
  *
@@ -26,10 +27,10 @@ export interface NotificationPatchRequest {
26
27
  title?: string;
27
28
  /**
28
29
  *
29
- * @type {Array<string>}
30
+ * @type {Array<ChannelsEnum>}
30
31
  * @memberof NotificationPatchRequest
31
32
  */
32
- channels?: Array<NotificationPatchRequestChannelsEnum>;
33
+ channels?: Array<ChannelsEnum>;
33
34
  /**
34
35
  *
35
36
  * @type {boolean}
@@ -61,19 +62,6 @@ export interface NotificationPatchRequest {
61
62
  */
62
63
  options?: GetNotificationsResponseInnerOptions;
63
64
  }
64
- /**
65
- * @export
66
- * @enum {string}
67
- */
68
- export declare enum NotificationPatchRequestChannelsEnum {
69
- Email = "EMAIL",
70
- InappWeb = "INAPP_WEB",
71
- Sms = "SMS",
72
- Call = "CALL",
73
- Push = "PUSH",
74
- WebPush = "WEB_PUSH",
75
- Slack = "SLACK"
76
- }
77
65
  /**
78
66
  * Check if a given object implements the NotificationPatchRequest interface.
79
67
  */
@@ -13,7 +13,6 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NotificationPatchRequestChannelsEnum = void 0;
17
16
  exports.instanceOfNotificationPatchRequest = instanceOfNotificationPatchRequest;
18
17
  exports.NotificationPatchRequestFromJSON = NotificationPatchRequestFromJSON;
19
18
  exports.NotificationPatchRequestFromJSONTyped = NotificationPatchRequestFromJSONTyped;
@@ -21,21 +20,8 @@ exports.NotificationPatchRequestToJSON = NotificationPatchRequestToJSON;
21
20
  exports.NotificationPatchRequestToJSONTyped = NotificationPatchRequestToJSONTyped;
22
21
  const GetNotificationsResponseInnerDeduplication_1 = require("./GetNotificationsResponseInnerDeduplication");
23
22
  const GetNotificationsResponseInnerThrottling_1 = require("./GetNotificationsResponseInnerThrottling");
23
+ const ChannelsEnum_1 = require("./ChannelsEnum");
24
24
  const GetNotificationsResponseInnerOptions_1 = require("./GetNotificationsResponseInnerOptions");
25
- /**
26
- * @export
27
- * @enum {string}
28
- */
29
- var NotificationPatchRequestChannelsEnum;
30
- (function (NotificationPatchRequestChannelsEnum) {
31
- NotificationPatchRequestChannelsEnum["Email"] = "EMAIL";
32
- NotificationPatchRequestChannelsEnum["InappWeb"] = "INAPP_WEB";
33
- NotificationPatchRequestChannelsEnum["Sms"] = "SMS";
34
- NotificationPatchRequestChannelsEnum["Call"] = "CALL";
35
- NotificationPatchRequestChannelsEnum["Push"] = "PUSH";
36
- NotificationPatchRequestChannelsEnum["WebPush"] = "WEB_PUSH";
37
- NotificationPatchRequestChannelsEnum["Slack"] = "SLACK";
38
- })(NotificationPatchRequestChannelsEnum || (exports.NotificationPatchRequestChannelsEnum = NotificationPatchRequestChannelsEnum = {}));
39
25
  /**
40
26
  * Check if a given object implements the NotificationPatchRequest interface.
41
27
  */
@@ -51,7 +37,9 @@ function NotificationPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
51
37
  }
52
38
  return {
53
39
  title: json['title'] == null ? undefined : json['title'],
54
- channels: json['channels'] == null ? undefined : json['channels'],
40
+ channels: json['channels'] == null
41
+ ? undefined
42
+ : json['channels'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
55
43
  enabled: json['enabled'] == null ? undefined : json['enabled'],
56
44
  deduplication: json['deduplication'] == null
57
45
  ? undefined
@@ -74,7 +62,9 @@ function NotificationPatchRequestToJSONTyped(value, ignoreDiscriminator = false)
74
62
  }
75
63
  return {
76
64
  title: value['title'],
77
- channels: value['channels'],
65
+ channels: value['channels'] == null
66
+ ? undefined
67
+ : value['channels'].map(ChannelsEnum_1.ChannelsEnumToJSON),
78
68
  enabled: value['enabled'],
79
69
  deduplication: (0, GetNotificationsResponseInnerDeduplication_1.GetNotificationsResponseInnerDeduplicationToJSON)(value['deduplication']),
80
70
  throttling: (0, GetNotificationsResponseInnerThrottling_1.GetNotificationsResponseInnerThrottlingToJSON)(value['throttling']),
@@ -16,6 +16,7 @@ import type { SenderPostBodyInapp } from './SenderPostBodyInapp';
16
16
  import type { SenderPostBodySms } from './SenderPostBodySms';
17
17
  import type { SenderPostBodySmsAutoReply } from './SenderPostBodySmsAutoReply';
18
18
  import type { SenderPostBodyWebPush } from './SenderPostBodyWebPush';
19
+ import type { ChannelsEnum } from './ChannelsEnum';
19
20
  import type { SenderPostBodyTo } from './SenderPostBodyTo';
20
21
  import type { SenderPostBodyOptions } from './SenderPostBodyOptions';
21
22
  import type { GetUsersResponseUsersInner } from './GetUsersResponseUsersInner';
@@ -65,10 +66,10 @@ export interface SenderPostBody {
65
66
  to?: SenderPostBodyTo;
66
67
  /**
67
68
  *
68
- * @type {Array<string>}
69
+ * @type {Array<ChannelsEnum>}
69
70
  * @memberof SenderPostBody
70
71
  */
71
- forceChannels?: Array<SenderPostBodyForceChannelsEnum>;
72
+ forceChannels?: Array<ChannelsEnum>;
72
73
  /**
73
74
  *
74
75
  * @type {{ [key: string]: any; }}
@@ -150,19 +151,6 @@ export interface SenderPostBody {
150
151
  */
151
152
  slack?: SenderPostBodySlack;
152
153
  }
153
- /**
154
- * @export
155
- * @enum {string}
156
- */
157
- export declare enum SenderPostBodyForceChannelsEnum {
158
- Email = "EMAIL",
159
- InappWeb = "INAPP_WEB",
160
- Sms = "SMS",
161
- Call = "CALL",
162
- Push = "PUSH",
163
- WebPush = "WEB_PUSH",
164
- Slack = "SLACK"
165
- }
166
154
  /**
167
155
  * Check if a given object implements the SenderPostBody interface.
168
156
  */