taon 19.0.86 → 21.0.3
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/browser/package.json +1 -1
- package/lib/base-classes/base-repository.d.ts +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/context-db-migrations.d.ts +1 -2
- package/lib/decorators/classes/controller-config.d.ts +20 -0
- package/lib/decorators/classes/controller-config.js +21 -0
- package/lib/decorators/classes/controller-config.js.map +1 -0
- package/lib/decorators/classes/controller-options.d.ts +16 -0
- package/lib/decorators/classes/controller-options.js +20 -0
- package/lib/decorators/classes/controller-options.js.map +1 -0
- package/lib/endpoint-context.d.ts +0 -1
- package/lib/orm.d.ts +11 -11
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +6 -6
- package/websql/package.json +1 -1
package/browser/package.json
CHANGED
|
@@ -264,8 +264,8 @@ export declare abstract class TaonBaseRepository<Entity extends {
|
|
|
264
264
|
* @deprecated use findAndCount instead
|
|
265
265
|
*/
|
|
266
266
|
getAll(): Promise<{
|
|
267
|
-
models:
|
|
268
|
-
totalCount:
|
|
267
|
+
models: any;
|
|
268
|
+
totalCount: any;
|
|
269
269
|
}>;
|
|
270
270
|
getBy(id: number | string): Promise<Entity>;
|
|
271
271
|
}
|
|
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'taon';
|
|
|
21
21
|
/**
|
|
22
22
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
23
23
|
*/
|
|
24
|
-
exports.CURRENT_PACKAGE_VERSION = '
|
|
24
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.3';
|
|
25
25
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
26
26
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC;;GAEG;AACU,QAAA,wBAAwB,GAAG,KAAK,CAAC;AAC9C;;GAEG;AACU,QAAA,MAAM,GAAG,cAAc,CAAC;AACrC;;GAEG;AACU,QAAA,eAAe,GAAG,EAAE,CAAC;AAClC;;GAEG;AACU,QAAA,gBAAgB,GAAG,MAAM,CAAC;AACvC;;GAEG;AACU,QAAA,uBAAuB,GAAG,
|
|
1
|
+
{"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC;;GAEG;AACU,QAAA,wBAAwB,GAAG,KAAK,CAAC;AAC9C;;GAEG;AACU,QAAA,MAAM,GAAG,cAAc,CAAC;AACrC;;GAEG;AACU,QAAA,eAAe,GAAG,EAAE,CAAC;AAClC;;GAEG;AACU,QAAA,gBAAgB,GAAG,MAAM,CAAC;AACvC;;GAEG;AACU,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AAChD,yCAAyC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { EndpointContext } from './endpoint-context';
|
|
2
|
-
import { Table } from 'taon-typeorm';
|
|
3
2
|
export type MigrationStatus = 'completed' | 'pending';
|
|
4
3
|
export declare class ContextDbMigrations {
|
|
5
4
|
private ctx;
|
|
6
5
|
readonly DEFAULT_MIGRATION_TABLE_NAME = "TAON_MIGRATION_META";
|
|
7
6
|
readonly MIGRATION_STATUS_COMPLETED: MigrationStatus;
|
|
8
7
|
readonly MIGRATION_STATUS_PENDING: MigrationStatus;
|
|
9
|
-
readonly table:
|
|
8
|
+
readonly table: any;
|
|
10
9
|
constructor(ctx: EndpointContext);
|
|
11
10
|
ensureMigrationTableExists(): Promise<void>;
|
|
12
11
|
private logSelectALl;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Models } from '../../models';
|
|
2
|
+
import { TaonMiddlewareInheritanceObj } from '../http/http-methods-decorators';
|
|
3
|
+
import { TaonControllerOptions } from './controller-options';
|
|
4
|
+
export declare class ControllerConfig extends TaonControllerOptions {
|
|
5
|
+
methods: {
|
|
6
|
+
[methodName: string]: Models.MethodConfig;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Calculated path from parents controllers
|
|
10
|
+
*/
|
|
11
|
+
calculatedPath?: string;
|
|
12
|
+
/**
|
|
13
|
+
* a way to transform entity before sending to browser
|
|
14
|
+
*/
|
|
15
|
+
browserTransformFn?: (entity: any) => any;
|
|
16
|
+
/**
|
|
17
|
+
* Calculated middlewares object from parents controllers
|
|
18
|
+
*/
|
|
19
|
+
calculatedMiddlewaresControllerObj?: TaonMiddlewareInheritanceObj;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ControllerConfig = void 0;
|
|
4
|
+
const controller_options_1 = require("./controller-options");
|
|
5
|
+
class ControllerConfig extends controller_options_1.TaonControllerOptions {
|
|
6
|
+
methods = {};
|
|
7
|
+
/**
|
|
8
|
+
* Calculated path from parents controllers
|
|
9
|
+
*/
|
|
10
|
+
calculatedPath;
|
|
11
|
+
/**
|
|
12
|
+
* a way to transform entity before sending to browser
|
|
13
|
+
*/
|
|
14
|
+
browserTransformFn;
|
|
15
|
+
/**
|
|
16
|
+
* Calculated middlewares object from parents controllers
|
|
17
|
+
*/
|
|
18
|
+
calculatedMiddlewaresControllerObj;
|
|
19
|
+
}
|
|
20
|
+
exports.ControllerConfig = ControllerConfig;
|
|
21
|
+
//# sourceMappingURL=controller-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-config.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,6DAA6D;AAE7D,MAAa,gBAAiB,SAAQ,0CAAqB;IACzD,OAAO,GAAkD,EAAE,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAU;IACxB;;OAEG;IACH,kBAAkB,CAAwB;IAC1C;;OAEG;IACH,kCAAkC,CAAgC;CACnE;AAdD,4CAcC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
2
|
+
import type { TaonMiddlewareFunction } from '../http/http-methods-decorators';
|
|
3
|
+
export declare class TaonControllerOptions<ControllerClass = any> extends DecoratorAbstractOpt {
|
|
4
|
+
/**
|
|
5
|
+
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
6
|
+
*/
|
|
7
|
+
realtime?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* override default path for controller api
|
|
10
|
+
*/
|
|
11
|
+
path?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Middlewares to be applied to all methods in the controller
|
|
14
|
+
*/
|
|
15
|
+
middlewares?: TaonMiddlewareFunction;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonControllerOptions = void 0;
|
|
4
|
+
const decorator_abstract_opt_1 = require("../decorator-abstract-opt");
|
|
5
|
+
class TaonControllerOptions extends decorator_abstract_opt_1.DecoratorAbstractOpt {
|
|
6
|
+
/**
|
|
7
|
+
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
8
|
+
*/
|
|
9
|
+
realtime;
|
|
10
|
+
/**
|
|
11
|
+
* override default path for controller api
|
|
12
|
+
*/
|
|
13
|
+
path;
|
|
14
|
+
/**
|
|
15
|
+
* Middlewares to be applied to all methods in the controller
|
|
16
|
+
*/
|
|
17
|
+
middlewares;
|
|
18
|
+
}
|
|
19
|
+
exports.TaonControllerOptions = TaonControllerOptions;
|
|
20
|
+
//# sourceMappingURL=controller-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-options.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sEAAiE;AAGjE,MAAa,qBAEX,SAAQ,6CAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAW;IACnB;;OAEG;IACH,IAAI,CAAU;IACd;;OAEG;IACH,WAAW,CAA0B;CACtC;AAfD,sDAeC"}
|
|
@@ -3,7 +3,6 @@ import { URL } from 'url';
|
|
|
3
3
|
import type { NgZone } from '@angular/core';
|
|
4
4
|
import * as express from 'express';
|
|
5
5
|
import type { Application } from 'express';
|
|
6
|
-
import type { Repository } from 'taon-typeorm';
|
|
7
6
|
import { DataSource } from 'taon-typeorm';
|
|
8
7
|
import type { TaonBaseInjector } from './base-classes/base-injector';
|
|
9
8
|
import { ContextDbMigrations } from './context-db-migrations';
|
package/lib/orm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsorm from 'taon-typeorm';
|
|
2
2
|
export declare namespace Orm {
|
|
3
|
-
const Repository:
|
|
3
|
+
const Repository: any;
|
|
4
4
|
export import Connection = tsorm.Connection;
|
|
5
5
|
namespace ListenEvent {
|
|
6
6
|
export import AfterInsert = tsorm.AfterInsert;
|
|
@@ -30,28 +30,28 @@ export declare namespace Orm {
|
|
|
30
30
|
/**
|
|
31
31
|
* 100 default characters varchar
|
|
32
32
|
*/
|
|
33
|
-
const String: <T = string>(defaultValue?: T, length?: number) =>
|
|
33
|
+
const String: <T = string>(defaultValue?: T, length?: number) => any;
|
|
34
34
|
/**
|
|
35
35
|
* 100 characters varchar
|
|
36
36
|
*/
|
|
37
|
-
const String100: <T = string>(defaultValue?: T) =>
|
|
37
|
+
const String100: <T = string>(defaultValue?: T) => any;
|
|
38
38
|
/**
|
|
39
39
|
* 100 characters varchar
|
|
40
40
|
*/
|
|
41
|
-
const String45: <T = string>(defaultValue?: T) =>
|
|
41
|
+
const String45: <T = string>(defaultValue?: T) => any;
|
|
42
42
|
/**
|
|
43
43
|
* 500 characters varchar
|
|
44
44
|
*/
|
|
45
|
-
const String500: <T = string>(defaultValue?: T) =>
|
|
45
|
+
const String500: <T = string>(defaultValue?: T) => any;
|
|
46
46
|
/**
|
|
47
47
|
* 200 characters varchar
|
|
48
48
|
*/
|
|
49
|
-
const String200: <T = string>(defaultValue?: T) =>
|
|
50
|
-
const Number: () =>
|
|
51
|
-
const DecimalNumber: () =>
|
|
52
|
-
const SimpleJson: () =>
|
|
53
|
-
const Boolean: (defaultValue: boolean | null) =>
|
|
54
|
-
const DateTIme: (defaultValue?: boolean | null) =>
|
|
49
|
+
const String200: <T = string>(defaultValue?: T) => any;
|
|
50
|
+
const Number: () => any;
|
|
51
|
+
const DecimalNumber: () => any;
|
|
52
|
+
const SimpleJson: () => any;
|
|
53
|
+
const Boolean: (defaultValue: boolean | null) => any;
|
|
54
|
+
const DateTIme: (defaultValue?: boolean | null) => any;
|
|
55
55
|
export import Version = tsorm.VersionColumn;
|
|
56
56
|
export import Virtual = tsorm.VirtualColumn;
|
|
57
57
|
}
|
package/lib/ui/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1766324031356 = dummy1766324031356;
|
|
4
|
+
function dummy1766324031356() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1766324032158 = dummy1766324032158;
|
|
4
|
+
function dummy1766324032158() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"mkdocs": "python3 -m mkdocs",
|
|
6
6
|
"taon init": "taon init",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"tnp": "~
|
|
51
|
+
"tnp": "~21.0.0",
|
|
52
52
|
"tslib": "~2.8.1",
|
|
53
53
|
"ora": "3.4.0",
|
|
54
|
-
"ng2-rest": "~
|
|
55
|
-
"json10": "~
|
|
56
|
-
"lodash-walk-object": "~
|
|
57
|
-
"taon-type-sql": "~
|
|
54
|
+
"ng2-rest": "~21.0.0",
|
|
55
|
+
"json10": "~21.0.0",
|
|
56
|
+
"lodash-walk-object": "~21.0.0",
|
|
57
|
+
"taon-type-sql": "~21.0.0",
|
|
58
58
|
"socket.io": "~4.8.1"
|
|
59
59
|
},
|
|
60
60
|
"description": "Isomorphic solution for backend and frontend",
|