vona-module-a-openapiutils 5.0.10 → 5.0.11
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/dist/.metadata/index.d.ts +2 -9
- package/dist/.metadata/locales.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -5
- package/package.json +1 -1
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
ZodErrorRequired: string;
|
|
4
|
-
};
|
|
5
|
-
'zh-cn': {
|
|
6
|
-
ZodErrorRequired: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
/** locale: begin */
|
|
2
|
+
import { locales } from './locales.ts';
|
|
9
3
|
/** locale: end */
|
|
10
4
|
/** scope: begin */
|
|
11
5
|
import { BeanScopeBase, type BeanScopeUtil, type TypeModuleLocales, type TypeLocaleBase } from 'vona';
|
|
@@ -27,5 +21,4 @@ declare module 'vona' {
|
|
|
27
21
|
'a-openapiutils': (typeof locales)[TypeLocaleBase];
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
|
-
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-openapiutils::${K}`;
|
|
31
24
|
/** scope: end */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TypeLocaleBase } from 'vona';
|
|
2
|
+
export declare const locales: {
|
|
3
|
+
'en-us': {
|
|
4
|
+
ZodErrorRequired: string;
|
|
5
|
+
};
|
|
6
|
+
'zh-cn': {
|
|
7
|
+
ZodErrorRequired: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-openapiutils::${K}`;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,6 +5,13 @@ import { z } from 'zod';
|
|
|
5
5
|
import { ZodMetadata } from '@cabloy/zod-openapi';
|
|
6
6
|
import { coerceWithNil } from '@cabloy/zod-query';
|
|
7
7
|
|
|
8
|
+
var _dec, _dec2, _class;
|
|
9
|
+
let ScopeModuleAOpenapiutils = (_dec = Scope(), _dec2 = BeanInfo({
|
|
10
|
+
module: "a-openapiutils"
|
|
11
|
+
}), _dec(_class = _dec2(_class = class ScopeModuleAOpenapiutils extends BeanScopeBase {}) || _class) || _class);
|
|
12
|
+
|
|
13
|
+
/** scope: end */
|
|
14
|
+
|
|
8
15
|
var locale_en_us = {
|
|
9
16
|
ZodErrorRequired: 'Required'
|
|
10
17
|
};
|
|
@@ -13,18 +20,13 @@ var locale_zh_cn = {
|
|
|
13
20
|
ZodErrorRequired: '必填项'
|
|
14
21
|
};
|
|
15
22
|
|
|
16
|
-
var _dec, _dec2, _class;
|
|
17
23
|
const locales = {
|
|
18
24
|
'en-us': locale_en_us,
|
|
19
25
|
'zh-cn': locale_zh_cn
|
|
20
26
|
};
|
|
21
|
-
let ScopeModuleAOpenapiutils = (_dec = Scope(), _dec2 = BeanInfo({
|
|
22
|
-
module: "a-openapiutils"
|
|
23
|
-
}), _dec(_class = _dec2(_class = class ScopeModuleAOpenapiutils extends BeanScopeBase {}) || _class) || _class);
|
|
24
27
|
function $locale(key) {
|
|
25
28
|
return `a-openapiutils::${key}`;
|
|
26
29
|
}
|
|
27
|
-
/** scope: end */
|
|
28
30
|
|
|
29
31
|
const OrderCoreBase = 100;
|
|
30
32
|
const OrderBusinessBase = 1000;
|