@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.
- package/dist/generated/src/apis/MembersApi.d.ts +180 -0
- package/dist/generated/src/apis/MembersApi.js +408 -0
- package/dist/generated/src/apis/index.d.ts +1 -0
- package/dist/generated/src/apis/index.js +1 -0
- package/dist/generated/src/models/AutoJoinGetResponse.d.ts +38 -0
- package/dist/generated/src/models/AutoJoinGetResponse.js +54 -0
- package/dist/generated/src/models/AutoJoinPostResponse.d.ts +38 -0
- package/dist/generated/src/models/AutoJoinPostResponse.js +54 -0
- package/dist/generated/src/models/AutoJoinRequestBody.d.ts +32 -0
- package/dist/generated/src/models/AutoJoinRequestBody.js +50 -0
- package/dist/generated/src/models/ChannelsEnum.d.ts +30 -0
- package/dist/generated/src/models/ChannelsEnum.js +58 -0
- package/dist/generated/src/models/EmailComponentResponseReferencedByInner.d.ts +3 -15
- package/dist/generated/src/models/EmailComponentResponseReferencedByInner.js +3 -17
- package/dist/generated/src/models/Environment.d.ts +3 -15
- package/dist/generated/src/models/Environment.js +3 -17
- package/dist/generated/src/models/EnvironmentPatchRequest.d.ts +3 -15
- package/dist/generated/src/models/EnvironmentPatchRequest.js +7 -17
- package/dist/generated/src/models/GetEnvironmentsResponseInner.d.ts +3 -15
- package/dist/generated/src/models/GetEnvironmentsResponseInner.js +3 -17
- package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.d.ts +3 -15
- package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplate.js +3 -17
- package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.d.ts +3 -15
- package/dist/generated/src/models/GetInappNotificationsResponseNotificationsInnerTemplateAnyOf.js +3 -17
- package/dist/generated/src/models/GetMembersResponseInner.d.ts +56 -0
- package/dist/generated/src/models/GetMembersResponseInner.js +62 -0
- package/dist/generated/src/models/GetNotificationsResponseInner.d.ts +3 -15
- package/dist/generated/src/models/GetNotificationsResponseInner.js +3 -17
- package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.d.ts +3 -15
- package/dist/generated/src/models/GetNotificationsResponseInnerTemplatesInner.js +3 -17
- package/dist/generated/src/models/GetTemplatesResponse.d.ts +3 -15
- package/dist/generated/src/models/GetTemplatesResponse.js +3 -17
- package/dist/generated/src/models/InvitePostResponse.d.ts +38 -0
- package/dist/generated/src/models/InvitePostResponse.js +50 -0
- package/dist/generated/src/models/MemberInviteRequest.d.ts +38 -0
- package/dist/generated/src/models/MemberInviteRequest.js +52 -0
- package/dist/generated/src/models/MemberUpdateRequest.d.ts +32 -0
- package/dist/generated/src/models/MemberUpdateRequest.js +50 -0
- package/dist/generated/src/models/Notification.d.ts +3 -15
- package/dist/generated/src/models/Notification.js +3 -17
- package/dist/generated/src/models/NotificationPatchRequest.d.ts +3 -15
- package/dist/generated/src/models/NotificationPatchRequest.js +7 -17
- package/dist/generated/src/models/SenderPostBody.d.ts +3 -15
- package/dist/generated/src/models/SenderPostBody.js +7 -17
- package/dist/generated/src/models/Template.d.ts +3 -15
- package/dist/generated/src/models/Template.js +3 -17
- package/dist/generated/src/models/index.d.ts +8 -0
- package/dist/generated/src/models/index.js +8 -0
- package/dist/src/client.d.ts +16 -1
- package/dist/src/client.js +28 -20
- package/dist/src/testing.js +3 -1
- package/package.json +1 -1
|
@@ -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 MemberInviteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberInviteRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberInviteRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MemberInviteRequest
|
|
28
|
+
*/
|
|
29
|
+
role?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MemberInviteRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMemberInviteRequest(value: object): value is MemberInviteRequest;
|
|
35
|
+
export declare function MemberInviteRequestFromJSON(json: any): MemberInviteRequest;
|
|
36
|
+
export declare function MemberInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberInviteRequest;
|
|
37
|
+
export declare function MemberInviteRequestToJSON(json: any): MemberInviteRequest;
|
|
38
|
+
export declare function MemberInviteRequestToJSONTyped(value?: MemberInviteRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfMemberInviteRequest = instanceOfMemberInviteRequest;
|
|
17
|
+
exports.MemberInviteRequestFromJSON = MemberInviteRequestFromJSON;
|
|
18
|
+
exports.MemberInviteRequestFromJSONTyped = MemberInviteRequestFromJSONTyped;
|
|
19
|
+
exports.MemberInviteRequestToJSON = MemberInviteRequestToJSON;
|
|
20
|
+
exports.MemberInviteRequestToJSONTyped = MemberInviteRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MemberInviteRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMemberInviteRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function MemberInviteRequestFromJSON(json) {
|
|
30
|
+
return MemberInviteRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function MemberInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
email: json['email'],
|
|
38
|
+
role: json['role'] == null ? undefined : json['role']
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function MemberInviteRequestToJSON(json) {
|
|
42
|
+
return MemberInviteRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MemberInviteRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
email: value['email'],
|
|
50
|
+
role: value['role']
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 MemberUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
role: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MemberUpdateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMemberUpdateRequest(value: object): value is MemberUpdateRequest;
|
|
29
|
+
export declare function MemberUpdateRequestFromJSON(json: any): MemberUpdateRequest;
|
|
30
|
+
export declare function MemberUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberUpdateRequest;
|
|
31
|
+
export declare function MemberUpdateRequestToJSON(json: any): MemberUpdateRequest;
|
|
32
|
+
export declare function MemberUpdateRequestToJSONTyped(value?: MemberUpdateRequest | 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.instanceOfMemberUpdateRequest = instanceOfMemberUpdateRequest;
|
|
17
|
+
exports.MemberUpdateRequestFromJSON = MemberUpdateRequestFromJSON;
|
|
18
|
+
exports.MemberUpdateRequestFromJSONTyped = MemberUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.MemberUpdateRequestToJSON = MemberUpdateRequestToJSON;
|
|
20
|
+
exports.MemberUpdateRequestToJSONTyped = MemberUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MemberUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMemberUpdateRequest(value) {
|
|
25
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function MemberUpdateRequestFromJSON(json) {
|
|
30
|
+
return MemberUpdateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function MemberUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
role: json['role']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function MemberUpdateRequestToJSON(json) {
|
|
41
|
+
return MemberUpdateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function MemberUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
role: value['role']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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<
|
|
43
|
+
* @type {Array<ChannelsEnum>}
|
|
43
44
|
* @memberof Notification
|
|
44
45
|
*/
|
|
45
|
-
channels: Array<
|
|
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<
|
|
30
|
+
* @type {Array<ChannelsEnum>}
|
|
30
31
|
* @memberof NotificationPatchRequest
|
|
31
32
|
*/
|
|
32
|
-
channels?: Array<
|
|
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
|
|
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<
|
|
69
|
+
* @type {Array<ChannelsEnum>}
|
|
69
70
|
* @memberof SenderPostBody
|
|
70
71
|
*/
|
|
71
|
-
forceChannels?: Array<
|
|
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
|
|
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 {
|
|
39
|
+
* @type {ChannelsEnum}
|
|
39
40
|
* @memberof Template
|
|
40
41
|
*/
|
|
41
|
-
channel:
|
|
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
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from './AccountGetResponse';
|
|
2
|
+
export * from './AutoJoinGetResponse';
|
|
3
|
+
export * from './AutoJoinPostResponse';
|
|
4
|
+
export * from './AutoJoinRequestBody';
|
|
2
5
|
export * from './BeeTokenV2';
|
|
3
6
|
export * from './BillingPostRequestBody';
|
|
4
7
|
export * from './BillingPostResponseBody';
|
|
8
|
+
export * from './ChannelsEnum';
|
|
5
9
|
export * from './CreateAccountRequestBody';
|
|
6
10
|
export * from './CreateAccountResponse';
|
|
7
11
|
export * from './CreateKeyRequest';
|
|
@@ -30,6 +34,7 @@ export * from './GetInappNotificationsResponseNotificationsInnerTemplate';
|
|
|
30
34
|
export * from './GetInappNotificationsResponseNotificationsInnerTemplateAnyOf';
|
|
31
35
|
export * from './GetKeysResponse';
|
|
32
36
|
export * from './GetKeysResponseKeysInner';
|
|
37
|
+
export * from './GetMembersResponseInner';
|
|
33
38
|
export * from './GetMetricsResponseInner';
|
|
34
39
|
export * from './GetMetricsResponseInnerMessagesInner';
|
|
35
40
|
export * from './GetNotificationsResponseInner';
|
|
@@ -76,6 +81,7 @@ export * from './IntercomWebhookDataItemAnyOfContacts';
|
|
|
76
81
|
export * from './IntercomWebhookDataItemAnyOfContactsContactsInner';
|
|
77
82
|
export * from './IntercomWebhookDataItemAnyOfSource';
|
|
78
83
|
export * from './IntercomWebhookDataItemAnyOfSourceAuthor';
|
|
84
|
+
export * from './InvitePostResponse';
|
|
79
85
|
export * from './LogQueryPostBody';
|
|
80
86
|
export * from './LogsBulkRequest';
|
|
81
87
|
export * from './LogsGetResponse';
|
|
@@ -84,6 +90,8 @@ export * from './LogsQueryResponse';
|
|
|
84
90
|
export * from './LogsQueryResultResponse';
|
|
85
91
|
export * from './LogsRetentionResponse';
|
|
86
92
|
export * from './LogsTailResponse';
|
|
93
|
+
export * from './MemberInviteRequest';
|
|
94
|
+
export * from './MemberUpdateRequest';
|
|
87
95
|
export * from './MessageResponse';
|
|
88
96
|
export * from './Notification';
|
|
89
97
|
export * from './NotificationCreateRequest';
|
|
@@ -17,9 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountGetResponse"), exports);
|
|
20
|
+
__exportStar(require("./AutoJoinGetResponse"), exports);
|
|
21
|
+
__exportStar(require("./AutoJoinPostResponse"), exports);
|
|
22
|
+
__exportStar(require("./AutoJoinRequestBody"), exports);
|
|
20
23
|
__exportStar(require("./BeeTokenV2"), exports);
|
|
21
24
|
__exportStar(require("./BillingPostRequestBody"), exports);
|
|
22
25
|
__exportStar(require("./BillingPostResponseBody"), exports);
|
|
26
|
+
__exportStar(require("./ChannelsEnum"), exports);
|
|
23
27
|
__exportStar(require("./CreateAccountRequestBody"), exports);
|
|
24
28
|
__exportStar(require("./CreateAccountResponse"), exports);
|
|
25
29
|
__exportStar(require("./CreateKeyRequest"), exports);
|
|
@@ -48,6 +52,7 @@ __exportStar(require("./GetInappNotificationsResponseNotificationsInnerTemplate"
|
|
|
48
52
|
__exportStar(require("./GetInappNotificationsResponseNotificationsInnerTemplateAnyOf"), exports);
|
|
49
53
|
__exportStar(require("./GetKeysResponse"), exports);
|
|
50
54
|
__exportStar(require("./GetKeysResponseKeysInner"), exports);
|
|
55
|
+
__exportStar(require("./GetMembersResponseInner"), exports);
|
|
51
56
|
__exportStar(require("./GetMetricsResponseInner"), exports);
|
|
52
57
|
__exportStar(require("./GetMetricsResponseInnerMessagesInner"), exports);
|
|
53
58
|
__exportStar(require("./GetNotificationsResponseInner"), exports);
|
|
@@ -94,6 +99,7 @@ __exportStar(require("./IntercomWebhookDataItemAnyOfContacts"), exports);
|
|
|
94
99
|
__exportStar(require("./IntercomWebhookDataItemAnyOfContactsContactsInner"), exports);
|
|
95
100
|
__exportStar(require("./IntercomWebhookDataItemAnyOfSource"), exports);
|
|
96
101
|
__exportStar(require("./IntercomWebhookDataItemAnyOfSourceAuthor"), exports);
|
|
102
|
+
__exportStar(require("./InvitePostResponse"), exports);
|
|
97
103
|
__exportStar(require("./LogQueryPostBody"), exports);
|
|
98
104
|
__exportStar(require("./LogsBulkRequest"), exports);
|
|
99
105
|
__exportStar(require("./LogsGetResponse"), exports);
|
|
@@ -102,6 +108,8 @@ __exportStar(require("./LogsQueryResponse"), exports);
|
|
|
102
108
|
__exportStar(require("./LogsQueryResultResponse"), exports);
|
|
103
109
|
__exportStar(require("./LogsRetentionResponse"), exports);
|
|
104
110
|
__exportStar(require("./LogsTailResponse"), exports);
|
|
111
|
+
__exportStar(require("./MemberInviteRequest"), exports);
|
|
112
|
+
__exportStar(require("./MemberUpdateRequest"), exports);
|
|
105
113
|
__exportStar(require("./MessageResponse"), exports);
|
|
106
114
|
__exportStar(require("./Notification"), exports);
|
|
107
115
|
__exportStar(require("./NotificationCreateRequest"), exports);
|
package/dist/src/client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { HealthApi } from '../generated/src';
|
|
|
12
12
|
import { InsightsApi } from '../generated/src';
|
|
13
13
|
import { KeysApi } from '../generated/src';
|
|
14
14
|
import { LogsApi } from '../generated/src';
|
|
15
|
+
import { MembersApi } from '../generated/src';
|
|
15
16
|
import { SenderApi } from '../generated/src';
|
|
16
17
|
import { TemplatesApi } from '../generated/src';
|
|
17
18
|
import { TypesApi } from '../generated/src';
|
|
@@ -39,7 +40,20 @@ export interface NotificationAPIClientConfig {
|
|
|
39
40
|
*/
|
|
40
41
|
baseUrl?: string;
|
|
41
42
|
/**
|
|
42
|
-
* API Key
|
|
43
|
+
* API Key or JWT Token - Required. Can be either:
|
|
44
|
+
* - A string starting with 'pingram_sk_' for server-side API key authentication
|
|
45
|
+
* - A JWT token string (any other string) for JWT authentication
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* // API Key authentication
|
|
49
|
+
* const client = new NotificationAPIClient({
|
|
50
|
+
* apiKey: 'pingram_sk_...'
|
|
51
|
+
* });
|
|
52
|
+
*
|
|
53
|
+
* // JWT token authentication
|
|
54
|
+
* const client = new NotificationAPIClient({
|
|
55
|
+
* apiKey: 'eyJraWQiOiJJM0tuNitTVnp5K0lzam9TeXVvYlJKcFpCcDd...'
|
|
56
|
+
* });
|
|
43
57
|
*/
|
|
44
58
|
apiKey: string;
|
|
45
59
|
/**
|
|
@@ -93,6 +107,7 @@ export declare class NotificationAPIClient {
|
|
|
93
107
|
insights: InsightsApi;
|
|
94
108
|
keys: KeysApi;
|
|
95
109
|
logs: LogsApi;
|
|
110
|
+
members: MembersApi;
|
|
96
111
|
sender: SenderApi;
|
|
97
112
|
templates: TemplatesApi;
|
|
98
113
|
types: TypesApi;
|