UNPKG

@cotofe/service-of-oms

Version:

OpenAPI client for @cotofe/service-of-oms

248 lines (247 loc) 8.89 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.OMSPageApi = void 0; const runtime = require("../runtime"); /** * */ class OMSPageApi extends runtime.BaseAPI { /** * getPageData * getPageData */ listUsingDELETERaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'DELETE', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingDELETE(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingDELETERaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingGETRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingGET(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingGETRaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingHEADRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'HEAD', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingHEAD(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingHEADRaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingOPTIONSRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'OPTIONS', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingOPTIONS(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingOPTIONSRaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingPATCHRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'PATCH', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingPATCH(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingPATCHRaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingPOSTRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'POST', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingPOST(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingPOSTRaw(initOverrides); return yield response.value(); }); } /** * getPageData * getPageData */ listUsingPUTRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; 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/page/getPageData`, method: 'PUT', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * getPageData * getPageData */ listUsingPUT(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.listUsingPUTRaw(initOverrides); return yield response.value(); }); } } exports.OMSPageApi = OMSPageApi;