zova-module-a-zod 5.1.2 → 5.1.6

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.
@@ -0,0 +1,46 @@
1
+ /** tool: begin */
2
+ export * from '../bean/tool.v.js';
3
+ import 'zova';
4
+ declare module 'zova' {
5
+ }
6
+ declare module 'zova-module-a-zod' {
7
+ interface ToolV {
8
+ }
9
+ interface ToolV {
10
+ get $beanFullName(): 'a-zod.tool.v';
11
+ get $onionName(): 'a-zod:v';
12
+ }
13
+ }
14
+ /** tool: end */
15
+ /** tool: begin */
16
+ import { ToolV } from '../bean/tool.v.js';
17
+ import 'zova';
18
+ declare module 'zova' {
19
+ interface IBeanRecordGeneral {
20
+ 'a-zod.tool.v': ToolV;
21
+ }
22
+ }
23
+ /** tool: end */
24
+ /** locale: begin */
25
+ import { locales } from './locales.js';
26
+ /** locale: end */
27
+ /** scope: begin */
28
+ import { BeanScopeBase, type BeanScopeUtil, TypeModuleLocales, TypeLocaleBase } from 'zova';
29
+ export declare class ScopeModuleAZod extends BeanScopeBase {
30
+ }
31
+ export interface ScopeModuleAZod {
32
+ util: BeanScopeUtil;
33
+ locale: TypeModuleLocales<(typeof locales)[TypeLocaleBase]>;
34
+ }
35
+ import 'zova';
36
+ declare module 'zova' {
37
+ interface IBeanScopeRecord {
38
+ 'a-zod': ScopeModuleAZod;
39
+ }
40
+ interface IBeanScopeLocale {
41
+ 'a-zod': (typeof locales)[TypeLocaleBase];
42
+ }
43
+ }
44
+ export declare function locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-zod::${K}`;
45
+ /** scope: end */
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"mappings":"AACA,kBAAkB;AAClB,cAAc,mBAAmB,CAAC;AAElC,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;CAGr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h-cn': {
7
+ ZodErrorRequired: string;
8
+ };
9
+ };
10
+ export declare function $useLocale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K, ...args: any[]): string;
11
+ //# sourceMappingURL=locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/.metadata/locales.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAK3C,eAAO,MAAM,OAAO;;;;;;;CAGnB,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,UAMlG"}
@@ -0,0 +1,3 @@
1
+ export declare const __ThisModule__ = "a-zod";
2
+ export { ScopeModuleAZod as ScopeModule } from './index.js';
3
+ //# sourceMappingURL=this.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"this.d.ts","sourceRoot":"","sources":["../../src/.metadata/this.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import z from 'zod';
2
+ import { BeanBase } from 'zova';
3
+ export declare class ToolV extends BeanBase {
4
+ protected __init__(): Promise<void>;
5
+ required<T extends z.ZodType>(schema: T, params?: string | z.core.$ZodStringParams): T;
6
+ }
7
+ //# sourceMappingURL=tool.v.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.v.d.ts","sourceRoot":"","sources":["../../src/bean/tool.v.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,qBACa,KAAM,SAAQ,QAAQ;cACjB,QAAQ;IAExB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC;CAKvF"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ ZodErrorRequired: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=en-us.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-us.d.ts","sourceRoot":"","sources":["../../../src/config/locale/en-us.ts"],"names":[],"mappings":";;;AAAA,wBAEE"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ ZodErrorRequired: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=zh-cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-cn.d.ts","sourceRoot":"","sources":["../../../src/config/locale/zh-cn.ts"],"names":[],"mappings":";;;AAAA,wBAEE"}
@@ -0,0 +1,3 @@
1
+ export * from './.metadata/index.js';
2
+ export * from './.metadata/locales.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-zod",
3
- "version": "5.1.2",
3
+ "version": "5.1.6",
4
+ "gitHead": "fa2b2ad94fb521534a1312c30256c1e155926bd3",
4
5
  "description": "",
5
6
  "keywords": [
6
7
  "Zova Module"
@@ -27,7 +28,7 @@
27
28
  },
28
29
  "scripts": {
29
30
  "clean": "rimraf dist tsconfig.build.tsbuildinfo",
30
- "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap",
31
+ "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
31
32
  "prepublishOnly": "npm run tsc:publish",
32
33
  "prepack": "clean-package",
33
34
  "postpack": "clean-package restore && npm run clean"
@@ -59,6 +60,5 @@
59
60
  }
60
61
  ]
61
62
  }
62
- },
63
- "gitHead": "5517baba5865ac348af5be8e3a0f7506b0a67f9c"
63
+ }
64
64
  }