taon 19.0.5 → 19.0.7
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/fesm2022/taon.mjs +3473 -2463
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-angular-service.d.ts +14 -0
- package/browser/lib/base-classes/base-class.d.ts +1 -1
- package/browser/lib/base-classes/base-context.d.ts +6 -6
- package/browser/lib/base-classes/base-injector.d.ts +12 -7
- package/browser/lib/base-classes/base-repository.d.ts +5 -6
- package/browser/lib/base-classes/base.d.ts +12 -10
- package/browser/lib/create-context.d.ts +14 -13
- package/browser/lib/endpoint-context.d.ts +6 -5
- package/browser/lib/index.d.ts +24 -24
- package/browser/lib/inject.d.ts +4 -1
- package/browser/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/browser/package.json +1 -1
- package/client/fesm2022/taon.mjs +3473 -2463
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-angular-service.d.ts +14 -0
- package/client/lib/base-classes/base-class.d.ts +1 -1
- package/client/lib/base-classes/base-context.d.ts +6 -6
- package/client/lib/base-classes/base-injector.d.ts +12 -7
- package/client/lib/base-classes/base-repository.d.ts +5 -6
- package/client/lib/base-classes/base.d.ts +12 -10
- package/client/lib/create-context.d.ts +14 -13
- package/client/lib/endpoint-context.d.ts +6 -5
- package/client/lib/index.d.ts +24 -24
- package/client/lib/inject.d.ts +4 -1
- package/client/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/client/package.json +1 -1
- package/lib/base-classes/base-abstract-entity.js +2 -2
- package/lib/base-classes/base-abstract-entity.js.map +1 -1
- package/lib/base-classes/base-angular-service.d.ts +10 -0
- package/lib/base-classes/base-angular-service.js +19 -0
- package/lib/base-classes/base-angular-service.js.map +1 -0
- package/lib/base-classes/base-class.d.ts +1 -1
- package/lib/base-classes/base-class.js +13 -4
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-context.d.ts +6 -6
- package/lib/base-classes/base-crud-controller.js +6 -6
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-entity.js +2 -2
- package/lib/base-classes/base-entity.js.map +1 -1
- package/lib/base-classes/base-injector.d.ts +12 -7
- package/lib/base-classes/base-injector.js +21 -19
- package/lib/base-classes/base-injector.js.map +1 -1
- package/lib/base-classes/base-migration.d.ts +1 -1
- package/lib/base-classes/base-migration.js +2 -2
- package/lib/base-classes/base-migration.js.map +1 -1
- package/lib/base-classes/base-repository.d.ts +3 -5
- package/lib/base-classes/base-repository.js +22 -61
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.d.ts +1 -1
- package/lib/base-classes/base.d.ts +12 -10
- package/lib/base-classes/base.js +7 -5
- package/lib/base-classes/base.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +2 -1
- package/lib/build-info._auto-generated_.js +3 -2
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/context-db-migrations.d.ts +1 -1
- package/lib/context-db-migrations.js +7 -7
- package/lib/context-db-migrations.js.map +1 -1
- package/lib/create-context.d.ts +13 -12
- package/lib/create-context.js +13 -17
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/entity-decorator.d.ts +1 -1
- package/lib/decorators/classes/entity-decorator.js +8 -8
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.d.ts +1 -1
- package/lib/decorators/http/http-decorators.js +2 -2
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +1 -1
- package/lib/decorators/http/http-methods-decorators.js +2 -2
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +8 -5
- package/lib/endpoint-context.js +170 -179
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +35 -35
- package/lib/entity-process.js.map +1 -1
- package/lib/env.js +2 -2
- package/lib/env.js.map +1 -1
- package/lib/formly/fromly.d.ts +1 -1
- package/lib/formly/fromly.js +26 -26
- package/lib/formly/fromly.js.map +1 -1
- package/lib/formly/type-from-entity.js +6 -6
- package/lib/formly/type-from-entity.js.map +1 -1
- package/lib/get-response-value.js +2 -2
- package/lib/get-response-value.js.map +1 -1
- package/lib/helpers/class-helpers.js +21 -21
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/helpers/taon-helpers.js +4 -4
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/index.d.ts +24 -24
- package/lib/index.js +8 -9
- package/lib/index.js.map +1 -1
- package/lib/inject.js +3 -6
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +1 -1
- package/lib/models.js +5 -5
- package/lib/models.js.map +1 -1
- package/lib/orm.d.ts +16 -3
- package/lib/orm.js +43 -5
- package/lib/orm.js.map +1 -1
- package/lib/realtime/realtime-client.js +3 -3
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.js +3 -3
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.js +7 -7
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +3 -3
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/storage.js +2 -2
- package/lib/storage.js.map +1 -1
- package/lib/symbols.js +7 -7
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-table/taon-table.component.d.ts +7 -6
- package/lib/ui/taon.models.d.ts +1 -1
- package/lib/validators.js +8 -8
- package/lib/validators.js.map +1 -1
- package/old-app .js +1 -1
- package/old-app .js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +4 -4
- package/websql/fesm2022/taon.mjs +4983 -3644
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-angular-service.d.ts +14 -0
- package/websql/lib/base-classes/base-class.d.ts +1 -1
- package/websql/lib/base-classes/base-context.d.ts +6 -6
- package/websql/lib/base-classes/base-injector.d.ts +12 -7
- package/websql/lib/base-classes/base-repository.d.ts +3 -5
- package/websql/lib/base-classes/base.d.ts +12 -10
- package/websql/lib/create-context.d.ts +14 -13
- package/websql/lib/endpoint-context.d.ts +8 -5
- package/websql/lib/index.d.ts +24 -24
- package/websql/lib/inject.d.ts +4 -1
- package/websql/lib/orm.d.ts +15 -2
- package/websql/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/websql/package.json +1 -1
- package/browser/lib/storage.d.ts +0 -2
- package/client/lib/storage.d.ts +0 -2
- package/websql/lib/storage.d.ts +0 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { TaonContext } from '../create-context';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* TODO prevent calling methods when not initialized
|
|
6
|
+
* with init(ctx)
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class BaseAngularsService {
|
|
9
|
+
protected currentContext: TaonContext;
|
|
10
|
+
init(currentContext: TaonContext): void;
|
|
11
|
+
protected abstract initControllers(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseAngularsService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseAngularsService>;
|
|
14
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
declare const BaseContext: {
|
|
3
3
|
types: {
|
|
4
|
-
readonly controllers:
|
|
5
|
-
readonly repositories:
|
|
6
|
-
readonly providers:
|
|
7
|
-
readonly subscribers:
|
|
8
|
-
readonly migrations:
|
|
4
|
+
readonly controllers: any;
|
|
5
|
+
readonly repositories: any;
|
|
6
|
+
readonly providers: any;
|
|
7
|
+
readonly subscribers: any;
|
|
8
|
+
readonly migrations: any;
|
|
9
9
|
};
|
|
10
|
-
readonly contexts:
|
|
10
|
+
readonly contexts: any;
|
|
11
11
|
readonly contextName: string;
|
|
12
12
|
__ref(): Promise<import("taon/browser").EndpointContext>;
|
|
13
13
|
readonly __refSync: import("taon/browser").EndpointContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { EndpointContext } from '../endpoint-context';
|
|
3
|
-
import type { BaseRepository } from './base-repository';
|
|
4
3
|
import { BaseClass } from './base-class';
|
|
4
|
+
import type { BaseRepository } from './base-repository';
|
|
5
5
|
export declare class BaseInjector<CloneT extends BaseClass = any> {
|
|
6
6
|
/**
|
|
7
7
|
* for proxy purposes
|
|
@@ -31,12 +31,21 @@ export declare class BaseInjector<CloneT extends BaseClass = any> {
|
|
|
31
31
|
injectRepo<T>(entityForCrud: new (...args: any[]) => T): BaseRepository<T>;
|
|
32
32
|
injectCustomRepository<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
|
|
33
33
|
/**
|
|
34
|
-
* aliast to .injectRepository()
|
|
34
|
+
* aliast to this.injectRepository()
|
|
35
35
|
*/
|
|
36
36
|
injectCustomRepo<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
|
|
37
|
+
/**
|
|
38
|
+
* example usage:
|
|
39
|
+
* ...
|
|
40
|
+
* exampleController = this.injectController(ExampleController);
|
|
41
|
+
* ...
|
|
42
|
+
*/
|
|
37
43
|
injectController<T>(ctor: new (...args: any[]) => T): T;
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
45
|
+
* example usage:
|
|
46
|
+
* ...
|
|
47
|
+
* exampleSubscriber = this.injectSubscriber(ExampleSubscriber)
|
|
48
|
+
* ...
|
|
40
49
|
*/
|
|
41
50
|
injectSubscriber<T>(ctor: new (...args: any[]) => T): T;
|
|
42
51
|
/**
|
|
@@ -52,10 +61,6 @@ export declare class BaseInjector<CloneT extends BaseClass = any> {
|
|
|
52
61
|
* TODO
|
|
53
62
|
*/
|
|
54
63
|
injectContextProvider<T>(ctor: new (...args: any[]) => T): T;
|
|
55
|
-
/**
|
|
56
|
-
* Repositories to init (by controller)
|
|
57
|
-
*/
|
|
58
|
-
protected __repositories_to_init__: BaseRepository<any>[];
|
|
59
64
|
/**
|
|
60
65
|
* Inject: Controllers, Providers, Repositories, Services, etc.
|
|
61
66
|
* TODO addd nest js injecting
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, SaveOptions, UpdateResult } from 'taon-typeorm';
|
|
2
|
+
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm/browser';
|
|
3
3
|
import type { QueryDeepPartialEntity } from 'taon-typeorm/lib/typeorm/query-builder/QueryPartialEntity';
|
|
4
4
|
import type { UpsertOptions } from 'taon-typeorm/lib/typeorm/repository/UpsertOptions';
|
|
5
5
|
import type { DataSource as DataSourceType } from 'taon-typeorm/browser';
|
|
@@ -8,13 +8,12 @@ import { BaseInjector } from './base-injector';
|
|
|
8
8
|
export declare abstract class BaseRepository<Entity extends {
|
|
9
9
|
id?: any;
|
|
10
10
|
}> extends BaseInjector {
|
|
11
|
-
private __entityClassResolveFn;
|
|
12
11
|
abstract entityClassResolveFn: () => any;
|
|
13
12
|
constructor(__entityClassResolveFn: () => any);
|
|
14
13
|
private __dbQuery;
|
|
15
14
|
get dbQuery(): MySqlQuerySource;
|
|
16
15
|
get connection(): DataSourceType;
|
|
17
|
-
protected get repository():
|
|
16
|
+
protected get repository(): Repository<Entity>;
|
|
18
17
|
/**
|
|
19
18
|
* target for repository
|
|
20
19
|
*/
|
|
@@ -22,9 +21,8 @@ export declare abstract class BaseRepository<Entity extends {
|
|
|
22
21
|
/**
|
|
23
22
|
* alias to repository
|
|
24
23
|
*/
|
|
25
|
-
protected get repo():
|
|
24
|
+
protected get repo(): Repository<Entity>;
|
|
26
25
|
get repositoryExists(): boolean;
|
|
27
|
-
__init(context?: any): Promise<void>;
|
|
28
26
|
/**
|
|
29
27
|
* Checks if entity has an id.
|
|
30
28
|
* If entity composite compose ids, it will check them all.
|
|
@@ -127,7 +125,8 @@ export declare abstract class BaseRepository<Entity extends {
|
|
|
127
125
|
*/
|
|
128
126
|
insert(entity: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[]): Promise<InsertResult>;
|
|
129
127
|
update(item: Entity): Promise<any>;
|
|
130
|
-
|
|
128
|
+
private allowedTypesToUpdate;
|
|
129
|
+
updateById<ENTITY = Entity>(id: number | string, item: Entity): Promise<ENTITY>;
|
|
131
130
|
bulkUpdate(items: Entity[]): Promise<any>;
|
|
132
131
|
/**
|
|
133
132
|
* Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
+
import * as abstractEntity from './base-abstract-entity';
|
|
3
|
+
import * as baseService from './base-angular-service';
|
|
4
|
+
import * as baseClass from './base-class';
|
|
2
5
|
import * as controller from './base-controller';
|
|
3
6
|
import * as crudController from './base-crud-controller';
|
|
4
7
|
import * as entity from './base-entity';
|
|
5
|
-
import * as
|
|
6
|
-
import * as repository from './base-repository';
|
|
8
|
+
import * as baseMigration from './base-migration';
|
|
7
9
|
import * as provider from './base-provider';
|
|
8
|
-
import * as
|
|
10
|
+
import * as repository from './base-repository';
|
|
9
11
|
import * as baseSubscriberEntity from './base-subscriber-for-entity';
|
|
10
|
-
import * as baseMigration from './base-migration';
|
|
11
12
|
export declare namespace Base {
|
|
12
13
|
export import Controller = controller.BaseController;
|
|
13
14
|
export import CrudController = crudController.BaseCrudController;
|
|
@@ -19,15 +20,16 @@ export declare namespace Base {
|
|
|
19
20
|
export import Repository = repository.BaseRepository;
|
|
20
21
|
export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
21
22
|
export import Migration = baseMigration.BaseMigration;
|
|
23
|
+
export import AngularService = baseService.BaseAngularsService;
|
|
22
24
|
const Context: {
|
|
23
25
|
types: {
|
|
24
|
-
readonly controllers:
|
|
25
|
-
readonly repositories:
|
|
26
|
-
readonly providers:
|
|
27
|
-
readonly subscribers:
|
|
28
|
-
readonly migrations:
|
|
26
|
+
readonly controllers: any;
|
|
27
|
+
readonly repositories: any;
|
|
28
|
+
readonly providers: any;
|
|
29
|
+
readonly subscribers: any;
|
|
30
|
+
readonly migrations: any;
|
|
29
31
|
};
|
|
30
|
-
readonly contexts:
|
|
32
|
+
readonly contexts: any;
|
|
31
33
|
readonly contextName: string;
|
|
32
34
|
__ref(): Promise<import("taon/browser").EndpointContext>;
|
|
33
35
|
readonly __refSync: import("taon/browser").EndpointContext;
|
|
@@ -3,13 +3,13 @@ import { EndpointContext } from './endpoint-context';
|
|
|
3
3
|
import { Models } from './models';
|
|
4
4
|
export declare const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
|
|
5
5
|
types: {
|
|
6
|
-
readonly controllers:
|
|
7
|
-
readonly repositories:
|
|
8
|
-
readonly providers:
|
|
9
|
-
readonly subscribers:
|
|
10
|
-
readonly migrations:
|
|
6
|
+
readonly controllers: any;
|
|
7
|
+
readonly repositories: any;
|
|
8
|
+
readonly providers: any;
|
|
9
|
+
readonly subscribers: any;
|
|
10
|
+
readonly migrations: any;
|
|
11
11
|
};
|
|
12
|
-
readonly contexts:
|
|
12
|
+
readonly contexts: any;
|
|
13
13
|
readonly contextName: string;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated
|
|
@@ -44,13 +44,13 @@ export declare const createContextTemplate: <CTX extends Record<string, object>,
|
|
|
44
44
|
};
|
|
45
45
|
export declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
46
46
|
types: {
|
|
47
|
-
readonly controllers:
|
|
48
|
-
readonly repositories:
|
|
49
|
-
readonly providers:
|
|
50
|
-
readonly subscribers:
|
|
51
|
-
readonly migrations:
|
|
47
|
+
readonly controllers: any;
|
|
48
|
+
readonly repositories: any;
|
|
49
|
+
readonly providers: any;
|
|
50
|
+
readonly subscribers: any;
|
|
51
|
+
readonly migrations: any;
|
|
52
52
|
};
|
|
53
|
-
readonly contexts:
|
|
53
|
+
readonly contexts: any;
|
|
54
54
|
readonly contextName: string;
|
|
55
55
|
/**
|
|
56
56
|
* @deprecated
|
|
@@ -82,4 +82,5 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
82
82
|
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
83
83
|
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
84
84
|
};
|
|
85
|
-
};
|
|
85
|
+
};
|
|
86
|
+
export type TaonContext = ReturnType<typeof createContext>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
3
|
-
import type { Application } from 'express';
|
|
2
|
+
import type { Server } from 'http';
|
|
4
3
|
import type { NgZone } from '@angular/core';
|
|
4
|
+
import type { Application } from 'express';
|
|
5
5
|
import { DataSource } from 'taon-typeorm/browser';
|
|
6
|
-
import type { Server } from 'http';
|
|
7
6
|
import type { BaseClass } from './base-classes/base-class';
|
|
8
7
|
import { ContextDbMigrations } from './context-db-migrations';
|
|
8
|
+
import { Models } from './models';
|
|
9
9
|
export declare class EndpointContext {
|
|
10
10
|
private originalConfig;
|
|
11
11
|
private configFn;
|
|
@@ -65,7 +65,7 @@ export declare class EndpointContext {
|
|
|
65
65
|
}): Promise<void>;
|
|
66
66
|
private getAutoGeneratedConfig;
|
|
67
67
|
get ngZone(): any;
|
|
68
|
-
startServer():
|
|
68
|
+
startServer(): Promise<void>;
|
|
69
69
|
displayRoutes(app: any): void;
|
|
70
70
|
get modeAllowsDatabaseCreation(): boolean;
|
|
71
71
|
private cloneClassWithNewMetadata;
|
|
@@ -74,10 +74,11 @@ export declare class EndpointContext {
|
|
|
74
74
|
private getRecrusiveClassesfromContexts;
|
|
75
75
|
getClassInstanceObjBy(classType: Models.ClassType): any;
|
|
76
76
|
private getClassesInstancesArrBy;
|
|
77
|
-
inject<T>(ctor: new (...args: any[]) => T, options
|
|
77
|
+
inject<T>(ctor: new (...args: any[]) => T, options: {
|
|
78
78
|
localInstance?: boolean;
|
|
79
79
|
contextClassInstance?: BaseClass;
|
|
80
80
|
locaInstanceConstructorArgs?: ConstructorParameters<typeof ctor>;
|
|
81
|
+
parentInstanceThatWillGetInjectedStuff: object;
|
|
81
82
|
}): T;
|
|
82
83
|
/**
|
|
83
84
|
* alias for inject
|
package/client/lib/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import 'reflect-metadata';
|
|
3
|
-
import
|
|
3
|
+
import { NgZone } from '@angular/core';
|
|
4
4
|
import * as base from './base-classes/base';
|
|
5
5
|
import * as controllerDecorator from './decorators/classes/controller-decorator';
|
|
6
6
|
import * as entityDecorator from './decorators/classes/entity-decorator';
|
|
7
|
+
import * as migrationDecorator from './decorators/classes/migration-decorator';
|
|
7
8
|
import * as providerDecorator from './decorators/classes/provider-decorator';
|
|
8
9
|
import * as repositoryDecorator from './decorators/classes/repository-decorator';
|
|
9
10
|
import * as subscriberDecorator from './decorators/classes/subscriber-decorator';
|
|
10
|
-
import * as
|
|
11
|
-
import * as orm from './orm';
|
|
12
|
-
import * as models from './models';
|
|
11
|
+
import * as http from './decorators/http/http-decorators';
|
|
13
12
|
import * as endpointContext from './endpoint-context';
|
|
13
|
+
import * as models from './models';
|
|
14
|
+
import * as orm from './orm';
|
|
14
15
|
import * as allSymbols from './symbols';
|
|
15
|
-
import { NgZone } from '@angular/core';
|
|
16
16
|
export * from './ui';
|
|
17
17
|
export { EndpointContext } from './endpoint-context';
|
|
18
18
|
export { BaseRepository } from './base-classes/base-repository';
|
|
@@ -21,7 +21,7 @@ export { BaseProvider } from './base-classes/base-provider';
|
|
|
21
21
|
export { BaseEntity } from './base-classes/base-entity';
|
|
22
22
|
export { BaseContext } from './base-classes/base-context';
|
|
23
23
|
export { BaseMigration } from './base-classes/base-migration';
|
|
24
|
-
export { createContext } from './create-context';
|
|
24
|
+
export { createContext, TaonContext } from './create-context';
|
|
25
25
|
export { inject } from './inject';
|
|
26
26
|
export { Models } from './models';
|
|
27
27
|
export * from './constants';
|
|
@@ -48,13 +48,13 @@ export declare namespace Taon {
|
|
|
48
48
|
const isElectron: boolean;
|
|
49
49
|
const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
50
50
|
types: {
|
|
51
|
-
readonly controllers:
|
|
52
|
-
readonly repositories:
|
|
53
|
-
readonly providers:
|
|
54
|
-
readonly subscribers:
|
|
55
|
-
readonly migrations:
|
|
51
|
+
readonly controllers: any;
|
|
52
|
+
readonly repositories: any;
|
|
53
|
+
readonly providers: any;
|
|
54
|
+
readonly subscribers: any;
|
|
55
|
+
readonly migrations: any;
|
|
56
56
|
};
|
|
57
|
-
readonly contexts:
|
|
57
|
+
readonly contexts: any;
|
|
58
58
|
readonly contextName: string;
|
|
59
59
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
60
60
|
readonly __refSync: endpointContext.EndpointContext;
|
|
@@ -73,13 +73,13 @@ export declare namespace Taon {
|
|
|
73
73
|
};
|
|
74
74
|
const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
|
|
75
75
|
types: {
|
|
76
|
-
readonly controllers:
|
|
77
|
-
readonly repositories:
|
|
78
|
-
readonly providers:
|
|
79
|
-
readonly subscribers:
|
|
80
|
-
readonly migrations:
|
|
76
|
+
readonly controllers: any;
|
|
77
|
+
readonly repositories: any;
|
|
78
|
+
readonly providers: any;
|
|
79
|
+
readonly subscribers: any;
|
|
80
|
+
readonly migrations: any;
|
|
81
81
|
};
|
|
82
|
-
readonly contexts:
|
|
82
|
+
readonly contexts: any;
|
|
83
83
|
readonly contextName: string;
|
|
84
84
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
85
85
|
readonly __refSync: endpointContext.EndpointContext;
|
|
@@ -109,13 +109,13 @@ export declare namespace Taon {
|
|
|
109
109
|
controllers: Function[];
|
|
110
110
|
}) => Promise<{
|
|
111
111
|
types: {
|
|
112
|
-
readonly controllers:
|
|
113
|
-
readonly repositories:
|
|
114
|
-
readonly providers:
|
|
115
|
-
readonly subscribers:
|
|
116
|
-
readonly migrations:
|
|
112
|
+
readonly controllers: any;
|
|
113
|
+
readonly repositories: any;
|
|
114
|
+
readonly providers: any;
|
|
115
|
+
readonly subscribers: any;
|
|
116
|
+
readonly migrations: any;
|
|
117
117
|
};
|
|
118
|
-
readonly contexts:
|
|
118
|
+
readonly contexts: any;
|
|
119
119
|
readonly contextName: string;
|
|
120
120
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
121
121
|
readonly __refSync: endpointContext.EndpointContext;
|
package/client/lib/inject.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { TemplateRef, EventEmitter, ElementRef } from '@angular/core';
|
|
3
|
-
import { Taon } from '../../../lib';
|
|
2
|
+
import { OnInit, TemplateRef, EventEmitter, ElementRef, OnDestroy } from '@angular/core';
|
|
4
3
|
import { PageEvent } from '@angular/material/paginator';
|
|
5
4
|
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
5
|
+
import { Taon } from '../../../lib';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TaonTableComponent {
|
|
7
|
+
export declare class TaonTableComponent implements OnDestroy, OnInit {
|
|
8
8
|
pageNumber: number;
|
|
9
9
|
pageSize: number;
|
|
10
10
|
allowedColumns: string[];
|
|
11
|
-
entity: typeof Taon.Base.Entity | string;
|
|
12
11
|
expansionTemplate: TemplateRef<any>;
|
|
13
12
|
rows: {
|
|
14
13
|
id: number;
|
|
15
14
|
name: string;
|
|
16
15
|
}[];
|
|
16
|
+
entityCrudController: Taon.Base.CrudController<any>;
|
|
17
17
|
columns: MtxGridColumn[];
|
|
18
18
|
pageSizeOptions: number[];
|
|
19
|
+
hideSearch: boolean;
|
|
19
20
|
expansionChange: EventEmitter<any>;
|
|
20
21
|
addingItem: EventEmitter<void>;
|
|
21
22
|
search?: ElementRef<HTMLElement>;
|
|
@@ -25,13 +26,13 @@ export declare class TaonTableComponent {
|
|
|
25
26
|
isLoading: boolean;
|
|
26
27
|
totalElements: number;
|
|
27
28
|
private sub;
|
|
28
|
-
|
|
29
|
+
get entity(): typeof Taon.Base.Entity;
|
|
29
30
|
ngOnInit(): Promise<void>;
|
|
30
31
|
ngOnDestroy(): void;
|
|
31
32
|
getNextPage(e: PageEvent): Promise<void>;
|
|
32
|
-
|
|
33
|
+
getData(): Promise<void>;
|
|
33
34
|
expansionRow(e: any): void;
|
|
34
35
|
onTableContextMenu(e: any): void;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaonTableComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaonTableComponent, "taon-table", never, { "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "allowedColumns": { "alias": "allowedColumns"; "required": false; }; "
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaonTableComponent, "taon-table", never, { "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "allowedColumns": { "alias": "allowedColumns"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "entityCrudController": { "alias": "entityCrudController"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hideSearch": { "alias": "hideSearch"; "required": false; }; }, { "expansionChange": "expansionChange"; "addingItem": "addingItem"; }, never, never, false, never>;
|
|
37
38
|
}
|
package/client/package.json
CHANGED
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BaseAbstractEntity = void 0;
|
|
10
10
|
//#region @websql
|
|
11
|
-
const
|
|
11
|
+
const lib_1 = require("taon-typeorm/lib");
|
|
12
12
|
//#endregion
|
|
13
13
|
const orm_1 = require("../orm");
|
|
14
14
|
const base_entity_1 = require("./base-entity");
|
|
@@ -17,7 +17,7 @@ let EntityDecorator = () => {
|
|
|
17
17
|
return (target) => { };
|
|
18
18
|
};
|
|
19
19
|
//#region @websql
|
|
20
|
-
EntityDecorator =
|
|
20
|
+
EntityDecorator = lib_1.Entity;
|
|
21
21
|
//#endregion
|
|
22
22
|
let BaseAbstractEntity = class BaseAbstractEntity extends base_entity_1.BaseEntity {
|
|
23
23
|
//#region @websql
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-abstract-entity.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-abstract-entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB;AACjB
|
|
1
|
+
{"version":3,"file":"base-abstract-entity.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-abstract-entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB;AACjB,0CAA0C;AAC1C,YAAY;AACZ,gCAA6B;AAC7B,+CAA2C;AAG3C,kBAAkB;AAClB,IAAI,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CAAC,MAAW,EAAE,EAAE,GAAE,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF,iBAAiB;AACjB,eAAe,GAAG,YAAM,CAAC;AACzB,YAAY;AAGL,IAAe,kBAAkB,GAAjC,MAAe,kBAEpB,SAAQ,wBAAkB;IAC1B,iBAAiB;IAGjB,AADA,YAAY;IACZ,EAAE,CAAS;IAEX,iBAAiB;IAGjB,AADA,YAAY;IACZ,OAAO,CAAS;CACjB,CAAA;AAZqB,gDAAkB;AAMtC;IAFC,SAAG,CAAC,MAAM,CAAC,SAAS,EAAE;IACvB,YAAY;8CACD;AAKX;IAFC,SAAG,CAAC,MAAM,CAAC,OAAO,EAAE;IACrB,YAAY;mDACI;6BAXI,kBAAkB;IADvC,eAAe,EAAE;GACI,kBAAkB,CAYvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TaonContext } from '../create-context';
|
|
2
|
+
/**
|
|
3
|
+
* TODO prevent calling methods when not initialized
|
|
4
|
+
* with init(ctx)
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class BaseAngularsService {
|
|
7
|
+
protected currentContext: TaonContext;
|
|
8
|
+
init(currentContext: TaonContext): void;
|
|
9
|
+
protected abstract initControllers(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BaseAngularsService = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* TODO prevent calling methods when not initialized
|
|
7
|
+
* with init(ctx)
|
|
8
|
+
*/
|
|
9
|
+
/* */
|
|
10
|
+
/* */
|
|
11
|
+
class BaseAngularsService {
|
|
12
|
+
currentContext;
|
|
13
|
+
init(currentContext) {
|
|
14
|
+
this.currentContext = currentContext;
|
|
15
|
+
this.initControllers();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.BaseAngularsService = BaseAngularsService;
|
|
19
|
+
//# sourceMappingURL=base-angular-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-angular-service.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-angular-service.ts"],"names":[],"mappings":";AAAA,KAAK;;;AAIL;;;GAGG;AACH,KAAK;AACL,KAAK;AAEL,MAAsB,mBAAmB;IAC7B,cAAc,CAAc;IAC/B,IAAI,CAAC,cAA2B;QACrC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CAGF;AARD,kDAQC"}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseClass = void 0;
|
|
4
4
|
//#region imports
|
|
5
|
-
const
|
|
5
|
+
const lib_1 = require("lodash-walk-object/lib");
|
|
6
|
+
const lib_2 = require("tnp-core/lib");
|
|
6
7
|
const class_helpers_1 = require("../helpers/class-helpers");
|
|
7
|
-
/* */
|
|
8
|
-
/* */
|
|
9
8
|
//#endregion
|
|
10
9
|
class BaseClass {
|
|
11
10
|
//#region class initialization hook
|
|
@@ -18,7 +17,17 @@ class BaseClass {
|
|
|
18
17
|
//#region clone
|
|
19
18
|
clone(override) {
|
|
20
19
|
const classFn = class_helpers_1.ClassHelpers.getClassFnFromObject(this);
|
|
21
|
-
const result =
|
|
20
|
+
const result = lib_2._.merge(new classFn(), lib_2._.cloneDeep(this));
|
|
21
|
+
lib_1.walk.Object(override || {}, (value, lodashPath) => {
|
|
22
|
+
if (lib_2._.isNil(value) || lib_2._.isFunction(value) || lib_2._.isObject(value)) {
|
|
23
|
+
// skipping
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
lib_2._.set(result, lodashPath, value);
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
walkGetters: false,
|
|
30
|
+
});
|
|
22
31
|
// console.log({result})
|
|
23
32
|
return result;
|
|
24
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-class.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-class.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,
|
|
1
|
+
{"version":3,"file":"base-class.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-class.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,gDAA8C;AAC9C,sCAAiC;AAEjC,4DAAwD;AACxD,YAAY;AAEZ,MAAa,SAAS;IACpB,mCAAmC;IACnC;;;OAGG;IACH,KAAK,CAAC,CAAC,KAAI,CAAC;IACZ,YAAY;IAEZ,eAAe;IACR,KAAK,CAAC,QAA0B;QACrC,MAAM,OAAO,GAAG,4BAAY,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACxD,MAAM,MAAM,GAAG,OAAC,CAAC,KAAK,CAAC,IAAI,OAAO,EAAE,EAAE,OAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QACzD,UAAI,CAAC,MAAM,CACT,QAAQ,IAAI,EAAE,EACd,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;YACpB,IAAI,OAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,OAAC,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,OAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC/D,WAAW;YACb,CAAC;iBAAM,CAAC;gBACN,OAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;YACnC,CAAC;QACH,CAAC,EACD;YACE,WAAW,EAAE,KAAK;SACnB,CACF,CAAC;QACF,wBAAwB;QACxB,OAAO,MAAM,CAAC;IAChB,CAAC;CAEF;AA9BD,8BA8BC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const BaseContext: {
|
|
2
2
|
types: {
|
|
3
|
-
readonly controllers:
|
|
4
|
-
readonly repositories:
|
|
5
|
-
readonly providers:
|
|
6
|
-
readonly subscribers:
|
|
7
|
-
readonly migrations:
|
|
3
|
+
readonly controllers: any;
|
|
4
|
+
readonly repositories: any;
|
|
5
|
+
readonly providers: any;
|
|
6
|
+
readonly subscribers: any;
|
|
7
|
+
readonly migrations: any;
|
|
8
8
|
};
|
|
9
|
-
readonly contexts:
|
|
9
|
+
readonly contexts: any;
|
|
10
10
|
readonly contextName: string;
|
|
11
11
|
__ref(): Promise<import("..").EndpointContext>;
|
|
12
12
|
readonly __refSync: import("..").EndpointContext;
|
|
@@ -15,7 +15,7 @@ const symbols_1 = require("../symbols");
|
|
|
15
15
|
const base_controller_1 = require("./base-controller");
|
|
16
16
|
const http_methods_decorators_1 = require("../decorators/http/http-methods-decorators");
|
|
17
17
|
const http_params_decorators_1 = require("../decorators/http/http-params-decorators");
|
|
18
|
-
const
|
|
18
|
+
const lib_1 = require("tnp-core/lib");
|
|
19
19
|
const controller_decorator_1 = require("../decorators/classes/controller-decorator");
|
|
20
20
|
const class_helpers_1 = require("../helpers/class-helpers");
|
|
21
21
|
const validators_1 = require("../validators");
|
|
@@ -29,8 +29,8 @@ let BaseCrudController = class BaseCrudController extends base_controller_1.Base
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region init
|
|
31
31
|
async _() {
|
|
32
|
-
if (!
|
|
33
|
-
|
|
32
|
+
if (!lib_1._.isFunction(this.entityClassResolveFn)) {
|
|
33
|
+
lib_1.Helpers.warn(`Skipping initing CRUD controller ${class_helpers_1.ClassHelpers.getName(this)} because entityClassResolveFn is not provided.`);
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
let entityClassFn = this.entityClassResolveFn();
|
|
@@ -38,11 +38,11 @@ let BaseCrudController = class BaseCrudController extends base_controller_1.Base
|
|
|
38
38
|
if (entityClassFn) {
|
|
39
39
|
const configEntity = Reflect.getMetadata(symbols_1.Symbols.metadata.options.entity, class_helpers_1.ClassHelpers.getClassFnFromObject(this));
|
|
40
40
|
if (configEntity?.createTable === false) {
|
|
41
|
-
|
|
41
|
+
lib_1.Helpers.warn(`Table for entity ${class_helpers_1.ClassHelpers.getName(entityClassFn)} will not be created. Crud will not work properly.`);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
|
|
45
|
+
lib_1.Helpers.error(`Entity class not provided for controller ${class_helpers_1.ClassHelpers.getName(this)}.
|
|
46
46
|
|
|
47
47
|
Please provide entity as class propery entityClassFn:
|
|
48
48
|
|
|
@@ -68,7 +68,7 @@ let BaseCrudController = class BaseCrudController extends base_controller_1.Base
|
|
|
68
68
|
validators_1.Validators.preventUndefinedModel(model, id);
|
|
69
69
|
let value = model[property];
|
|
70
70
|
let result;
|
|
71
|
-
if (
|
|
71
|
+
if (lib_1._.isString(value) || lib_1._.isArray(value)) {
|
|
72
72
|
result = value.slice(alreadyLength);
|
|
73
73
|
}
|
|
74
74
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":["c:/Users/darek/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,
|
|
1
|
+
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":["c:/Users/darek/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,sCAA0C;AAC1C,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,OAAC,CAAC,UAAU,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC7C,aAAO,CAAC,IAAI,CACV,oCAAoC,4BAAY,CAAC,OAAO,CACtD,IAAI,CACL,gDAAgD,CAClD,CAAC;YACF,OAAO;QACT,CAAC;QAED,IAAI,aAAa,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAChD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAEzC,IAAI,aAAa,EAAE,C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