lambdaorm-client-node
Advanced tools
Comparing version 0.7.25 to 0.7.26
@@ -1,2 +0,2 @@ | ||
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../domain'; | ||
import { MetadataPlan, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../domain'; | ||
export interface ExpressionService { | ||
@@ -28,7 +28,7 @@ /** | ||
/** | ||
* Get getInfo of expression | ||
* Get plan of expression | ||
* @param expression query expression | ||
* @param options options of execution | ||
*/ | ||
sentence(expression: string | Function, options: QueryOptions | undefined): Promise<MetadataSentence>; | ||
plan(expression: string | Function, options: QueryOptions | undefined): Promise<MetadataPlan>; | ||
/** | ||
@@ -35,0 +35,0 @@ * Execute expression |
@@ -1,2 +0,2 @@ | ||
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../domain'; | ||
import { MetadataPlan, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../domain'; | ||
import { GeneralService } from './GeneralService'; | ||
@@ -41,4 +41,4 @@ import { SchemaService } from './SchemaService'; | ||
*/ | ||
sentence(expression: Function, options?: QueryOptions): Promise<MetadataSentence>; | ||
sentence(expression: string, options?: QueryOptions): Promise<MetadataSentence>; | ||
plan(expression: Function, options?: QueryOptions): Promise<MetadataPlan>; | ||
plan(expression: string, options?: QueryOptions): Promise<MetadataPlan>; | ||
/** | ||
@@ -45,0 +45,0 @@ * Execute expression |
@@ -1,2 +0,2 @@ | ||
import { MetadataSentence, MetadataParameter, MetadataModel, MetadataConstraint, Metadata } from './model'; | ||
import { MetadataPlan, MetadataParameter, MetadataModel, MetadataConstraint, Metadata } from './model'; | ||
import { IOrm } from '../application/IOrm'; | ||
@@ -12,5 +12,5 @@ export declare class ExpressionActions { | ||
metadata(expression: string): Promise<Metadata>; | ||
sentence(expression: string): Promise<MetadataSentence>; | ||
plan(expression: string): Promise<MetadataPlan>; | ||
execute(expression: string, data: any): Promise<any>; | ||
executeQueued(expression: string, topic: string, data: any, chunk?: number): Promise<any>; | ||
} |
@@ -39,5 +39,5 @@ "use strict"; | ||
} | ||
sentence(expression) { | ||
plan(expression) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.orm.sentence(`${this.name}${expression}`, { stage: this.stage }); | ||
return yield this.orm.plan(`${this.name}${expression}`, { stage: this.stage }); | ||
}); | ||
@@ -44,0 +44,0 @@ } |
@@ -486,9 +486,9 @@ /** | ||
* @export | ||
* @interface MetadataSentence | ||
* @interface MetadataPlan | ||
*/ | ||
export interface MetadataSentence { | ||
export interface MetadataPlan { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MetadataSentence | ||
* @memberof MetadataPlan | ||
*/ | ||
@@ -499,3 +499,3 @@ 'entity': string; | ||
* @type {string} | ||
* @memberof MetadataSentence | ||
* @memberof MetadataPlan | ||
*/ | ||
@@ -506,3 +506,3 @@ 'dialect': string; | ||
* @type {string} | ||
* @memberof MetadataSentence | ||
* @memberof MetadataPlan | ||
*/ | ||
@@ -513,3 +513,3 @@ 'dataSource': string; | ||
* @type {string} | ||
* @memberof MetadataSentence | ||
* @memberof MetadataPlan | ||
*/ | ||
@@ -519,6 +519,6 @@ 'sentence': string; | ||
* | ||
* @type {Array<MetadataSentence>} | ||
* @memberof MetadataSentence | ||
* @type {Array<MetadataPlan>} | ||
* @memberof MetadataPlan | ||
*/ | ||
'children'?: Array<MetadataSentence>; | ||
'children'?: Array<MetadataPlan>; | ||
} | ||
@@ -525,0 +525,0 @@ /** |
import { ExpressionActions } from './actions'; | ||
import { MetadataConstraint, MetadataModel, MetadataParameter, MetadataSentence, Metadata } from './model'; | ||
import { MetadataConstraint, MetadataModel, MetadataParameter, MetadataPlan, Metadata } from './model'; | ||
export declare class QueryAction { | ||
@@ -12,3 +12,3 @@ protected actions: any; | ||
parameters(): Promise<MetadataParameter[]>; | ||
sentence(): Promise<MetadataSentence>; | ||
plan(): Promise<MetadataPlan>; | ||
metadata(): Promise<Metadata>; | ||
@@ -15,0 +15,0 @@ } |
@@ -41,5 +41,5 @@ "use strict"; | ||
} | ||
sentence() { | ||
plan() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.actions.getInfo(this.expression); | ||
return this.actions.plan(this.expression); | ||
}); | ||
@@ -46,0 +46,0 @@ } |
import { ExpressionApi } from '../api'; | ||
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain'; | ||
import { MetadataPlan, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain'; | ||
import { ExpressionService } from 'lib/application'; | ||
@@ -36,8 +36,8 @@ export declare class ExpressionApiService implements ExpressionService { | ||
/** | ||
* Get getInfo of expression | ||
* Get plan of expression | ||
* @param expression query expression | ||
* @param options options of execution | ||
*/ | ||
sentence(expression: Function, options?: QueryOptions): Promise<MetadataSentence>; | ||
sentence(expression: string, options?: QueryOptions): Promise<MetadataSentence>; | ||
plan(expression: Function, options?: QueryOptions): Promise<MetadataPlan>; | ||
plan(expression: string, options?: QueryOptions): Promise<MetadataPlan>; | ||
/** | ||
@@ -44,0 +44,0 @@ * Execute expression |
@@ -48,7 +48,7 @@ "use strict"; | ||
} | ||
sentence(expression, options) { | ||
plan(expression, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const _expression = typeof expression !== 'string' ? _3xpr_1.expressions.toExpression(expression) : expression; | ||
const _options = this.solveOptions(options); | ||
const result = yield this.expressionApi.sentence({ expression: _expression, options: _options }); | ||
const result = yield this.expressionApi.plan({ expression: _expression, options: _options }); | ||
return result.data; | ||
@@ -55,0 +55,0 @@ }); |
import { GeneralService, IOrm, SchemaService, StageService } from '../../application'; | ||
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain'; | ||
import { MetadataPlan, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain'; | ||
/** | ||
@@ -57,4 +57,4 @@ * Facade through which you can access all the functionalities of the library. | ||
*/ | ||
sentence(expression: Function, options?: QueryOptions): Promise<MetadataSentence>; | ||
sentence(expression: string, options?: QueryOptions): Promise<MetadataSentence>; | ||
plan(expression: Function, options?: QueryOptions): Promise<MetadataPlan>; | ||
plan(expression: string, options?: QueryOptions): Promise<MetadataPlan>; | ||
/** | ||
@@ -61,0 +61,0 @@ * Execute expression |
@@ -105,3 +105,3 @@ "use strict"; | ||
} | ||
sentence(expression, options) { | ||
plan(expression, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -111,3 +111,3 @@ if (!this.expressionService) { | ||
} | ||
return this.expressionService.sentence(expression, options); | ||
return this.expressionService.plan(expression, options); | ||
}); | ||
@@ -114,0 +114,0 @@ } |
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import { RequestArgs, BaseAPI } from './base'; | ||
import { Configuration, QueryRequest, MetadataConstraint, QueryQueuedRequest, Metadata, MetadataModel, MetadataParameter, MetadataSentence } from '../../domain'; | ||
import { Configuration, QueryRequest, MetadataConstraint, QueryQueuedRequest, Metadata, MetadataModel, MetadataParameter, MetadataPlan } from '../../domain'; | ||
/** | ||
@@ -50,3 +50,3 @@ * ExpressionApi - axios parameter creator | ||
*/ | ||
sentence: (queryRequest: QueryRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
plan: (queryRequest: QueryRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -106,3 +106,3 @@ /** | ||
*/ | ||
sentence(queryRequest: QueryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetadataSentence>>; | ||
plan(queryRequest: QueryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetadataPlan>>; | ||
}; | ||
@@ -155,3 +155,3 @@ /** | ||
*/ | ||
sentence(queryRequest: QueryRequest, options?: any): AxiosPromise<MetadataSentence>; | ||
plan(queryRequest: QueryRequest, options?: any): AxiosPromise<MetadataPlan>; | ||
}; | ||
@@ -220,3 +220,3 @@ /** | ||
*/ | ||
sentence(queryRequest: QueryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataSentence, any>>; | ||
plan(queryRequest: QueryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataPlan, any>>; | ||
} |
@@ -168,6 +168,6 @@ "use strict"; | ||
*/ | ||
sentence: (queryRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
plan: (queryRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'queryRequest' is not null or undefined | ||
(0, common_1.assertParamExists)('sentence', 'queryRequest', queryRequest); | ||
const localVarPath = '/sentence'; | ||
(0, common_1.assertParamExists)('plan', 'queryRequest', queryRequest); | ||
const localVarPath = '/plan'; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
@@ -280,5 +280,5 @@ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
*/ | ||
sentence(queryRequest, options) { | ||
plan(queryRequest, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.sentence(queryRequest, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.plan(queryRequest, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, configuration); | ||
@@ -348,4 +348,4 @@ }); | ||
*/ | ||
sentence(queryRequest, options) { | ||
return localVarFp.sentence(queryRequest, options).then((request) => request(axios, configuration.basePath)); | ||
plan(queryRequest, options) { | ||
return localVarFp.plan(queryRequest, options).then((request) => request(axios, configuration.basePath)); | ||
} | ||
@@ -429,4 +429,4 @@ }; | ||
*/ | ||
sentence(queryRequest, options) { | ||
return (0, exports.ExpressionApiFp)(this.configuration).sentence(queryRequest, options).then((request) => request(this.axios, this.configuration.basePath)); | ||
plan(queryRequest, options) { | ||
return (0, exports.ExpressionApiFp)(this.configuration).plan(queryRequest, options).then((request) => request(this.axios, this.configuration.basePath)); | ||
} | ||
@@ -433,0 +433,0 @@ } |
{ | ||
"name": "lambdaorm-client-node", | ||
"version": "0.7.25", | ||
"version": "0.7.26", | ||
"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
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
297743