taon 18.0.25 → 18.0.26
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/README.md +112 -51
- package/browser/esm2022/lib/endpoint-context.mjs +4 -1
- package/browser/esm2022/lib/index.mjs +2 -2
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/browser/fesm2022/taon.mjs +3 -0
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/models.d.ts +5 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/cli.js +11 -17
- package/cli.js.map +1 -1
- package/client/esm2022/lib/endpoint-context.mjs +4 -1
- package/client/esm2022/lib/index.mjs +2 -2
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/client/fesm2022/taon.mjs +3 -0
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/models.d.ts +5 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/index.js +15 -2
- package/index.js.map +1 -1
- package/lib/base-classes/base-abstract-entity.js +30 -28
- package/lib/base-classes/base-abstract-entity.js.map +1 -1
- package/lib/base-classes/base-class.js +9 -17
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-context.js +4 -4
- package/lib/base-classes/base-context.js.map +1 -1
- package/lib/base-classes/base-controller.js +15 -15
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.js +211 -329
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-entity.js +15 -15
- package/lib/base-classes/base-entity.js.map +1 -1
- package/lib/base-classes/base-injector.js +99 -124
- package/lib/base-classes/base-injector.js.map +1 -1
- package/lib/base-classes/base-migration.js +15 -31
- package/lib/base-classes/base-migration.js.map +1 -1
- package/lib/base-classes/base-provider.js +3 -9
- package/lib/base-classes/base-provider.js.map +1 -1
- package/lib/base-classes/base-repository.js +310 -444
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.js +73 -73
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.js +10 -10
- package/lib/base-classes/base.js.map +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/context-db-migrations.js +325 -581
- package/lib/context-db-migrations.js.map +1 -1
- package/lib/create-context.js +80 -109
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/controller-decorator.js +15 -13
- package/lib/decorators/classes/controller-decorator.js.map +1 -1
- package/lib/decorators/classes/entity-decorator.js +23 -20
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/classes/migration-decorator.js +7 -13
- package/lib/decorators/classes/migration-decorator.js.map +1 -1
- package/lib/decorators/classes/provider-decorator.js +7 -13
- package/lib/decorators/classes/provider-decorator.js.map +1 -1
- package/lib/decorators/classes/repository-decorator.js +7 -13
- package/lib/decorators/classes/repository-decorator.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.js +8 -13
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.js +4 -4
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.js +19 -25
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/decorators/http/http-params-decorators.js +7 -9
- package/lib/decorators/http/http-params-decorators.js.map +1 -1
- package/lib/dependency-injection/di-container.js +13 -18
- package/lib/dependency-injection/di-container.js.map +1 -1
- package/lib/endpoint-context.js +1196 -1543
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +102 -112
- package/lib/entity-process.js.map +1 -1
- package/lib/env.js +2 -2
- package/lib/env.js.map +1 -1
- package/lib/formly/formly-group-wrapper-component.js +45 -23
- package/lib/formly/formly-group-wrapper-component.js.map +1 -1
- package/lib/formly/formly-repeat-component.js +74 -27
- package/lib/formly/formly-repeat-component.js.map +1 -1
- package/lib/formly/formly.models.js.map +1 -1
- package/lib/formly/fromly.js +57 -61
- package/lib/formly/fromly.js.map +1 -1
- package/lib/formly/type-from-entity.js +11 -16
- package/lib/formly/type-from-entity.js.map +1 -1
- package/lib/get-response-value.js +22 -33
- package/lib/get-response-value.js.map +1 -1
- package/lib/helpers/class-helpers.js +62 -73
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/helpers/taon-helpers.js +33 -31
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/index._auto-generated_.d.ts +1 -0
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +1 -25
- package/lib/index.js +44 -41
- package/lib/index.js.map +1 -1
- package/lib/inject.js +15 -15
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +5 -0
- package/lib/models.js +124 -100
- package/lib/models.js.map +1 -1
- package/lib/orm.js +13 -27
- package/lib/orm.js.map +1 -1
- package/lib/realtime/realtime-client.js +70 -65
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.js +48 -29
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.js +81 -80
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/index.js +18 -5
- package/lib/realtime/realtime-strategy/index.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +132 -172
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +158 -241
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +18 -29
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.js +9 -13
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +29 -30
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/realtime/realtime.models.js.map +1 -1
- package/lib/storage.js +1 -1
- package/lib/storage.js.map +1 -1
- package/lib/symbols.js +62 -66
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/directives/index.js.map +1 -1
- package/lib/ui/directives/view-mode.js.map +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -1
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -1
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -1
- package/lib/ui/taon-notifications/index.js +15 -2
- package/lib/ui/taon-notifications/index.js.map +1 -1
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -1
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-progress-bar/index.js.map +1 -1
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +2 -1
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js.map +1 -1
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-table/index.js.map +1 -1
- package/lib/ui/taon.models.js.map +1 -1
- package/lib/validators.js +48 -16
- package/lib/validators.js.map +1 -1
- package/migrations/index.js +15 -2
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.d.ts +1 -0
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/old-app .d.ts +1 -0
- package/old-app .js +67 -78
- package/old-app .js.map +1 -1
- package/package.json +17 -64
- package/playground.d.ts +1 -0
- package/playground.js.map +1 -1
- package/src.d.ts +1 -1
- package/taon.jsonc +39 -42
- package/tmp-environment.json +8 -401
- package/websql/esm2022/lib/endpoint-context.mjs +4 -1
- package/websql/esm2022/lib/index.mjs +2 -2
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
- package/websql/fesm2022/taon.mjs +3 -0
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/models.d.ts +5 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
- package/browser/package.json +0 -25
- package/websql/package.json +0 -25
|
@@ -1,385 +1,267 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.BaseCrudController = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
13
|
//#region imports
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var validators_1 = require("../validators");
|
|
14
|
+
const symbols_1 = require("../symbols");
|
|
15
|
+
const base_controller_1 = require("./base-controller");
|
|
16
|
+
const http_methods_decorators_1 = require("../decorators/http/http-methods-decorators");
|
|
17
|
+
const http_params_decorators_1 = require("../decorators/http/http-params-decorators");
|
|
18
|
+
const tnp_core_1 = require("tnp-core");
|
|
19
|
+
const controller_decorator_1 = require("../decorators/classes/controller-decorator");
|
|
20
|
+
const class_helpers_1 = require("../helpers/class-helpers");
|
|
21
|
+
const validators_1 = require("../validators");
|
|
15
22
|
//#endregion
|
|
16
23
|
/**
|
|
17
24
|
* Please override property entityClassFn with entity class.
|
|
18
25
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
26
|
+
let BaseCrudController = class BaseCrudController extends base_controller_1.BaseController {
|
|
27
|
+
//#region fields
|
|
28
|
+
db;
|
|
24
29
|
//#endregion
|
|
25
30
|
//#region init
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
31
|
+
async _() {
|
|
32
|
+
if (!tnp_core_1._.isFunction(this.entityClassResolveFn)) {
|
|
33
|
+
tnp_core_1.Helpers.warn(`Skipping initing CRUD controller ${class_helpers_1.ClassHelpers.getName(this)} because entityClassResolveFn is not provided.`);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
let entityClassFn = this.entityClassResolveFn();
|
|
37
|
+
this.db = this.injectRepo(entityClassFn);
|
|
38
|
+
if (entityClassFn) {
|
|
39
|
+
const configEntity = Reflect.getMetadata(symbols_1.Symbols.metadata.options.entity, class_helpers_1.ClassHelpers.getClassFnFromObject(this));
|
|
40
|
+
if (configEntity?.createTable === false) {
|
|
41
|
+
tnp_core_1.Helpers.warn(`Table for entity ${class_helpers_1.ClassHelpers.getName(entityClassFn)} will not be created. Crud will not work properly.`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
tnp_core_1.Helpers.error(`Entity class not provided for controller ${class_helpers_1.ClassHelpers.getName(this)}.
|
|
46
|
+
|
|
47
|
+
Please provide entity as class propery entityClassFn:
|
|
48
|
+
|
|
49
|
+
class ${class_helpers_1.ClassHelpers.getName(this)} extends BaseCrudController<Entity> {
|
|
50
|
+
// ...
|
|
51
|
+
entityClassResolveFn = ()=> MyEntityClass;
|
|
52
|
+
// ...
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
`);
|
|
56
|
+
}
|
|
57
|
+
await super._();
|
|
58
|
+
}
|
|
55
59
|
//#endregion
|
|
56
60
|
//#region bufferd changes
|
|
57
|
-
|
|
58
|
-
var _this = this;
|
|
61
|
+
bufforedChanges(id, property, alreadyLength) {
|
|
59
62
|
//#region @websqlFunc
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
result = value.slice(alreadyLength);
|
|
74
|
-
}
|
|
75
|
-
return [2 /*return*/, result];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}); };
|
|
63
|
+
return async (request, response) => {
|
|
64
|
+
const model = await this.db.getBy(id);
|
|
65
|
+
if (model === void 0) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
validators_1.Validators.preventUndefinedModel(model, id);
|
|
69
|
+
let value = model[property];
|
|
70
|
+
let result;
|
|
71
|
+
if (tnp_core_1._.isString(value) || tnp_core_1._.isArray(value)) {
|
|
72
|
+
result = value.slice(alreadyLength);
|
|
73
|
+
}
|
|
74
|
+
return result;
|
|
75
|
+
};
|
|
79
76
|
//#endregion
|
|
80
|
-
}
|
|
77
|
+
}
|
|
81
78
|
//#endregion
|
|
82
79
|
//#region pagintation
|
|
83
|
-
|
|
84
|
-
var _this = this;
|
|
85
|
-
if (pageNumber === void 0) { pageNumber = 1; }
|
|
86
|
-
if (pageSize === void 0) { pageSize = 10; }
|
|
87
|
-
if (search === void 0) { search = ''; }
|
|
80
|
+
pagination(pageNumber = 1, pageSize = 10, search = '') {
|
|
88
81
|
//#region @websqlFunc
|
|
89
|
-
return
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
case 2: return [2 /*return*/, []];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}); };
|
|
82
|
+
return async (request, response) => {
|
|
83
|
+
if (this.db.repositoryExists) {
|
|
84
|
+
const query = {
|
|
85
|
+
page: pageNumber,
|
|
86
|
+
take: pageSize,
|
|
87
|
+
keyword: search,
|
|
88
|
+
};
|
|
89
|
+
// console.log({
|
|
90
|
+
// query
|
|
91
|
+
// })
|
|
92
|
+
const take = query.take || 10;
|
|
93
|
+
const page = query.page || 1;
|
|
94
|
+
const skip = (page - 1) * take;
|
|
95
|
+
const keyword = query.keyword || '';
|
|
96
|
+
const [result, total] = await this.db.findAndCount({
|
|
97
|
+
// where: { name: Like('%' + keyword + '%') },
|
|
98
|
+
// order: { name: "DESC" },
|
|
99
|
+
take: take,
|
|
100
|
+
skip: skip,
|
|
101
|
+
});
|
|
102
|
+
response?.setHeader(symbols_1.Symbols.old.X_TOTAL_COUNT, total);
|
|
103
|
+
// const lastPage = Math.ceil(total / take);
|
|
104
|
+
// const nextPage = page + 1 > lastPage ? null : page + 1;
|
|
105
|
+
// const prevPage = page - 1 < 1 ? null : page - 1;
|
|
106
|
+
// console.log({
|
|
107
|
+
// result,
|
|
108
|
+
// total
|
|
109
|
+
// })
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
return [];
|
|
113
|
+
};
|
|
125
114
|
//#endregion
|
|
126
|
-
}
|
|
115
|
+
}
|
|
127
116
|
//#endregion
|
|
128
117
|
//#region get all
|
|
129
|
-
|
|
130
|
-
var _this = this;
|
|
118
|
+
getAll() {
|
|
131
119
|
//#region @websqlFunc
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
_a = _b.sent(), models = _a.models, totalCount = _a.totalCount;
|
|
141
|
-
response === null || response === void 0 ? void 0 : response.setHeader(symbols_1.Symbols.old.X_TOTAL_COUNT, totalCount);
|
|
142
|
-
return [2 /*return*/, models];
|
|
143
|
-
case 2: return [2 /*return*/, []];
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}); };
|
|
120
|
+
return async (request, response) => {
|
|
121
|
+
if (this.db.repositoryExists) {
|
|
122
|
+
const { models, totalCount } = await this.db.getAll();
|
|
123
|
+
response?.setHeader(symbols_1.Symbols.old.X_TOTAL_COUNT, totalCount);
|
|
124
|
+
return models;
|
|
125
|
+
}
|
|
126
|
+
return [];
|
|
127
|
+
};
|
|
147
128
|
//#endregion
|
|
148
|
-
}
|
|
129
|
+
}
|
|
149
130
|
//#endregion
|
|
150
131
|
//#region get by id
|
|
151
|
-
|
|
152
|
-
var _this = this;
|
|
132
|
+
getBy(id) {
|
|
153
133
|
//#region @websqlFunc
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
return
|
|
157
|
-
|
|
158
|
-
case 0: return [4 /*yield*/, this.db.getBy(id)];
|
|
159
|
-
case 1:
|
|
160
|
-
model = _a.sent();
|
|
161
|
-
return [2 /*return*/, model];
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}); };
|
|
134
|
+
return async () => {
|
|
135
|
+
const model = await this.db.getBy(id);
|
|
136
|
+
return model;
|
|
137
|
+
};
|
|
165
138
|
//#endregion
|
|
166
|
-
}
|
|
139
|
+
}
|
|
167
140
|
//#endregion
|
|
168
141
|
//#region update by id
|
|
169
|
-
|
|
142
|
+
updateById(id, item) {
|
|
170
143
|
//#region @websqlFunc
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, this.db.updateById(id, item)];
|
|
177
|
-
case 1:
|
|
178
|
-
model = _a.sent();
|
|
179
|
-
return [2 /*return*/, model];
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}); };
|
|
144
|
+
return async () => {
|
|
145
|
+
const model = await this.db.updateById(id, item);
|
|
146
|
+
return model;
|
|
147
|
+
};
|
|
183
148
|
//#endregion
|
|
184
|
-
}
|
|
149
|
+
}
|
|
185
150
|
//#endregion
|
|
186
151
|
//#region patch by id
|
|
187
|
-
|
|
152
|
+
patchById(id, item) {
|
|
188
153
|
//#region @websqlFunc
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
switch (_a.label) {
|
|
194
|
-
case 0: return [4 /*yield*/, this.db.updateById(id, item)];
|
|
195
|
-
case 1:
|
|
196
|
-
model = _a.sent();
|
|
197
|
-
return [2 /*return*/, model];
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
}); };
|
|
154
|
+
return async () => {
|
|
155
|
+
const model = await this.db.updateById(id, item);
|
|
156
|
+
return model;
|
|
157
|
+
};
|
|
201
158
|
//#endregion
|
|
202
|
-
}
|
|
159
|
+
}
|
|
203
160
|
//#endregion
|
|
204
161
|
//#region bulk update
|
|
205
|
-
|
|
206
|
-
var _this = this;
|
|
162
|
+
bulkUpdate(items) {
|
|
207
163
|
//#region @websqlFunc
|
|
208
|
-
return
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
return [4 /*yield*/, this.db.bulkUpdate(items)];
|
|
217
|
-
case 1:
|
|
218
|
-
models = (_a.sent()).models;
|
|
219
|
-
return [2 /*return*/, models];
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
}); };
|
|
164
|
+
return async () => {
|
|
165
|
+
if (!Array.isArray(items) || items?.length === 0) {
|
|
166
|
+
return [];
|
|
167
|
+
}
|
|
168
|
+
const { models } = await this.db.bulkUpdate(items);
|
|
169
|
+
return models;
|
|
170
|
+
};
|
|
223
171
|
//#endregion
|
|
224
|
-
}
|
|
172
|
+
}
|
|
225
173
|
//#endregion
|
|
226
174
|
//#region delete by id
|
|
227
|
-
|
|
228
|
-
var _this = this;
|
|
175
|
+
deleteById(id) {
|
|
229
176
|
//#region @websqlFunc
|
|
230
|
-
return
|
|
231
|
-
|
|
232
|
-
return
|
|
233
|
-
|
|
234
|
-
case 0: return [4 /*yield*/, this.db.deleteById(id)];
|
|
235
|
-
case 1:
|
|
236
|
-
model = _a.sent();
|
|
237
|
-
return [2 /*return*/, model];
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}); };
|
|
177
|
+
return async () => {
|
|
178
|
+
const model = await this.db.deleteById(id);
|
|
179
|
+
return model;
|
|
180
|
+
};
|
|
241
181
|
//#endregion
|
|
242
|
-
}
|
|
182
|
+
}
|
|
243
183
|
//#endregion
|
|
244
184
|
//#region bulk delete
|
|
245
|
-
|
|
246
|
-
var _this = this;
|
|
185
|
+
bulkDelete(ids) {
|
|
247
186
|
//#region @websqlFunc
|
|
248
|
-
return
|
|
249
|
-
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
case 0: return [4 /*yield*/, this.db.bulkDelete(ids)];
|
|
253
|
-
case 1:
|
|
254
|
-
models = _a.sent();
|
|
255
|
-
return [2 /*return*/, models];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}); };
|
|
187
|
+
return async () => {
|
|
188
|
+
const models = await this.db.bulkDelete(ids);
|
|
189
|
+
return models;
|
|
190
|
+
};
|
|
259
191
|
//#endregion
|
|
260
|
-
}
|
|
192
|
+
}
|
|
261
193
|
//#endregion
|
|
262
194
|
//#region create
|
|
263
|
-
|
|
264
|
-
var _this = this;
|
|
195
|
+
create(item) {
|
|
265
196
|
//#region @websqlFunc
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
return
|
|
269
|
-
|
|
270
|
-
case 0: return [4 /*yield*/, this.db.create(item)];
|
|
271
|
-
case 1:
|
|
272
|
-
model = _a.sent();
|
|
273
|
-
return [2 /*return*/, model];
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
}); };
|
|
197
|
+
return async () => {
|
|
198
|
+
const model = await this.db.create(item);
|
|
199
|
+
return model;
|
|
200
|
+
};
|
|
277
201
|
//#endregion
|
|
278
|
-
}
|
|
202
|
+
}
|
|
279
203
|
//#endregion
|
|
280
204
|
//#region bulk create
|
|
281
|
-
|
|
282
|
-
var _this = this;
|
|
205
|
+
bulkCreate(items) {
|
|
283
206
|
//#region @websqlFunc
|
|
284
|
-
return
|
|
285
|
-
|
|
286
|
-
return
|
|
287
|
-
|
|
288
|
-
case 0: return [4 /*yield*/, this.db.bulkCreate(items)];
|
|
289
|
-
case 1:
|
|
290
|
-
models = _a.sent();
|
|
291
|
-
return [2 /*return*/, models];
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
}); };
|
|
207
|
+
return async () => {
|
|
208
|
+
const models = await this.db.bulkCreate(items);
|
|
209
|
+
return models;
|
|
210
|
+
};
|
|
295
211
|
//#endregion
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
(0, http_methods_decorators_1.GET)("/:id/property/:property"),
|
|
299
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("id")),
|
|
300
|
-
tslib_1.__param(1, (0, http_params_decorators_1.Path)("property")),
|
|
301
|
-
tslib_1.__param(2, (0, http_params_decorators_1.Query)('alreadyLength')),
|
|
302
|
-
tslib_1.__metadata("design:type", Function),
|
|
303
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Number]),
|
|
304
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
305
|
-
], BaseCrudController.prototype, "bufforedChanges", null);
|
|
306
|
-
tslib_1.__decorate([
|
|
307
|
-
(0, http_methods_decorators_1.GET)(),
|
|
308
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Query)('pageNumber')),
|
|
309
|
-
tslib_1.__param(1, (0, http_params_decorators_1.Query)('pageSize')),
|
|
310
|
-
tslib_1.__param(2, (0, http_params_decorators_1.Query)('search')),
|
|
311
|
-
tslib_1.__metadata("design:type", Function),
|
|
312
|
-
tslib_1.__metadata("design:paramtypes", [Number, Number, String]),
|
|
313
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
314
|
-
], BaseCrudController.prototype, "pagination", null);
|
|
315
|
-
tslib_1.__decorate([
|
|
316
|
-
(0, http_methods_decorators_1.GET)(),
|
|
317
|
-
tslib_1.__metadata("design:type", Function),
|
|
318
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
319
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
320
|
-
], BaseCrudController.prototype, "getAll", null);
|
|
321
|
-
tslib_1.__decorate([
|
|
322
|
-
(0, http_methods_decorators_1.GET)("/:id"),
|
|
323
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("id")),
|
|
324
|
-
tslib_1.__metadata("design:type", Function),
|
|
325
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
326
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
327
|
-
], BaseCrudController.prototype, "getBy", null);
|
|
328
|
-
tslib_1.__decorate([
|
|
329
|
-
(0, http_methods_decorators_1.PUT)("/:id"),
|
|
330
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("id")),
|
|
331
|
-
tslib_1.__param(1, (0, http_params_decorators_1.Body)()),
|
|
332
|
-
tslib_1.__metadata("design:type", Function),
|
|
333
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
334
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
335
|
-
], BaseCrudController.prototype, "updateById", null);
|
|
336
|
-
tslib_1.__decorate([
|
|
337
|
-
(0, http_methods_decorators_1.PATCH)("/:id"),
|
|
338
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("id")),
|
|
339
|
-
tslib_1.__param(1, (0, http_params_decorators_1.Body)()),
|
|
340
|
-
tslib_1.__metadata("design:type", Function),
|
|
341
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
342
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
343
|
-
], BaseCrudController.prototype, "patchById", null);
|
|
344
|
-
tslib_1.__decorate([
|
|
345
|
-
(0, http_methods_decorators_1.PUT)(),
|
|
346
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Body)()),
|
|
347
|
-
tslib_1.__metadata("design:type", Function),
|
|
348
|
-
tslib_1.__metadata("design:paramtypes", [Array]),
|
|
349
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
350
|
-
], BaseCrudController.prototype, "bulkUpdate", null);
|
|
351
|
-
tslib_1.__decorate([
|
|
352
|
-
(0, http_methods_decorators_1.DELETE)("/:id"),
|
|
353
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("id")),
|
|
354
|
-
tslib_1.__metadata("design:type", Function),
|
|
355
|
-
tslib_1.__metadata("design:paramtypes", [Number]),
|
|
356
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
357
|
-
], BaseCrudController.prototype, "deleteById", null);
|
|
358
|
-
tslib_1.__decorate([
|
|
359
|
-
(0, http_methods_decorators_1.DELETE)("/bulkDelete/:ids"),
|
|
360
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Path)("ids")),
|
|
361
|
-
tslib_1.__metadata("design:type", Function),
|
|
362
|
-
tslib_1.__metadata("design:paramtypes", [Array]),
|
|
363
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
364
|
-
], BaseCrudController.prototype, "bulkDelete", null);
|
|
365
|
-
tslib_1.__decorate([
|
|
366
|
-
(0, http_methods_decorators_1.POST)(),
|
|
367
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Body)()),
|
|
368
|
-
tslib_1.__metadata("design:type", Function),
|
|
369
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
370
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
371
|
-
], BaseCrudController.prototype, "create", null);
|
|
372
|
-
tslib_1.__decorate([
|
|
373
|
-
(0, http_methods_decorators_1.POST)(),
|
|
374
|
-
tslib_1.__param(0, (0, http_params_decorators_1.Body)()),
|
|
375
|
-
tslib_1.__metadata("design:type", Function),
|
|
376
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
377
|
-
tslib_1.__metadata("design:returntype", Object)
|
|
378
|
-
], BaseCrudController.prototype, "bulkCreate", null);
|
|
379
|
-
BaseCrudController = tslib_1.__decorate([
|
|
380
|
-
(0, controller_decorator_1.TaonController)({ className: 'BaseCrudController' })
|
|
381
|
-
], BaseCrudController);
|
|
382
|
-
return BaseCrudController;
|
|
383
|
-
}(base_controller_1.BaseController));
|
|
212
|
+
}
|
|
213
|
+
};
|
|
384
214
|
exports.BaseCrudController = BaseCrudController;
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, http_methods_decorators_1.GET)(`/:id/property/:property`),
|
|
217
|
+
__param(0, (0, http_params_decorators_1.Path)(`id`)),
|
|
218
|
+
__param(1, (0, http_params_decorators_1.Path)(`property`)),
|
|
219
|
+
__param(2, (0, http_params_decorators_1.Query)('alreadyLength'))
|
|
220
|
+
], BaseCrudController.prototype, "bufforedChanges", null);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, http_methods_decorators_1.GET)(),
|
|
223
|
+
__param(0, (0, http_params_decorators_1.Query)('pageNumber')),
|
|
224
|
+
__param(1, (0, http_params_decorators_1.Query)('pageSize')),
|
|
225
|
+
__param(2, (0, http_params_decorators_1.Query)('search'))
|
|
226
|
+
], BaseCrudController.prototype, "pagination", null);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, http_methods_decorators_1.GET)()
|
|
229
|
+
], BaseCrudController.prototype, "getAll", null);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, http_methods_decorators_1.GET)(`/:id`),
|
|
232
|
+
__param(0, (0, http_params_decorators_1.Path)(`id`))
|
|
233
|
+
], BaseCrudController.prototype, "getBy", null);
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, http_methods_decorators_1.PUT)(`/:id`),
|
|
236
|
+
__param(0, (0, http_params_decorators_1.Path)(`id`)),
|
|
237
|
+
__param(1, (0, http_params_decorators_1.Body)())
|
|
238
|
+
], BaseCrudController.prototype, "updateById", null);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, http_methods_decorators_1.PATCH)(`/:id`),
|
|
241
|
+
__param(0, (0, http_params_decorators_1.Path)(`id`)),
|
|
242
|
+
__param(1, (0, http_params_decorators_1.Body)())
|
|
243
|
+
], BaseCrudController.prototype, "patchById", null);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, http_methods_decorators_1.PUT)(),
|
|
246
|
+
__param(0, (0, http_params_decorators_1.Body)())
|
|
247
|
+
], BaseCrudController.prototype, "bulkUpdate", null);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, http_methods_decorators_1.DELETE)(`/:id`),
|
|
250
|
+
__param(0, (0, http_params_decorators_1.Path)(`id`))
|
|
251
|
+
], BaseCrudController.prototype, "deleteById", null);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, http_methods_decorators_1.DELETE)(`/bulkDelete/:ids`),
|
|
254
|
+
__param(0, (0, http_params_decorators_1.Path)(`ids`))
|
|
255
|
+
], BaseCrudController.prototype, "bulkDelete", null);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, http_methods_decorators_1.POST)(),
|
|
258
|
+
__param(0, (0, http_params_decorators_1.Body)())
|
|
259
|
+
], BaseCrudController.prototype, "create", null);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, http_methods_decorators_1.POST)(),
|
|
262
|
+
__param(0, (0, http_params_decorators_1.Body)())
|
|
263
|
+
], BaseCrudController.prototype, "bulkCreate", null);
|
|
264
|
+
exports.BaseCrudController = BaseCrudController = __decorate([
|
|
265
|
+
(0, controller_decorator_1.TaonController)({ className: 'BaseCrudController' })
|
|
266
|
+
], BaseCrudController);
|
|
385
267
|
//# sourceMappingURL=base-crud-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":[""],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/taon/src/lib/base-classes/base-crud-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iBAAiB;AACjB,wCAAqC;AACrC,uDAAmD;AAEnD,wFAOoD;AACpD,sFAA8E;AAG9E,uCAAsC;AACtC,qFAGoD;AACpD,4DAAwD;AAExD,8CAA2C;AAE3C,YAAY;AAEZ;;GAEG;AAEI,IAAe,kBAAkB,GAAjC,MAAe,kBAA2B,SAAQ,gCAAc;IACrE,gBAAgB;IACN,EAAE,CAAyB;IAQrC,YAAY;IAEZ,cAAc;IACd,KAAK,CAAC,CAAC;QACL,IAAI,CAAC,YAAC,CAAC,UAAU,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC7C,kBAAO,CAAC,IAAI,CACV,oCAAoC,4BAAY,CAAC,OAAO,CACtD,IAAI,CACL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