vona-module-test-vona 5.0.28 → 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.
@@ -1,5 +1,7 @@
1
1
  import { BeanCacheMemBase } from 'vona-module-a-cache';
2
- export type TCacheMemTestKey = never;
3
- export type TCacheMemTestData = string;
2
+ export type TCacheMemTestKey = '__immutable__' | undefined;
3
+ export type TCacheMemTestData = {
4
+ name: string;
5
+ } | string;
4
6
  export declare class CacheMemTest extends BeanCacheMemBase<TCacheMemTestKey, TCacheMemTestData> {
5
7
  }
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  User: string;
3
3
  UserId: string;
4
+ Test: string;
4
5
  TestHelloWorld: string;
5
6
  TestApples: string;
6
7
  TestApples_0: string;
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  User: string;
3
3
  UserId: string;
4
+ Test: string;
4
5
  TestHelloWorld: string;
5
6
  TestApples: string;
6
7
  TestApples_0: string;
@@ -0,0 +1,26 @@
1
+ import type { IDecoratorControllerOptions } from 'vona-module-a-web';
2
+ import { BeanBase } from 'vona';
3
+ import { TableIdentity } from 'vona-module-a-orm';
4
+ import { DtoUserCreate } from '../dto/userCreate.ts';
5
+ import { DtoUserLazy } from '../dto/userLazy.ts';
6
+ import { DtoUserUpdate } from '../dto/userUpdate.ts';
7
+ export interface IControllerOptionsDtoTest extends IDecoratorControllerOptions {
8
+ }
9
+ export declare class ControllerDtoTest extends BeanBase {
10
+ getUserLazy(): DtoUserLazy;
11
+ getPostDynamic(): void;
12
+ getUserStats(): void;
13
+ getUserStatsGroup(): void;
14
+ createUser(user: DtoUserCreate): Promise<Required<import("vona-module-a-orm").TypeModelMutateRelationData<import("vona-module-test-vona").EntityUser, import("vona-module-test-vona").ModelUser, import("vona-module-a-orm").IModelInsertOptions<import("vona-module-test-vona").EntityUser, import("vona-module-test-vona").ModelUser>>>>;
15
+ updateUser(id: TableIdentity, user: DtoUserUpdate): Promise<import("vona-module-a-orm").TypeModelMutateRelationData<import("vona-module-test-vona").EntityUser, import("vona-module-test-vona").ModelUser, {
16
+ where: {
17
+ id: TableIdentity;
18
+ };
19
+ }>>;
20
+ getCategoryTree(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
21
+ columns: ("name" | "id")[];
22
+ }, undefined>[]>;
23
+ getCategoryTree2(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
24
+ columns: ("name" | "id")[];
25
+ }, undefined>[]>;
26
+ }
@@ -0,0 +1,9 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsCategoryTree extends IDecoratorDtoOptions {
3
+ }
4
+ declare const DtoCategoryTree_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoGetResult<"test-vona:category", {
5
+ columns: ("name" | "id")[];
6
+ }>>;
7
+ export declare class DtoCategoryTree extends DtoCategoryTree_base {
8
+ }
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { DtoUserLazy } from './userLazy.ts';
3
+ export interface IDtoOptionsRoleLazy extends IDecoratorDtoOptions {
4
+ }
5
+ export declare class DtoRoleLazy {
6
+ name: string;
7
+ users?: DtoUserLazy[];
8
+ }
@@ -1,4 +1,4 @@
1
- import type { TableIdentity } from 'vona-module-a-database';
1
+ import type { TableIdentity } from 'vona-module-a-orm';
2
2
  import type { IDecoratorDtoOptions } from 'vona-module-a-web';
3
3
  import '../.metadata/index.ts';
4
4
  export interface IDtoOptionsUser extends IDecoratorDtoOptions {
@@ -0,0 +1,15 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsUserCreate extends IDecoratorDtoOptions {
3
+ }
4
+ declare const DtoUserCreate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<"test-vona:user", {
5
+ include: {
6
+ posts: {
7
+ include: {
8
+ user: false;
9
+ };
10
+ };
11
+ };
12
+ }>>;
13
+ export declare class DtoUserCreate extends DtoUserCreate_base {
14
+ }
15
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { DtoRoleLazy } from './roleLazy.ts';
3
+ export interface IDtoOptionsUserLazy extends IDecoratorDtoOptions {
4
+ }
5
+ export declare class DtoUserLazy {
6
+ name: string;
7
+ user?: DtoUserLazy;
8
+ roles?: DtoRoleLazy[];
9
+ }
@@ -0,0 +1,15 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsUserUpdate extends IDecoratorDtoOptions {
3
+ }
4
+ declare const DtoUserUpdate_base: import("vona-core").Constructable<Partial<import("vona-module-a-orm").TypeDtoMutateResult<"test-vona:user", {
5
+ include: {
6
+ posts: {
7
+ include: {
8
+ user: false;
9
+ };
10
+ };
11
+ };
12
+ }>>>;
13
+ export declare class DtoUserUpdate extends DtoUserUpdate_base {
14
+ }
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsCategory extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityCategory extends EntityBase {
6
+ name: string;
7
+ categoryIdParent: TableIdentity;
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsPost extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityPost extends EntityBase {
6
+ title: string;
7
+ userId: TableIdentity;
8
+ stars?: number;
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsPostContent extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityPostContent extends EntityBase {
6
+ content: string;
7
+ postId: TableIdentity;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsRole extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityRole extends EntityBase {
6
+ name: string;
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsRoleUser extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityRoleUser extends EntityBase {
6
+ userId: TableIdentity;
7
+ roleId: TableIdentity;
8
+ }
@@ -1,8 +1,10 @@
1
- import type { IDecoratorEntityOptions } from 'vona-module-a-database';
2
- import { EntityBase } from 'vona-module-a-database';
1
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ import '../.metadata/index.ts';
3
4
  export interface IEntityOptionsTest extends IDecoratorEntityOptions {
4
5
  }
5
6
  export declare class EntityTest extends EntityBase {
6
7
  title: string;
7
8
  description: string;
9
+ testDate: Date;
8
10
  }
@@ -0,0 +1,9 @@
1
+ import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
2
+ import { EntityBase } from 'vona-module-a-orm';
3
+ export interface IEntityOptionsUser extends IDecoratorEntityOptions {
4
+ }
5
+ export declare class EntityUser extends EntityBase {
6
+ name: string;
7
+ age?: number;
8
+ scores?: number;
9
+ }