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.
- package/browser/package.json +1 -1
- package/client/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +1 -1
- package/websql/package.json +1 -1
- package/lib/base-classes/base-repository copy.d.ts +0 -255
- package/lib/base-classes/base-repository copy.js +0 -653
- package/lib/base-classes/base-repository copy.js.map +0 -1
- package/lib/ui/directives/index.d.ts +0 -3
- package/lib/ui/directives/index.js +0 -5
- package/lib/ui/directives/index.js.map +0 -1
- package/lib/ui/directives/safe.pipe.d.ts +0 -7
- package/lib/ui/directives/taon-inject-html.directive.d.ts +0 -6
- package/lib/ui/directives/taon-long-press.directive.d.ts +0 -22
- package/lib/ui/directives/view-mode.d.ts +0 -5
- package/lib/ui/directives/view-mode.js +0 -10
- package/lib/ui/directives/view-mode.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -43
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -5
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +0 -3
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +0 -1
- package/lib/ui/taon-full-material.module.d.ts +0 -5
- package/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +0 -5
- package/lib/ui/taon-github-fork-me-corner/index.js.map +0 -1
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -3
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +0 -5
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +0 -1
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +0 -3
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +0 -2
- package/lib/ui/taon-notifications/index.d.ts +0 -4
- package/lib/ui/taon-notifications/index.js +0 -24
- package/lib/ui/taon-notifications/index.js.map +0 -1
- package/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -9
- package/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -6
- package/lib/ui/taon-notifications/taon-notifications.models.js +0 -5
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +0 -1
- package/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -2
- package/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -11
- package/lib/ui/taon-progress-bar/index.d.ts +0 -2
- package/lib/ui/taon-progress-bar/index.js +0 -5
- package/lib/ui/taon-progress-bar/index.js.map +0 -1
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -13
- package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -2
- package/lib/ui/taon-session-passcode/index.d.ts +0 -1
- package/lib/ui/taon-session-passcode/index.js +0 -5
- package/lib/ui/taon-session-passcode/index.js.map +0 -1
- package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -35
- package/lib/ui/taon-table/index.d.ts +0 -2
- package/lib/ui/taon-table/index.js +0 -5
- package/lib/ui/taon-table/index.js.map +0 -1
- package/lib/ui/taon-table/taon-table.component.d.ts +0 -34
- package/lib/ui/taon-table/taon-table.module.d.ts +0 -2
- package/lib/ui/taon.models.d.ts +0 -11
- package/lib/ui/taon.models.js +0 -3
- package/lib/ui/taon.models.js.map +0 -1
- package/tmp-environment.json +0 -39
package/browser/package.json
CHANGED
package/client/package.json
CHANGED
|
@@ -4,6 +4,6 @@ exports.CURRENT_PACKAGE_VERSION = exports.PROJECT_NPM_NAME = exports.BUILD_FRAME
|
|
|
4
4
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
5
5
|
exports.BUILD_FRAMEWORK_CLI_NAME = 'tnp';
|
|
6
6
|
exports.PROJECT_NPM_NAME = 'taon';
|
|
7
|
-
exports.CURRENT_PACKAGE_VERSION = '19.0.
|
|
7
|
+
exports.CURRENT_PACKAGE_VERSION = '19.0.33';
|
|
8
8
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
9
9
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
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.dummy1749166682128 = dummy1749166682128;
|
|
4
|
+
function dummy1749166682128() { }
|
|
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.dummy1749166682922 = dummy1749166682922;
|
|
4
|
+
function dummy1749166682922() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/websql/package.json
CHANGED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm';
|
|
2
|
-
import type { QueryDeepPartialEntity } from 'taon-typeorm/lib/typeorm/query-builder/QueryPartialEntity';
|
|
3
|
-
import type { UpsertOptions } from 'taon-typeorm/lib/typeorm/repository/UpsertOptions';
|
|
4
|
-
import type { DataSource as DataSourceType } from 'taon-typeorm';
|
|
5
|
-
import { MySqlQuerySource } from 'taon-type-sql';
|
|
6
|
-
import { BaseInjector } from './base-injector';
|
|
7
|
-
export declare abstract class BaseRepository<Entity extends {
|
|
8
|
-
id?: any;
|
|
9
|
-
}> extends BaseInjector {
|
|
10
|
-
private __entityClassResolveFn;
|
|
11
|
-
abstract entityClassResolveFn: () => any;
|
|
12
|
-
constructor(__entityClassResolveFn: () => any);
|
|
13
|
-
private __dbQuery;
|
|
14
|
-
get dbQuery(): MySqlQuerySource;
|
|
15
|
-
get connection(): DataSourceType;
|
|
16
|
-
private __repository;
|
|
17
|
-
protected get repository(): Repository<Entity>;
|
|
18
|
-
/**
|
|
19
|
-
* target for repository
|
|
20
|
-
*/
|
|
21
|
-
get target(): Function;
|
|
22
|
-
/**
|
|
23
|
-
* alias to repository
|
|
24
|
-
*/
|
|
25
|
-
protected get repo(): Repository<Entity>;
|
|
26
|
-
get repositoryExists(): boolean;
|
|
27
|
-
__init(context?: any): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Checks if entity has an id.
|
|
30
|
-
* If entity composite compose ids, it will check them all.
|
|
31
|
-
*/
|
|
32
|
-
hasId(entity: Entity): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Gets entity mixed id.
|
|
35
|
-
*/
|
|
36
|
-
getId(entity: Entity): any;
|
|
37
|
-
/**
|
|
38
|
-
Saves a given entity in the database.
|
|
39
|
-
* If entity does not exist in the database then inserts, otherwise updates.
|
|
40
|
-
*/
|
|
41
|
-
save(item: Entity, options?: SaveOptions & {
|
|
42
|
-
reload: false;
|
|
43
|
-
}): Promise<Entity>;
|
|
44
|
-
/**
|
|
45
|
-
* alias to save
|
|
46
|
-
* -> it will actuall create new entity in db
|
|
47
|
-
* in oposite to typeorm create method
|
|
48
|
-
*/
|
|
49
|
-
create(item: Entity, options?: SaveOptions & {
|
|
50
|
-
reload: false;
|
|
51
|
-
}): Promise<Entity>;
|
|
52
|
-
bulkSave(items: Entity[], options?: SaveOptions & {
|
|
53
|
-
reload: false;
|
|
54
|
-
}): Promise<Entity[]>;
|
|
55
|
-
bulkCreate(items: Entity[], options?: SaveOptions & {
|
|
56
|
-
reload: false;
|
|
57
|
-
}): Promise<Entity[]>;
|
|
58
|
-
/**
|
|
59
|
-
* Saves all given entities in the database.
|
|
60
|
-
* If entities do not exist in the database then inserts, otherwise updates.
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Merges multiple entities (or entity-like objects) into a given entity.
|
|
64
|
-
*/
|
|
65
|
-
merge(mergeIntoEntity: Entity, ...entityLikes: Entity[]): Entity;
|
|
66
|
-
/**
|
|
67
|
-
* Creates a new entity from the given plain javascript object. If entity already exist in the database, then
|
|
68
|
-
* it loads it (and everything related to it), replaces all values with the new ones from the given object
|
|
69
|
-
* and returns this new entity. This new entity is actually a loaded from the db entity with all properties
|
|
70
|
-
* replaced from the new object.
|
|
71
|
-
*
|
|
72
|
-
* Note that given entity-like object must have an entity id / primary key to find entity by.
|
|
73
|
-
* Returns undefined if entity with given id was not found.
|
|
74
|
-
*/
|
|
75
|
-
preload(entityLike: Entity): Promise<Entity | undefined>;
|
|
76
|
-
/**
|
|
77
|
-
* Removes a given entities from the database.
|
|
78
|
-
*/
|
|
79
|
-
remove(idOrEntity: number | string | Entity): Promise<Entity>;
|
|
80
|
-
/**
|
|
81
|
-
* alias to remove
|
|
82
|
-
*/
|
|
83
|
-
delete(idOrEntity: number | string | Entity): Promise<Entity>;
|
|
84
|
-
/**
|
|
85
|
-
* alias to removeById
|
|
86
|
-
*/
|
|
87
|
-
deleteById(id: number | string): Promise<Entity>;
|
|
88
|
-
bulkRemove(idsOrEntities: (number | string | Entity)[]): Promise<Entity[]>;
|
|
89
|
-
bulkDelete(ids: (number | string | Entity)[]): Promise<Entity[]>;
|
|
90
|
-
/**
|
|
91
|
-
* Records the delete date of all given entities.
|
|
92
|
-
*/
|
|
93
|
-
softRemove<T extends Entity>(entities: T[], options: SaveOptions & {
|
|
94
|
-
reload: false;
|
|
95
|
-
}): Promise<T[]>;
|
|
96
|
-
/**
|
|
97
|
-
* Records the delete date of all given entities.
|
|
98
|
-
*/
|
|
99
|
-
softRemove<T extends Entity>(entities: T[], options?: SaveOptions): Promise<(T & Entity)[]>;
|
|
100
|
-
/**
|
|
101
|
-
* Records the delete date of a given entity.
|
|
102
|
-
*/
|
|
103
|
-
softRemove<T extends Entity>(entity: T, options: SaveOptions & {
|
|
104
|
-
reload: false;
|
|
105
|
-
}): Promise<T>;
|
|
106
|
-
/**
|
|
107
|
-
* Recovers all given entities in the database.
|
|
108
|
-
*/
|
|
109
|
-
recover<T extends Entity>(entities: T[], options: SaveOptions & {
|
|
110
|
-
reload: false;
|
|
111
|
-
}): Promise<T[]>;
|
|
112
|
-
/**
|
|
113
|
-
* Recovers all given entities in the database.
|
|
114
|
-
*/
|
|
115
|
-
recover<T extends Entity>(entities: T[], options?: SaveOptions): Promise<(T & Entity)[]>;
|
|
116
|
-
/**
|
|
117
|
-
* Recovers a given entity in the database.
|
|
118
|
-
*/
|
|
119
|
-
recover<T extends Entity>(entity: T, options: SaveOptions & {
|
|
120
|
-
reload: false;
|
|
121
|
-
}): Promise<T>;
|
|
122
|
-
/**
|
|
123
|
-
* Inserts a given entity into the database.
|
|
124
|
-
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
125
|
-
* Executes fast and efficient INSERT query.
|
|
126
|
-
* Does not check if entity exist in the database, so query will fail if duplicate entity is being inserted.
|
|
127
|
-
*/
|
|
128
|
-
insert(entity: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[]): Promise<InsertResult>;
|
|
129
|
-
update(item: Entity): Promise<Entity>;
|
|
130
|
-
private allowedTypesToUpdate;
|
|
131
|
-
updateById<ENTITY = Entity>(id: number | string, item: Entity): Promise<ENTITY>;
|
|
132
|
-
bulkUpdate(items: Entity[]): Promise<{
|
|
133
|
-
models: any[];
|
|
134
|
-
}>;
|
|
135
|
-
/**
|
|
136
|
-
* Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
|
|
137
|
-
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
138
|
-
* Executes fast and efficient INSERT ... ON CONFLICT DO UPDATE/ON DUPLICATE KEY UPDATE query.
|
|
139
|
-
*/
|
|
140
|
-
upsert(entityOrEntities: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[], conflictPathsOrOptions: string[] | UpsertOptions<Entity>): Promise<InsertResult>;
|
|
141
|
-
/**
|
|
142
|
-
* Records the delete date of entities by a given criteria.
|
|
143
|
-
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
144
|
-
* Executes fast and efficient SOFT-DELETE query.
|
|
145
|
-
* Does not check if entity exist in the database.
|
|
146
|
-
*/
|
|
147
|
-
softDelete(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
148
|
-
/**
|
|
149
|
-
* Restores entities by a given criteria.
|
|
150
|
-
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
151
|
-
* Executes fast and efficient SOFT-DELETE query.
|
|
152
|
-
* Does not check if entity exist in the database.
|
|
153
|
-
*/
|
|
154
|
-
restore(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
155
|
-
/**
|
|
156
|
-
* Counts entities that match given options.
|
|
157
|
-
* Useful for pagination.
|
|
158
|
-
*/
|
|
159
|
-
count(options?: FindManyOptions<Entity>): Promise<number>;
|
|
160
|
-
/**
|
|
161
|
-
* Counts entities that match given conditions.
|
|
162
|
-
* Useful for pagination.
|
|
163
|
-
*/
|
|
164
|
-
countBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<number>;
|
|
165
|
-
/**
|
|
166
|
-
* Finds entities that match given find options.
|
|
167
|
-
*/
|
|
168
|
-
find(options?: FindManyOptions<Entity>): Promise<Entity[]>;
|
|
169
|
-
/**
|
|
170
|
-
* Finds entities that match given find options.
|
|
171
|
-
*/
|
|
172
|
-
findBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity[]>;
|
|
173
|
-
/**
|
|
174
|
-
* Finds entities that match given find options.
|
|
175
|
-
* Also counts all entities that match given conditions,
|
|
176
|
-
* but ignores pagination settings (from and take options).
|
|
177
|
-
*/
|
|
178
|
-
findAndCount(options?: FindManyOptions<Entity>): Promise<[Entity[], number]>;
|
|
179
|
-
/**
|
|
180
|
-
* Finds entities that match given WHERE conditions.
|
|
181
|
-
* Also counts all entities that match given conditions,
|
|
182
|
-
* but ignores pagination settings (from and take options).
|
|
183
|
-
*/
|
|
184
|
-
findAndCountBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<[Entity[], number]>;
|
|
185
|
-
/**
|
|
186
|
-
* Finds entities with ids.
|
|
187
|
-
* Optionally find options or conditions can be applied.
|
|
188
|
-
*
|
|
189
|
-
* @deprecated use `findBy` method instead in conjunction with `In` operator, for example:
|
|
190
|
-
*
|
|
191
|
-
* .findBy({
|
|
192
|
-
* id: In([1, 2, 3])
|
|
193
|
-
* })
|
|
194
|
-
*/
|
|
195
|
-
findByIds(ids: any[]): Promise<Entity[]>;
|
|
196
|
-
/**
|
|
197
|
-
* Finds first entity by a given find options.
|
|
198
|
-
* If entity was not found in the database - returns null.
|
|
199
|
-
*/
|
|
200
|
-
findOne(options: FindOneOptions<Entity>): Promise<Entity | null>;
|
|
201
|
-
/**
|
|
202
|
-
* Finds first entity that matches given where condition.
|
|
203
|
-
* If entity was not found in the database - returns null.
|
|
204
|
-
*/
|
|
205
|
-
findOneBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity | null>;
|
|
206
|
-
/**
|
|
207
|
-
* Finds first entity that matches given id.
|
|
208
|
-
* If entity was not found in the database - returns null.
|
|
209
|
-
*
|
|
210
|
-
* @deprecated use `findOneBy` method instead in conjunction with `In` operator, for example:
|
|
211
|
-
*
|
|
212
|
-
* .findOneBy({
|
|
213
|
-
* id: 1 // where "id" is your primary column name
|
|
214
|
-
* })
|
|
215
|
-
*/
|
|
216
|
-
findOneById(id: number | string | Date): Promise<Entity | null>;
|
|
217
|
-
/**
|
|
218
|
-
* Finds first entity by a given find options.
|
|
219
|
-
* If entity was not found in the database - rejects with error.
|
|
220
|
-
*/
|
|
221
|
-
findOneOrFail(options: FindOneOptions<Entity>): Promise<Entity>;
|
|
222
|
-
/**
|
|
223
|
-
* Finds first entity that matches given where condition.
|
|
224
|
-
* If entity was not found in the database - rejects with error.
|
|
225
|
-
*/
|
|
226
|
-
findOneByOrFail(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity>;
|
|
227
|
-
/**
|
|
228
|
-
* Executes a raw SQL query and returns a raw database results.
|
|
229
|
-
* Raw query execution is supported only by relational databases (MongoDB is not supported).
|
|
230
|
-
*/
|
|
231
|
-
query(query: string, parameters?: any[]): Promise<any>;
|
|
232
|
-
/**
|
|
233
|
-
* Clears all the data from the given table/collection (truncates/drops it).
|
|
234
|
-
*
|
|
235
|
-
* Note: this method uses TRUNCATE and may not work as you expect in transactions on some platforms.
|
|
236
|
-
* @see https://stackoverflow.com/a/5972738/925151
|
|
237
|
-
*/
|
|
238
|
-
clear(): Promise<void>;
|
|
239
|
-
/**
|
|
240
|
-
* Increments some column by provided value of the entities matched given conditions.
|
|
241
|
-
*/
|
|
242
|
-
increment(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
243
|
-
/**
|
|
244
|
-
* Decrements some column by provided value of the entities matched given conditions.
|
|
245
|
-
*/
|
|
246
|
-
decrement(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
247
|
-
/**
|
|
248
|
-
* @deprecated use findAndCount instead
|
|
249
|
-
*/
|
|
250
|
-
getAll(): Promise<{
|
|
251
|
-
models: Entity[];
|
|
252
|
-
totalCount: number;
|
|
253
|
-
}>;
|
|
254
|
-
getBy(id: number | string): Promise<Entity>;
|
|
255
|
-
}
|