vona-cli-set-api 1.0.371 → 1.0.375

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.
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.212"
49
+ "vona": "^5.0.214"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@cabloy/lint": "^5.0.16",
@@ -3,7 +3,7 @@ import type { IMailClientRecord, TypeMailTransportService } from 'vona-module-a-
3
3
  import type { IDatabaseClientRecord } from 'vona-module-a-orm';
4
4
  import type * as Winston from 'winston';
5
5
  import { replaceTemplate } from '@cabloy/utils';
6
- import { $customKey, formatLoggerAxiosError, formatLoggerCtx, getLoggerPathPhysicalRoot, getPublicPathPhysicalRoot } from 'vona';
6
+ import { $customKey, formatLoggerAxiosError, formatLoggerCtx, getLoggerPathPhysicalRoot, getPublicPathPhysicalRoot, getRedisClientKeyPrefix } from 'vona';
7
7
 
8
8
  declare module 'vona' {
9
9
  export interface IInstanceRecord {
@@ -119,14 +119,14 @@ export default function (appInfo: VonaAppInfo, env: VonaConfigEnv) {
119
119
  enableReadyCheck: false,
120
120
  },
121
121
  clients: {
122
- default: { keyPrefix: `default_${appInfo.name}:` },
122
+ default: { keyPrefix: getRedisClientKeyPrefix('default', appInfo) },
123
+ cache: { keyPrefix: getRedisClientKeyPrefix('cache', appInfo) },
124
+ io: { keyPrefix: getRedisClientKeyPrefix('io', appInfo) },
125
+ summer: { keyPrefix: getRedisClientKeyPrefix('summer', appInfo) },
126
+ model: { keyPrefix: getRedisClientKeyPrefix('model', appInfo) },
123
127
  redlock: {},
124
128
  queue: {},
125
129
  broadcast: {},
126
- cache: { keyPrefix: `cache_${appInfo.name}:` },
127
- io: { keyPrefix: `io_${appInfo.name}:` },
128
- summer: { keyPrefix: `summer_${appInfo.name}:` },
129
- model: { keyPrefix: `model_${appInfo.name}:` },
130
130
  },
131
131
  };
132
132
 
@@ -1,4 +1,5 @@
1
1
  import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { Api, v } from 'vona-module-a-openapi';
2
3
  import { $Dto, $tableName } from 'vona-module-a-orm';
3
4
  import { Dto } from 'vona-module-a-web';
4
5
  import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.ts';
@@ -8,4 +9,7 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>Query extends IDecor
8
9
  @Dto<IDtoOptions<%=argv.resourceNameCapitalize%>Query>({
9
10
  openapi: { query: { table: $tableName(Entity<%=argv.resourceNameCapitalize%>) } },
10
11
  })
11
- export class Dto<%=argv.resourceNameCapitalize%>Query extends $Dto.queryPage(Entity<%=argv.resourceNameCapitalize%>, ['name']) {}
12
+ export class Dto<%=argv.resourceNameCapitalize%>Query extends $Dto.queryPage(Entity<%=argv.resourceNameCapitalize%>, ['name']) {
13
+ @Api.field(v.optional())
14
+ name?: string;
15
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.371",
4
+ "version": "1.0.375",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -31,7 +31,7 @@
31
31
  "@babel/plugin-proposal-decorators": "^7.25.9",
32
32
  "@babel/plugin-transform-class-properties": "^7.25.9",
33
33
  "@babel/plugin-transform-typescript": "^7.26.8",
34
- "@cabloy/cli": "^3.0.60",
34
+ "@cabloy/cli": "^3.0.61",
35
35
  "@cabloy/dotenv": "^1.1.10",
36
36
  "@cabloy/extend": "^3.1.10",
37
37
  "@cabloy/module-glob": "^5.2.32",
@@ -61,7 +61,7 @@
61
61
  "ts-node-maintained": "^10.9.6",
62
62
  "urllib": "^4.6.11",
63
63
  "uuid": "^11.1.0",
64
- "vona-core": "^5.0.99",
64
+ "vona-core": "^5.0.101",
65
65
  "why-is-node-running": "^3.2.2",
66
66
  "yargs-parser": "^22.0.0"
67
67
  },