@ingestkorea/client-sens 1.2.0 → 1.3.0
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/README.md +32 -10
- package/dist-cjs/commands/{GetRequestResultCommand.js → GetAlimtalkResultCommand.js} +6 -6
- package/dist-cjs/commands/{GetRequestStatusCommand.js → GetAlimtalkStatusCommand.js} +6 -6
- package/dist-cjs/commands/{GetTemplateCommand.js → GetAlimtalkTemplateCommand.js} +6 -6
- package/dist-cjs/commands/{ListChannelsCommand.js → ListAlimtalkChannelsCommand.js} +6 -6
- package/dist-cjs/commands/ListAlimtalkTemplatesCommand.js +44 -0
- package/dist-cjs/commands/index.js +5 -5
- package/dist-cjs/models/{GetRequestResult.js → GetAlimtalkResult.js} +0 -0
- package/dist-cjs/models/{GetRequestStatus.js → GetAlimtalkStatus.js} +0 -0
- package/dist-cjs/models/{GetTemplate.js → GetAlimtalkTemplate.js} +0 -0
- package/dist-cjs/models/{ListChannels.js → ListAlimtalkChannels.js} +0 -0
- package/dist-cjs/models/{ListTemplates.js → ListAlimtalkTemplates.js} +0 -0
- package/dist-cjs/models/index.js +5 -5
- package/dist-cjs/protocols/{GetRequestResult.js → GetAlimtalkResult.js} +12 -12
- package/dist-cjs/protocols/{GetRequestStatus.js → GetAlimtalkStatus.js} +13 -12
- package/dist-cjs/protocols/{GetTemplate.js → GetAlimtalkTemplate.js} +11 -11
- package/dist-cjs/protocols/{ListChannels.js → ListAlimtalkChannels.js} +12 -12
- package/dist-cjs/protocols/{ListTemplates.js → ListAlimtalkTemplates.js} +24 -21
- package/dist-cjs/protocols/index.js +5 -5
- package/dist-es/commands/{GetRequestStatusCommand.js → GetAlimtalkResultCommand.js} +4 -4
- package/dist-es/commands/{GetRequestResultCommand.js → GetAlimtalkStatusCommand.js} +4 -4
- package/dist-es/commands/{ListChannelsCommand.js → GetAlimtalkTemplateCommand.js} +4 -4
- package/dist-es/commands/{GetTemplateCommand.js → ListAlimtalkChannelsCommand.js} +4 -4
- package/dist-es/commands/ListAlimtalkTemplatesCommand.js +29 -0
- package/dist-es/commands/index.js +5 -5
- package/dist-es/models/{GetRequestResult.js → GetAlimtalkResult.js} +0 -0
- package/dist-es/models/{GetRequestStatus.js → GetAlimtalkStatus.js} +0 -0
- package/dist-es/models/{GetTemplate.js → GetAlimtalkTemplate.js} +0 -0
- package/dist-es/models/{ListChannels.js → ListAlimtalkChannels.js} +0 -0
- package/dist-es/models/{ListTemplates.js → ListAlimtalkTemplates.js} +0 -0
- package/dist-es/models/index.js +5 -5
- package/dist-es/protocols/{GetRequestResult.js → GetAlimtalkResult.js} +7 -7
- package/dist-es/protocols/{GetRequestStatus.js → GetAlimtalkStatus.js} +8 -7
- package/dist-es/protocols/{GetTemplate.js → GetAlimtalkTemplate.js} +7 -7
- package/dist-es/protocols/{ListChannels.js → ListAlimtalkChannels.js} +7 -7
- package/dist-es/protocols/{ListTemplates.js → ListAlimtalkTemplates.js} +17 -14
- package/dist-es/protocols/index.js +5 -5
- package/dist-types/commands/GetAlimtalkResultCommand.d.ts +13 -0
- package/dist-types/commands/GetAlimtalkStatusCommand.d.ts +13 -0
- package/dist-types/commands/GetAlimtalkTemplateCommand.d.ts +13 -0
- package/dist-types/commands/ListAlimtalkChannelsCommand.d.ts +13 -0
- package/dist-types/commands/ListAlimtalkTemplatesCommand.d.ts +13 -0
- package/dist-types/commands/index.d.ts +5 -5
- package/dist-types/models/{GetRequestResult.d.ts → GetAlimtalkResult.d.ts} +3 -3
- package/dist-types/models/{GetRequestStatus.d.ts → GetAlimtalkStatus.d.ts} +2 -2
- package/dist-types/models/GetAlimtalkTemplate.d.ts +6 -0
- package/dist-types/models/{ListChannels.d.ts → ListAlimtalkChannels.d.ts} +2 -2
- package/dist-types/models/{ListTemplates.d.ts → ListAlimtalkTemplates.d.ts} +2 -2
- package/dist-types/models/index.d.ts +5 -5
- package/dist-types/protocols/GetAlimtalkResult.d.ts +8 -0
- package/dist-types/protocols/GetAlimtalkStatus.d.ts +8 -0
- package/dist-types/protocols/GetAlimtalkTemplate.d.ts +7 -0
- package/dist-types/protocols/ListAlimtalkChannels.d.ts +8 -0
- package/dist-types/protocols/ListAlimtalkTemplates.d.ts +10 -0
- package/dist-types/protocols/index.d.ts +5 -5
- package/package.json +9 -2
- package/dist-cjs/commands/ListTemplatesCommand.js +0 -44
- package/dist-es/commands/ListTemplatesCommand.js +0 -29
- package/dist-types/commands/GetRequestResultCommand.d.ts +0 -13
- package/dist-types/commands/GetRequestStatusCommand.d.ts +0 -13
- package/dist-types/commands/GetTemplateCommand.d.ts +0 -13
- package/dist-types/commands/ListChannelsCommand.d.ts +0 -13
- package/dist-types/commands/ListTemplatesCommand.d.ts +0 -13
- package/dist-types/models/GetTemplate.d.ts +0 -6
- package/dist-types/protocols/GetRequestResult.d.ts +0 -8
- package/dist-types/protocols/GetRequestStatus.d.ts +0 -8
- package/dist-types/protocols/GetTemplate.d.ts +0 -7
- package/dist-types/protocols/ListChannels.d.ts +0 -8
- package/dist-types/protocols/ListTemplates.d.ts +0 -10
|
@@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.deserializeIngestkorea_restJson_AlimtalkTemplateButton = exports.deserializeIngestkorea_restJson_AlimtalkTemplateComment = exports.deserializeIngestkorea_restJson_AlimtalkTemplate = exports.deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput = exports.deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = exports.serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = void 0;
|
|
13
13
|
const util_http_handler_1 = require("@ingestkorea/util-http-handler");
|
|
14
14
|
const constants_1 = require("./constants");
|
|
15
|
-
const
|
|
15
|
+
const serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = (input, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
16
|
const hostname = "sens.apigw.ntruss.com";
|
|
17
17
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/templates";
|
|
18
18
|
const headers = {
|
|
@@ -30,25 +30,25 @@ const serializeIngestkorea_restJson_ListTemplatesCommand = (input, config) => __
|
|
|
30
30
|
headers: headers
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
33
|
+
exports.serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand;
|
|
34
|
+
const deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = (output) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
35
|
if (output.statusCode > 300)
|
|
36
36
|
yield (0, constants_1.parseErrorBody)(output);
|
|
37
|
-
const data = yield (0, constants_1.parseBody)(output); //
|
|
37
|
+
const data = yield (0, constants_1.parseBody)(output); // ListAlimtalkTemplatesOutput
|
|
38
38
|
let contents = {};
|
|
39
|
-
contents = yield (0, exports.
|
|
39
|
+
contents = yield (0, exports.deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput)(data);
|
|
40
40
|
const response = Object.assign({}, contents);
|
|
41
41
|
return response;
|
|
42
42
|
});
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
43
|
+
exports.deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand;
|
|
44
|
+
const deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput = (output) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
45
|
return {
|
|
46
|
-
templates: (0, exports.
|
|
46
|
+
templates: (0, exports.deserializeIngestkorea_restJson_AlimtalkTemplate)(output)
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
|
-
exports.
|
|
50
|
-
const
|
|
51
|
-
|
|
49
|
+
exports.deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput = deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput;
|
|
50
|
+
const deserializeIngestkorea_restJson_AlimtalkTemplate = (outputs) => {
|
|
51
|
+
let result = outputs.map(output => {
|
|
52
52
|
return {
|
|
53
53
|
createTime: output.createTime != undefined ? output.createTime : undefined,
|
|
54
54
|
updateTime: output.updateTime != undefined ? output.updateTime : undefined,
|
|
@@ -57,18 +57,19 @@ const deserializeIngestkorea_restJson_Template = (outputs) => {
|
|
|
57
57
|
templateName: output.templateName != undefined ? output.templateName : undefined,
|
|
58
58
|
content: output.content != undefined ? output.content : undefined,
|
|
59
59
|
comments: output.comments != undefined
|
|
60
|
-
? (0, exports.
|
|
60
|
+
? (0, exports.deserializeIngestkorea_restJson_AlimtalkTemplateComment)(output.comments) : undefined,
|
|
61
61
|
templateInspectionStatus: output.templateInspectionStatus != undefined
|
|
62
62
|
? output.templateInspectionStatus : undefined,
|
|
63
63
|
templateStatus: output.templateStatus != undefined ? output.templateStatus : undefined,
|
|
64
64
|
buttons: output.buttons != undefined
|
|
65
|
-
? (0, exports.
|
|
65
|
+
? (0, exports.deserializeIngestkorea_restJson_AlimtalkTemplateButton)(output.buttons) : undefined
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
|
+
return result;
|
|
68
69
|
};
|
|
69
|
-
exports.
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
exports.deserializeIngestkorea_restJson_AlimtalkTemplate = deserializeIngestkorea_restJson_AlimtalkTemplate;
|
|
71
|
+
const deserializeIngestkorea_restJson_AlimtalkTemplateComment = (outputs) => {
|
|
72
|
+
let result = outputs.map(output => {
|
|
72
73
|
return {
|
|
73
74
|
commentId: output.commentId != undefined ? output.commentId : undefined,
|
|
74
75
|
content: output.content != undefined ? output.content : undefined,
|
|
@@ -76,10 +77,11 @@ const deserializeIngestkorea_restJson_Comment = (outputs) => {
|
|
|
76
77
|
createTime: output.createTime != undefined ? output.createTime : undefined
|
|
77
78
|
};
|
|
78
79
|
});
|
|
80
|
+
return result;
|
|
79
81
|
};
|
|
80
|
-
exports.
|
|
81
|
-
const
|
|
82
|
-
|
|
82
|
+
exports.deserializeIngestkorea_restJson_AlimtalkTemplateComment = deserializeIngestkorea_restJson_AlimtalkTemplateComment;
|
|
83
|
+
const deserializeIngestkorea_restJson_AlimtalkTemplateButton = (outputs) => {
|
|
84
|
+
let result = outputs.map(output => {
|
|
83
85
|
return {
|
|
84
86
|
order: output.order != undefined ? output.order : undefined,
|
|
85
87
|
type: output.type != undefined ? output.type : undefined,
|
|
@@ -90,5 +92,6 @@ const deserializeIngestkorea_restJson_Button = (outputs) => {
|
|
|
90
92
|
schemeAndroid: output.schemeAndroid != undefined ? output.schemeAndroid : undefined
|
|
91
93
|
};
|
|
92
94
|
});
|
|
95
|
+
return result;
|
|
93
96
|
};
|
|
94
|
-
exports.
|
|
97
|
+
exports.deserializeIngestkorea_restJson_AlimtalkTemplateButton = deserializeIngestkorea_restJson_AlimtalkTemplateButton;
|
|
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./SendAlimtalk"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./GetAlimtalkStatus"), exports);
|
|
19
|
+
__exportStar(require("./GetAlimtalkResult"), exports);
|
|
20
|
+
__exportStar(require("./GetAlimtalkTemplate"), exports);
|
|
21
|
+
__exportStar(require("./ListAlimtalkTemplates"), exports);
|
|
22
|
+
__exportStar(require("./ListAlimtalkChannels"), exports);
|
|
21
23
|
__exportStar(require("./SendSMS"), exports);
|
|
22
|
-
__exportStar(require("./ListTemplates"), exports);
|
|
23
|
-
__exportStar(require("./GetTemplate"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SensCommand } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { serializeIngestkorea_restJson_GetAlimtalkResultCommand, deserializeIngestkorea_restJson_GetAlimtalkResultCommand } from '../protocols/GetAlimtalkResult';
|
|
3
3
|
import { IngestkoreaError } from '@ingestkorea/util-error-handler';
|
|
4
4
|
;
|
|
5
5
|
;
|
|
6
|
-
export class
|
|
6
|
+
export class GetAlimtalkResultCommand extends SensCommand {
|
|
7
7
|
constructor(input) {
|
|
8
8
|
super(input);
|
|
9
9
|
this.input = {
|
|
@@ -16,12 +16,12 @@ export class GetRequestStatusCommand extends SensCommand {
|
|
|
16
16
|
throw new IngestkoreaError({
|
|
17
17
|
code: 400, type: 'Bad Request', message: 'Invalid Params', description: 'Please Check Kakao ServiceId'
|
|
18
18
|
});
|
|
19
|
-
let request = await
|
|
19
|
+
let request = await serializeIngestkorea_restJson_GetAlimtalkResultCommand(input, config);
|
|
20
20
|
return request;
|
|
21
21
|
}
|
|
22
22
|
;
|
|
23
23
|
async deserialize(response) {
|
|
24
|
-
let output = await
|
|
24
|
+
let output = await deserializeIngestkorea_restJson_GetAlimtalkResultCommand(response);
|
|
25
25
|
return output;
|
|
26
26
|
}
|
|
27
27
|
;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SensCommand } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { serializeIngestkorea_restJson_GetAlimtalkStatusCommand, deserializeIngestkorea_restJson_GetAlimtalkStatusCommand } from '../protocols/GetAlimtalkStatus';
|
|
3
3
|
import { IngestkoreaError } from '@ingestkorea/util-error-handler';
|
|
4
4
|
;
|
|
5
5
|
;
|
|
6
|
-
export class
|
|
6
|
+
export class GetAlimtalkStatusCommand extends SensCommand {
|
|
7
7
|
constructor(input) {
|
|
8
8
|
super(input);
|
|
9
9
|
this.input = {
|
|
@@ -16,12 +16,12 @@ export class GetRequestResultCommand extends SensCommand {
|
|
|
16
16
|
throw new IngestkoreaError({
|
|
17
17
|
code: 400, type: 'Bad Request', message: 'Invalid Params', description: 'Please Check Kakao ServiceId'
|
|
18
18
|
});
|
|
19
|
-
let request = await
|
|
19
|
+
let request = await serializeIngestkorea_restJson_GetAlimtalkStatusCommand(input, config);
|
|
20
20
|
return request;
|
|
21
21
|
}
|
|
22
22
|
;
|
|
23
23
|
async deserialize(response) {
|
|
24
|
-
let output = await
|
|
24
|
+
let output = await deserializeIngestkorea_restJson_GetAlimtalkStatusCommand(response);
|
|
25
25
|
return output;
|
|
26
26
|
}
|
|
27
27
|
;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SensCommand } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { serializeIngestkorea_restJson_GetAlimtalkTemplateCommand, deserializeIngestkorea_restJson_GetAlimtalkTemplateCommand } from '../protocols/GetAlimtalkTemplate';
|
|
3
3
|
import { IngestkoreaError } from '@ingestkorea/util-error-handler';
|
|
4
4
|
;
|
|
5
5
|
;
|
|
6
|
-
export class
|
|
6
|
+
export class GetAlimtalkTemplateCommand extends SensCommand {
|
|
7
7
|
constructor(input) {
|
|
8
8
|
super(input);
|
|
9
9
|
this.input = {
|
|
@@ -16,12 +16,12 @@ export class ListChannelsCommand extends SensCommand {
|
|
|
16
16
|
throw new IngestkoreaError({
|
|
17
17
|
code: 400, type: 'Bad Request', message: 'Invalid Params', description: 'Please Check Kakao ServiceId'
|
|
18
18
|
});
|
|
19
|
-
let request = await
|
|
19
|
+
let request = await serializeIngestkorea_restJson_GetAlimtalkTemplateCommand(input, config);
|
|
20
20
|
return request;
|
|
21
21
|
}
|
|
22
22
|
;
|
|
23
23
|
async deserialize(response) {
|
|
24
|
-
let output = await
|
|
24
|
+
let output = await deserializeIngestkorea_restJson_GetAlimtalkTemplateCommand(response);
|
|
25
25
|
return output;
|
|
26
26
|
}
|
|
27
27
|
;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SensCommand } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { serializeIngestkorea_restJson_ListAlimtalkChannelsCommand, deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand, } from '../protocols/ListAlimtalkChannels';
|
|
3
3
|
import { IngestkoreaError } from '@ingestkorea/util-error-handler';
|
|
4
4
|
;
|
|
5
5
|
;
|
|
6
|
-
export class
|
|
6
|
+
export class ListAlimtalkChannelsCommand extends SensCommand {
|
|
7
7
|
constructor(input) {
|
|
8
8
|
super(input);
|
|
9
9
|
this.input = {
|
|
@@ -16,12 +16,12 @@ export class GetTemplateCommand extends SensCommand {
|
|
|
16
16
|
throw new IngestkoreaError({
|
|
17
17
|
code: 400, type: 'Bad Request', message: 'Invalid Params', description: 'Please Check Kakao ServiceId'
|
|
18
18
|
});
|
|
19
|
-
let request = await
|
|
19
|
+
let request = await serializeIngestkorea_restJson_ListAlimtalkChannelsCommand(input, config);
|
|
20
20
|
return request;
|
|
21
21
|
}
|
|
22
22
|
;
|
|
23
23
|
async deserialize(response) {
|
|
24
|
-
let output = await
|
|
24
|
+
let output = await deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand(response);
|
|
25
25
|
return output;
|
|
26
26
|
}
|
|
27
27
|
;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SensCommand } from '../models';
|
|
2
|
+
import { serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand, deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand } from '../protocols/ListAlimtalkTemplates';
|
|
3
|
+
import { IngestkoreaError } from '@ingestkorea/util-error-handler';
|
|
4
|
+
;
|
|
5
|
+
;
|
|
6
|
+
export class ListAlimtalkTemplatesCommand extends SensCommand {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super(input);
|
|
9
|
+
this.input = {
|
|
10
|
+
...input
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
;
|
|
14
|
+
async serialize(input, config) {
|
|
15
|
+
if (!config.serviceId.kakao)
|
|
16
|
+
throw new IngestkoreaError({
|
|
17
|
+
code: 400, type: 'Bad Request', message: 'Invalid Params', description: 'Please Check Kakao ServiceId'
|
|
18
|
+
});
|
|
19
|
+
let request = await serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand(input, config);
|
|
20
|
+
return request;
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
async deserialize(response) {
|
|
24
|
+
let output = await deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand(response);
|
|
25
|
+
return output;
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
}
|
|
29
|
+
;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './SendAlimtalkCommand';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
2
|
+
export * from './GetAlimtalkStatusCommand';
|
|
3
|
+
export * from './GetAlimtalkResultCommand';
|
|
4
|
+
export * from './GetAlimtalkTemplateCommand';
|
|
5
|
+
export * from './ListAlimtalkTemplatesCommand';
|
|
6
|
+
export * from './ListAlimtalkChannelsCommand';
|
|
5
7
|
export * from './SendSMSCommand';
|
|
6
|
-
export * from './ListTemplatesCommand';
|
|
7
|
-
export * from './GetTemplateCommand';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist-es/models/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './SensCommand';
|
|
2
2
|
export * from './SendAlimtalk';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
3
|
+
export * from './GetAlimtalkStatus';
|
|
4
|
+
export * from './GetAlimtalkResult';
|
|
5
|
+
export * from './GetAlimtalkTemplate';
|
|
6
|
+
export * from './ListAlimtalkTemplates';
|
|
7
|
+
export * from './ListAlimtalkChannels';
|
|
6
8
|
export * from './SendSMS';
|
|
7
|
-
export * from './ListTemplates';
|
|
8
|
-
export * from './GetTemplate';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest } from '@ingestkorea/util-http-handler';
|
|
2
2
|
import { parseBody, parseErrorBody } from './constants';
|
|
3
|
-
export const
|
|
3
|
+
export const serializeIngestkorea_restJson_GetAlimtalkResultCommand = async (input, config) => {
|
|
4
4
|
const hostname = "sens.apigw.ntruss.com";
|
|
5
5
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/messages/" + input.messageId;
|
|
6
6
|
const headers = {
|
|
@@ -14,18 +14,18 @@ export const serializeIngestkorea_restJson_GetRequestResultCommand = async (inpu
|
|
|
14
14
|
headers: headers
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
export const
|
|
17
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkResultCommand = async (output) => {
|
|
18
18
|
if (output.statusCode > 300)
|
|
19
19
|
await parseErrorBody(output);
|
|
20
|
-
const data = await parseBody(output); //
|
|
20
|
+
const data = await parseBody(output); // GetAlimtalkResultOutput
|
|
21
21
|
let contents = {};
|
|
22
|
-
contents = await
|
|
22
|
+
contents = await deserializeIngestkorea_restJson_GetAlimtalkResultOutput(data);
|
|
23
23
|
const response = {
|
|
24
24
|
...contents
|
|
25
25
|
};
|
|
26
26
|
return response;
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkResultOutput = async (output) => {
|
|
29
29
|
return {
|
|
30
30
|
requestId: output.requestId != undefined ? output.requestId : undefined,
|
|
31
31
|
messageId: output.messageId != undefined ? output.messageId : undefined,
|
|
@@ -44,10 +44,10 @@ export const deserializeIngestkorea_restJson_GetRequestResultOutput = async (out
|
|
|
44
44
|
messageStatusName: output.messageStatusName != undefined ? output.messageStatusName : undefined,
|
|
45
45
|
messageStatusDesc: output.messageStatusDesc != undefined ? output.messageStatusDesc : undefined,
|
|
46
46
|
failover: output.failover != undefined ?
|
|
47
|
-
|
|
47
|
+
deserializeIngestkorea_restJson_AlimtalkFailover(output.failover) : undefined,
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const deserializeIngestkorea_restJson_AlimtalkFailover = (output) => {
|
|
51
51
|
return {
|
|
52
52
|
smsServiceId: output.smsServiceId != undefined ? output.smsServiceId : undefined,
|
|
53
53
|
requestId: output.requestId != undefined ? output.requestId : undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest } from '@ingestkorea/util-http-handler';
|
|
2
2
|
import { parseBody, parseErrorBody } from './constants';
|
|
3
|
-
export const
|
|
3
|
+
export const serializeIngestkorea_restJson_GetAlimtalkStatusCommand = async (input, config) => {
|
|
4
4
|
const hostname = "sens.apigw.ntruss.com";
|
|
5
5
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/messages";
|
|
6
6
|
const headers = {
|
|
@@ -18,27 +18,28 @@ export const serializeIngestkorea_restJson_GetRequestStatusCommand = async (inpu
|
|
|
18
18
|
query: query
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkStatusCommand = async (output) => {
|
|
22
22
|
if (output.statusCode > 300)
|
|
23
23
|
await parseErrorBody(output);
|
|
24
|
-
const data = await parseBody(output); //
|
|
24
|
+
const data = await parseBody(output); // GetAlimtalkStatusOutput
|
|
25
25
|
let contents = {};
|
|
26
|
-
contents = await
|
|
26
|
+
contents = await deserializeIngestkorea_restJson_GetAlimtalkStatusOutput(data);
|
|
27
27
|
const response = {
|
|
28
28
|
...contents
|
|
29
29
|
};
|
|
30
30
|
return response;
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkStatusOutput = async (output) => {
|
|
33
33
|
const { requestId, statusCode, statusName, messages } = output;
|
|
34
34
|
return {
|
|
35
35
|
requestId: requestId != undefined ? requestId : undefined,
|
|
36
36
|
statusCode: statusCode != undefined ? statusCode : undefined,
|
|
37
37
|
statusName: statusName != undefined ? statusName : undefined,
|
|
38
|
-
messages: messages != undefined
|
|
38
|
+
messages: messages != undefined
|
|
39
|
+
? deserializeIngestkorea_restJson_GetAlimtalkStatusMessages(messages) : undefined
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
|
-
export const
|
|
42
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkStatusMessages = (outputs) => {
|
|
42
43
|
const result = outputs.map(output => {
|
|
43
44
|
return {
|
|
44
45
|
messageId: output.messageId != undefined ? output.messageId : undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest } from '@ingestkorea/util-http-handler';
|
|
2
|
-
import {
|
|
2
|
+
import { deserializeIngestkorea_restJson_AlimtalkTemplate } from './ListAlimtalkTemplates';
|
|
3
3
|
import { parseBody, parseErrorBody } from './constants';
|
|
4
|
-
export const
|
|
4
|
+
export const serializeIngestkorea_restJson_GetAlimtalkTemplateCommand = async (input, config) => {
|
|
5
5
|
const hostname = "sens.apigw.ntruss.com";
|
|
6
6
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/templates";
|
|
7
7
|
const headers = {
|
|
@@ -20,19 +20,19 @@ export const serializeIngestkorea_restJson_GetTemplateCommand = async (input, co
|
|
|
20
20
|
headers: headers
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkTemplateCommand = async (output) => {
|
|
24
24
|
if (output.statusCode > 300)
|
|
25
25
|
await parseErrorBody(output);
|
|
26
|
-
const data = await parseBody(output); //
|
|
26
|
+
const data = await parseBody(output); // GetAlimtalkTemplateOutput
|
|
27
27
|
let contents = {};
|
|
28
|
-
contents = await
|
|
28
|
+
contents = await deserializeIngestkorea_restJson_GetAlimtalkTemplateOutput(data);
|
|
29
29
|
const response = {
|
|
30
30
|
...contents
|
|
31
31
|
};
|
|
32
32
|
return response;
|
|
33
33
|
};
|
|
34
|
-
export const
|
|
34
|
+
export const deserializeIngestkorea_restJson_GetAlimtalkTemplateOutput = async (output) => {
|
|
35
35
|
return {
|
|
36
|
-
templates:
|
|
36
|
+
templates: deserializeIngestkorea_restJson_AlimtalkTemplate(output)
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest } from '@ingestkorea/util-http-handler';
|
|
2
2
|
import { parseBody, parseErrorBody } from './constants';
|
|
3
|
-
export const
|
|
3
|
+
export const serializeIngestkorea_restJson_ListAlimtalkChannelsCommand = async (input, config) => {
|
|
4
4
|
const hostname = "sens.apigw.ntruss.com";
|
|
5
5
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/channels";
|
|
6
6
|
const headers = {
|
|
@@ -14,23 +14,23 @@ export const serializeIngestkorea_restJson_ListChannelsCommand = async (input, c
|
|
|
14
14
|
headers: headers
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
export const
|
|
17
|
+
export const deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand = async (output) => {
|
|
18
18
|
if (output.statusCode > 300)
|
|
19
19
|
await parseErrorBody(output);
|
|
20
|
-
const data = await parseBody(output); //
|
|
20
|
+
const data = await parseBody(output); // ListAlimtalkChannelsOutput
|
|
21
21
|
let contents = {};
|
|
22
|
-
contents = await
|
|
22
|
+
contents = await deserializeIngestkorea_restJson_ListAlimtalkChannelsOutput(data);
|
|
23
23
|
const response = {
|
|
24
24
|
...contents
|
|
25
25
|
};
|
|
26
26
|
return response;
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const deserializeIngestkorea_restJson_ListAlimtalkChannelsOutput = async (outputs) => {
|
|
29
29
|
return {
|
|
30
|
-
channels:
|
|
30
|
+
channels: deserializeIngestkorea_restJson_Channel(outputs)
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const deserializeIngestkorea_restJson_Channel = (outputs) => {
|
|
34
34
|
const result = outputs.map(output => {
|
|
35
35
|
return {
|
|
36
36
|
createTime: output.createTime != undefined ? output.createTime : undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest } from '@ingestkorea/util-http-handler';
|
|
2
2
|
import { parseBody, parseErrorBody } from './constants';
|
|
3
|
-
export const
|
|
3
|
+
export const serializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = async (input, config) => {
|
|
4
4
|
const hostname = "sens.apigw.ntruss.com";
|
|
5
5
|
const path = "/alimtalk/v2/services/" + config.serviceId.kakao + "/templates";
|
|
6
6
|
const headers = {
|
|
@@ -18,24 +18,24 @@ export const serializeIngestkorea_restJson_ListTemplatesCommand = async (input,
|
|
|
18
18
|
headers: headers
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const deserializeIngestkorea_restJson_ListAlimtalkTemplatesCommand = async (output) => {
|
|
22
22
|
if (output.statusCode > 300)
|
|
23
23
|
await parseErrorBody(output);
|
|
24
|
-
const data = await parseBody(output); //
|
|
24
|
+
const data = await parseBody(output); // ListAlimtalkTemplatesOutput
|
|
25
25
|
let contents = {};
|
|
26
|
-
contents = await
|
|
26
|
+
contents = await deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput(data);
|
|
27
27
|
const response = {
|
|
28
28
|
...contents
|
|
29
29
|
};
|
|
30
30
|
return response;
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const deserializeIngestkorea_restJson_ListAlimtalkTemplatesOutput = async (output) => {
|
|
33
33
|
return {
|
|
34
|
-
templates:
|
|
34
|
+
templates: deserializeIngestkorea_restJson_AlimtalkTemplate(output)
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export const
|
|
38
|
-
|
|
37
|
+
export const deserializeIngestkorea_restJson_AlimtalkTemplate = (outputs) => {
|
|
38
|
+
let result = outputs.map(output => {
|
|
39
39
|
return {
|
|
40
40
|
createTime: output.createTime != undefined ? output.createTime : undefined,
|
|
41
41
|
updateTime: output.updateTime != undefined ? output.updateTime : undefined,
|
|
@@ -44,17 +44,18 @@ export const deserializeIngestkorea_restJson_Template = (outputs) => {
|
|
|
44
44
|
templateName: output.templateName != undefined ? output.templateName : undefined,
|
|
45
45
|
content: output.content != undefined ? output.content : undefined,
|
|
46
46
|
comments: output.comments != undefined
|
|
47
|
-
?
|
|
47
|
+
? deserializeIngestkorea_restJson_AlimtalkTemplateComment(output.comments) : undefined,
|
|
48
48
|
templateInspectionStatus: output.templateInspectionStatus != undefined
|
|
49
49
|
? output.templateInspectionStatus : undefined,
|
|
50
50
|
templateStatus: output.templateStatus != undefined ? output.templateStatus : undefined,
|
|
51
51
|
buttons: output.buttons != undefined
|
|
52
|
-
?
|
|
52
|
+
? deserializeIngestkorea_restJson_AlimtalkTemplateButton(output.buttons) : undefined
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
|
+
return result;
|
|
55
56
|
};
|
|
56
|
-
export const
|
|
57
|
-
|
|
57
|
+
export const deserializeIngestkorea_restJson_AlimtalkTemplateComment = (outputs) => {
|
|
58
|
+
let result = outputs.map(output => {
|
|
58
59
|
return {
|
|
59
60
|
commentId: output.commentId != undefined ? output.commentId : undefined,
|
|
60
61
|
content: output.content != undefined ? output.content : undefined,
|
|
@@ -62,9 +63,10 @@ export const deserializeIngestkorea_restJson_Comment = (outputs) => {
|
|
|
62
63
|
createTime: output.createTime != undefined ? output.createTime : undefined
|
|
63
64
|
};
|
|
64
65
|
});
|
|
66
|
+
return result;
|
|
65
67
|
};
|
|
66
|
-
export const
|
|
67
|
-
|
|
68
|
+
export const deserializeIngestkorea_restJson_AlimtalkTemplateButton = (outputs) => {
|
|
69
|
+
let result = outputs.map(output => {
|
|
68
70
|
return {
|
|
69
71
|
order: output.order != undefined ? output.order : undefined,
|
|
70
72
|
type: output.type != undefined ? output.type : undefined,
|
|
@@ -75,4 +77,5 @@ export const deserializeIngestkorea_restJson_Button = (outputs) => {
|
|
|
75
77
|
schemeAndroid: output.schemeAndroid != undefined ? output.schemeAndroid : undefined
|
|
76
78
|
};
|
|
77
79
|
});
|
|
80
|
+
return result;
|
|
78
81
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './SendAlimtalk';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
2
|
+
export * from './GetAlimtalkStatus';
|
|
3
|
+
export * from './GetAlimtalkResult';
|
|
4
|
+
export * from './GetAlimtalkTemplate';
|
|
5
|
+
export * from './ListAlimtalkTemplates';
|
|
6
|
+
export * from './ListAlimtalkChannels';
|
|
5
7
|
export * from './SendSMS';
|
|
6
|
-
export * from './ListTemplates';
|
|
7
|
-
export * from './GetTemplate';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '@ingestkorea/util-http-handler';
|
|
2
|
+
import { SensCommand, GetAlimtalkResultInput, GetAlimtalkResultOutput } from '../models';
|
|
3
|
+
import { SensClientResolvedConfig } from '../SensClient';
|
|
4
|
+
export interface GetAlimtalkResultCommandInput extends GetAlimtalkResultInput {
|
|
5
|
+
}
|
|
6
|
+
export interface GetAlimtalkResultCommandOutput extends GetAlimtalkResultOutput {
|
|
7
|
+
}
|
|
8
|
+
export declare class GetAlimtalkResultCommand extends SensCommand<GetAlimtalkResultCommandInput, GetAlimtalkResultCommandOutput, SensClientResolvedConfig> {
|
|
9
|
+
input: GetAlimtalkResultCommandInput;
|
|
10
|
+
constructor(input: GetAlimtalkResultCommandInput);
|
|
11
|
+
serialize(input: GetAlimtalkResultCommandInput, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
12
|
+
deserialize(response: HttpResponse): Promise<GetAlimtalkResultCommandOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '@ingestkorea/util-http-handler';
|
|
2
|
+
import { SensCommand, GetAlimtalkStatusInput, GetAlimtalkStatusOutput } from '../models';
|
|
3
|
+
import { SensClientResolvedConfig } from '../SensClient';
|
|
4
|
+
export interface GetAlimtalkStatusCommandInput extends GetAlimtalkStatusInput {
|
|
5
|
+
}
|
|
6
|
+
export interface GetAlimtalkStatusCommandOutput extends GetAlimtalkStatusOutput {
|
|
7
|
+
}
|
|
8
|
+
export declare class GetAlimtalkStatusCommand extends SensCommand<GetAlimtalkStatusCommandInput, GetAlimtalkStatusCommandOutput, SensClientResolvedConfig> {
|
|
9
|
+
input: GetAlimtalkStatusCommandInput;
|
|
10
|
+
constructor(input: GetAlimtalkStatusCommandInput);
|
|
11
|
+
serialize(input: GetAlimtalkStatusCommandInput, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
12
|
+
deserialize(response: HttpResponse): Promise<GetAlimtalkStatusCommandOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '@ingestkorea/util-http-handler';
|
|
2
|
+
import { SensCommand, GetAlimtalkTemplateInput, GetAlimtalkTemplateOutput } from '../models';
|
|
3
|
+
import { SensClientResolvedConfig } from '../SensClient';
|
|
4
|
+
export interface GetAlimtalkTemplateCommandInput extends GetAlimtalkTemplateInput {
|
|
5
|
+
}
|
|
6
|
+
export interface GetAlimtalkTemplateCommandOutput extends GetAlimtalkTemplateOutput {
|
|
7
|
+
}
|
|
8
|
+
export declare class GetAlimtalkTemplateCommand extends SensCommand<GetAlimtalkTemplateCommandInput, GetAlimtalkTemplateCommandOutput, SensClientResolvedConfig> {
|
|
9
|
+
input: GetAlimtalkTemplateCommandInput;
|
|
10
|
+
constructor(input: GetAlimtalkTemplateCommandInput);
|
|
11
|
+
serialize(input: GetAlimtalkTemplateCommandInput, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
12
|
+
deserialize(response: HttpResponse): Promise<GetAlimtalkTemplateCommandOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '@ingestkorea/util-http-handler';
|
|
2
|
+
import { SensCommand, ListAlimtalkChannelsInput, ListAlimtalkChannelsOutput } from '../models';
|
|
3
|
+
import { SensClientResolvedConfig } from '../SensClient';
|
|
4
|
+
export interface ListAlimtalkChannelsCommandInput extends ListAlimtalkChannelsInput {
|
|
5
|
+
}
|
|
6
|
+
export interface ListAlimtalkChannelsCommandOutput extends ListAlimtalkChannelsOutput {
|
|
7
|
+
}
|
|
8
|
+
export declare class ListAlimtalkChannelsCommand extends SensCommand<ListAlimtalkChannelsCommandInput, ListAlimtalkChannelsCommandOutput, SensClientResolvedConfig> {
|
|
9
|
+
input: ListAlimtalkChannelsCommandInput;
|
|
10
|
+
constructor(input: ListAlimtalkChannelsCommandInput);
|
|
11
|
+
serialize(input: ListAlimtalkChannelsCommandInput, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
12
|
+
deserialize(response: HttpResponse): Promise<ListAlimtalkChannelsCommandOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '@ingestkorea/util-http-handler';
|
|
2
|
+
import { SensCommand, ListAlimtalkTemplatesInput, ListAlimtalkTemplatesOutput } from '../models';
|
|
3
|
+
import { SensClientResolvedConfig } from '../SensClient';
|
|
4
|
+
export interface ListAlimtalkTemplatesCommandInput extends ListAlimtalkTemplatesInput {
|
|
5
|
+
}
|
|
6
|
+
export interface ListAlimtalkTemplatesCommandOutput extends ListAlimtalkTemplatesOutput {
|
|
7
|
+
}
|
|
8
|
+
export declare class ListAlimtalkTemplatesCommand extends SensCommand<ListAlimtalkTemplatesCommandInput, ListAlimtalkTemplatesCommandOutput, SensClientResolvedConfig> {
|
|
9
|
+
input: ListAlimtalkTemplatesCommandInput;
|
|
10
|
+
constructor(input: ListAlimtalkTemplatesCommandInput);
|
|
11
|
+
serialize(input: ListAlimtalkTemplatesCommandInput, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
12
|
+
deserialize(response: HttpResponse): Promise<ListAlimtalkTemplatesCommandOutput>;
|
|
13
|
+
}
|