@notificationapi/node 0.0.2-alpha.6 → 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 (31) hide show
  1. package/dist/generated/src/models/ChannelsEnum.d.ts +30 -0
  2. package/dist/generated/src/models/ChannelsEnum.js +58 -0
  3. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.d.ts +3 -15
  4. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.js +3 -17
  5. package/dist/generated/src/models/Environment.d.ts +3 -15
  6. package/dist/generated/src/models/Environment.js +3 -17
  7. package/dist/generated/src/models/EnvironmentPatchRequest.d.ts +3 -15
  8. package/dist/generated/src/models/EnvironmentPatchRequest.js +7 -17
  9. package/dist/generated/src/models/GetEnvironmentsResponseInner.d.ts +3 -15
  10. package/dist/generated/src/models/GetEnvironmentsResponseInner.js +3 -17
  11. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.d.ts +3 -15
  12. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.js +3 -17
  13. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.d.ts +3 -15
  14. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.js +3 -17
  15. package/dist/generated/src/models/GetNotificationsResponseInner.d.ts +3 -15
  16. package/dist/generated/src/models/GetNotificationsResponseInner.js +3 -17
  17. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.d.ts +3 -15
  18. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.js +3 -17
  19. package/dist/generated/src/models/GetTemplatesResponse.d.ts +3 -15
  20. package/dist/generated/src/models/GetTemplatesResponse.js +3 -17
  21. package/dist/generated/src/models/Notification.d.ts +3 -15
  22. package/dist/generated/src/models/Notification.js +3 -17
  23. package/dist/generated/src/models/NotificationPatchRequest.d.ts +3 -15
  24. package/dist/generated/src/models/NotificationPatchRequest.js +7 -17
  25. package/dist/generated/src/models/SenderPostBody.d.ts +3 -15
  26. package/dist/generated/src/models/SenderPostBody.js +7 -17
  27. package/dist/generated/src/models/Template.d.ts +3 -15
  28. package/dist/generated/src/models/Template.js +3 -17
  29. package/dist/generated/src/models/index.d.ts +1 -0
  30. package/dist/generated/src/models/index.js +1 -0
  31. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ /**
2
+ * NotificationAPI
3
+ * Internal API for notification delivery and management
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum ChannelsEnum {
18
+ Email = "EMAIL",
19
+ InappWeb = "INAPP_WEB",
20
+ Sms = "SMS",
21
+ Call = "CALL",
22
+ Push = "PUSH",
23
+ WebPush = "WEB_PUSH",
24
+ Slack = "SLACK"
25
+ }
26
+ export declare function instanceOfChannelsEnum(value: any): boolean;
27
+ export declare function ChannelsEnumFromJSON(json: any): ChannelsEnum;
28
+ export declare function ChannelsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelsEnum;
29
+ export declare function ChannelsEnumToJSON(value?: ChannelsEnum | null): any;
30
+ export declare function ChannelsEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): ChannelsEnum;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * NotificationAPI
6
+ * Internal API for notification delivery and management
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ChannelsEnum = void 0;
17
+ exports.instanceOfChannelsEnum = instanceOfChannelsEnum;
18
+ exports.ChannelsEnumFromJSON = ChannelsEnumFromJSON;
19
+ exports.ChannelsEnumFromJSONTyped = ChannelsEnumFromJSONTyped;
20
+ exports.ChannelsEnumToJSON = ChannelsEnumToJSON;
21
+ exports.ChannelsEnumToJSONTyped = ChannelsEnumToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ * @enum {string}
26
+ */
27
+ var ChannelsEnum;
28
+ (function (ChannelsEnum) {
29
+ ChannelsEnum["Email"] = "EMAIL";
30
+ ChannelsEnum["InappWeb"] = "INAPP_WEB";
31
+ ChannelsEnum["Sms"] = "SMS";
32
+ ChannelsEnum["Call"] = "CALL";
33
+ ChannelsEnum["Push"] = "PUSH";
34
+ ChannelsEnum["WebPush"] = "WEB_PUSH";
35
+ ChannelsEnum["Slack"] = "SLACK";
36
+ })(ChannelsEnum || (exports.ChannelsEnum = ChannelsEnum = {}));
37
+ function instanceOfChannelsEnum(value) {
38
+ for (const key in ChannelsEnum) {
39
+ if (Object.prototype.hasOwnProperty.call(ChannelsEnum, key)) {
40
+ if (ChannelsEnum[key] === value) {
41
+ return true;
42
+ }
43
+ }
44
+ }
45
+ return false;
46
+ }
47
+ function ChannelsEnumFromJSON(json) {
48
+ return ChannelsEnumFromJSONTyped(json, false);
49
+ }
50
+ function ChannelsEnumFromJSONTyped(json, ignoreDiscriminator) {
51
+ return json;
52
+ }
53
+ function ChannelsEnumToJSON(value) {
54
+ return value;
55
+ }
56
+ function ChannelsEnumToJSONTyped(value, ignoreDiscriminator) {
57
+ return value;
58
+ }
@@ -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
@@ -23,10 +24,10 @@ export interface EmailComponentResponseReferencedByInner {
23
24
  notificationId: string;
24
25
  /**
25
26
  *
26
- * @type {string}
27
+ * @type {ChannelsEnum}
27
28
  * @memberof EmailComponentResponseReferencedByInner
28
29
  */
29
- channel: EmailComponentResponseReferencedByInnerChannelEnum;
30
+ channel: ChannelsEnum;
30
31
  /**
31
32
  *
32
33
  * @type {string}
@@ -34,19 +35,6 @@ export interface EmailComponentResponseReferencedByInner {
34
35
  */
35
36
  templateId: string;
36
37
  }
