@notificationapi/node 0.0.2-alpha.6 → 0.0.2-alpha.8

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 (52) hide show
  1. package/dist/generated/src/apis/MembersApi.d.ts +180 -0
  2. package/dist/generated/src/apis/MembersApi.js +408 -0
  3. package/dist/generated/src/apis/index.d.ts +1 -0
  4. package/dist/generated/src/apis/index.js +1 -0
  5. package/dist/generated/src/models/AutoJoinGetResponse.d.ts +38 -0
  6. package/dist/generated/src/models/AutoJoinGetResponse.js +54 -0
  7. package/dist/generated/src/models/AutoJoinPostResponse.d.ts +38 -0
  8. package/dist/generated/src/models/AutoJoinPostResponse.js +54 -0
  9. package/dist/generated/src/models/AutoJoinRequestBody.d.ts +32 -0
  10. package/dist/generated/src/models/AutoJoinRequestBody.js +50 -0
  11. package/dist/generated/src/models/ChannelsEnum.d.ts +30 -0
  12. package/dist/generated/src/models/ChannelsEnum.js +58 -0
  13. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.d.ts +3 -15
  14. package/dist/generated/src/models/EmailComponentResponseReferencedByInner.js +3 -17
  15. package/dist/generated/src/models/Environment.d.ts +3 -15
  16. package/dist/generated/src/models/Environment.js +3 -17
  17. package/dist/generated/src/models/EnvironmentPatchRequest.d.ts +3 -15
  18. package/dist/generated/src/models/EnvironmentPatchRequest.js +7 -17
  19. package/dist/generated/src/models/GetEnvironmentsResponseInner.d.ts +3 -15
  20. package/dist/generated/src/models/GetEnvironmentsResponseInner.js +3 -17
  21. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.d.ts +3 -15
  22. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.js +3 -17
  23. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.d.ts +3 -15
  24. package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.js +3 -17
  25. package/dist/generated/src/models/GetMembersResponseInner.d.ts +56 -0
  26. package/dist/generated/src/models/GetMembersResponseInner.js +62 -0
  27. package/dist/generated/src/models/GetNotificationsResponseInner.d.ts +3 -15
  28. package/dist/generated/src/models/GetNotificationsResponseInner.js +3 -17
  29. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.d.ts +3 -15
  30. package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.js +3 -17
  31. package/dist/generated/src/models/GetTemplatesResponse.d.ts +3 -15
  32. package/dist/generated/src/models/GetTemplatesResponse.js +3 -17
  33. package/dist/generated/src/models/InvitePostResponse.d.ts +38 -0
  34. package/dist/generated/src/models/InvitePostResponse.js +50 -0
  35. package/dist/generated/src/models/MemberInviteRequest.d.ts +38 -0
  36. package/dist/generated/src/models/MemberInviteRequest.js +52 -0
  37. package/dist/generated/src/models/MemberUpdateRequest.d.ts +32 -0
  38. package/dist/generated/src/models/MemberUpdateRequest.js +50 -0
  39. package/dist/generated/src/models/Notification.d.ts +3 -15
  40. package/dist/generated/src/models/Notification.js +3 -17
  41. package/dist/generated/src/models/NotificationPatchRequest.d.ts +3 -15
  42. package/dist/generated/src/models/NotificationPatchRequest.js +7 -17
  43. package/dist/generated/src/models/SenderPostBody.d.ts +3 -15
  44. package/dist/generated/src/models/SenderPostBody.js +7 -17
  45. package/dist/generated/src/models/Template.d.ts +3 -15
  46. package/dist/generated/src/models/Template.js +3 -17
  47. package/dist/generated/src/models/index.d.ts +8 -0
  48. package/dist/generated/src/models/index.js +8 -0
  49. package/dist/src/client.d.ts +16 -1
  50. package/dist/src/client.js +28 -20
  51. package/dist/src/testing.js +3 -1
  52. package/package.json +1 -1
@@ -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
  };
