vona-module-test-vona 5.0.27 → 5.0.29
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/dist/.metadata/index.d.ts +636 -18
- package/dist/bean/cacheMem.test.d.ts +4 -2
- package/dist/config/locale/en-us.d.ts +1 -0
- package/dist/config/locale/zh-cn.d.ts +1 -0
- package/dist/controller/dtoTest.d.ts +26 -0
- package/dist/dto/categoryTree.d.ts +9 -0
- package/dist/dto/roleLazy.d.ts +8 -0
- package/dist/dto/user.d.ts +1 -1
- package/dist/dto/userCreate.d.ts +15 -0
- package/dist/dto/userLazy.d.ts +9 -0
- package/dist/dto/userUpdate.d.ts +15 -0
- package/dist/entity/category.d.ts +8 -0
- package/dist/entity/post.d.ts +9 -0
- package/dist/entity/postContent.d.ts +8 -0
- package/dist/entity/role.d.ts +7 -0
- package/dist/entity/roleUser.d.ts +8 -0
- package/dist/entity/test.d.ts +4 -2
- package/dist/entity/user.d.ts +9 -0
- package/dist/index.js +724 -173
- package/dist/model/category.d.ts +7 -0
- package/dist/model/post.d.ts +7 -0
- package/dist/model/postContent.d.ts +7 -0
- package/dist/model/role.d.ts +7 -0
- package/dist/model/roleUser.d.ts +7 -0
- package/dist/model/test.d.ts +4 -1
- package/dist/model/testDynamicTable.d.ts +4 -1
- package/dist/model/user.d.ts +7 -0
- package/dist/model/userStats.d.ts +7 -0
- package/dist/model/userStatsGroup.d.ts +7 -0
- package/dist/service/testData.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityCategory } from '../entity/category.ts';
|
|
4
|
+
export interface IModelOptionsCategory extends IDecoratorModelOptions<EntityCategory> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelCategory extends BeanModelBase<EntityCategory> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityPost } from '../entity/post.ts';
|
|
4
|
+
export interface IModelOptionsPost extends IDecoratorModelOptions<EntityPost> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelPost extends BeanModelBase<EntityPost> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityPostContent } from '../entity/postContent.ts';
|
|
4
|
+
export interface IModelOptionsPostContent extends IDecoratorModelOptions<EntityPostContent> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelPostContent extends BeanModelBase<EntityPostContent> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityRole } from '../entity/role.ts';
|
|
4
|
+
export interface IModelOptionsRole extends IDecoratorModelOptions<EntityRole> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelRole extends BeanModelBase<EntityRole> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityRoleUser } from '../entity/roleUser.ts';
|
|
4
|
+
export interface IModelOptionsRoleUser extends IDecoratorModelOptions<EntityRoleUser> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelRoleUser extends BeanModelBase<EntityRoleUser> {
|
|
7
|
+
}
|
package/dist/model/test.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
2
3
|
import { EntityTest } from '../entity/test.ts';
|
|
4
|
+
export interface IModelOptionsTest extends IDecoratorModelOptions<EntityTest> {
|
|
5
|
+
}
|
|
3
6
|
export declare class ModelTest extends BeanModelBase<EntityTest> {
|
|
4
7
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
2
3
|
import { EntityTest } from '../entity/test.ts';
|
|
4
|
+
export interface IModelOptionsTestDynamicTable extends IDecoratorModelOptions<EntityTest> {
|
|
5
|
+
}
|
|
3
6
|
export declare class ModelTestDynamicTable extends BeanModelBase<EntityTest> {
|
|
4
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityUser } from '../entity/user.ts';
|
|
4
|
+
export interface IModelOptionsUser extends IDecoratorModelOptions<EntityUser> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelUser extends BeanModelBase<EntityUser> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityUser } from '../entity/user.ts';
|
|
4
|
+
export interface IModelOptionsUserStats extends IDecoratorModelOptions<EntityUser> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelUserStats extends BeanModelBase<EntityUser> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityUser } from '../entity/user.ts';
|
|
4
|
+
export interface IModelOptionsUserStatsGroup extends IDecoratorModelOptions<EntityUser> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelUserStatsGroup extends BeanModelBase<EntityUser> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EntityRole } from 'vona-module-home-user';
|
|
2
|
+
import type { EntityPost } from '../entity/post.ts';
|
|
3
|
+
import type { EntityPostContent } from '../entity/postContent.ts';
|
|
4
|
+
import type { EntityUser } from '../entity/user.ts';
|
|
5
|
+
import { BeanBase } from 'vona';
|
|
6
|
+
export interface ITestData {
|
|
7
|
+
userTom: EntityUser;
|
|
8
|
+
userJimmy: EntityUser;
|
|
9
|
+
roleFamily: EntityRole;
|
|
10
|
+
roleFriend: EntityRole;
|
|
11
|
+
postApple: EntityPost;
|
|
12
|
+
postPear: EntityPost;
|
|
13
|
+
postContentApple: EntityPostContent;
|
|
14
|
+
}
|
|
15
|
+
export declare class ServiceTestData extends BeanBase {
|
|
16
|
+
create(prefix: string): Promise<ITestData>;
|
|
17
|
+
drop(data: ITestData): Promise<void>;
|
|
18
|
+
}
|