37
- /**
38
- * @export
39
- * @enum {string}
40
- */
41
- export declare enum EmailComponentResponseReferencedByInnerChannelEnum {
42
- Email = "EMAIL",
43
- InappWeb = "INAPP_WEB",
44
- Sms = "SMS",
45
- Call = "CALL",
46
- Push = "PUSH",
47
- WebPush = "WEB_PUSH",
48
- Slack = "SLACK"
49
- }
50
38
  /**
51
39
  * Check if a given object implements the EmailComponentResponseReferencedByInner interface.
52
40
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.EmailComponentResponseReferencedByInnerChannelEnum = void 0;
17
16
  exports.instanceOfEmailComponentResponseReferencedByInner = instanceOfEmailComponentResponseReferencedByInner;
18
17
  exports.EmailComponentResponseReferencedByInnerFromJSON = EmailComponentResponseReferencedByInnerFromJSON;
19
18
  exports.EmailComponentResponseReferencedByInnerFromJSONTyped = EmailComponentResponseReferencedByInnerFromJSONTyped;
20
19
  exports.EmailComponentResponseReferencedByInnerToJSON = EmailComponentResponseReferencedByInnerToJSON;
21
20
  exports.EmailComponentResponseReferencedByInnerToJSONTyped = EmailComponentResponseReferencedByInnerToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var EmailComponentResponseReferencedByInnerChannelEnum;
27
- (function (EmailComponentResponseReferencedByInnerChannelEnum) {
28
- EmailComponentResponseReferencedByInnerChannelEnum["Email"] = "EMAIL";
29
- EmailComponentResponseReferencedByInnerChannelEnum["InappWeb"] = "INAPP_WEB";
30
- EmailComponentResponseReferencedByInnerChannelEnum["Sms"] = "SMS";
31
- EmailComponentResponseReferencedByInnerChannelEnum["Call"] = "CALL";
32
- EmailComponentResponseReferencedByInnerChannelEnum["Push"] = "PUSH";
33
- EmailComponentResponseReferencedByInnerChannelEnum["WebPush"] = "WEB_PUSH";
34
- EmailComponentResponseReferencedByInnerChannelEnum["Slack"] = "SLACK";
35
- })(EmailComponentResponseReferencedByInnerChannelEnum || (exports.EmailComponentResponseReferencedByInnerChannelEnum = EmailComponentResponseReferencedByInnerChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the EmailComponentResponseReferencedByInner interface.
38
24
  */