@@ -0,0 +1,56 @@
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
+ * @interface GetMembersResponseInner
16
+ */
17
+ export interface GetMembersResponseInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetMembersResponseInner
22
+ */
23
+ accountId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetMembersResponseInner
28
+ */
29
+ userId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetMembersResponseInner
34
+ */
35
+ createdAt: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetMembersResponseInner
40
+ */
41
+ email?: string;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof GetMembersResponseInner
46
+ */
47
+ groups?: Array<string>;
48
+ }
49
+ /**
50
+ * Check if a given object implements the GetMembersResponseInner interface.
51
+ */
52
+ export declare function instanceOfGetMembersResponseInner(value: object): value is GetMembersResponseInner;
53
+ export declare function GetMembersResponseInnerFromJSON(json: any): GetMembersResponseInner;
54
+ export declare function GetMembersResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMembersResponseInner;
55
+ export declare function GetMembersResponseInnerToJSON(json: any): GetMembersResponseInner;
56
+ export declare function GetMembersResponseInnerToJSONTyped(value?: GetMembersResponseInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfGetMembersResponseInner = instanceOfGetMembersResponseInner;
17
+ exports.GetMembersResponseInnerFromJSON = GetMembersResponseInnerFromJSON;
18
+ exports.GetMembersResponseInnerFromJSONTyped = GetMembersResponseInnerFromJSONTyped;
19
+ exports.GetMembersResponseInnerToJSON = GetMembersResponseInnerToJSON;
20
+ exports.GetMembersResponseInnerToJSONTyped = GetMembersResponseInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetMembersResponseInner interface.
23
+ */
24
+ function instanceOfGetMembersResponseInner(value) {
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('userId' in value) || value['userId'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function GetMembersResponseInnerFromJSON(json) {
34
+ return GetMembersResponseInnerFromJSONTyped(json, false);
35
+ }
36
+ function GetMembersResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ accountId: json['accountId'],
42
+ userId: json['userId'],
43
+ createdAt: json['createdAt'],
44
+ email: json['email'] == null ? undefined : json['email'],
45
+ groups: json['groups'] == null ? undefined : json['groups']
46
+ };
47
+ }
48
+ function GetMembersResponseInnerToJSON(json) {
49
+ return GetMembersResponseInnerToJSONTyped(json, false);
50
+ }
51
+ function GetMembersResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ accountId: value['accountId'],
57
+ userId: value['userId'],
58
+ createdAt: value['createdAt'],
59
+ email: value['email'],
60
+ groups: value['groups']
61
+ };
62
+ }
@@ -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
  };
@@ -0,0 +1,38 @@
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
+ * @interface InvitePostResponse
16
+ */
17
+ export interface InvitePostResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InvitePostResponse
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InvitePostResponse
28
+ */
29
+ message?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the InvitePostResponse interface.
33
+ */
34
+ export declare function instanceOfInvitePostResponse(value: object): value is InvitePostResponse;
35
+ export declare function InvitePostResponseFromJSON(json: any): InvitePostResponse;
36
+ export declare function InvitePostResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitePostResponse;
37
+ export declare function InvitePostResponseToJSON(json: any): InvitePostResponse;
38
+ export declare function InvitePostResponseToJSONTyped(value?: InvitePostResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfInvitePostResponse = instanceOfInvitePostResponse;
17
+ exports.InvitePostResponseFromJSON = InvitePostResponseFromJSON;
18
+ exports.InvitePostResponseFromJSONTyped = InvitePostResponseFromJSONTyped;
19
+ exports.InvitePostResponseToJSON = InvitePostResponseToJSON;
20
+ exports.InvitePostResponseToJSONTyped = InvitePostResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InvitePostResponse interface.
23
+ */
24
+ function instanceOfInvitePostResponse(value) {
25
+ return true;
26
+ }
27
+ function InvitePostResponseFromJSON(json) {
28
+ return InvitePostResponseFromJSONTyped(json, false);
29
+ }
30
+ function InvitePostResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ error: json['error'] == null ? undefined : json['error'],
36
+ message: json['message'] == null ? undefined : json['message']
37
+ };
38
+ }
39
+ function InvitePostResponseToJSON(json) {
40
+ return InvitePostResponseToJSONTyped(json, false);
41
+ }
42
+ function InvitePostResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ error: value['error'],
48
+ message: value['message']
49
+ };
50
+ }