@lambdaorm/client 0.7.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE/home/runner/work/core/core/LICENSE +9 -0
- package/README.md +201 -0
- package/application/IOrm.d.ts +65 -0
- package/application/IOrm.d.ts.map +1 -0
- package/application/IOrm.js +3 -0
- package/application/IOrm.js.map +1 -0
- package/application/index.d.ts +3 -0
- package/application/index.d.ts.map +1 -0
- package/application/index.js +19 -0
- package/application/index.js.map +1 -0
- package/application/services/GeneralService.d.ts +10 -0
- package/application/services/GeneralService.d.ts.map +1 -0
- package/application/services/GeneralService.js +3 -0
- package/application/services/GeneralService.js.map +1 -0
- package/application/services/QueryService.d.ts +50 -0
- package/application/services/QueryService.d.ts.map +1 -0
- package/application/services/QueryService.js +3 -0
- package/application/services/QueryService.js.map +1 -0
- package/application/services/SchemaService.d.ts +27 -0
- package/application/services/SchemaService.d.ts.map +1 -0
- package/application/services/SchemaService.js +3 -0
- package/application/services/SchemaService.js.map +1 -0
- package/application/services/StageService.d.ts +7 -0
- package/application/services/StageService.d.ts.map +1 -0
- package/application/services/StageService.js +3 -0
- package/application/services/StageService.js.map +1 -0
- package/application/services/index.d.ts +5 -0
- package/application/services/index.d.ts.map +1 -0
- package/application/services/index.js +21 -0
- package/application/services/index.js.map +1 -0
- package/domain/actions.d.ts +17 -0
- package/domain/actions.d.ts.map +1 -0
- package/domain/actions.js +38 -0
- package/domain/actions.js.map +1 -0
- package/domain/configuration.d.ts +84 -0
- package/domain/configuration.d.ts.map +1 -0
- package/domain/configuration.js +43 -0
- package/domain/configuration.js.map +1 -0
- package/domain/index.d.ts +5 -0
- package/domain/index.d.ts.map +1 -0
- package/domain/index.js +21 -0
- package/domain/index.js.map +1 -0
- package/domain/model.d.ts +121 -0
- package/domain/model.d.ts.map +1 -0
- package/domain/model.js +3 -0
- package/domain/model.js.map +1 -0
- package/domain/schema.d.ts +11 -0
- package/domain/schema.d.ts.map +1 -0
- package/domain/schema.js +3 -0
- package/domain/schema.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +24 -0
- package/index.js.map +1 -0
- package/infrastructure/adapters/GeneralApiService.d.ts +14 -0
- package/infrastructure/adapters/GeneralApiService.d.ts.map +1 -0
- package/infrastructure/adapters/GeneralApiService.js +27 -0
- package/infrastructure/adapters/GeneralApiService.js.map +1 -0
- package/infrastructure/adapters/QueryApiService.d.ts +63 -0
- package/infrastructure/adapters/QueryApiService.d.ts.map +1 -0
- package/infrastructure/adapters/QueryApiService.js +66 -0
- package/infrastructure/adapters/QueryApiService.js.map +1 -0
- package/infrastructure/adapters/SchemaApiService.d.ts +31 -0
- package/infrastructure/adapters/SchemaApiService.d.ts.map +1 -0
- package/infrastructure/adapters/SchemaApiService.js +71 -0
- package/infrastructure/adapters/SchemaApiService.js.map +1 -0
- package/infrastructure/adapters/StageApiService.d.ts +11 -0
- package/infrastructure/adapters/StageApiService.d.ts.map +1 -0
- package/infrastructure/adapters/StageApiService.js +23 -0
- package/infrastructure/adapters/StageApiService.js.map +1 -0
- package/infrastructure/adapters/orm.d.ts +78 -0
- package/infrastructure/adapters/orm.d.ts.map +1 -0
- package/infrastructure/adapters/orm.js +104 -0
- package/infrastructure/adapters/orm.js.map +1 -0
- package/infrastructure/api/base.d.ts +55 -0
- package/infrastructure/api/base.d.ts.map +1 -0
- package/infrastructure/api/base.js +61 -0
- package/infrastructure/api/base.js.map +1 -0
- package/infrastructure/api/common.d.ts +66 -0
- package/infrastructure/api/common.d.ts.map +1 -0
- package/infrastructure/api/common.js +138 -0
- package/infrastructure/api/common.js.map +1 -0
- package/infrastructure/api/generalApi.d.ts +130 -0
- package/infrastructure/api/generalApi.d.ts.map +1 -0
- package/infrastructure/api/generalApi.js +248 -0
- package/infrastructure/api/generalApi.js.map +1 -0
- package/infrastructure/api/index.d.ts +5 -0
- package/infrastructure/api/index.d.ts.map +1 -0
- package/infrastructure/api/index.js +21 -0
- package/infrastructure/api/index.js.map +1 -0
- package/infrastructure/api/queryApi.d.ts +220 -0
- package/infrastructure/api/queryApi.d.ts.map +1 -0
- package/infrastructure/api/queryApi.js +408 -0
- package/infrastructure/api/queryApi.js.map +1 -0
- package/infrastructure/api/schemaApi.d.ts +440 -0
- package/infrastructure/api/schemaApi.d.ts.map +1 -0
- package/infrastructure/api/schemaApi.js +847 -0
- package/infrastructure/api/schemaApi.js.map +1 -0
- package/infrastructure/api/stageApi.d.ts +122 -0
- package/infrastructure/api/stageApi.d.ts.map +1 -0
- package/infrastructure/api/stageApi.js +227 -0
- package/infrastructure/api/stageApi.js.map +1 -0
- package/infrastructure/index.d.ts +4 -0
- package/infrastructure/index.d.ts.map +1 -0
- package/infrastructure/index.js +20 -0
- package/infrastructure/index.js.map +1 -0
- package/infrastructure/library.d.ts +8 -0
- package/infrastructure/library.d.ts.map +1 -0
- package/infrastructure/library.js +31 -0
- package/infrastructure/library.js.map +1 -0
- package/infrastructure/repository.d.ts +40 -0
- package/infrastructure/repository.d.ts.map +1 -0
- package/infrastructure/repository.js +88 -0
- package/infrastructure/repository.js.map +1 -0
- package/jest-config.json +20 -0
- package/package.json +50 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* λORM Service
|
|
3
|
+
* service of lambda orm
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
|
+
* Contact: flaviolrita@hotmail.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;CAChC;AAED,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAU/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* λORM Service
|
|
6
|
+
* service of lambda orm
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
|
+
* Contact: flaviolrita@hotmail.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Configuration = void 0;
|
|
17
|
+
class Configuration {
|
|
18
|
+
constructor(param = {}) {
|
|
19
|
+
this.apiKey = param.apiKey;
|
|
20
|
+
this.username = param.username;
|
|
21
|
+
this.password = param.password;
|
|
22
|
+
this.accessToken = param.accessToken;
|
|
23
|
+
this.basePath = param.basePath;
|
|
24
|
+
this.baseOptions = param.baseOptions;
|
|
25
|
+
this.formDataCtor = param.formDataCtor;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if the given MIME is a JSON MIME.
|
|
29
|
+
* JSON MIME examples:
|
|
30
|
+
* application/json
|
|
31
|
+
* application/json; charset=UTF8
|
|
32
|
+
* APPLICATION/JSON
|
|
33
|
+
* application/vnd.company+json
|
|
34
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
35
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
isJsonMime(mime) {
|
|
38
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
39
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Configuration = Configuration;
|
|
43
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/lib/domain/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAaH,MAAa,aAAa;IAmDtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AA3ED,sCA2EC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA"}
|
package/domain/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actions"), exports);
|
|
18
|
+
__exportStar(require("./model"), exports);
|
|
19
|
+
__exportStar(require("./configuration"), exports);
|
|
20
|
+
__exportStar(require("./schema"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB;AACvB,kDAA+B;AAC/B,2CAAwB"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { QueryOptions } from '@lambdaorm/base';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface QueryRequest
|
|
6
|
+
*/
|
|
7
|
+
export interface QueryRequest {
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @type {QueryOptions}
|
|
11
|
+
* @memberof QueryRequest
|
|
12
|
+
*/
|
|
13
|
+
'options'?: QueryOptions;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof QueryRequest
|
|
18
|
+
*/
|
|
19
|
+
'query': string;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {any}
|
|
23
|
+
* @memberof QueryRequest
|
|
24
|
+
*/
|
|
25
|
+
'data'?: any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
* @interface QueryRequest
|
|
31
|
+
*/
|
|
32
|
+
export interface QueryQueuedRequest {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {QueryOptions}
|
|
36
|
+
* @memberof QueryQueuedRequest
|
|
37
|
+
*/
|
|
38
|
+
'options'?: QueryOptions;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof QueryQueuedRequest
|
|
43
|
+
*/
|
|
44
|
+
'query': string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {any}
|
|
48
|
+
* @memberof QueryQueuedRequest
|
|
49
|
+
*/
|
|
50
|
+
'data'?: any;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof QueryQueuedRequest
|
|
55
|
+
*/
|
|
56
|
+
'topic': string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof QueryQueuedRequest
|
|
61
|
+
*/
|
|
62
|
+
'chunk'?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @interface QueryResponse
|
|
68
|
+
*/
|
|
69
|
+
export interface QueryResponse {
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {any}
|
|
73
|
+
* @memberof QueryResponse
|
|
74
|
+
*/
|
|
75
|
+
'result': any;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @interface Ping
|
|
81
|
+
*/
|
|
82
|
+
export interface Ping {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof Ping
|
|
87
|
+
*/
|
|
88
|
+
'message': string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Ping
|
|
93
|
+
*/
|
|
94
|
+
'time': string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @export
|
|
99
|
+
* @interface Health
|
|
100
|
+
*/
|
|
101
|
+
export interface Health {
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof Health
|
|
106
|
+
*/
|
|
107
|
+
'message': string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Health
|
|
112
|
+
*/
|
|
113
|
+
'time': string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof Health
|
|
118
|
+
*/
|
|
119
|
+
'uptime': number;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C;;;;EAIE;AACF,MAAM,WAAW,YAAY;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;CACZ;AACD;;;;EAIE;AACF,MAAM,WAAW,kBAAkB;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;;;EAIE;AACF,MAAM,WAAW,aAAa;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,GAAG,CAAC;CACb;AAED;;;;EAIE;AACF,MAAM,WAAW,IAAI;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CACd;AAED;;;;EAIE;AACF,MAAM,WAAW,MAAM;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CAChB"}
|
package/domain/model.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/lib/domain/model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InfrastructureSchema, Schema } from '@lambdaorm/base';
|
|
2
|
+
export interface ClientServiceConfig {
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ClientServiceInfrastructureSchema extends InfrastructureSchema {
|
|
6
|
+
service: ClientServiceConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface ClientSchema extends Schema {
|
|
9
|
+
infrastructure: ClientServiceInfrastructureSchema;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE9D,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB;IAC9E,OAAO,EAAE,mBAAmB,CAAA;CAC5B;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC3C,cAAc,EAAE,iCAAiC,CAAA;CACjD"}
|
package/domain/schema.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/domain/schema.ts"],"names":[],"mappings":""}
|
package/index.d.ts
ADDED
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,eAAO,MAAM,GAAG,8BAAe,CAAA"}
|
package/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.orm = void 0;
|
|
18
|
+
const orm_1 = require("./infrastructure/adapters/orm");
|
|
19
|
+
__exportStar(require("./application"), exports);
|
|
20
|
+
__exportStar(require("./infrastructure"), exports);
|
|
21
|
+
__exportStar(require("./domain"), exports);
|
|
22
|
+
__exportStar(require("@lambdaorm/base"), exports);
|
|
23
|
+
exports.orm = orm_1.Orm.instance;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAmD;AACnD,gDAA6B;AAC7B,mDAAgC;AAChC,2CAAwB;AACxB,kDAA+B;AAClB,QAAA,GAAG,GAAG,SAAG,CAAC,QAAQ,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientGeneralService } from '../../application/services';
|
|
2
|
+
import { GeneralApi } from '../api';
|
|
3
|
+
import { Health, Ping } from '../../domain';
|
|
4
|
+
export declare class GeneralApiService implements ClientGeneralService {
|
|
5
|
+
private readonly generalApi;
|
|
6
|
+
constructor(generalApi: GeneralApi);
|
|
7
|
+
version(): Promise<{
|
|
8
|
+
version: string;
|
|
9
|
+
}>;
|
|
10
|
+
ping(): Promise<Ping>;
|
|
11
|
+
health(): Promise<Health>;
|
|
12
|
+
metrics(): Promise<any>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GeneralApiService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralApiService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/adapters/GeneralApiService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3C,qBAAa,iBAAkB,YAAW,oBAAoB;IAEhD,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAC,UAAU;IAEtC,OAAO,IAAI,OAAO,CAAC;QAAC,OAAO,EAAC,MAAM,CAAA;KAAC,CAAC;IAKpC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAKzB,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;CAIpC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneralApiService = void 0;
|
|
4
|
+
class GeneralApiService {
|
|
5
|
+
// eslint-disable-next-line no-useless-constructor
|
|
6
|
+
constructor(generalApi) {
|
|
7
|
+
this.generalApi = generalApi;
|
|
8
|
+
}
|
|
9
|
+
async version() {
|
|
10
|
+
const result = await this.generalApi.ping();
|
|
11
|
+
return result.data;
|
|
12
|
+
}
|
|
13
|
+
async ping() {
|
|
14
|
+
const result = await this.generalApi.ping();
|
|
15
|
+
return result.data;
|
|
16
|
+
}
|
|
17
|
+
async health() {
|
|
18
|
+
const result = await this.generalApi.health();
|
|
19
|
+
return result.data;
|
|
20
|
+
}
|
|
21
|
+
async metrics() {
|
|
22
|
+
const result = await this.generalApi.metrics();
|
|
23
|
+
return result.data;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.GeneralApiService = GeneralApiService;
|
|
27
|
+
//# sourceMappingURL=GeneralApiService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralApiService.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/adapters/GeneralApiService.ts"],"names":[],"mappings":";;;AAKA,MAAa,iBAAiB;IAC7B,kDAAkD;IAClD,YAA8B,UAAqB;QAArB,eAAU,GAAV,UAAU,CAAW;IAAG,CAAC;IAEhD,KAAK,CAAC,OAAO;QACnB,MAAM,MAAM,GAA2B,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;QACnE,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;IAEM,KAAK,CAAC,IAAI;QAChB,MAAM,MAAM,GAA2B,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;QACnE,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;IAEM,KAAK,CAAC,MAAM;QAClB,MAAM,MAAM,GAA2B,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAA;QACrE,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;IAEM,KAAK,CAAC,OAAO;QACnB,MAAM,MAAM,GAA2B,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAA;QACtE,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;CACD;AAvBD,8CAuBC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { QueryApi } from '../api';
|
|
2
|
+
import { QueryOptions, QueryPlan, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '@lambdaorm/base';
|
|
3
|
+
import { ClientQueryService } from '../../application/services';
|
|
4
|
+
export declare class QueryApiService implements ClientQueryService {
|
|
5
|
+
private readonly queryApi;
|
|
6
|
+
constructor(queryApi: QueryApi);
|
|
7
|
+
/**
|
|
8
|
+
* Get model of query
|
|
9
|
+
* @param query query expression
|
|
10
|
+
* @returns Model of query
|
|
11
|
+
*/
|
|
12
|
+
model(query: Function): Promise<MetadataModel[]>;
|
|
13
|
+
model(query: string): Promise<MetadataModel[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Get parameters of query
|
|
16
|
+
* @param query query expression
|
|
17
|
+
* @returns Parameters of query
|
|
18
|
+
*/
|
|
19
|
+
parameters(query: Function): Promise<MetadataParameter[]>;
|
|
20
|
+
parameters(query: string): Promise<MetadataParameter[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Get constraints of query
|
|
23
|
+
* @param query query expression
|
|
24
|
+
* @returns Constraints of query
|
|
25
|
+
*/
|
|
26
|
+
constraints(query: Function): Promise<MetadataConstraint>;
|
|
27
|
+
constraints(query: string): Promise<MetadataConstraint>;
|
|
28
|
+
/**
|
|
29
|
+
* Get metadata of query
|
|
30
|
+
* @param query query expression
|
|
31
|
+
* @returns metadata of query
|
|
32
|
+
*/
|
|
33
|
+
metadata(query: Function): Promise<Metadata>;
|
|
34
|
+
metadata(query: string): Promise<Metadata>;
|
|
35
|
+
/**
|
|
36
|
+
* Get plan of query
|
|
37
|
+
* @param query query expression
|
|
38
|
+
* @param options options of query
|
|
39
|
+
*/
|
|
40
|
+
plan(query: Function, options?: QueryOptions): Promise<QueryPlan>;
|
|
41
|
+
plan(query: string, options?: QueryOptions): Promise<QueryPlan>;
|
|
42
|
+
/**
|
|
43
|
+
* Execute query
|
|
44
|
+
* @param query query expression
|
|
45
|
+
* @param data Data with variables
|
|
46
|
+
* @param options options of query
|
|
47
|
+
* @returns Result of query
|
|
48
|
+
*/
|
|
49
|
+
execute(query: Function, data?: any, options?: QueryOptions): Promise<any>;
|
|
50
|
+
execute(query: string, data?: any, options?: QueryOptions): Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Execute query
|
|
53
|
+
* @param query query expression
|
|
54
|
+
* @param data Data with variables
|
|
55
|
+
* @param options options of execution
|
|
56
|
+
* @returns Result of execution
|
|
57
|
+
*/
|
|
58
|
+
executeQueued(query: Function, topic: string, data?: any, chunk?: number, options?: QueryOptions): Promise<any>;
|
|
59
|
+
executeQueued(query: string, topic: string, data?: any, chunk?: number, options?: QueryOptions): Promise<any>;
|
|
60
|
+
private toExpression;
|
|
61
|
+
private solveOptions;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=QueryApiService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryApiService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/adapters/QueryApiService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAGzH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,qBAAa,eAAgB,YAAW,kBAAkB;IAE5C,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QA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AAE,GAAG,EAAE,KAAK,CAAC,EAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAO,CAAC,GAAG,CAAC;IAC5G,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAC,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAO,CAAC,GAAG,CAAC;IAQvH,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;CAYpB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryApiService = void 0;
|
|
5
|
+
const _3xpr_1 = require("3xpr");
|
|
6
|
+
class QueryApiService {
|
|
7
|
+
// eslint-disable-next-line no-useless-constructor
|
|
8
|
+
constructor(queryApi) {
|
|
9
|
+
this.queryApi = queryApi;
|
|
10
|
+
}
|
|
11
|
+
async model(query) {
|
|
12
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
13
|
+
const result = await this.queryApi.model({ query: _query });
|
|
14
|
+
return result.data;
|
|
15
|
+
}
|
|
16
|
+
async parameters(query) {
|
|
17
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
18
|
+
const result = await this.queryApi.parameters({ query: _query });
|
|
19
|
+
return result.data;
|
|
20
|
+
}
|
|
21
|
+
async constraints(query) {
|
|
22
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
23
|
+
const result = await this.queryApi.constraints({ query: _query });
|
|
24
|
+
return result.data;
|
|
25
|
+
}
|
|
26
|
+
async metadata(query) {
|
|
27
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
28
|
+
const result = await this.queryApi.metadata({ query: _query });
|
|
29
|
+
return result.data;
|
|
30
|
+
}
|
|
31
|
+
async plan(query, options) {
|
|
32
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
33
|
+
const _options = this.solveOptions(options);
|
|
34
|
+
const result = await this.queryApi.plan({ query: _query, options: _options });
|
|
35
|
+
return result.data;
|
|
36
|
+
}
|
|
37
|
+
async execute(query, data = {}, options = undefined) {
|
|
38
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
39
|
+
const _options = this.solveOptions(options);
|
|
40
|
+
const result = await this.queryApi.execute({ query: _query, data, options: _options });
|
|
41
|
+
return result.data;
|
|
42
|
+
}
|
|
43
|
+
async executeQueued(query, topic, data = {}, chunk, options = undefined) {
|
|
44
|
+
const _query = typeof query !== 'string' ? this.toExpression(query) : query;
|
|
45
|
+
const _options = this.solveOptions(options);
|
|
46
|
+
const result = await this.queryApi.executeQueued({ query: _query, data, options: _options, topic, chunk });
|
|
47
|
+
return result.data;
|
|
48
|
+
}
|
|
49
|
+
toExpression(query) {
|
|
50
|
+
return typeof query !== 'string' ? _3xpr_1.expressions.convert(query, 'function')[0] : query;
|
|
51
|
+
}
|
|
52
|
+
solveOptions(options) {
|
|
53
|
+
if (!options) {
|
|
54
|
+
options = {};
|
|
55
|
+
}
|
|
56
|
+
if (!options.stage) {
|
|
57
|
+
options.stage = 'default';
|
|
58
|
+
}
|
|
59
|
+
if (!options.view) {
|
|
60
|
+
options.view = 'default';
|
|
61
|
+
}
|
|
62
|
+
return options;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.QueryApiService = QueryApiService;
|
|
66
|
+
//# sourceMappingURL=QueryApiService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryApiService.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/adapters/QueryApiService.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAKjD,gCAAkC;AAGlC,MAAa,eAAe;IAC3B,kDAAkD;IAClD,YAA8B,QAAiB;QAAjB,aAAQ,GAAR,QAAQ,C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AAC,CAAC,CAAC,KAAK,CAAA;QAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC3C,MAAM,MAAM,GAA2B,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;QAClI,OAAO,MAAM,CAAC,IAAI,CAAA;IACnB,CAAC;IAEO,YAAY,CAAE,KAAqB;QAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAW,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IACrF,CAAC;IAEO,YAAY,CAAE,OAAsB;QAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,GAAG,EAAE,CAAA;QACb,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,GAAG,SAAS,CAAA;QAC1B,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,GAAG,SAAS,CAAA;QACzB,CAAC;QACD,OAAO,OAAO,CAAA;IACf,CAAC;CACD;AAtHD,0CAsHC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Entity, EntityMapping, Enum, Mapping, Schema, DomainSchema, Stage } from '@lambdaorm/base';
|
|
2
|
+
import { ClientSchemaService } from '../../application/services/SchemaService';
|
|
3
|
+
import { SchemaApi } from '../api';
|
|
4
|
+
export declare class SchemaApiService implements ClientSchemaService {
|
|
5
|
+
private readonly schemaApi;
|
|
6
|
+
constructor(schemaApi: SchemaApi);
|
|
7
|
+
version(): Promise<{
|
|
8
|
+
version: string;
|
|
9
|
+
}>;
|
|
10
|
+
schema(): Promise<Schema>;
|
|
11
|
+
domain(): Promise<DomainSchema>;
|
|
12
|
+
entities(): Promise<Entity[]>;
|
|
13
|
+
entity(entity: string): Promise<Entity | undefined>;
|
|
14
|
+
enums(): Promise<Enum[]>;
|
|
15
|
+
enum(_enum: string): Promise<Enum | undefined>;
|
|
16
|
+
mappings(): Promise<Mapping[]>;
|
|
17
|
+
mapping(mapping: string): Promise<Mapping | undefined>;
|
|
18
|
+
entityMapping(mapping: string, entity: string): Promise<EntityMapping | undefined>;
|
|
19
|
+
sources(): Promise<{
|
|
20
|
+
name: string;
|
|
21
|
+
dialect: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
source(source: string): Promise<{
|
|
24
|
+
name: string;
|
|
25
|
+
dialect: string;
|
|
26
|
+
}>;
|
|
27
|
+
stages(): Promise<Stage[]>;
|
|
28
|
+
stage(stage: string): Promise<Stage | undefined>;
|
|
29
|
+
views(): Promise<string[]>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=SchemaApiService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaApiService.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/adapters/SchemaApiService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAA;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC,qBAAa,gBAAiB,YAAW,mBAAmB;IAE9C,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAC,SAAS;IAEpC,OAAO,IAAK,OAAO,CAAC;QAAC,OAAO,EAAC,MAAM,CAAA;KAAC,CAAC;IAKrC,MAAM,IAAK,OAAO,CAAC,MAAM,CAAC;IAK1B,MAAM,IAAK,OAAO,CAAC,YAAY,CA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