@@ -54,7 +40,7 @@ function EmailComponentResponseReferencedByInnerFromJSONTyped(json, ignoreDiscri
54
40
  }
55
41
  return {
56
42
  notificationId: json['notificationId'],
57
- channel: json['channel'],
43
+ channel: (0, ChannelsEnum_1.ChannelsEnumFromJSON)(json['channel']),
58
44
  templateId: json['templateId']
59
45
  };
60
46
  }
@@ -67,7 +53,7 @@ function EmailComponentResponseReferencedByInnerToJSONTyped(value, ignoreDiscrim
67
53
  }
68
54
  return {
69
55
  notificationId: value['notificationId'],
70
- channel: value['channel'],
56
+ channel: (0, ChannelsEnum_1.ChannelsEnumToJSON)(value['channel']),
71
57
  templateId: value['templateId']
72
58
  };
73
59
  }
@@ -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 Environment {
35
36
  title: string;
36
37
  /**
37
38
  *
38
- * @type {Array<string>}
39
+ * @type {Array<ChannelsEnum>}
39
40
  * @memberof Environment
40
41
  */
41
- disableSending: Array<EnvironmentDisableSendingEnum>;
42
+ disableSending: Array<ChannelsEnum>;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -46,19 +47,6 @@ export interface Environment {
46
47
  */
47
48
  secureMode: boolean;
48
49
  }
49
- /**
50
- * @export
51
- * @enum {string}
52
- */
53
- export declare enum EnvironmentDisableSendingEnum {
54
- Email = "EMAIL",
55
- InappWeb = "INAPP_WEB",
56
- Sms = "SMS",
57
- Call = "CALL",
58
- Push = "PUSH",
59
- WebPush = "WEB_PUSH",
60
- Slack = "SLACK"
61
- }
62
50
  /**
63
51
  * Check if a given object implements the Environment interface.
64
52
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.EnvironmentDisableSendingEnum = void 0;
17
16
  exports.instanceOfEnvironment = instanceOfEnvironment;
18
17
  exports.EnvironmentFromJSON = EnvironmentFromJSON;
19
18
  exports.EnvironmentFromJSONTyped = EnvironmentFromJSONTyped;
20
19
  exports.EnvironmentToJSON = EnvironmentToJSON;
21
20
  exports.EnvironmentToJSONTyped = EnvironmentToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var EnvironmentDisableSendingEnum;
27
- (function (EnvironmentDisableSendingEnum) {
28
- EnvironmentDisableSendingEnum["Email"] = "EMAIL";
29
- EnvironmentDisableSendingEnum["InappWeb"] = "INAPP_WEB";
30
- EnvironmentDisableSendingEnum["Sms"] = "SMS";
31
- EnvironmentDisableSendingEnum["Call"] = "CALL";
32
- EnvironmentDisableSendingEnum["Push"] = "PUSH";
33
- EnvironmentDisableSendingEnum["WebPush"] = "WEB_PUSH";
34
- EnvironmentDisableSendingEnum["Slack"] = "SLACK";
35
- })(EnvironmentDisableSendingEnum || (exports.EnvironmentDisableSendingEnum = EnvironmentDisableSendingEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the Environment interface.
38
24
  */
@@ -60,7 +46,7 @@ function EnvironmentFromJSONTyped(json, ignoreDiscriminator) {
60
46
  clientId: json['clientId'],
61
47
  clientSecret: json['clientSecret'],
62
48
  title: json['title'],
63
- disableSending: json['disableSending'],
49
+ disableSending: json['disableSending'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
64
50
  secureMode: json['secureMode']
65
51
  };
66
52
  }
@@ -75,7 +61,7 @@ function EnvironmentToJSONTyped(value, ignoreDiscriminator = false) {
75
61
  clientId: value['clientId'],
76
62
  clientSecret: value['clientSecret'],
77
63
  title: value['title'],
78
- disableSending: value['disableSending'],
64
+ disableSending: value['disableSending'].map(ChannelsEnum_1.ChannelsEnumToJSON),
79
65
  secureMode: value['secureMode']
80
66
  };
81
67
  }
