vona-module-test-vona 5.0.53 → 5.0.55

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.
@@ -1089,6 +1089,24 @@ declare module 'vona-module-test-vona' {
1089
1089
  }
1090
1090
  }
1091
1091
  /** schedule: end */
1092
+ /** serializerTransform: begin */
1093
+ export * from '../bean/serializerTransform.email.ts';
1094
+ import type { ISerializerTransformOptionsEmail } from '../bean/serializerTransform.email.ts';
1095
+ import 'vona';
1096
+ declare module 'vona-module-a-serialization' {
1097
+ interface ISerializerTransformRecord {
1098
+ 'test-vona:email': ISerializerTransformOptionsEmail;
1099
+ }
1100
+ }
1101
+ declare module 'vona-module-test-vona' {
1102
+ interface SerializerTransformEmail {
1103
+ }
1104
+ interface SerializerTransformEmail {
1105
+ get $beanFullName(): 'test-vona.serializerTransform.email';
1106
+ get $onionName(): 'test-vona:email';
1107
+ }
1108
+ }
1109
+ /** serializerTransform: end */
1092
1110
  /** summerCache: begin */
1093
1111
  export * from '../bean/summerCache.test.ts';
1094
1112
  import { type IDecoratorSummerCacheOptions } from 'vona-module-a-summer';
@@ -1120,12 +1138,16 @@ export * from '../dto/orderQueryPage.ts';
1120
1138
  export * from '../dto/orderResult.ts';
1121
1139
  export * from '../dto/orderResultPage.ts';
1122
1140
  export * from '../dto/orderUpdate.ts';
1141
+ export * from '../dto/postAggregate.ts';
1123
1142
  export * from '../dto/postCreate.ts';
1143
+ export * from '../dto/postGroup.ts';
1124
1144
  export * from '../dto/postQuery.ts';
1125
1145
  export * from '../dto/postQueryRes.ts';
1126
1146
  export * from '../dto/profile.ts';
1127
1147
  export * from '../dto/roleLazy.ts';
1128
- export * from '../dto/serializerTest.ts';
1148
+ export * from '../dto/serializerArray.ts';
1149
+ export * from '../dto/serializerLazy.ts';
1150
+ export * from '../dto/serializerSimple.ts';
1129
1151
  export * from '../dto/signin.ts';
1130
1152
  export * from '../dto/user.ts';
1131
1153
  export * from '../dto/userCreate.ts';
@@ -1138,12 +1160,16 @@ import type { IDtoOptionsOrderQueryPage } from '../dto/orderQueryPage.ts';
1138
1160
  import type { IDtoOptionsOrderResult } from '../dto/orderResult.ts';
1139
1161
  import type { IDtoOptionsOrderResultPage } from '../dto/orderResultPage.ts';
1140
1162
  import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
1163
+ import type { IDtoOptionsPostAggregate } from '../dto/postAggregate.ts';
1141
1164
  import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
1165
+ import type { IDtoOptionsPostGroup } from '../dto/postGroup.ts';
1142
1166
  import type { IDtoOptionsPostQuery } from '../dto/postQuery.ts';
1143
1167
  import type { IDtoOptionsPostQueryRes } from '../dto/postQueryRes.ts';
1144
1168
  import type { IDtoOptionsProfile } from '../dto/profile.ts';
1145
1169
  import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
1146
- import type { IDtoOptionsSerializerTest } from '../dto/serializerTest.ts';
1170
+ import type { IDtoOptionsSerializerArray } from '../dto/serializerArray.ts';
1171
+ import type { IDtoOptionsSerializerLazy } from '../dto/serializerLazy.ts';
1172
+ import type { IDtoOptionsSerializerSimple } from '../dto/serializerSimple.ts';
1147
1173
  import type { IDtoOptionsSignin } from '../dto/signin.ts';
1148
1174
  import type { IDtoOptionsUser } from '../dto/user.ts';
1149
1175
  import type { IDtoOptionsUserCreate } from '../dto/userCreate.ts';
