lambdaorm-client-node
Advanced tools
Comparing version 0.7.23 to 0.7.24
import { Health, Ping } from '../domain'; | ||
export interface GeneralService { | ||
version(): Promise<{ | ||
version: string; | ||
}>; | ||
ping(): Promise<Ping>; | ||
@@ -4,0 +7,0 @@ health(): Promise<Health>; |
@@ -1,3 +0,8 @@ | ||
import { Entity, EntityMapping, Enum, Mapping, Stage } from '../domain'; | ||
import { Entity, EntityMapping, Enum, Mapping, Stage, Schema, SchemaDomain } from '../domain'; | ||
export interface SchemaService { | ||
version(): Promise<{ | ||
version: string; | ||
}>; | ||
schema(): Promise<Schema>; | ||
domain(): Promise<SchemaDomain>; | ||
dataSources(): Promise<{ | ||
@@ -16,2 +21,3 @@ name: string; | ||
stage(stage: string): Promise<Stage | undefined>; | ||
views(): Promise<string[]>; | ||
} |
@@ -958,1 +958,35 @@ /** | ||
} | ||
export interface SchemaDomain { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof SchemaDomain | ||
*/ | ||
'version': string; | ||
/** | ||
* | ||
* @type {Array<Entity>} | ||
* @memberof SchemaDomain | ||
*/ | ||
'entities': Array<Entity>; | ||
/** | ||
* | ||
* @type {Array<Enum>} | ||
* @memberof SchemaDomain | ||
*/ | ||
'enums': Array<Enum>; | ||
} | ||
export interface Schema { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof Schema | ||
*/ | ||
'version': string; | ||
/** | ||
* | ||
* @type {SchemaDomain} | ||
* @memberof Schema | ||
*/ | ||
'domain': Array<SchemaDomain>; | ||
} |
@@ -7,2 +7,5 @@ import { GeneralService } from 'lib/application'; | ||
constructor(generalApi: GeneralApi); | ||
version(): Promise<{ | ||
version: string; | ||
}>; | ||
ping(): Promise<Ping>; | ||
@@ -9,0 +12,0 @@ health(): Promise<Health>; |
@@ -18,2 +18,8 @@ "use strict"; | ||
} | ||
version() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.generalApi.ping(); | ||
return result.data; | ||
}); | ||
} | ||
ping() { | ||
@@ -20,0 +26,0 @@ return __awaiter(this, void 0, void 0, function* () { |
import { SchemaService } from 'lib/application'; | ||
import { Entity, EntityMapping, Enum, Mapping, Stage } from '../../domain'; | ||
import { Entity, EntityMapping, Enum, Mapping, Schema, SchemaDomain, Stage } from '../../domain'; | ||
import { SchemaApi } from '../api'; | ||
@@ -7,2 +7,7 @@ export declare class SchemaApiService implements SchemaService { | ||
constructor(schemaApi: SchemaApi); | ||
version(): Promise<{ | ||
version: string; | ||
}>; | ||
schema(): Promise<Schema>; | ||
domain(): Promise<SchemaDomain>; | ||
dataSources(): Promise<{ | ||
@@ -21,2 +26,3 @@ name: string; | ||
stage(stage: string): Promise<Stage | undefined>; | ||
views(): Promise<string[]>; | ||
} |
@@ -18,2 +18,20 @@ "use strict"; | ||
} | ||
version() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.schemaApi.version(); | ||
return result.data; | ||
}); | ||
} | ||
schema() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.schemaApi.schema(); | ||
return result.data; | ||
}); | ||
} | ||
domain() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.schemaApi.domain(); | ||
return result.data; | ||
}); | ||
} | ||
dataSources() { | ||
@@ -79,4 +97,10 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
views() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.schemaApi.views(); | ||
return result.data; | ||
}); | ||
} | ||
} | ||
exports.SchemaApiService = SchemaApiService; | ||
//# sourceMappingURL=SchemaApiService.js.map |
@@ -14,2 +14,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
*/ | ||
version: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
@@ -39,2 +45,8 @@ /** | ||
*/ | ||
version(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Health>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Health>>; | ||
@@ -64,2 +76,8 @@ /** | ||
*/ | ||
version(options?: any): AxiosPromise<Health>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health(options?: any): AxiosPromise<Health>; | ||
@@ -92,2 +110,9 @@ /** | ||
*/ | ||
version(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Health, any>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GeneralApi | ||
*/ | ||
health(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Health, any>>; | ||
@@ -94,0 +119,0 @@ /** |
@@ -30,2 +30,26 @@ "use strict"; | ||
*/ | ||
version: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
const localVarPath = '/version'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions | ||
}; | ||
}), | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -113,2 +137,13 @@ const localVarPath = '/health'; | ||
*/ | ||
version(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.version(options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health(options) { | ||
@@ -157,2 +192,10 @@ return __awaiter(this, void 0, void 0, function* () { | ||
*/ | ||
version(options) { | ||
return localVarFp.version(options).then((request) => request(axios, configuration.basePath)); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
health(options) { | ||
@@ -193,2 +236,11 @@ return localVarFp.health(options).then((request) => request(axios, configuration.basePath)); | ||
*/ | ||
version(options) { | ||
return (0, exports.GeneralApiFp)(this.configuration).version(options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GeneralApi | ||
*/ | ||
health(options) { | ||
@@ -195,0 +247,0 @@ return (0, exports.GeneralApiFp)(this.configuration).health(options).then((request) => request(this.axios, this.configuration.basePath)); |
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import { RequestArgs, BaseAPI } from './base'; | ||
import { Configuration, Enum, DataSource, Entity, EntityMapping, Mapping, Stage } from '../../domain'; | ||
import { Configuration, Enum, DataSource, Entity, EntityMapping, Mapping, Stage, Schema, SchemaDomain } from '../../domain'; | ||
/** | ||
@@ -11,2 +11,26 @@ * SchemaApi - axios parameter creator | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -91,2 +115,28 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ | ||
version: string; | ||
}>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Schema>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SchemaDomain>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>; | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -171,2 +221,28 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version(options?: any): AxiosPromise<{ | ||
version: string; | ||
}>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema(options?: any): AxiosPromise<Schema>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain(options?: any): AxiosPromise<SchemaDomain>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views(options?: any): AxiosPromise<Array<string>>; | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -253,2 +329,32 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
version(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{ | ||
version: string; | ||
}, any>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
schema(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Schema, any>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
domain(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SchemaDomain, any>>; | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
views(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>; | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -255,0 +361,0 @@ * @param {*} [options] Override http request option. |
@@ -27,2 +27,98 @@ "use strict"; | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
const localVarPath = '/version'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions | ||
}; | ||
}), | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
const localVarPath = '/schema'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions | ||
}; | ||
}), | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
const localVarPath = '/domain'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions | ||
}; | ||
}), | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views: (options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
const localVarPath = '/views'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions | ||
}; | ||
}), | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -330,2 +426,46 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.version(options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.schema(options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.domain(options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.views(options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -469,2 +609,34 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
version(options) { | ||
return localVarFp.version(options).then((request) => request(axios, configuration.basePath)); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
schema(options) { | ||
return localVarFp.schema(options).then((request) => request(axios, configuration.basePath)); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
domain(options) { | ||
return localVarFp.domain(options).then((request) => request(axios, configuration.basePath)); | ||
}, | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
views(options) { | ||
return localVarFp.views(options).then((request) => request(axios, configuration.basePath)); | ||
}, | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -575,2 +747,38 @@ * @param {*} [options] Override http request option. | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
version(options) { | ||
return (0, exports.SchemaApiFp)(this.configuration).version(options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
schema(options) { | ||
return (0, exports.SchemaApiFp)(this.configuration).schema(options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
domain(options) { | ||
return (0, exports.SchemaApiFp)(this.configuration).domain(options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SchemaApi | ||
*/ | ||
views(options) { | ||
return (0, exports.SchemaApiFp)(this.configuration).views(options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
/** | ||
* | ||
* @param {string} _enum | ||
@@ -577,0 +785,0 @@ * @param {*} [options] Override http request option. |
{ | ||
"name": "lambdaorm-client-node", | ||
"version": "0.7.23", | ||
"version": "0.7.24", | ||
"description": "Client form lambda ORM service", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
297980
5871
0