@@ -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
@@ -23,10 +24,10 @@ export interface EnvironmentPatchRequest {
23
24
  resetSecret?: boolean;
24
25
  /**
25
26
  *
26
- * @type {Array<string>}
27
+ * @type {Array<ChannelsEnum>}
27
28
  * @memberof EnvironmentPatchRequest
28
29
  */
29
- disableSending?: Array<EnvironmentPatchRequestDisableSendingEnum>;
30
+ disableSending?: Array<ChannelsEnum>;
30
31
  /**
31
32
  *
32
33
  * @type {string}
@@ -40,19 +41,6 @@ export interface EnvironmentPatchRequest {
40
41
  */
41
42
  secureMode?: boolean;
42
43
  }
43
- /**
44
- * @export
45
- * @enum {string}
46
- */
47
- export declare enum EnvironmentPatchRequestDisableSendingEnum {
48
- Email = "EMAIL",
49
- InappWeb = "INAPP_WEB",
50
- Sms = "SMS",
51
- Call = "CALL",
52
- Push = "PUSH",
53
- WebPush = "WEB_PUSH",
54
- Slack = "SLACK"
55
- }
56
44
  /**
57
45
  * Check if a given object implements the EnvironmentPatchRequest interface.
58
46
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.EnvironmentPatchRequestDisableSendingEnum = void 0;
17
16
  exports.instanceOfEnvironmentPatchRequest = instanceOfEnvironmentPatchRequest;
18
17
  exports.EnvironmentPatchRequestFromJSON = EnvironmentPatchRequestFromJSON;
19
18
  exports.EnvironmentPatchRequestFromJSONTyped = EnvironmentPatchRequestFromJSONTyped;
20
19
  exports.EnvironmentPatchRequestToJSON = EnvironmentPatchRequestToJSON;
21
20
  exports.EnvironmentPatchRequestToJSONTyped = EnvironmentPatchRequestToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var EnvironmentPatchRequestDisableSendingEnum;
27
- (function (EnvironmentPatchRequestDisableSendingEnum) {
28
- EnvironmentPatchRequestDisableSendingEnum["Email"] = "EMAIL";
29
- EnvironmentPatchRequestDisableSendingEnum["InappWeb"] = "INAPP_WEB";
30
- EnvironmentPatchRequestDisableSendingEnum["Sms"] = "SMS";
31
- EnvironmentPatchRequestDisableSendingEnum["Call"] = "CALL";
32
- EnvironmentPatchRequestDisableSendingEnum["Push"] = "PUSH";
33
- EnvironmentPatchRequestDisableSendingEnum["WebPush"] = "WEB_PUSH";
34
- EnvironmentPatchRequestDisableSendingEnum["Slack"] = "SLACK";
35
- })(EnvironmentPatchRequestDisableSendingEnum || (exports.EnvironmentPatchRequestDisableSendingEnum = EnvironmentPatchRequestDisableSendingEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the EnvironmentPatchRequest interface.
38
24
  */
@@ -48,7 +34,9 @@ function EnvironmentPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
48
34
  }
49
35
  return {
50
36
  resetSecret: json['resetSecret'] == null ? undefined : json['resetSecret'],
51
- disableSending: json['disableSending'] == null ? undefined : json['disableSending'],
37
+ disableSending: json['disableSending'] == null
38
+ ? undefined
39
+ : json['disableSending'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
52
40
  title: json['title'] == null ? undefined : json['title'],
53
41
  secureMode: json['secureMode'] == null ? undefined : json['secureMode']
54
42
  };
@@ -62,7 +50,9 @@ function EnvironmentPatchRequestToJSONTyped(value, ignoreDiscriminator = false)
62
50
  }
