vona-module-a-orm 5.0.87 → 5.0.88
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 +3 -19
- package/dist/.metadata/locales.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +27 -25
- package/package.json +1 -1
|
@@ -211,24 +211,9 @@ declare module 'vona-module-a-orm' {
|
|
|
211
211
|
/** config: begin */
|
|
212
212
|
export * from '../config/config.ts';
|
|
213
213
|
import type { config } from '../config/config.ts';
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
CreatedAt: string;
|
|
218
|
-
UpdatedAt: string;
|
|
219
|
-
Deleted: string;
|
|
220
|
-
InstanceId: string;
|
|
221
|
-
ShouldSpecifyTable: string;
|
|
222
|
-
};
|
|
223
|
-
'zh-cn': {
|
|
224
|
-
TableIdentity: string;
|
|
225
|
-
CreatedAt: string;
|
|
226
|
-
UpdatedAt: string;
|
|
227
|
-
Deleted: string;
|
|
228
|
-
InstanceId: string;
|
|
229
|
-
ShouldSpecifyTable: string;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
214
|
+
/** config: end */
|
|
215
|
+
/** locale: begin */
|
|
216
|
+
import { locales } from './locales.ts';
|
|
232
217
|
/** locale: end */
|
|
233
218
|
/** error: begin */
|
|
234
219
|
export * from '../config/errors.ts';
|
|
@@ -269,5 +254,4 @@ declare module 'vona' {
|
|
|
269
254
|
'a-orm': typeof errors;
|
|
270
255
|
}
|
|
271
256
|
}
|
|
272
|
-
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-orm::${K}`;
|
|
273
257
|
/** scope: end */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TypeLocaleBase } from 'vona';
|
|
2
|
+
export declare const locales: {
|
|
3
|
+
'en-us': {
|
|
4
|
+
TableIdentity: string;
|
|
5
|
+
CreatedAt: string;
|
|
6
|
+
UpdatedAt: string;
|
|
7
|
+
Deleted: string;
|
|
8
|
+
InstanceId: string;
|
|
9
|
+
ShouldSpecifyTable: string;
|
|
10
|
+
};
|
|
11
|
+
'zh-cn': {
|
|
12
|
+
TableIdentity: string;
|
|
13
|
+
CreatedAt: string;
|
|
14
|
+
UpdatedAt: string;
|
|
15
|
+
Deleted: string;
|
|
16
|
+
InstanceId: string;
|
|
17
|
+
ShouldSpecifyTable: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-orm::${K}`;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1335,6 +1335,32 @@ let DtoQueryPageBase = (_dec$h = Api.field(z.number().min(1).default(1)), _dec2$
|
|
|
1335
1335
|
|
|
1336
1336
|
const SymbolKeyFieldsMore = Symbol('$fieldsMore');
|
|
1337
1337
|
|
|
1338
|
+
var locale_en_us = {
|
|
1339
|
+
TableIdentity: 'ID',
|
|
1340
|
+
CreatedAt: 'Created At',
|
|
1341
|
+
UpdatedAt: 'Updated At',
|
|
1342
|
+
Deleted: 'Deleted',
|
|
1343
|
+
InstanceId: 'Instance ID',
|
|
1344
|
+
ShouldSpecifyTable: 'should specify the table name'
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
var locale_zh_cn = {
|
|
1348
|
+
TableIdentity: '标识',
|
|
1349
|
+
CreatedAt: '创建时间',
|
|
1350
|
+
UpdatedAt: '修改时间',
|
|
1351
|
+
Deleted: '已删除',
|
|
1352
|
+
InstanceId: '实例标识',
|
|
1353
|
+
ShouldSpecifyTable: '应该指定表名'
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
const locales = {
|
|
1357
|
+
'en-us': locale_en_us,
|
|
1358
|
+
'zh-cn': locale_zh_cn
|
|
1359
|
+
};
|
|
1360
|
+
function $locale(key) {
|
|
1361
|
+
return `a-orm::${key}`;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1338
1364
|
class EntityBaseEmpty {}
|
|
1339
1365
|
|
|
1340
1366
|
var _dec$g, _dec2$g, _dec3$4, _dec4$2, _dec5, _dec6, _dec7, _dec8, _class$g, _descriptor$2, _descriptor2, _descriptor3, _descriptor4;
|
|
@@ -3836,24 +3862,6 @@ function config(_app) {
|
|
|
3836
3862
|
};
|
|
3837
3863
|
}
|
|
3838
3864
|
|
|
3839
|
-
var locale_en_us = {
|
|
3840
|
-
TableIdentity: 'ID',
|
|
3841
|
-
CreatedAt: 'Created At',
|
|
3842
|
-
UpdatedAt: 'Updated At',
|
|
3843
|
-
Deleted: 'Deleted',
|
|
3844
|
-
InstanceId: 'Instance ID',
|
|
3845
|
-
ShouldSpecifyTable: 'should specify the table name'
|
|
3846
|
-
};
|
|
3847
|
-
|
|
3848
|
-
var locale_zh_cn = {
|
|
3849
|
-
TableIdentity: '标识',
|
|
3850
|
-
CreatedAt: '创建时间',
|
|
3851
|
-
UpdatedAt: '修改时间',
|
|
3852
|
-
Deleted: '已删除',
|
|
3853
|
-
InstanceId: '实例标识',
|
|
3854
|
-
ShouldSpecifyTable: '应该指定表名'
|
|
3855
|
-
};
|
|
3856
|
-
|
|
3857
3865
|
const errors = {
|
|
3858
3866
|
ShouldSpecifyTable: 1001
|
|
3859
3867
|
};
|
|
@@ -3998,16 +4006,10 @@ async function configTest(_app) {
|
|
|
3998
4006
|
}
|
|
3999
4007
|
|
|
4000
4008
|
var _dec, _dec2, _class;
|
|
4001
|
-
const locales = {
|
|
4002
|
-
'en-us': locale_en_us,
|
|
4003
|
-
'zh-cn': locale_zh_cn
|
|
4004
|
-
};
|
|
4005
4009
|
let ScopeModuleAOrm = (_dec = Scope(), _dec2 = BeanInfo({
|
|
4006
4010
|
module: "a-orm"
|
|
4007
4011
|
}), _dec(_class = _dec2(_class = class ScopeModuleAOrm extends BeanScopeBase {}) || _class) || _class);
|
|
4008
|
-
|
|
4009
|
-
return `a-orm::${key}`;
|
|
4010
|
-
}
|
|
4012
|
+
|
|
4011
4013
|
/** scope: end */
|
|
4012
4014
|
|
|
4013
4015
|
function DatabaseDialect(options) {
|