UNPKG

@cotofe/service-of-oms

Version:

OpenAPI client for @cotofe/service-of-oms

361 lines (360 loc) 14.3 kB
"use strict"; /** * Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ 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.OMSApplicationApi = void 0; const runtime = require("../runtime"); /** * */ class OMSApplicationApi extends runtime.BaseAPI { /** * auditApp * auditApp */ auditAppUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/auditApp`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * auditApp * auditApp */ auditAppUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.auditAppUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * deleteApp * deleteApp */ deleteAppUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/deleteApp`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * deleteApp * deleteApp */ deleteAppUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.deleteAppUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingDELETE2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'DELETE', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingDELETE2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingDELETE2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingGET3Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'GET', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingGET3() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingGET3Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingHEAD2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'HEAD', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingHEAD2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingHEAD2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingOPTIONS2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'OPTIONS', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingOPTIONS2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingOPTIONS2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingPATCH2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingPATCH2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingPATCH2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingPOST2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingPOST2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingPOST2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * getPageData * queryAppStoreList */ listUsingPUT2Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/queryAppStoreList`, method: 'PUT', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * queryAppStoreList */ listUsingPUT2() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.listUsingPUT2Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * auditApp * takeDown */ takeDownUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/application/takeDown`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.application, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * auditApp * takeDown */ takeDownUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.takeDownUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } } exports.OMSApplicationApi = OMSApplicationApi;