@ingestkorea/client-sens
Version:
INGESTKOREA SDK Naver Cloud Platform SENS Client for Node.js.
42 lines (41 loc) • 2.08 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListAlimtalkChannelsCommand = void 0;
const models_1 = require("../models");
const ListAlimtalkChannels_1 = require("../protocols/ListAlimtalkChannels");
const util_error_handler_1 = require("@ingestkorea/util-error-handler");
class ListAlimtalkChannelsCommand extends models_1.SensCommand {
constructor(input) {
super(input);
this.input = Object.assign({}, input);
}
serialize(input, config) {
return __awaiter(this, void 0, void 0, function* () {
if (!config.serviceId.kakao)
throw new util_error_handler_1.IngestkoreaError({
code: 400,
type: "Bad Request",
message: "Invalid Params",
description: "Please Check Kakao ServiceId",
});
let request = yield (0, ListAlimtalkChannels_1.serializeIngestkorea_restJson_ListAlimtalkChannelsCommand)(input, config);
return request;
});
}
deserialize(response) {
return __awaiter(this, void 0, void 0, function* () {
let output = yield (0, ListAlimtalkChannels_1.deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand)(response);
return output;
});
}
}
exports.ListAlimtalkChannelsCommand = ListAlimtalkChannelsCommand;