63
51
  return {
64
52
  resetSecret: value['resetSecret'],
65
- disableSending: value['disableSending'],
53
+ disableSending: value['disableSending'] == null
54
+ ? undefined
55
+ : value['disableSending'].map(ChannelsEnum_1.ChannelsEnumToJSON),
66
56
  title: value['title'],
67
57
  secureMode: value['secureMode']
68
58
  };
@@ -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 GetEnvironmentsResponseInner {
35
36
  title: string;
36
37
  /**
37
38
  *
38
- * @type {Array<string>}
39
+ * @type {Array<ChannelsEnum>}
39
40
  * @memberof GetEnvironmentsResponseInner
40
41
  */
41
- disableSending: Array<GetEnvironmentsResponseInnerDisableSendingEnum>;
42
+ disableSending: Array<ChannelsEnum>;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -46,19 +47,6 @@ export interface GetEnvironmentsResponseInner {
46
47
  */
47
48
  secureMode: boolean;
48
49
  }
49
- /**
50
- * @export
51
- * @enum {string}
52
- */
53
- export declare enum GetEnvironmentsResponseInnerDisableSendingEnum {
54
- Email = "EMAIL",
55
- InappWeb = "INAPP_WEB",
56
- Sms = "SMS",
57
- Call = "CALL",
58
- Push = "PUSH",
59
- WebPush = "WEB_PUSH",
60
- Slack = "SLACK"
61
- }
62
50
  /**
63
51
  * Check if a given object implements the GetEnvironmentsResponseInner interface.
64
52
  */
@@ -13,26 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetEnvironmentsResponseInnerDisableSendingEnum = void 0;
17
16
  exports.instanceOfGetEnvironmentsResponseInner = instanceOfGetEnvironmentsResponseInner;
18
17
  exports.GetEnvironmentsResponseInnerFromJSON = GetEnvironmentsResponseInnerFromJSON;
19
18
  exports.GetEnvironmentsResponseInnerFromJSONTyped = GetEnvironmentsResponseInnerFromJSONTyped;
20
19
  exports.GetEnvironmentsResponseInnerToJSON = GetEnvironmentsResponseInnerToJSON;
21
20
  exports.GetEnvironmentsResponseInnerToJSONTyped = GetEnvironmentsResponseInnerToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var GetEnvironmentsResponseInnerDisableSendingEnum;
27
- (function (GetEnvironmentsResponseInnerDisableSendingEnum) {
28
- GetEnvironmentsResponseInnerDisableSendingEnum["Email"] = "EMAIL";
29
- GetEnvironmentsResponseInnerDisableSendingEnum["InappWeb"] = "INAPP_WEB";
30
- GetEnvironmentsResponseInnerDisableSendingEnum["Sms"] = "SMS";
31
- GetEnvironmentsResponseInnerDisableSendingEnum["Call"] = "CALL";
32
- GetEnvironmentsResponseInnerDisableSendingEnum["Push"] = "PUSH";
33
- GetEnvironmentsResponseInnerDisableSendingEnum["WebPush"] = "WEB_PUSH";
34
- GetEnvironmentsResponseInnerDisableSendingEnum["Slack"] = "SLACK";
35
- })(GetEnvironmentsResponseInnerDisableSendingEnum || (exports.GetEnvironmentsResponseInnerDisableSendingEnum = GetEnvironmentsResponseInnerDisableSendingEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the GetEnvironmentsResponseInner interface.
38
24
  */
@@ -60,7 +46,7 @@ function GetEnvironmentsResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
60
46
  clientId: json['clientId'],
61
47
  clientSecret: json['clientSecret'],
62
48
  title: json['title'],
63
- disableSending: json['disableSending'],
49
+ disableSending: json['disableSending'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
64
50
  secureMode: json['secureMode']
65
51
  };
66
52
  }
@@ -75,7 +61,7 @@ function GetEnvironmentsResponseInnerToJSONTyped(value, ignoreDiscriminator = fa
75
61
  clientId: value['clientId'],
76
62
  clientSecret: value['clientSecret'],
77
63
  title: value['title'],
78
- disableSending: value['disableSending'],
64
+ disableSending: value['disableSending'].map(ChannelsEnum_1.ChannelsEnumToJSON),
79
65
  secureMode: value['secureMode']
80
66
  };
81
67
  }
@@ -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 GetInappNotificationsResponseNotificationsInnerTemplate {
35
36
  templateId: string;
36
37
  /**
37
38
  *
38
- * @type {string}
39
+ * @type {ChannelsEnum}
39
40
  * @memberof GetInappNotificationsResponseNotificationsInnerTemplate
40
41
  */
41
- channel: GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum;
42
+ channel: ChannelsEnum;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -54,19 +55,6 @@ export interface GetInappNotificationsResponseNotificationsInnerTemplate {
54
55
  [key: string]: boolean;
55
56
  };
56
57
  }
57
- /**
58
- * @export
59
- * @enum {string}
60
- */
61
- export declare enum GetInappNotificationsResponseNotificationsInnerTemplateChannelEnum {
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 GetInappNotificationsResponseNotificationsInnerTemplate 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.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
  */
@@ -13,7 +13,6 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SenderPostBodyForceChannelsEnum = void 0;
17
16
  exports.instanceOfSenderPostBody = instanceOfSenderPostBody;
18
17
  exports.SenderPostBodyFromJSON = SenderPostBodyFromJSON;
19
18
  exports.SenderPostBodyFromJSONTyped = SenderPostBodyFromJSONTyped;
@@ -26,23 +25,10 @@ const SenderPostBodyInapp_1 = require("./SenderPostBodyInapp");
26
25
  const SenderPostBodySms_1 = require("./SenderPostBodySms");
27
26
  const SenderPostBodySmsAutoReply_1 = require("./SenderPostBodySmsAutoReply");
28
27
  const SenderPostBodyWebPush_1 = require("./SenderPostBodyWebPush");
28
+ const ChannelsEnum_1 = require("./ChannelsEnum");
29
29
  const SenderPostBodyTo_1 = require("./SenderPostBodyTo");
30
30
  const SenderPostBodyOptions_1 = require("./SenderPostBodyOptions");
31
31
  const GetUsersResponseUsersInner_1 = require("./GetUsersResponseUsersInner");
32
- /**
33
- * @export
34
- * @enum {string}
35
- */
36
- var SenderPostBodyForceChannelsEnum;
37
- (function (SenderPostBodyForceChannelsEnum) {
38
- SenderPostBodyForceChannelsEnum["Email"] = "EMAIL";
39
- SenderPostBodyForceChannelsEnum["InappWeb"] = "INAPP_WEB";
40
- SenderPostBodyForceChannelsEnum["Sms"] = "SMS";
41
- SenderPostBodyForceChannelsEnum["Call"] = "CALL";
42
- SenderPostBodyForceChannelsEnum["Push"] = "PUSH";
43
- SenderPostBodyForceChannelsEnum["WebPush"] = "WEB_PUSH";
44
- SenderPostBodyForceChannelsEnum["Slack"] = "SLACK";
45
- })(SenderPostBodyForceChannelsEnum || (exports.SenderPostBodyForceChannelsEnum = SenderPostBodyForceChannelsEnum = {}));
46
32
  /**
47
33
  * Check if a given object implements the SenderPostBody interface.
48
34
  */
@@ -65,7 +51,9 @@ function SenderPostBodyFromJSONTyped(json, ignoreDiscriminator) {
65
51
  replace: json['replace'] == null ? undefined : json['replace'],
66
52
  type: json['type'] == null ? undefined : json['type'],
67
53
  to: json['to'] == null ? undefined : (0, SenderPostBodyTo_1.SenderPostBodyToFromJSON)(json['to']),
68
- forceChannels: json['forceChannels'] == null ? undefined : json['forceChannels'],
54
+ forceChannels: json['forceChannels'] == null
55
+ ? undefined
56
+ : json['forceChannels'].map(ChannelsEnum_1.ChannelsEnumFromJSON),
69
57
  parameters: json['parameters'] == null ? undefined : json['parameters'],
70
58
  secondaryId: json['secondaryId'] == null ? undefined : json['secondaryId'],
71
59
  templateId: json['templateId'] == null ? undefined : json['templateId'],
@@ -109,7 +97,9 @@ function SenderPostBodyToJSONTyped(value, ignoreDiscriminator = false) {
109
97
  replace: value['replace'],
110
98
  type: value['type'],
111
99
  to: (0, SenderPostBodyTo_1.SenderPostBodyToToJSON)(value['to']),
112
- forceChannels: value['forceChannels'],
100
+ forceChannels: value['forceChannels'] == null
101
+ ? undefined
102
+ : value['forceChannels'].map(ChannelsEnum_1.ChannelsEnumToJSON),
113
103
  parameters: value['parameters'],
114
104
  secondaryId: value['secondaryId'],
115
105
  templateId: value['templateId'],
@@ -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 Template {
35
36
  templateId: string;
36
37
  /**
37
38
  *
38
- * @type {string}
39
+ * @type {ChannelsEnum}
39
40
  * @memberof Template
40
41
  */
41
- channel: TemplateChannelEnum;
42
+ channel: ChannelsEnum;
42
43
  /**
43
44
  *
44
45
  * @type {boolean}
@@ -54,19 +55,6 @@ export interface Template {
54
55
  [key: string]: boolean;
55
56
  };
56
57
  }
57
- /**
58
- * @export
59
- * @enum {string}
60
- */
61
- export declare enum TemplateChannelEnum {
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 Template 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.TemplateChannelEnum = void 0;
17
16
  exports.instanceOfTemplate = instanceOfTemplate;
18
17
  exports.TemplateFromJSON = TemplateFromJSON;
19
18
  exports.TemplateFromJSONTyped = TemplateFromJSONTyped;
20
19
  exports.TemplateToJSON = TemplateToJSON;
21
20
  exports.TemplateToJSONTyped = TemplateToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var TemplateChannelEnum;
27
- (function (TemplateChannelEnum) {
28
- TemplateChannelEnum["Email"] = "EMAIL";
29
- TemplateChannelEnum["InappWeb"] = "INAPP_WEB";
30
- TemplateChannelEnum["Sms"] = "SMS";
31
- TemplateChannelEnum["Call"] = "CALL";
32
- TemplateChannelEnum["Push"] = "PUSH";
33
- TemplateChannelEnum["WebPush"] = "WEB_PUSH";
34
- TemplateChannelEnum["Slack"] = "SLACK";
35
- })(TemplateChannelEnum || (exports.TemplateChannelEnum = TemplateChannelEnum = {}));
21
+ const ChannelsEnum_1 = require("./ChannelsEnum");
36
22
  /**
37
23
  * Check if a given object implements the Template interface.
38
24
  */
@@ -60,7 +46,7 @@ function TemplateFromJSONTyped(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 TemplateToJSONTyped(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
  };
@@ -2,6 +2,7 @@ export * from './AccountGetResponse';
2
2
  export * from './BeeTokenV2';
3
3
  export * from './BillingPostRequestBody';
4
4
  export * from './BillingPostResponseBody';
5
+ export * from './ChannelsEnum';
5
6
  export * from './CreateAccountRequestBody';
6
7
  export * from './CreateAccountResponse';
7
8
  export * from './CreateKeyRequest';
@@ -20,6 +20,7 @@ __exportStar(require("./AccountGetResponse"), exports);
20
20
  __exportStar(require("./BeeTokenV2"), exports);
21
21
  __exportStar(require("./BillingPostRequestBody"), exports);
22
22
  __exportStar(require("./BillingPostResponseBody"), exports);
23
+ __exportStar(require("./ChannelsEnum"), exports);
23
24
  __exportStar(require("./CreateAccountRequestBody"), exports);
24
25
  __exportStar(require("./CreateAccountResponse"), exports);
25
26
  __exportStar(require("./CreateKeyRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notificationapi/node",
3
- "version": "0.0.2-alpha.6",
3
+ "version": "0.0.2-alpha.7",
4
4
  "description": "Official Node.js SDK for NotificationAPI - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",