@ingestkorea/client-sens 1.7.0 → 1.9.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/LICENSE +1 -1
- package/README.md +98 -63
- package/dist-cjs/SensClient.js +57 -28
- package/dist-cjs/commands/GetAlimtalkResultCommand.js +5 -32
- package/dist-cjs/commands/GetAlimtalkStatusCommand.js +7 -35
- package/dist-cjs/commands/GetAlimtalkTemplateCommand.js +5 -32
- package/dist-cjs/commands/GetSMSResultCommand.js +8 -33
- package/dist-cjs/commands/GetSMSStatusCommand.js +7 -33
- package/dist-cjs/commands/ListAlimtalkChannelsCommand.js +6 -33
- package/dist-cjs/commands/ListAlimtalkStatusCommand.js +29 -35
- package/dist-cjs/commands/ListAlimtalkTemplatesCommand.js +5 -32
- package/dist-cjs/commands/ListSMSStatusCommand.js +37 -0
- package/dist-cjs/commands/SendAlimtalkCommand.js +36 -44
- package/dist-cjs/commands/SendMMSCommand.js +67 -103
- package/dist-cjs/commands/SendSMSCommand.js +38 -71
- package/dist-cjs/commands/constants.js +57 -14
- package/dist-cjs/commands/index.js +12 -11
- package/dist-cjs/index.js +2 -2
- package/dist-cjs/middleware/constants.js +10 -0
- package/dist-cjs/middleware/index.js +3 -4
- package/dist-cjs/middleware/middleware-metadata.js +4 -5
- package/dist-cjs/middleware/middleware-retry.js +32 -27
- package/dist-cjs/middleware/middleware-sign.js +10 -9
- package/dist-cjs/models/SendAlimtalk.js +3 -0
- package/dist-cjs/models/SendMMS.js +3 -0
- package/dist-cjs/models/SensClient.js +2 -0
- package/dist-cjs/models/SensErrorInfo.js +13 -0
- package/dist-cjs/models/SensMiddleware.js +2 -0
- package/dist-cjs/models/index.js +17 -14
- package/dist-cjs/protocols/GetAlimtalkResult.js +19 -22
- package/dist-cjs/protocols/GetAlimtalkStatus.js +39 -40
- package/dist-cjs/protocols/GetAlimtalkTemplate.js +56 -90
- package/dist-cjs/protocols/GetSMSResult.js +31 -48
- package/dist-cjs/protocols/GetSMSStatus.js +51 -37
- package/dist-cjs/protocols/ListAlimtalkChannels.js +27 -31
- package/dist-cjs/protocols/ListAlimtalkStatus.js +22 -19
- package/dist-cjs/protocols/ListAlimtalkTemplates.js +33 -25
- package/dist-cjs/protocols/ListSMSStatus.js +48 -0
- package/dist-cjs/protocols/SendAlimtalk.js +23 -27
- package/dist-cjs/protocols/SendMMS.js +8 -38
- package/dist-cjs/protocols/SendSMS.js +20 -22
- package/dist-cjs/protocols/constants.js +103 -34
- package/dist-es/SensClient.js +63 -30
- package/dist-es/commands/GetAlimtalkResultCommand.js +9 -19
- package/dist-es/commands/GetAlimtalkStatusCommand.js +12 -19
- package/dist-es/commands/GetAlimtalkTemplateCommand.js +9 -19
- package/dist-es/commands/GetSMSResultCommand.js +10 -20
- package/dist-es/commands/GetSMSStatusCommand.js +13 -20
- package/dist-es/commands/ListAlimtalkChannelsCommand.js +10 -22
- package/dist-es/commands/ListAlimtalkStatusCommand.js +39 -28
- package/dist-es/commands/ListAlimtalkTemplatesCommand.js +9 -19
- package/dist-es/commands/ListSMSStatusCommand.js +48 -0
- package/dist-es/commands/SendAlimtalkCommand.js +35 -30
- package/dist-es/commands/SendMMSCommand.js +70 -100
- package/dist-es/commands/SendSMSCommand.js +51 -66
- package/dist-es/commands/constants.js +65 -15
- package/dist-es/commands/index.js +28 -11
- package/dist-es/index.js +18 -2
- package/dist-es/middleware/constants.js +10 -0
- package/dist-es/middleware/index.js +19 -4
- package/dist-es/middleware/middleware-metadata.js +11 -5
- package/dist-es/middleware/middleware-retry.js +39 -30
- package/dist-es/middleware/middleware-sign.js +19 -14
- package/dist-es/models/GetAlimtalkResult.js +2 -1
- package/dist-es/models/GetAlimtalkStatus.js +2 -1
- package/dist-es/models/GetAlimtalkTemplate.js +2 -1
- package/dist-es/models/GetSMSResult.js +2 -1
- package/dist-es/models/GetSMSStatus.js +2 -1
- package/dist-es/models/ListAlimtalkChannels.js +2 -1
- package/dist-es/models/ListAlimtalkStatus.js +2 -1
- package/dist-es/models/ListAlimtalkTemplates.js +2 -1
- package/dist-es/models/ListSMSStatus.js +2 -0
- package/dist-es/models/MetadataBearer.js +2 -1
- package/dist-es/models/SendAlimtalk.js +5 -1
- package/dist-es/models/SendMMS.js +5 -1
- package/dist-es/models/SendSMS.js +2 -1
- package/dist-es/models/SensClient.js +2 -0
- package/dist-es/models/SensCommand.js +5 -1
- package/dist-es/models/SensErrorInfo.js +13 -0
- package/dist-es/models/SensMiddleware.js +2 -0
- package/dist-es/models/index.js +33 -14
- package/dist-es/protocols/GetAlimtalkResult.js +24 -23
- package/dist-es/protocols/GetAlimtalkStatus.js +51 -47
- package/dist-es/protocols/GetAlimtalkTemplate.js +78 -87
- package/dist-es/protocols/GetSMSResult.js +40 -47
- package/dist-es/protocols/GetSMSStatus.js +55 -37
- package/dist-es/protocols/ListAlimtalkChannels.js +31 -31
- package/dist-es/protocols/ListAlimtalkStatus.js +26 -32
- package/dist-es/protocols/ListAlimtalkTemplates.js +37 -24
- package/dist-es/protocols/ListSMSStatus.js +42 -0
- package/dist-es/protocols/SendAlimtalk.js +27 -26
- package/dist-es/protocols/SendMMS.js +10 -49
- package/dist-es/protocols/SendSMS.js +24 -31
- package/dist-es/protocols/constants.js +119 -39
- package/dist-types/SensClient.d.ts +3 -20
- package/dist-types/commands/GetAlimtalkResultCommand.d.ts +5 -10
- package/dist-types/commands/GetAlimtalkStatusCommand.d.ts +5 -10
- package/dist-types/commands/GetAlimtalkTemplateCommand.d.ts +5 -10
- package/dist-types/commands/GetSMSResultCommand.d.ts +5 -10
- package/dist-types/commands/GetSMSStatusCommand.d.ts +5 -10
- package/dist-types/commands/ListAlimtalkChannelsCommand.d.ts +5 -10
- package/dist-types/commands/ListAlimtalkStatusCommand.d.ts +5 -10
- package/dist-types/commands/ListAlimtalkTemplatesCommand.d.ts +5 -10
- package/dist-types/commands/ListSMSStatusCommand.d.ts +11 -0
- package/dist-types/commands/SendAlimtalkCommand.d.ts +5 -10
- package/dist-types/commands/SendMMSCommand.d.ts +5 -10
- package/dist-types/commands/SendSMSCommand.d.ts +9 -10
- package/dist-types/commands/constants.d.ts +14 -4
- package/dist-types/commands/index.d.ts +12 -11
- package/dist-types/index.d.ts +2 -2
- package/dist-types/middleware/constants.d.ts +7 -0
- package/dist-types/middleware/index.d.ts +3 -4
- package/dist-types/middleware/middleware-metadata.d.ts +2 -2
- package/dist-types/middleware/middleware-retry.d.ts +2 -2
- package/dist-types/middleware/middleware-sign.d.ts +2 -2
- package/dist-types/models/GetAlimtalkResult.d.ts +3 -3
- package/dist-types/models/GetAlimtalkStatus.d.ts +8 -5
- package/dist-types/models/GetAlimtalkTemplate.d.ts +5 -5
- package/dist-types/models/GetSMSResult.d.ts +7 -15
- package/dist-types/models/GetSMSStatus.d.ts +19 -4
- package/dist-types/models/ListAlimtalkChannels.d.ts +4 -4
- package/dist-types/models/ListAlimtalkStatus.d.ts +8 -8
- package/dist-types/models/ListAlimtalkTemplates.d.ts +2 -2
- package/dist-types/models/ListSMSStatus.d.ts +15 -0
- package/dist-types/models/MetadataBearer.d.ts +3 -3
- package/dist-types/models/SendAlimtalk.d.ts +7 -4
- package/dist-types/models/SendMMS.d.ts +5 -3
- package/dist-types/models/SendSMS.d.ts +2 -2
- package/dist-types/models/SensClient.d.ts +17 -0
- package/dist-types/models/SensCommand.d.ts +4 -6
- package/dist-types/models/SensErrorInfo.d.ts +21 -0
- package/dist-types/models/SensMiddleware.d.ts +8 -0
- package/dist-types/models/index.d.ts +17 -14
- package/dist-types/protocols/GetAlimtalkResult.d.ts +4 -11
- package/dist-types/protocols/GetAlimtalkStatus.d.ts +6 -12
- package/dist-types/protocols/GetAlimtalkTemplate.d.ts +4 -14
- package/dist-types/protocols/GetSMSResult.d.ts +4 -12
- package/dist-types/protocols/GetSMSStatus.d.ts +6 -11
- package/dist-types/protocols/ListAlimtalkChannels.d.ts +4 -11
- package/dist-types/protocols/ListAlimtalkStatus.d.ts +4 -10
- package/dist-types/protocols/ListAlimtalkTemplates.d.ts +5 -12
- package/dist-types/protocols/ListSMSStatus.d.ts +4 -0
- package/dist-types/protocols/SendAlimtalk.d.ts +5 -12
- package/dist-types/protocols/SendMMS.d.ts +4 -10
- package/dist-types/protocols/SendSMS.d.ts +5 -10
- package/dist-types/protocols/constants.d.ts +4 -2
- package/package.json +20 -4
- package/.github/pull_request_template.md +0 -19
- package/dist-cjs/middleware/middleware-sort-headers.js +0 -25
- package/dist-cjs/protocols/index.js +0 -28
- package/dist-es/middleware/middleware-sort-headers.js +0 -12
- package/dist-es/models/Middleware.js +0 -1
- package/dist-es/protocols/index.js +0 -12
- package/dist-types/middleware/middleware-sort-headers.d.ts +0 -2
- package/dist-types/models/Middleware.d.ts +0 -12
- package/dist-types/protocols/index.d.ts +0 -12
- /package/dist-cjs/models/{Middleware.js → ListSMSStatus.js} +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
### Issue
|
|
2
|
-
|
|
3
|
-
Issue number, if available, prefixed with "#"
|
|
4
|
-
|
|
5
|
-
### Description
|
|
6
|
-
|
|
7
|
-
What does this implement/fix? Explain your changes.
|
|
8
|
-
|
|
9
|
-
### Testing
|
|
10
|
-
|
|
11
|
-
How was this change tested?
|
|
12
|
-
|
|
13
|
-
### Additional context
|
|
14
|
-
|
|
15
|
-
Add any other context about the PR here.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.middlewareSortHeaders = void 0;
|
|
13
|
-
const middlewareSortHeaders = (request, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
-
let { headers } = request;
|
|
15
|
-
let init = {};
|
|
16
|
-
const resolvedHeaders = Object.keys(headers)
|
|
17
|
-
.sort()
|
|
18
|
-
.reduce((acc, curr) => {
|
|
19
|
-
acc[curr] = headers[curr];
|
|
20
|
-
return acc;
|
|
21
|
-
}, init);
|
|
22
|
-
request.headers = resolvedHeaders;
|
|
23
|
-
return request;
|
|
24
|
-
});
|
|
25
|
-
exports.middlewareSortHeaders = middlewareSortHeaders;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./SendAlimtalk"), exports);
|
|
18
|
-
__exportStar(require("./GetAlimtalkStatus"), exports);
|
|
19
|
-
__exportStar(require("./GetAlimtalkResult"), exports);
|
|
20
|
-
__exportStar(require("./GetAlimtalkTemplate"), exports);
|
|
21
|
-
__exportStar(require("./ListAlimtalkStatus"), exports);
|
|
22
|
-
__exportStar(require("./ListAlimtalkTemplates"), exports);
|
|
23
|
-
__exportStar(require("./ListAlimtalkChannels"), exports);
|
|
24
|
-
__exportStar(require("./SendSMS"), exports);
|
|
25
|
-
__exportStar(require("./SendMMS"), exports);
|
|
26
|
-
__exportStar(require("./GetSMSStatus"), exports);
|
|
27
|
-
__exportStar(require("./GetSMSResult"), exports);
|
|
28
|
-
__exportStar(require("./constants"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const middlewareSortHeaders = async (request, config) => {
|
|
2
|
-
let { headers } = request;
|
|
3
|
-
let init = {};
|
|
4
|
-
const resolvedHeaders = Object.keys(headers)
|
|
5
|
-
.sort()
|
|
6
|
-
.reduce((acc, curr) => {
|
|
7
|
-
acc[curr] = headers[curr];
|
|
8
|
-
return acc;
|
|
9
|
-
}, init);
|
|
10
|
-
request.headers = resolvedHeaders;
|
|
11
|
-
return request;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./SendAlimtalk";
|
|
2
|
-
export * from "./GetAlimtalkStatus";
|
|
3
|
-
export * from "./GetAlimtalkResult";
|
|
4
|
-
export * from "./GetAlimtalkTemplate";
|
|
5
|
-
export * from "./ListAlimtalkStatus";
|
|
6
|
-
export * from "./ListAlimtalkTemplates";
|
|
7
|
-
export * from "./ListAlimtalkChannels";
|
|
8
|
-
export * from "./SendSMS";
|
|
9
|
-
export * from "./SendMMS";
|
|
10
|
-
export * from "./GetSMSStatus";
|
|
11
|
-
export * from "./GetSMSResult";
|
|
12
|
-
export * from "./constants";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpResponse, NodeHttpHandler } from "@ingestkorea/util-http-handler";
|
|
2
|
-
import { SensClientResolvedConfig } from "../SensClient";
|
|
3
|
-
import { MetadataBearer } from "./MetadataBearer";
|
|
4
|
-
export interface BuildMiddleware {
|
|
5
|
-
(request: HttpRequest, config: SensClientResolvedConfig): Promise<HttpRequest>;
|
|
6
|
-
}
|
|
7
|
-
export interface DeserializeMiddleware {
|
|
8
|
-
(request: HttpRequest, config: SensClientResolvedConfig, handler: NodeHttpHandler): Promise<{
|
|
9
|
-
response: HttpResponse;
|
|
10
|
-
output: MetadataBearer;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./SendAlimtalk";
|
|
2
|
-
export * from "./GetAlimtalkStatus";
|
|
3
|
-
export * from "./GetAlimtalkResult";
|
|
4
|
-
export * from "./GetAlimtalkTemplate";
|
|
5
|
-
export * from "./ListAlimtalkStatus";
|
|
6
|
-
export * from "./ListAlimtalkTemplates";
|
|
7
|
-
export * from "./ListAlimtalkChannels";
|
|
8
|
-
export * from "./SendSMS";
|
|
9
|
-
export * from "./SendMMS";
|
|
10
|
-
export * from "./GetSMSStatus";
|
|
11
|
-
export * from "./GetSMSResult";
|
|
12
|
-
export * from "./constants";
|
|
File without changes
|