vona-module-a-orm 5.0.50 → 5.0.51
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/cli/model/metadata/generate.ts +1 -1
- package/dist/bean/bean.databaseDialectBase.d.ts +1 -1
- package/dist/bean/bean.model/bean.model_cache.d.ts +2 -1
- package/dist/bean/bean.model/bean.model_crud.d.ts +2 -1
- package/dist/bean/bean.model/bean.model_crud_inner.d.ts +2 -1
- package/dist/bean/bean.model/bean.model_crud_table.d.ts +2 -1
- package/dist/config/config.d.ts +1 -1
- package/dist/index.js +0 -1
- package/dist/service/cacheEntity_.d.ts +1 -1
- package/dist/service/relations_.d.ts +1 -1
- package/dist/types/dto/dtoMutate.d.ts +1 -1
- package/dist/types/entityBase.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/relationsMutate.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/tableIdentity.d.ts +0 -1
|
@@ -53,7 +53,7 @@ export default async function (options: IMetadataCustomGenerateOptions): Promise
|
|
|
53
53
|
if (contentRelations.length === 0 && contentRecords.length === 0 && contentModels.length === 0) return '';
|
|
54
54
|
// combine
|
|
55
55
|
const content = `/** ${sceneName}: begin */
|
|
56
|
-
import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams,
|
|
56
|
+
import type { IModelGetOptions, IModelMethodOptions, IModelSelectParams, TypeModelSelectAndCount, TypeModelRelationResult, TypeModelWhere, IModelInsertOptions, TypeModelMutateRelationData, IModelDeleteOptions, IModelUpdateOptions, IModelMutateOptions, IModelSelectCountParams, IModelSelectAggrParams, TypeModelAggrRelationResult, IModelSelectGroupParams, TypeModelGroupRelationResult } from 'vona-module-a-orm';
|
|
57
57
|
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from 'vona-module-a-orm';
|
|
58
58
|
declare module 'vona-module-${moduleName}' {
|
|
59
59
|
${contentRelations.join('\n')}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Knex } from 'knex';
|
|
2
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
3
|
import type { ITableColumn } from '../types/columns.ts';
|
|
3
4
|
import type { ConfigDatabaseClient } from '../types/config.ts';
|
|
4
5
|
import type { IFetchDatabasesResultItem, IFetchIndexesResultItem } from '../types/dialect.ts';
|
|
5
|
-
import type { TableIdentity } from '../types/tableIdentity.ts';
|
|
6
6
|
import { BeanBase } from 'vona';
|
|
7
7
|
export declare class BeanDatabaseDialectBase extends BeanBase {
|
|
8
8
|
getConfigBase(): ConfigDatabaseClient | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
1
2
|
import type { ServiceDb } from '../../service/db_.ts';
|
|
2
|
-
import type { IDatabaseClientRecord, IModelDeleteOptions, IModelGetOptions, IModelInsertOptions, IModelMethodOptions, IModelMethodOptionsGeneral, IModelMutateOptions, IModelRecord, IModelSelectAggrParams, IModelSelectCountParams, IModelSelectGroupParams, IModelSelectParams, IModelUpdateOptions, ITableRecord,
|
|
3
|
+
import type { IDatabaseClientRecord, IModelDeleteOptions, IModelGetOptions, IModelInsertOptions, IModelMethodOptions, IModelMethodOptionsGeneral, IModelMutateOptions, IModelRecord, IModelSelectAggrParams, IModelSelectCountParams, IModelSelectGroupParams, IModelSelectParams, IModelUpdateOptions, ITableRecord, TypeModelAggrRelationResult, TypeModelClassLikeGeneral, TypeModelGroupRelationResult, TypeModelsClassLikeGeneral, TypeModelWhere } from '../../types/index.ts';
|
|
3
4
|
import BigNumber from 'bignumber.js';
|
|
4
5
|
import { ServiceCacheEntity } from '../../service/cacheEntity_.ts';
|
|
5
6
|
import { ServiceCacheQuery } from '../../service/cacheQuery_.ts';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type BigNumber from 'bignumber.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableIdentity } from 'table-identity';
|
|
3
|
+
import type { IModelCountParams, IModelGetOptionsGeneral, IModelMethodOptionsGeneral, IModelSelectParams, IModelUpdateOptionsGeneral, TypeModelWhere } from '../../types/index.ts';
|
|
3
4
|
import { BeanModelCrudInner } from './bean.model_crud_inner.ts';
|
|
4
5
|
export declare class BeanModelCrud<TRecord extends {} = {}> extends BeanModelCrudInner<TRecord> {
|
|
5
6
|
mget(ids: TableIdentity[], options?: IModelGetOptionsGeneral<TRecord>): Promise<Partial<TRecord>[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type BigNumber from 'bignumber.js';
|
|
2
2
|
import type { Knex } from 'knex';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TableIdentity } from 'table-identity';
|
|
4
|
+
import type { IModelCountParams, IModelGetOptionsGeneral, IModelMethodOptionsGeneral, IModelSelectGeneralParams, IModelSelectParams, IModelUpdateOptionsGeneral, ITableRecord, TypeModelWhere } from '../../types/index.ts';
|
|
4
5
|
import { BeanModelView } from './bean.model_view.ts';
|
|
5
6
|
export declare class BeanModelCrudInner<TRecord extends {}> extends BeanModelView<TRecord> {
|
|
6
7
|
protected _mget(table?: keyof ITableRecord, ids?: TableIdentity[], options?: IModelGetOptionsGeneral<TRecord>): Promise<TRecord[]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type BigNumber from 'bignumber.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableIdentity } from 'table-identity';
|
|
3
|
+
import type { IModelCountParams, IModelGetOptionsGeneral, IModelMethodOptionsGeneral, IModelSelectParams, IModelUpdateOptionsGeneral, ITableRecord, TypeModelWhere } from '../../types/index.ts';
|
|
3
4
|
import { BeanModelCrudInner } from './bean.model_crud_inner.ts';
|
|
4
5
|
export declare class BeanModelCrudTable<TRecord extends {}> extends BeanModelCrudInner<TRecord> {
|
|
5
6
|
mget(table: keyof ITableRecord, ids: TableIdentity[], options?: Omit<IModelGetOptionsGeneral<TRecord>, 'include' | 'with'>): Promise<TRecord[]>;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { TableIdentityType } from 'table-identity';
|
|
1
2
|
import type { TypeBeanRecordGeneralSelectorKeys, VonaApplication } from 'vona';
|
|
2
3
|
import type { IOnionOptionsMeta } from 'vona-module-a-onion';
|
|
3
4
|
import type { TSummerCachePreset } from 'vona-module-a-summer';
|
|
4
5
|
import type { IDatabaseClientDialectRecord } from '../types/database.ts';
|
|
5
|
-
import type { TableIdentityType } from '../types/tableIdentity.ts';
|
|
6
6
|
export type TypeDataBaseConfigDialects = Record<keyof IDatabaseClientDialectRecord, TypeBeanRecordGeneralSelectorKeys<'databaseDialect'>>;
|
|
7
7
|
export declare function config(_app: VonaApplication): {
|
|
8
8
|
rest: {
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import { prepareClassType, getTargetDecoratorRules, Api, v, OrderMaxBase, OrderC
|
|
|
10
10
|
import { ZodMetadata } from '@cabloy/zod-query';
|
|
11
11
|
import { SymbolDecoratorRuleColumn } from 'vona-module-a-openapiutils';
|
|
12
12
|
import z from 'zod';
|
|
13
|
-
export * from 'table-identity';
|
|
14
13
|
import { Broadcast, BeanBroadcastBase } from 'vona-module-a-broadcast';
|
|
15
14
|
import { Event, BeanEventBase } from 'vona-module-a-event';
|
|
16
15
|
import { Schedule } from 'vona-module-a-schedule';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
1
2
|
import type { BeanModelCache } from '../bean/bean.model/bean.model_cache.ts';
|
|
2
3
|
import type { ITableRecord } from '../types/onion/table.ts';
|
|
3
|
-
import type { TableIdentity } from '../types/tableIdentity.ts';
|
|
4
4
|
import { ModelCacheBase } from '../lib/modelCacheBase.ts';
|
|
5
5
|
export declare class ServiceCacheEntity extends ModelCacheBase {
|
|
6
6
|
protected __init__(model: BeanModelCache): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
1
2
|
import type { BeanModelCache } from '../bean/bean.model/bean.model_cache.ts';
|
|
2
3
|
import type { IModelMethodOptions, IModelRelationIncludeWrapper } from '../types/model.ts';
|
|
3
|
-
import type { TableIdentity } from '../types/tableIdentity.ts';
|
|
4
4
|
import { BeanBase } from 'vona';
|
|
5
5
|
export declare class ServiceRelations extends BeanBase {
|
|
6
6
|
protected _model: BeanModelCache;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
1
2
|
import type { OmitNever, TypeOmitStringUnion } from 'vona';
|
|
2
3
|
import type { BeanModelMeta } from '../../bean/bean.model/bean.model_meta.ts';
|
|
3
4
|
import type { IModelRelationIncludeWrapper } from '../model.ts';
|
|
4
5
|
import type { TypeModelColumnsStrict } from '../modelWhere.ts';
|
|
5
6
|
import type { IDecoratorModelOptions, IModelClassRecord } from '../onion/model.ts';
|
|
6
7
|
import type { TypeModelOfModelLike, TypeSymbolKeyEntity, TypeUtilEntityOmit, TypeUtilEntityPartial, TypeUtilEntitySelector, TypeUtilGetColumnsFromRelationAndIncludeWrapper, TypeUtilGetModelOptions, TypeUtilGetParamsColumns, TypeUtilGetParamsInlcude, TypeUtilGetParamsWith, TypeUtilGetRelationEntity, TypeUtilGetRelationModel, TypeUtilGetRelationOptions, TypeUtilGetRelationOptionsAutoload, TypeUtilGetRelationType, TypeUtilPrepareColumns } from '../relations.ts';
|
|
7
|
-
import type { TableIdentity } from '../tableIdentity.ts';
|
|
8
8
|
export type TypeDtoMutateType = 'create' | 'update' | 'mutate';
|
|
9
9
|
export type IDtoMutateParams<ModelLike extends BeanModelMeta | (keyof IModelClassRecord)> = IBuildDtoMutateParams<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity], TypeModelOfModelLike<ModelLike>>;
|
|
10
10
|
export interface IBuildDtoMutateParams<TRecord, Model extends BeanModelMeta> extends IModelRelationIncludeWrapper<Model>, IBuildDtoMutateParamsBasic<TRecord> {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
1
2
|
import type { OmitNever } from 'vona';
|
|
2
3
|
import type { BeanModelMeta } from '../bean/bean.model/bean.model_meta.ts';
|
|
3
4
|
import type { IDecoratorModelOptions } from './onion/model.ts';
|
|
4
5
|
import type { TypeUtilGetModelOptions, TypeUtilGetParamsInlcude, TypeUtilGetParamsWith, TypeUtilGetRelationEntity, TypeUtilGetRelationModel, TypeUtilGetRelationOptions, TypeUtilGetRelationOptionsAutoload, TypeUtilGetRelationType } from './relations.ts';
|
|
5
6
|
import type { IModelRelationOptionsMetaWrapper } from './relationsDef.ts';
|
|
6
|
-
import type { TableIdentity } from './tableIdentity.ts';
|
|
7
7
|
export type TypeModelMutateParamsInclude<MODEL extends BeanModelMeta | undefined> = TypeModelMutateParamsIncludeByModelOptions<TypeUtilGetModelOptions<MODEL>>;
|
|
8
8
|
export type TypeModelMutateParamsIncludeByModelOptions<ModelOptions extends IDecoratorModelOptions | undefined> = ModelOptions extends IDecoratorModelOptions ? {
|
|
9
9
|
[relationName in keyof ModelOptions['relations']]?: TypeModelMutateParamsRelationOptions<ModelOptions['relations'][relationName]>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'table-identity';
|