taon 19.0.31 → 19.0.33

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.
Files changed (62) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/ui/index.js +2 -2
  6. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  7. package/package.json +1 -1
  8. package/websql/package.json +1 -1
  9. package/lib/base-classes/base-repository copy.d.ts +0 -255
  10. package/lib/base-classes/base-repository copy.js +0 -653
  11. package/lib/base-classes/base-repository copy.js.map +0 -1
  12. package/lib/ui/directives/index.d.ts +0 -3
  13. package/lib/ui/directives/index.js +0 -5
  14. package/lib/ui/directives/index.js.map +0 -1
  15. package/lib/ui/directives/safe.pipe.d.ts +0 -7
  16. package/lib/ui/directives/taon-inject-html.directive.d.ts +0 -6
  17. package/lib/ui/directives/taon-long-press.directive.d.ts +0 -22
  18. package/lib/ui/directives/view-mode.d.ts +0 -5
  19. package/lib/ui/directives/view-mode.js +0 -10
  20. package/lib/ui/directives/view-mode.js.map +0 -1
  21. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -43
  22. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -5
  23. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +0 -3
  24. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +0 -1
  25. package/lib/ui/taon-full-material.module.d.ts +0 -5
  26. package/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -2
  27. package/lib/ui/taon-github-fork-me-corner/index.js +0 -5
  28. package/lib/ui/taon-github-fork-me-corner/index.js.map +0 -1
  29. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -3
  30. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -2
  31. package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +0 -2
  32. package/lib/ui/taon-github-fork-me-ribbon/index.js +0 -5
  33. package/lib/ui/taon-github-fork-me-ribbon/index.js.map +0 -1
  34. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +0 -3
  35. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +0 -2
  36. package/lib/ui/taon-notifications/index.d.ts +0 -4
  37. package/lib/ui/taon-notifications/index.js +0 -24
  38. package/lib/ui/taon-notifications/index.js.map +0 -1
  39. package/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -9
  40. package/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -6
  41. package/lib/ui/taon-notifications/taon-notifications.models.js +0 -5
  42. package/lib/ui/taon-notifications/taon-notifications.models.js.map +0 -1
  43. package/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -2
  44. package/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -11
  45. package/lib/ui/taon-progress-bar/index.d.ts +0 -2
  46. package/lib/ui/taon-progress-bar/index.js +0 -5
  47. package/lib/ui/taon-progress-bar/index.js.map +0 -1
  48. package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -13
  49. package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -2
  50. package/lib/ui/taon-session-passcode/index.d.ts +0 -1
  51. package/lib/ui/taon-session-passcode/index.js +0 -5
  52. package/lib/ui/taon-session-passcode/index.js.map +0 -1
  53. package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -35
  54. package/lib/ui/taon-table/index.d.ts +0 -2
  55. package/lib/ui/taon-table/index.js +0 -5
  56. package/lib/ui/taon-table/index.js.map +0 -1
  57. package/lib/ui/taon-table/taon-table.component.d.ts +0 -34
  58. package/lib/ui/taon-table/taon-table.module.d.ts +0 -2
  59. package/lib/ui/taon.models.d.ts +0 -11
  60. package/lib/ui/taon.models.js +0 -3
  61. package/lib/ui/taon.models.js.map +0 -1
  62. package/tmp-environment.json +0 -39