@@ -1159,12 +1185,16 @@ declare module 'vona-module-a-web' {
1159
1185
  'test-vona:orderResult': IDtoOptionsOrderResult;
1160
1186
  'test-vona:orderResultPage': IDtoOptionsOrderResultPage;
1161
1187
  'test-vona:orderUpdate': IDtoOptionsOrderUpdate;
1188
+ 'test-vona:postAggregate': IDtoOptionsPostAggregate;
1162
1189
  'test-vona:postCreate': IDtoOptionsPostCreate;
1190
+ 'test-vona:postGroup': IDtoOptionsPostGroup;
1163
1191
  'test-vona:postQuery': IDtoOptionsPostQuery;
1164
1192
  'test-vona:postQueryRes': IDtoOptionsPostQueryRes;
1165
1193
  'test-vona:profile': IDtoOptionsProfile;
1166
1194
  'test-vona:roleLazy': IDtoOptionsRoleLazy;
1167
- 'test-vona:serializerTest': IDtoOptionsSerializerTest;
1195
+ 'test-vona:serializerArray': IDtoOptionsSerializerArray;
1196
+ 'test-vona:serializerLazy': IDtoOptionsSerializerLazy;
1197
+ 'test-vona:serializerSimple': IDtoOptionsSerializerSimple;
1168
1198
  'test-vona:signin': IDtoOptionsSignin;
1169
1199
  'test-vona:user': IDtoOptionsUser;
1170
1200
  'test-vona:userCreate': IDtoOptionsUserCreate;
@@ -1183,12 +1213,16 @@ import type { DtoOrderQueryPage } from '../dto/orderQueryPage.ts';
1183
1213
  import type { DtoOrderResult } from '../dto/orderResult.ts';
1184
1214
  import type { DtoOrderResultPage } from '../dto/orderResultPage.ts';
1185
1215
  import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
1216
+ import type { DtoPostAggregate } from '../dto/postAggregate.ts';
1186
1217
  import type { DtoPostCreate } from '../dto/postCreate.ts';
1218
+ import type { DtoPostGroup } from '../dto/postGroup.ts';
1187
1219
  import type { DtoPostQuery } from '../dto/postQuery.ts';
1188
1220
  import type { DtoPostQueryRes } from '../dto/postQueryRes.ts';
1189
1221
  import type { DtoProfile } from '../dto/profile.ts';
1190
1222
  import type { DtoRoleLazy } from '../dto/roleLazy.ts';
1191
- import type { DtoSerializerTest } from '../dto/serializerTest.ts';
1223
+ import type { DtoSerializerArray } from '../dto/serializerArray.ts';
1224
+ import type { DtoSerializerLazy } from '../dto/serializerLazy.ts';
1225
+ import type { DtoSerializerSimple } from '../dto/serializerSimple.ts';
1192
1226
  import type { DtoSignin } from '../dto/signin.ts';
1193
1227
  import type { DtoUser } from '../dto/user.ts';
1194
1228
  import type { DtoUserCreate } from '../dto/userCreate.ts';
@@ -1216,9 +1250,15 @@ declare module 'vona-module-test-vona' {
1216
1250
  interface IDtoOptionsOrderUpdate {
1217
1251
  fields?: TypeEntityOptionsFields<DtoOrderUpdate, IDtoOptionsOrderUpdate[TypeSymbolKeyFieldsMore]>;
1218
1252
  }
1253
+ interface IDtoOptionsPostAggregate {
1254
+ fields?: TypeEntityOptionsFields<DtoPostAggregate, IDtoOptionsPostAggregate[TypeSymbolKeyFieldsMore]>;
1255
+ }
1219
1256
  interface IDtoOptionsPostCreate {
1220
1257
  fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
1221
1258
  }
1259
+ interface IDtoOptionsPostGroup {
1260
+ fields?: TypeEntityOptionsFields<DtoPostGroup, IDtoOptionsPostGroup[TypeSymbolKeyFieldsMore]>;
1261
+ }
1222
1262
  interface IDtoOptionsPostQuery {
1223
1263
  fields?: TypeEntityOptionsFields<DtoPostQuery, IDtoOptionsPostQuery[TypeSymbolKeyFieldsMore]>;
1224
1264
  }
@@ -1231,8 +1271,14 @@ declare module 'vona-module-test-vona' {
1231
1271
  interface IDtoOptionsRoleLazy {
1232
1272
  fields?: TypeEntityOptionsFields<DtoRoleLazy, IDtoOptionsRoleLazy[TypeSymbolKeyFieldsMore]>;
1233
1273
  }
1234
- interface IDtoOptionsSerializerTest {
1235
- fields?: TypeEntityOptionsFields<DtoSerializerTest, IDtoOptionsSerializerTest[TypeSymbolKeyFieldsMore]>;
1274
+ interface IDtoOptionsSerializerArray {
1275
+ fields?: TypeEntityOptionsFields<DtoSerializerArray, IDtoOptionsSerializerArray[TypeSymbolKeyFieldsMore]>;
1276
+ }
1277
+ interface IDtoOptionsSerializerLazy {
1278
+ fields?: TypeEntityOptionsFields<DtoSerializerLazy, IDtoOptionsSerializerLazy[TypeSymbolKeyFieldsMore]>;
1279
+ }
1280
+ interface IDtoOptionsSerializerSimple {
1281
+ fields?: TypeEntityOptionsFields<DtoSerializerSimple, IDtoOptionsSerializerSimple[TypeSymbolKeyFieldsMore]>;
1236
1282
  }
1237
1283
  interface IDtoOptionsSignin {
1238
1284
  fields?: TypeEntityOptionsFields<DtoSignin, IDtoOptionsSignin[TypeSymbolKeyFieldsMore]>;
@@ -1264,6 +1310,7 @@ export * from '../controller/passport.ts';
1264
1310
  export * from '../controller/performAction.ts';
1265
1311
  export * from '../controller/post.ts';
1266
1312
  export * from '../controller/queue.ts';
1313
+ export * from '../controller/serializer.ts';
1267
1314
  export * from '../controller/summer.ts';
1268
1315
  export * from '../controller/tail.ts';
1269
1316
  export * from '../controller/transaction.ts';
@@ -1280,6 +1327,7 @@ import type { IControllerOptionsPassport } from '../controller/passport.ts';
1280
1327
  import type { IControllerOptionsPerformAction } from '../controller/performAction.ts';
1281
1328
  import type { IControllerOptionsPost } from '../controller/post.ts';
1282
1329
  import type { IControllerOptionsQueue } from '../controller/queue.ts';
1330
+ import type { IControllerOptionsSerializer } from '../controller/serializer.ts';
1283
1331
  import type { IControllerOptionsSummer } from '../controller/summer.ts';
1284
1332
  import type { IControllerOptionsTail } from '../controller/tail.ts';
1285
1333
  import type { IControllerOptionsTransaction } from '../controller/transaction.ts';
@@ -1299,6 +1347,7 @@ declare module 'vona-module-a-web' {
1299
1347
  'test-vona:performAction': IControllerOptionsPerformAction;
1300
1348
  'test-vona:post': IControllerOptionsPost;
1301
1349
  'test-vona:queue': IControllerOptionsQueue;
1350
+ 'test-vona:serializer': IControllerOptionsSerializer;
1302
1351
  'test-vona:summer': IControllerOptionsSummer;
1303
1352
  'test-vona:tail': IControllerOptionsTail;
1304
1353
  'test-vona:transaction': IControllerOptionsTransaction;
@@ -1378,6 +1427,12 @@ declare module 'vona-module-test-vona' {
1378
1427
  get $beanFullName(): 'test-vona.controller.queue';
1379
1428
  get $onionName(): 'test-vona:queue';
1380
1429
  }
1430
+ interface ControllerSerializer {
1431
+ }
1432
+ interface ControllerSerializer {
1433
+ get $beanFullName(): 'test-vona.controller.serializer';
1434
+ get $onionName(): 'test-vona:serializer';
1435
+ }
1381
1436
  interface ControllerSummer {
1382
1437
  }
1383
1438
  interface ControllerSummer {
@@ -1417,6 +1472,7 @@ import '../controller/passport.ts';
1417
1472
  import '../controller/performAction.ts';
1418
1473
  import '../controller/post.ts';
1419
1474
  import '../controller/queue.ts';
1475
+ import '../controller/serializer.ts';
1420
1476
  import '../controller/summer.ts';
1421
1477
  import '../controller/tail.ts';
1422
1478
  import '../controller/transaction.ts';
@@ -1458,6 +1514,9 @@ declare module 'vona-module-test-vona' {
1458
1514
  interface IControllerOptionsQueue {
1459
1515
  actions?: TypeControllerOptionsActions<ControllerQueue>;
1460
1516
  }
1517
+ interface IControllerOptionsSerializer {
1518
+ actions?: TypeControllerOptionsActions<ControllerSerializer>;
1519
+ }
1461
1520
  interface IControllerOptionsSummer {
1462
1521
  actions?: TypeControllerOptionsActions<ControllerSummer>;
1463
1522
  }
@@ -1493,6 +1552,8 @@ declare module 'vona-module-a-web' {
1493
1552
  '/test/vona/order/findMany': undefined;
1494
1553
  '/test/vona/passport/echo/:name': undefined;
1495
1554
  '/test/vona/passport/isAuthenticated': undefined;
1555
+ '/test/vona/post/group': undefined;
1556
+ '/test/vona/post/aggregate': undefined;
1496
1557
  '/test/vona/post/findManyEcho': undefined;
1497
1558
  '/test/vona/post/findMany': undefined;
1498
1559
  }
@@ -1512,6 +1573,9 @@ declare module 'vona-module-a-web' {
1512
1573
  '/test/vona/performAction/echo': undefined;
1513
1574
  '/test/vona/queue/pushAsync': undefined;
1514
1575
  '/test/vona/queue/push': undefined;
1576
+ '/test/vona/serializer/echoSimple': undefined;
1577
+ '/test/vona/serializer/echoArray': undefined;
1578
+ '/test/vona/serializer/echoLazy': undefined;
1515
1579
  '/test/vona/summer': undefined;
1516
1580
  '/test/vona/tail': undefined;
1517
1581
  '/test/vona/transaction/fail': undefined;
@@ -0,0 +1,10 @@
1
+ import type { IDecoratorSerializerTransformOptions, ISerializerTransform } from 'vona-module-a-serialization';
2
+ import { BeanBase } from 'vona';
3
+ export type TypeSerializerTransformEmailValue = string | undefined;
4
+ export type TypeSerializerTransformEmailData = unknown;
5
+ export type TypeSerializerTransformEmailResult = TypeSerializerTransformEmailValue;
6
+ export interface ISerializerTransformOptionsEmail extends IDecoratorSerializerTransformOptions {
7
+ }
8
+ export declare class SerializerTransformEmail extends BeanBase implements ISerializerTransform<TypeSerializerTransformEmailValue, TypeSerializerTransformEmailData, TypeSerializerTransformEmailResult> {
9
+ transform(value: TypeSerializerTransformEmailValue, _data: TypeSerializerTransformEmailData, _options: ISerializerTransformOptionsEmail): Promise<TypeSerializerTransformEmailResult>;
10
+ }
@@ -2,9 +2,13 @@ import type { IQueryParams } from 'vona-module-a-orm';
2
2
  import type { IDecoratorControllerOptions, IPipeOptionsQueryTransformInfo } from 'vona-module-a-web';
3
3
  import type { ModelPost } from '../model/post.ts';
4
4
  import { BeanBase } from 'vona';
5
+ import { DtoPostAggregate } from '../dto/postAggregate.ts';
6
+ import { DtoPostGroup } from '../dto/postGroup.ts';
5
7
  export interface IControllerOptionsPost extends IDecoratorControllerOptions {
6
8
  }
7
9
  export declare class ControllerPost extends BeanBase {
10
+ group(): Promise<DtoPostGroup[]>;
11
+ aggregate(): Promise<DtoPostAggregate>;
8
12
  findManyEcho(params: IQueryParams<ModelPost>): IQueryParams<ModelPost>;
9
13
  findManyQueryTransform(_info: IPipeOptionsQueryTransformInfo): boolean | undefined;
10
14
  findMany(params: IQueryParams<ModelPost>): Promise<import("vona-module-a-orm").TypeModelSelectAndCount<import("vona-module-test-vona").EntityPost, ModelPost, {
@@ -54,11 +58,11 @@ export declare class ControllerPost extends BeanBase {
54
58
  postContent: "testVonaPostContent";
55
59
  user: "testVonaUser";
56
60
  }>, import("vona-module-a-orm").TypeEntityTableColumnNamesOfModelSelf<ModelPost> | import("vona").TypeRecordValues<{
57
- postContent: "testVonaPostContent.id" | "testVonaPostContent.content" | "testVonaPostContent.iid" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.postId";
61
+ postContent: "testVonaPostContent.content" | "testVonaPostContent.id" | "testVonaPostContent.iid" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.postId";
58
62
  user: "testVonaUser.name" | "testVonaUser.id" | "testVonaUser.iid" | "testVonaUser.createdAt" | "testVonaUser.updatedAt" | "testVonaUser.deleted" | "testVonaUser.age" | "testVonaUser.scores";
59
63
  }>>[] | undefined;
60
64
  orders?: import("vona-module-a-orm").IModelSelectParamsOrder<import("vona-module-a-orm").TypeEntityTableColumnNamesOfModelSelf<ModelPost> | import("vona").TypeRecordValues<{
61
- postContent: "testVonaPostContent.id" | "testVonaPostContent.content" | "testVonaPostContent.iid" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.postId";
65
+ postContent: "testVonaPostContent.content" | "testVonaPostContent.id" | "testVonaPostContent.iid" | "testVonaPostContent.createdAt" | "testVonaPostContent.updatedAt" | "testVonaPostContent.deleted" | "testVonaPostContent.postId";
62
66
  user: "testVonaUser.name" | "testVonaUser.id" | "testVonaUser.iid" | "testVonaUser.createdAt" | "testVonaUser.updatedAt" | "testVonaUser.deleted" | "testVonaUser.age" | "testVonaUser.scores";
63
67
  }>>[] | undefined;
64
68
  limit?: number;
@@ -0,0 +1,12 @@
1
+ import type { IDecoratorControllerOptions } from 'vona-module-a-web';
2
+ import { BeanBase } from 'vona';
3
+ import { DtoSerializerArray } from '../dto/serializerArray.ts';
4
+ import { DtoSerializerLazy } from '../dto/serializerLazy.ts';
5
+ import { DtoSerializerSimple } from '../dto/serializerSimple.ts';
6
+ export interface IControllerOptionsSerializer extends IDecoratorControllerOptions {
7
+ }
8
+ export declare class ControllerSerializer extends BeanBase {
9
+ echoSimple(data: DtoSerializerSimple): DtoSerializerSimple;
10
+ echoArray(data: DtoSerializerArray[]): DtoSerializerArray[];
11
+ echoLazy(data: DtoSerializerLazy): DtoSerializerLazy;
12
+ }
@@ -0,0 +1,13 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsPostAggregate extends IDecoratorDtoOptions {
3
+ }
4
+ declare const DtoPostAggregate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeRecordAggrsValuesToObject<import("vona-module-a-orm").TypeRecordAggrsValues<{
5
+ count: "count_all" | "count_stars";
6
+ sum: "sum_stars";
7
+ avg: "avg_stars";
8
+ min: "min_stars";
9
+ max: "max_stars";
10
+ }>>>;
11
+ export declare class DtoPostAggregate extends DtoPostAggregate_base {
12
+ }
13
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsPostGroup extends IDecoratorDtoOptions {
3
+ }
4
+ declare const DtoPostGroup_base: import("vona-core").Constructable<{
5
+ userId: import("table-identity").TableIdentity;
6
+ } & import("vona-module-a-orm").TypeRecordAggrsValuesToObject<import("vona-module-a-orm").TypeRecordAggrsValues<{
7
+ count: "count_all";
8
+ sum: "sum_stars";
9
+ }>>>;
10
+ export declare class DtoPostGroup extends DtoPostGroup_base {
11
+ }
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { DtoSerializerSimple } from './serializerSimple.ts';
3
+ export interface IDtoOptionsSerializerArray extends IDecoratorDtoOptions {
4
+ }
5
+ export declare class DtoSerializerArray {
6
+ simples: DtoSerializerSimple[];
7
+ simplesLazy: DtoSerializerSimple[];
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { DtoSerializerSimple } from './serializerSimple.ts';
3
+ export interface IDtoOptionsSerializerLazy extends IDecoratorDtoOptions {
4
+ }
5
+ export declare class DtoSerializerLazy {
6
+ simple: DtoSerializerSimple;
7
+ simpleLazy: DtoSerializerSimple;
8
+ }
@@ -0,0 +1,19 @@
1
+ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ export interface IDtoOptionsSerializerSimple extends IDecoratorDtoOptions {
3
+ }
4
+ export declare class DtoSerializerSimple {
5
+ password: string;
6
+ password2: string;
7
+ email: string;
8
+ email2: string;
9
+ email3: string;
10
+ email4: string;
11
+ email5: string;
12
+ email6: string;
13
+ email7: string;
14
+ firstName: string;
15
+ lastName: string;
16
+ fullName: string;
17
+ fullName2: string;
18
+ get fullName3(): string;
19
+ }
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './.metadata/index.ts';
2
+ export * from './lib/index.ts';