@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,54 @@
|
|
|
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.instanceOfAutoJoinGetResponse = instanceOfAutoJoinGetResponse;
|
|
17
|
+
exports.AutoJoinGetResponseFromJSON = AutoJoinGetResponseFromJSON;
|
|
18
|
+
exports.AutoJoinGetResponseFromJSONTyped = AutoJoinGetResponseFromJSONTyped;
|
|
19
|
+
exports.AutoJoinGetResponseToJSON = AutoJoinGetResponseToJSON;
|
|
20
|
+
exports.AutoJoinGetResponseToJSONTyped = AutoJoinGetResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AutoJoinGetResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAutoJoinGetResponse(value) {
|
|
25
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('domains' in value) || value['domains'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AutoJoinGetResponseFromJSON(json) {
|
|
32
|
+
return AutoJoinGetResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AutoJoinGetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
accountId: json['accountId'],
|
|
40
|
+
domains: json['domains']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AutoJoinGetResponseToJSON(json) {
|
|
44
|
+
return AutoJoinGetResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AutoJoinGetResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
accountId: value['accountId'],
|
|
52
|
+
domains: value['domains']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 AutoJoinPostResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AutoJoinPostResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AutoJoinPostResponse
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AutoJoinPostResponse
|
|
28
|
+
*/
|
|
29
|
+
domains: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AutoJoinPostResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAutoJoinPostResponse(value: object): value is AutoJoinPostResponse;
|
|
35
|
+
export declare function AutoJoinPostResponseFromJSON(json: any): AutoJoinPostResponse;
|
|
36
|
+
export declare function AutoJoinPostResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoJoinPostResponse;
|
|
37
|
+
export declare function AutoJoinPostResponseToJSON(json: any): AutoJoinPostResponse;
|
|
38
|
+
export declare function AutoJoinPostResponseToJSONTyped(value?: AutoJoinPostResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAutoJoinPostResponse = instanceOfAutoJoinPostResponse;
|
|
17
|
+
exports.AutoJoinPostResponseFromJSON = AutoJoinPostResponseFromJSON;
|
|
18
|
+
exports.AutoJoinPostResponseFromJSONTyped = AutoJoinPostResponseFromJSONTyped;
|
|
19
|
+
exports.AutoJoinPostResponseToJSON = AutoJoinPostResponseToJSON;
|
|
20
|
+
exports.AutoJoinPostResponseToJSONTyped = AutoJoinPostResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AutoJoinPostResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAutoJoinPostResponse(value) {
|
|
25
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('domains' in value) || value['domains'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AutoJoinPostResponseFromJSON(json) {
|
|
32
|
+
return AutoJoinPostResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AutoJoinPostResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
accountId: json['accountId'],
|
|
40
|
+
domains: json['domains']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AutoJoinPostResponseToJSON(json) {
|
|
44
|
+
return AutoJoinPostResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AutoJoinPostResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
accountId: value['accountId'],
|
|
52
|
+
domains: value['domains']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 AutoJoinRequestBody
|
|
16
|
+
*/
|
|
17
|
+
export interface AutoJoinRequestBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AutoJoinRequestBody
|
|
22
|
+
*/
|
|
23
|
+
domains: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AutoJoinRequestBody interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAutoJoinRequestBody(value: object): value is AutoJoinRequestBody;
|
|
29
|
+
export declare function AutoJoinRequestBodyFromJSON(json: any): AutoJoinRequestBody;
|
|
30
|
+
export declare function AutoJoinRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoJoinRequestBody;
|
|
31
|
+
export declare function AutoJoinRequestBodyToJSON(json: any): AutoJoinRequestBody;
|
|
32
|
+
export declare function AutoJoinRequestBodyToJSONTyped(value?: AutoJoinRequestBody | 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.instanceOfAutoJoinRequestBody = instanceOfAutoJoinRequestBody;
|
|
17
|
+
exports.AutoJoinRequestBodyFromJSON = AutoJoinRequestBodyFromJSON;
|
|
18
|
+
exports.AutoJoinRequestBodyFromJSONTyped = AutoJoinRequestBodyFromJSONTyped;
|
|
19
|
+
exports.AutoJoinRequestBodyToJSON = AutoJoinRequestBodyToJSON;
|
|
20
|
+
exports.AutoJoinRequestBodyToJSONTyped = AutoJoinRequestBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AutoJoinRequestBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAutoJoinRequestBody(value) {
|
|
25
|
+
if (!('domains' in value) || value['domains'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AutoJoinRequestBodyFromJSON(json) {
|
|
30
|
+
return AutoJoinRequestBodyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AutoJoinRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
domains: json['domains']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AutoJoinRequestBodyToJSON(json) {
|
|
41
|
+
return AutoJoinRequestBodyToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AutoJoinRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
domains: value['domains']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 {
|
|
27
|
+
* @type {ChannelsEnum}
|
|
27
28
|
* @memberof EmailComponentResponseReferencedByInner
|
|
28
29
|
*/
|
|
29
|
-
channel:
|
|
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<
|
|
39
|
+
* @type {Array<ChannelsEnum>}
|
|
39
40
|
* @memberof Environment
|
|
40
41
|
*/
|
|
41
|
-
disableSending: Array<
|
|
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<
|
|
27
|
+
* @type {Array<ChannelsEnum>}
|
|
27
28
|
* @memberof EnvironmentPatchRequest
|
|
28
29
|
*/
|
|
29
|
-
disableSending?: Array<
|
|
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
|
|
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<
|
|
39
|
+
* @type {Array<ChannelsEnum>}
|
|
39
40
|
* @memberof GetEnvironmentsResponseInner
|
|
40
41
|
*/
|
|
41
|
-
disableSending: Array<
|
|
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
|
}
|