@@ -1,653 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.BaseRepository = void 0;
10
- const lib_1 = require("tnp-core/lib");
11
- const lib_2 = require("tnp-core/lib");
12
- const class_helpers_1 = require("../helpers/class-helpers");
13
- const lib_3 = require("taon-type-sql/lib");
14
- const repository_decorator_1 = require("../decorators/classes/repository-decorator");
15
- const base_injector_1 = require("./base-injector");
16
- //#endregion
17
- const INDEX_KEYS_NO_FOR_UPDATE = ['id'];
18
- let BaseRepository = class BaseRepository extends base_injector_1.BaseInjector {
19
- __entityClassResolveFn;
20
- constructor(
21
- // Injected through BaseCrudController
22
- __entityClassResolveFn) {
23
- super();
24
- this.__entityClassResolveFn = __entityClassResolveFn;
25
- // @ts-ignore
26
- this.entityClassResolveFn = __entityClassResolveFn;
27
- }
28
- //#endregion
29
- //#region db query
30
- __dbQuery;
31
- get dbQuery() {
32
- //#region @websqlFunc
33
- if (!this.__dbQuery) {
34
- if (!this.ctx) {
35
- return; // TODO
36
- throw new Error(`[BaseRepository] Context not inited for class ${class_helpers_1.ClassHelpers.getName(this)}`);
37
- }
38
- const connection = this.ctx?.connection;
39
- if (!connection) {
40
- throw new Error(`[BaseRepository] Database not inited for context ${this.ctx?.contextName}`);
41
- }
42
- this.__dbQuery = new lib_3.MySqlQuerySource(connection);
43
- }
44
- return this.__dbQuery;
45
- //#endregion
46
- }
47
- //#endregion
48
- //#region connection
49
- get connection() {
50
- //#region @websqlFunc
51
- return this.ctx?.connection;
52
- //#endregion
53
- }
54
- //#endregion
55
- //#region repository
56
- //#region @websql
57
- __repository;
58
- //#endregion
59
- get repository() {
60
- //#region @websqlFunc
61
- return this.__repository;
62
- //#endregion
63
- }
64
- /**
65
- * target for repository
66
- */
67
- get target() {
68
- //#region @websqlFunc
69
- return this?.repository?.target;
70
- //#endregion
71
- }
72
- /**
73
- * alias to repository
74
- */
75
- get repo() {
76
- //#region @websqlFunc
77
- return this.repository;
78
- //#endregion
79
- }
80
- get repositoryExists() {
81
- //#region @websqlFunc
82
- return !!this.__repository;
83
- //#endregion
84
- }
85
- //#endregion
86
- //#region init
87
- async __init(context) {
88
- //#region @websql
89
- console.log(`Initializing repository for ${class_helpers_1.ClassHelpers.getName(this)}`);
90
- if (this.__repository) {
91
- return;
92
- }
93
- let entityClassFn = this.entityClassResolveFn();
94
- if (!entityClassFn) {
95
- lib_1.Helpers.warn(`Entity class not provided for repository ${class_helpers_1.ClassHelpers.getName(this)}`);
96
- return;
97
- }
98
- const ctx = this.__endpoint_context__;
99
- if (ctx.remoteHost) {
100
- return;
101
- }
102
- const connection = ctx.connection;
103
- if (!connection) {
104
- throw new Error(`
105
-
106
- Connection not found for context ${ctx.contextName}
107
-
108
-
109
- Maybe you forgot to init database ?
110
-
111
- Taon.createContext({
112
- ...
113
- database:true
114
- ...
115
- })
116
-
117
- `);
118
- }
119
- if (!entityClassFn) {
120
- lib_1.Helpers.warn(`Entity class not found for repository ${class_helpers_1.ClassHelpers.getName(this)}`);
121
- return;
122
- }
123
- this.__repository = (await connection.getRepository(class_helpers_1.ClassHelpers.getOrginalClass(entityClassFn)));
124
- // console.log(
125
- // `Inited repository for (${ClassHelpers.getName(this)}/` +
126
- // `${ClassHelpers.getName(entityClassFn)}/${ClassHelpers.getName(context)}`,
127
- // this.repository,
128
- // );
129
- //#endregion
130
- }
131
- //#endregion
132
- //#region crud operations / typeorm / has id
133
- /**
134
- * Checks if entity has an id.
135
- * If entity composite compose ids, it will check them all.
136
- */
137
- hasId(entity) {
138
- return this.repo.hasId(entity);
139
- }
140
- //#endregion
141
- //#region crud operations / typeorm / get id
142
- /**
143
- * Gets entity mixed id.
144
- */
145
- getId(entity) {
146
- return this.repo.getId(entity);
147
- }
148
- //#endregion
149
- //#region crud operations / typeorm / create & bulk create
150
- /**
151
- Saves a given entity in the database.
152
- * If entity does not exist in the database then inserts, otherwise updates.
153
- */
154
- async save(item, options) {
155
- //#region @websqlFunc
156
- if (!this.repo) {
157
- debugger;
158
- }
159
- let model = await this.repo.create(item);
160
- model = await this.repo.save(model, options);
161
- const { id } = model;
162
- model = await this.repo.findOne({
163
- where: { id },
164
- });
165
- return model;
166
- //#endregion
167
- }
168
- /**
169
- * alias to save
170
- * -> it will actuall create new entity in db
171
- * in oposite to typeorm create method
172
- */
173
- async create(item, options) {
174
- return this.save(item, options);
175
- }
176
- async bulkSave(items, options) {
177
- //#region @websqlFunc
178
- const models = [];
179
- for (let index = 0; index < items.length; index++) {
180
- const item = items[index];
181
- // TODO FIX THIS / REFACTOR
182
- const model = await this.save(item, options);
183
- models.push(model);
184
- }
185
- return models;
186
- //#endregion
187
- }
188
- async bulkCreate(items, options) {
189
- return this.bulkSave(items, options);
190
- }
191
- //#region old typeorm version
192
- // /**
193
- // * Creates a new entity instance.
194
- // */
195
- // create(): Entity;
196
- // /**
197
- // * Creates new entities and copies all entity properties from given objects into their new entities.
198
- // * Note that it copies only properties that are present in entity schema.
199
- // */
200
- // create(entityLikeArray: Entity[]): Entity[];
201
- // /**
202
- // * Creates a new entity instance and copies all entity properties from this object into a new entity.
203
- // * Note that it copies only properties that are present in entity schema.
204
- // */
205
- // create(entityLike: Entity): Entity;
206
- /**
207
- * Saves all given entities in the database.
208
- * If entities do not exist in the database then inserts, otherwise updates.
209
- */
210
- // save<T extends DeepPartial<Entity>>(
211
- // entities: T[],
212
- // options: SaveOptions & {
213
- // reload: false;
214
- // },
215
- // ): Promise<T[]>;
216
- // /**
217
- // * Saves all given entities in the database.
218
- // * If entities do not exist in the database then inserts, otherwise updates.
219
- // */
220
- // save<T extends DeepPartial<Entity>>(
221
- // entities: T[],
222
- // options?: SaveOptions,
223
- // ): Promise<(T & Entity)[]>;
224
- // /**
225
- // * Saves a given entity in the database.
226
- // * If entity does not exist in the database then inserts, otherwise updates.
227
- // */
228
- // save<T extends DeepPartial<Entity>>(
229
- // entity: T,
230
- // options: SaveOptions & {
231
- // reload: false;
232
- // },
233
- // ): Promise<T>;
234
- // /**
235
- // * Saves a given entity in the database.
236
- // * If entity does not exist in the database then inserts, otherwise updates.
237
- // */
238
- // save<T extends DeepPartial<Entity>>(
239
- // entity: T,
240
- // options?: SaveOptions,
241
- // ): Promise<T & Entity> {
242
- // return this.repo.save(entity, options);
243
- // }
244
- //#endregion
245
- //#endregion
246
- //#region crud operations / typeorm / merge
247
- /**
248
- * Merges multiple entities (or entity-like objects) into a given entity.
249
- */
250
- merge(mergeIntoEntity, ...entityLikes) {
251
- return this.repo.merge(mergeIntoEntity, ...entityLikes);
252
- }
253
- //#endregion
254
- //#region crud operations / typeorm / preload
255
- /**
256
- * Creates a new entity from the given plain javascript object. If entity already exist in the database, then
257
- * it loads it (and everything related to it), replaces all values with the new ones from the given object
258
- * and returns this new entity. This new entity is actually a loaded from the db entity with all properties
259
- * replaced from the new object.
260
- *
261
- * Note that given entity-like object must have an entity id / primary key to find entity by.
262
- * Returns undefined if entity with given id was not found.
263
- */
264
- preload(entityLike) {
265
- return this.repo.preload(entityLike);
266
- }
267
- //#endregion
268
- //#region crud operations / typeorm / remove (delete) & bulk remove (delete)
269
- /**
270
- * Removes a given entities from the database.
271
- */
272
- async remove(idOrEntity) {
273
- //#region @websqlFunc
274
- if (lib_2._.isObject(idOrEntity)) {
275
- idOrEntity = idOrEntity.id;
276
- }
277
- const deletedEntity = await this.repo.findOne({
278
- where: { id: idOrEntity },
279
- });
280
- const idCopy = deletedEntity.id;
281
- await this.repo.remove(deletedEntity);
282
- deletedEntity.id = idCopy;
283
- return deletedEntity;
284
- //#endregion
285
- }
286
- /**
287
- * alias to remove
288
- */
289
- async delete(idOrEntity) {
290
- return this.remove(idOrEntity);
291
- }
292
- /**
293
- * alias to removeById
294
- */
295
- async deleteById(id) {
296
- return this.remove(id);
297
- }
298
- async bulkRemove(idsOrEntities) {
299
- //#region @websqlFunc
300
- idsOrEntities = idsOrEntities.map(id => {
301
- return lib_2._.isObject(id) ? id.id : id;
302
- });
303
- const models = [];
304
- for (let index = 0; index < idsOrEntities.length; index++) {
305
- const id = idsOrEntities[index];
306
- const model = await this.remove(id);
307
- models.push(model);
308
- }
309
- return models;
310
- //#endregion
311
- }
312
- async bulkDelete(ids) {
313
- return this.bulkRemove(ids);
314
- }
315
- /**
316
- * Records the delete date of a given entity.
317
- */
318
- softRemove(entity, options) {
319
- return this.repo.softRemove(entity, options);
320
- }
321
- /**
322
- * Recovers a given entity in the database.
323
- */
324
- recover(entity, options) {
325
- return this.repo.recover(entity, options);
326
- }
327
- //#endregion
328
- //#region crud operations / typeorm / insert
329
- /**
330
- * Inserts a given entity into the database.
331
- * Unlike save method executes a primitive operation without cascades, relations and other operations included.
332
- * Executes fast and efficient INSERT query.
333
- * Does not check if entity exist in the database, so query will fail if duplicate entity is being inserted.
334
- */
335
- insert(entity) {
336
- return this.repo.insert(entity);
337
- }
338
- //#endregion
339
- //#region crud operations / typeorm / update & build update
340
- async update(item) {
341
- //#region @websqlFunc
342
- const { id } = item;
343
- return await this.updateById(id, item);
344
- //#endregion
345
- }
346
- allowedTypesToUpdate = ['simple-json', 'simple-array', 'json'];
347
- async updateById(id, item) {
348
- //#region @websqlFunc
349
- const allowedPropsToUpdate = [];
350
- for (const key in item) {
351
- const metadataColumn = this.repo.metadata.ownColumns.find(c => c.propertyName === key);
352
- if (lib_2._.isObject(item) &&
353
- item.hasOwnProperty(key) &&
354
- (typeof item[key] !== 'object' ||
355
- this.allowedTypesToUpdate.includes(metadataColumn?.type)) &&
356
- !lib_2._.isUndefined(metadataColumn)) {
357
- allowedPropsToUpdate.push(key);
358
- }
359
- }
360
- for (let i = 0; i < allowedPropsToUpdate.length; i++) {
361
- const key = allowedPropsToUpdate[i];
362
- if (!INDEX_KEYS_NO_FOR_UPDATE.includes(key.toLowerCase())) {
363
- // const raw = _.isBoolean(item[key]) || _.isNumber(item[key]) || _.isNull(item[key]); // TODO does this make any sense ?
364
- const toSet = item[key];
365
- // const tableName = tableNameFrom(this.entity as any);
366
- await this.repo.update({
367
- id,
368
- }, {
369
- [key]: toSet,
370
- });
371
- // await this.repo.query(
372
- // `UPDATE '${tableName}' as ${table}
373
- // SET ${key}=${toSet}
374
- // WHERE ${table}.id='${id}'
375
- // `);
376
- }
377
- }
378
- let model = await this.repo.findOne({
379
- where: { id },
380
- });
381
- return model;
382
- //#endregion
383
- }
384
- async bulkUpdate(items) {
385
- //#region @websqlFunc
386
- const models = [];
387
- for (let index = 0; index < items.length; index++) {
388
- const item = items[index];
389
- const { id } = item; // TOOD
390
- const model = await this.updateById(id, item);
391
- models.push(model);
392
- }
393
- return { models };
394
- //#endregion
395
- }
396
- //#region tpeorm update version
397
- // this version suck and will not return update entity
398
- // /**
399
- // * Updates entity partially. Entity can be found by a given conditions.
400
- // * Unlike save method executes a primitive operation without cascades, relations and other operations included.
401
- // * Executes fast and efficient UPDATE query.
402
- // * Does not check if entity exist in the database.
403
- // */
404
- // update(
405
- // criteria:
406
- // | string
407
- // | string[]
408
- // | number
409
- // | number[]
410
- // | Date
411
- // | Date[]
412
- // | ObjectID
413
- // | ObjectID[]
414
- // | FindOptionsWhere<Entity>,
415
- // partialEntity: QueryDeepPartialEntity<Entity>,
416
- // ): Promise<UpdateResult> {
417
- // return this.repo.update(criteria, partialEntity);
418
- // }
419
- //#endregion
420
- //#endregion
421
- //#region crud operations / typeorm / upsert
422
- /**
423
- * Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
424
- * Unlike save method executes a primitive operation without cascades, relations and other operations included.
425
- * Executes fast and efficient INSERT ... ON CONFLICT DO UPDATE/ON DUPLICATE KEY UPDATE query.
426
- */
427
- upsert(entityOrEntities, conflictPathsOrOptions) {
428
- return this.repo.upsert(entityOrEntities, conflictPathsOrOptions);
429
- }
430
- //#endregion
431
- //#region crud operations / typeorm / soft delete
432
- /**
433
- * Records the delete date of entities by a given criteria.
434
- * Unlike save method executes a primitive operation without cascades, relations and other operations included.
435
- * Executes fast and efficient SOFT-DELETE query.
436
- * Does not check if entity exist in the database.
437
- */
438
- softDelete(criteria) {
439
- return this.repo.softDelete(criteria);
440
- }
441
- //#endregion
442
- //#region crud operations / typeorm / restore
443
- /**
444
- * Restores entities by a given criteria.
445
- * Unlike save method executes a primitive operation without cascades, relations and other operations included.
446
- * Executes fast and efficient SOFT-DELETE query.
447
- * Does not check if entity exist in the database.
448
- */
449
- restore(criteria) {
450
- return this.repo.restore(criteria);
451
- }
452
- //#endregion
453
- //#region crud operations / typeorm / count
454
- /**
455
- * Counts entities that match given options.
456
- * Useful for pagination.
457
- */
458
- count(options) {
459
- return this.repo.count(options);
460
- }
461
- //#endregion
462
- //#region crud operations / typeorm / count by
463
- /**
464
- * Counts entities that match given conditions.
465
- * Useful for pagination.
466
- */
467
- countBy(where) {
468
- return this.repo.countBy(where);
469
- }
470
- //#endregion
471
- //#region crud operations / typeorm / find
472
- /**
473
- * Finds entities that match given find options.
474
- */
475
- find(options) {
476
- return this.repo.find(options);
477
- }
478
- //#endregion
479
- //#region crud operations / typeorm / find by
480
- /**
481
- * Finds entities that match given find options.
482
- */
483
- findBy(where) {
484
- return this.repo.findBy(where);
485
- }
486
- //#endregion
487
- //#region crud operations / typeorm / find and count
488
- // async findAndCount(options: { take: number; skip: number }) {
489
- // const { take, skip } = options;
490
- // const [result, total] = await this.repo.findAndCount({
491
- // // where: { name: Like('%' + keyword + '%') },
492
- // // order: { name: "DESC" },
493
- // take: take,
494
- // skip: skip,
495
- // });
496
- // return { result, total };
497
- // }
498
- //
499
- /**
500
- * Finds entities that match given find options.
501
- * Also counts all entities that match given conditions,
502
- * but ignores pagination settings (from and take options).
503
- */
504
- findAndCount(options) {
505
- return this.repo.findAndCount(options);
506
- }
507
- //#endregion
508
- //#region crud operations / typeorm / find and count by
509
- /**
510
- * Finds entities that match given WHERE conditions.
511
- * Also counts all entities that match given conditions,
512
- * but ignores pagination settings (from and take options).
513
- */
514
- findAndCountBy(where) {
515
- return this.repo.findAndCountBy(where);
516
- }
517
- //#endregion
518
- //#region crud operations / typeorm / find by ids
519
- /**
520
- * Finds entities with ids.
521
- * Optionally find options or conditions can be applied.
522
- *
523
- * @deprecated use `findBy` method instead in conjunction with `In` operator, for example:
524
- *
525
- * .findBy({
526
- * id: In([1, 2, 3])
527
- * })
528
- */
529
- findByIds(ids) {
530
- return this.repo.findByIds(ids);
531
- }
532
- //#endregion
533
- //#region crud operations / typeorm / find one
534
- /**
535
- * Finds first entity by a given find options.
536
- * If entity was not found in the database - returns null.
537
- */
538
- findOne(options) {
539
- return this.repo.findOne(options);
540
- }
541
- //#endregion
542
- //#region crud operations / typeorm / find one by
543
- /**
544
- * Finds first entity that matches given where condition.
545
- * If entity was not found in the database - returns null.
546
- */
547
- findOneBy(where) {
548
- return this.repo.findOneBy(where);
549
- }
550
- //#endregion
551
- //#region crud operations / typeorm / find one or fail
552
- /**
553
- * Finds first entity that matches given id.
554
- * If entity was not found in the database - returns null.
555
- *
556
- * @deprecated use `findOneBy` method instead in conjunction with `In` operator, for example:
557
- *
558
- * .findOneBy({
559
- * id: 1 // where "id" is your primary column name
560
- * })
561
- */
562
- findOneById(id) {
563
- return this.repo.findOneById(id);
564
- }
565
- //#endregion
566
- //#region crud operations / typeorm / find one or fail
567
- /**
568
- * Finds first entity by a given find options.
569
- * If entity was not found in the database - rejects with error.
570
- */
571
- findOneOrFail(options) {
572
- return this.repo.findOneOrFail(options);
573
- }
574
- //#endregion
575
- //#region crud operations / typeorm / find one by or fail
576
- /**
577
- * Finds first entity that matches given where condition.
578
- * If entity was not found in the database - rejects with error.
579
- */
580
- findOneByOrFail(where) {
581
- return this.repo.findOneByOrFail(where);
582
- }
583
- //#endregion
584
- //#region crud operations / typeorm / query
585
- /**
586
- * Executes a raw SQL query and returns a raw database results.
587
- * Raw query execution is supported only by relational databases (MongoDB is not supported).
588
- */
589
- query(query, parameters) {
590
- return this.repo.query(query, parameters);
591
- }
592
- //#endregion
593
- //#region crud operations / typeorm / clear
594
- /**
595
- * Clears all the data from the given table/collection (truncates/drops it).
596
- *
597
- * Note: this method uses TRUNCATE and may not work as you expect in transactions on some platforms.
598
- * @see https://stackoverflow.com/a/5972738/925151
599
- */
600
- clear() {
601
- return this.repo.clear();
602
- }
603
- //#endregion
604
- //#region crud operations / typeorm / increment
605
- /**
606
- * Increments some column by provided value of the entities matched given conditions.
607
- */
608
- increment(conditions, propertyPath, value) {
609
- return this.repo.increment(conditions, propertyPath, value);
610
- }
611
- //#endregion
612
- //#region crud operations / typeorm / decrement
613
- /**
614
- * Decrements some column by provided value of the entities matched given conditions.
615
- */
616
- decrement(conditions, propertyPath, value) {
617
- return this.repo.decrement(conditions, propertyPath, value);
618
- }
619
- //#endregion
620
- //#region crud operations / get all
621
- /**
622
- * @deprecated use findAndCount instead
623
- */
624
- async getAll() {
625
- //#region @websqlFunc
626
- // console.log('repo', this.__repository);
627
- // console.log(
628
- // `repo taget name "${ClassHelpers.getName(this.__repository.target)}"`,
629
- // );
630
- // debugger;
631
- const totalCount = await this.repo.count();
632
- const models = await this.repo.find();
633
- // console.log('models', models);
634
- // console.log('totalCount', totalCount);
635
- return { models, totalCount };
636
- //#endregion
637
- }
638
- //#endregion
639
- //#region crud operations / get by id
640
- async getBy(id) {
641
- //#region @websqlFunc
642
- const model = await await this.repo.findOne({
643
- where: { id },
644
- });
645
- return model;
646
- //#endregion
647
- }
648
- };
649
- exports.BaseRepository = BaseRepository;
650
- exports.BaseRepository = BaseRepository = __decorate([
651
- (0, repository_decorator_1.TaonRepository)({ className: 'BaseRepository' })
652
- ], BaseRepository);
653
- //# sourceMappingURL=base-repository copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-repository copy.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-repository copy.ts"],"names":[],"mappings":";;;;;;;;;AAwBA,sCAAuC;AACvC,sCAAiC;AACjC,4DAAwD;AACxD,2CAAqD;AACrD,qFAA4E;AAC5E,mDAA+C;AAE/C,YAAY;AAEZ,MAAM,wBAAwB,GAAG,CAAC,IAAI,CAAC,CAAC;AAGjC,IAAe,cAAc,GAA7B,MAAe,cAEpB,SAAQ,4BAAY;IAUV;IAFV;IACE,sCAAsC;IAC9B,sBAAiC;QAEzC,KAAK,EAAE,CAAC;QAFA,2BAAsB,GAAtB,sBAAsB,CAAW;QAGzC,aAAa;QACb,IAAI,CAAC,oBAAoB,GAAG,sBAAsB,CAAC;IACrD,CAAC;IACD,YAAY;IAEZ,kBAAkB;IACV,SAAS,CAAmB;IAEpC,IAAW,OAAO;QAChB,qBAAqB;QACrB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACd,OAAO,CAAC,OAAO;gBACf,MAAM,IAAI,KAAK,CACb,iDAAiD,4BAAY,CAAC,OAAO,CACnE,IAAI,CACL,EAAE,CACJ,CAAC;YACJ,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC;YACxC,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,MAAM,IAAI,KAAK,CACb,oDAAoD,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,CAC5E,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAgB,CAAC,UAAU,CAAC,CAAC;QACpD,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;QACtB,YAAY;IACd,CAAC;IACD,YAAY;IAEZ,oBAAoB;IACpB,IAA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AAE,EAAE,EAAS;SACrB,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;QACb,YAAY;IACd,CAAC;CAEF,CAAA;AAj4BqB,wCAAc;yBAAd,cAAc;IADnC,IAAA,qCAAc,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;GAC1B,cAAc,CAi4BnC"}
@@ -1,3 +0,0 @@
1
- export * from './taon-long-press.directive';
2
- export * from './taon-inject-html.directive';
3
- export * from './safe.pipe';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1747947514664 = dummy1747947514664;
4
- function dummy1747947514664() { }
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/ui/directives/index.ts"],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}