vona-module-test-rest 5.0.0 → 5.1.2

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.
Files changed (52) hide show
  1. package/LICENSE +0 -0
  2. package/dist/.metadata/index.d.ts +292 -0
  3. package/dist/.metadata/index.d.ts.map +1 -0
  4. package/dist/.metadata/locales.d.ts +33 -0
  5. package/dist/.metadata/locales.d.ts.map +1 -0
  6. package/dist/.metadata/this.d.ts +3 -0
  7. package/dist/.metadata/this.d.ts.map +1 -0
  8. package/dist/bean/meta.version.d.ts +7 -0
  9. package/dist/bean/meta.version.d.ts.map +1 -0
  10. package/dist/bean/ssrMenu.product.d.ts +8 -0
  11. package/dist/bean/ssrMenu.product.d.ts.map +1 -0
  12. package/dist/config/locale/en-us.d.ts +16 -0
  13. package/dist/config/locale/en-us.d.ts.map +1 -0
  14. package/dist/config/locale/zh-cn.d.ts +16 -0
  15. package/dist/config/locale/zh-cn.d.ts.map +1 -0
  16. package/dist/controller/product.d.ts +19 -0
  17. package/dist/controller/product.d.ts.map +1 -0
  18. package/dist/dto/productCreate.d.ts +9 -0
  19. package/dist/dto/productCreate.d.ts.map +1 -0
  20. package/dist/dto/productQuery.d.ts +10 -0
  21. package/dist/dto/productQuery.d.ts.map +1 -0
  22. package/dist/dto/productQueryRes.d.ts +9 -0
  23. package/dist/dto/productQueryRes.d.ts.map +1 -0
  24. package/dist/dto/productUpdate.d.ts +9 -0
  25. package/dist/dto/productUpdate.d.ts.map +1 -0
  26. package/dist/entity/product.d.ts +12 -0
  27. package/dist/entity/product.d.ts.map +1 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +321 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/model/product.d.ts +8 -0
  33. package/dist/model/product.d.ts.map +1 -0
  34. package/dist/service/product.d.ts +16 -0
  35. package/dist/service/product.d.ts.map +1 -0
  36. package/package.json +38 -19
  37. package/src/.metadata/index.ts +361 -0
  38. package/src/.metadata/locales.ts +13 -0
  39. package/src/.metadata/this.ts +2 -0
  40. package/src/bean/meta.version.ts +44 -0
  41. package/src/bean/ssrMenu.product.ts +26 -0
  42. package/src/config/locale/en-us.ts +14 -0
  43. package/src/config/locale/zh-cn.ts +14 -0
  44. package/src/controller/product.tsx +66 -0
  45. package/src/dto/productCreate.ts +22 -0
  46. package/src/dto/productQuery.ts +22 -0
  47. package/src/dto/productQueryRes.ts +11 -0
  48. package/src/dto/productUpdate.ts +15 -0
  49. package/src/entity/product.tsx +97 -0
  50. package/src/index.ts +2 -0
  51. package/src/model/product.ts +10 -0
  52. package/src/service/product.ts +36 -0
package/dist/index.js ADDED
@@ -0,0 +1,321 @@
1
+ import { $makeLocaleMagic, BeanInfo, BeanBase, BeanScopeBase } from 'vona';
2
+ import { __decorate, __metadata, __param } from 'tslib';
3
+ import { Api, v, Resource } from 'vona-module-a-openapiutils';
4
+ import { Entity, EntityBase, Model, BeanModelBase, $Dto } from 'vona-module-a-orm';
5
+ import { Service, Scope } from 'vona-module-a-bean';
6
+ import { getRandomInt } from '@cabloy/utils';
7
+ import { faker } from '@faker-js/faker';
8
+ import { Meta } from 'vona-module-a-meta';
9
+ import { Dto, Web, Arg, Controller } from 'vona-module-a-web';
10
+ import z from 'zod';
11
+ import { Ssr, SsrMenu } from 'vona-module-a-ssr';
12
+ import { Passport } from 'vona-module-a-user';
13
+ import 'vona-module-a-openapi';
14
+
15
+ var locale_en_us = {
16
+ CreateProduct: 'Create Product',
17
+ UpdateProduct: 'Update Product',
18
+ ProductInfo: 'Product Info',
19
+ Name: 'Name',
20
+ Description: 'Description',
21
+ Product: 'Product',
22
+ Admin: 'Admin',
23
+ Price: 'Price',
24
+ Quantity: 'Quantity',
25
+ Amount: 'Amount',
26
+ ZodErrorStringMin: 'Minimum {{minimum}} characters',
27
+ ZodErrorNumberMin: 'Cannot be less than {{minimum}}'
28
+ };
29
+
30
+ var locale_zh_cn = {
31
+ CreateProduct: '创建产品',
32
+ UpdateProduct: '更新产品',
33
+ ProductInfo: '产品信息',
34
+ Name: '名称',
35
+ Description: '描述',
36
+ Product: '产品',
37
+ Admin: '管理',
38
+ Price: '价格',
39
+ Quantity: '数量',
40
+ Amount: '金额',
41
+ ZodErrorStringMin: '最少{{minimum}}个字符',
42
+ ZodErrorNumberMin: '不能小于{{minimum}}'
43
+ };
44
+
45
+ const locales = {
46
+ 'en-us': locale_en_us,
47
+ 'zh-cn': locale_zh_cn
48
+ };
49
+ function $locale(key, ...args) {
50
+ return $makeLocaleMagic(`test-rest::${key}`, ...args);
51
+ }
52
+
53
+ let EntityProduct = class EntityProduct extends EntityBase {
54
+ constructor(...args) {
55
+ super(...args);
56
+ this.name = void 0;
57
+ this.description = void 0;
58
+ this.price = void 0;
59
+ this.quantity = void 0;
60
+ this.amount = void 0;
61
+ }
62
+ };
63
+ __decorate([Api.field(v.title($locale('Name')), v.order(1),
64
+ // v.render(
65
+ // <ZZDemoBasicActionView>
66
+ // <div className="mock">{cel('displayValue')}</div>
67
+ // <div>{cel('get(permissions,"actions.create")')}</div>
68
+ // </ZZDemoBasicActionView>,
69
+ // 'table',
70
+ // ),
71
+ // v.render(
72
+ // <a
73
+ // className="hover:text-blue-500"
74
+ // href="#"
75
+ // onClick={(
76
+ // <action prevent>
77
+ // <ActionView></ActionView>
78
+ // <ActionVar name="var1" value={cel('getValue("id")')}></ActionVar>
79
+ // <ActionLog message={cel('var1+":var1 hello world"')}></ActionLog>
80
+ // <ActionExpr expression={cel('displayValue+"!"')}></ActionExpr>
81
+ // <ActionLog message={cel('res[3]')}></ActionLog>
82
+ // <ActionLog message={cel('getEventProp("x")+":"+getEventProp("y")')}></ActionLog>
83
+ // <action res="resAction">
84
+ // <ActionVar name="var2" value={cel('getValue("id")')}></ActionVar>
85
+ // <ActionLog message={cel('var2+":var2 hello world"')}></ActionLog>
86
+ // <ActionExpr expression={cel('displayValue+"!"')}></ActionExpr>
87
+ // <ActionLog message={cel('res[6]')}></ActionLog>
88
+ // <ActionLog message={cel('res[6][2]')}></ActionLog>
89
+ // <ActionExpr expression={cel('res[6][2]')}></ActionExpr>
90
+ // </action>
91
+ // <ActionLog message={cel('res[6]')}></ActionLog>
92
+ // <ActionLog message={cel('resAction')}></ActionLog>
93
+ // <AAActionsLog message={cel('"log: "+resAction')}></AAActionsLog>
94
+ // </action>
95
+ // )}
96
+ // >
97
+ // {cel('displayValue')}
98
+ // </a>,
99
+ // 'table',
100
+ // ),
101
+ v.render('actionView', 'table'), v.min(3, $locale('ZodErrorStringMin')), v.required()), __metadata("design:type", String)], EntityProduct.prototype, "name", void 0);
102
+ __decorate([Api.field(v.title($locale('Description')), v.order(2), v.optional()), __metadata("design:type", String)], EntityProduct.prototype, "description", void 0);
103
+ __decorate([Api.field(v.title($locale('Price')), v.order(3),
104
+ // v.render(<TTCurrency currency={{ exp: 4, fixed: 4 }}></TTCurrency>, 'table'),
105
+ // v.component('currency', { exp: 3, fixed: 3 }),
106
+ // v.render(
107
+ // <ZZDemoBasicTableCellTest showLog={true}>
108
+ // <div>{cel('displayValue')}</div>
109
+ // <div v-slot="header" v-slot-scope="item">{cel('name + ":header:" + item.name')}</div>
110
+ // <div v-slot="footer" v-slot-scope="scope">{cel('name + ":footer:" + scope.name')}</div>
111
+ // </ZZDemoBasicTableCellTest>,
112
+ // ),
113
+ v.component('currency'), v.min(0, $locale('ZodErrorNumberMin')), v.required()), __metadata("design:type", Number)], EntityProduct.prototype, "price", void 0);
114
+ __decorate([Api.field(v.title($locale('Quantity')), v.order(4), v.default(0)), __metadata("design:type", Number)], EntityProduct.prototype, "quantity", void 0);
115
+ __decorate([Api.field(v.title($locale('Amount')), v.order(5), v.component('currency'), v.required()), __metadata("design:type", Number)], EntityProduct.prototype, "amount", void 0);
116
+ EntityProduct = __decorate([Entity('testRestProduct', {
117
+ openapi: {
118
+ title: $locale('ProductInfo')
119
+ },
120
+ fields: {
121
+ _custom: {
122
+ title: 'Custom',
123
+ rest: {
124
+ render: 'text'
125
+ }
126
+ }
127
+ }
128
+ }), BeanInfo({
129
+ module: "test-rest"
130
+ })], EntityProduct);
131
+
132
+ let ModelProduct = class ModelProduct extends BeanModelBase {};
133
+ ModelProduct = __decorate([Model({
134
+ entity: EntityProduct
135
+ }), BeanInfo({
136
+ module: "test-rest"
137
+ })], ModelProduct);
138
+
139
+ let ServiceProduct = class ServiceProduct extends BeanBase {
140
+ async create(product) {
141
+ return await this.scope.model.product.insert(product);
142
+ }
143
+ async select(params) {
144
+ return await this.scope.model.product.selectAndCount({
145
+ ...params
146
+ });
147
+ }
148
+ async view(id) {
149
+ return await this.scope.model.product.getById(id);
150
+ }
151
+ async update(id, product) {
152
+ return await this.scope.model.product.updateById(id, product);
153
+ }
154
+ async delete(id) {
155
+ return await this.scope.model.product.deleteById(id);
156
+ }
157
+ };
158
+ ServiceProduct = __decorate([Service(), BeanInfo({
159
+ module: "test-rest"
160
+ })], ServiceProduct);
161
+
162
+ let MetaVersion = class MetaVersion extends BeanBase {
163
+ async update(options) {
164
+ if (options.version === 1) {
165
+ const entityProduct = this.scope.entity.product;
166
+ await this.bean.model.createTable(entityProduct.$table, table => {
167
+ table.basicFields();
168
+ table.string(entityProduct.name, 50);
169
+ table.string(entityProduct.description, 255);
170
+ table.integer(entityProduct.price);
171
+ table.int0(entityProduct.quantity);
172
+ table.integer(entityProduct.amount);
173
+ });
174
+ }
175
+ }
176
+ async test(_options) {
177
+ const items = [];
178
+ const now = Date.now();
179
+ for (let i = 0; i < 100; i++) {
180
+ const price = getRandomInt(1000, 50);
181
+ const quantity = getRandomInt(10, 1);
182
+ const amount = price * quantity;
183
+ const createdAt = new Date(now - (100 - i) * 3600 * 1000);
184
+ items.push({
185
+ name: faker.commerce.productName(),
186
+ price,
187
+ quantity,
188
+ amount,
189
+ createdAt
190
+ });
191
+ }
192
+ await this.scope.model.product.insertBulk(items);
193
+ }
194
+ };
195
+ MetaVersion = __decorate([Meta(), BeanInfo({
196
+ module: "test-rest"
197
+ })], MetaVersion);
198
+
199
+ let DtoProductCreate = class DtoProductCreate extends $Dto.create(() => ModelProduct) {};
200
+ DtoProductCreate = __decorate([Dto({
201
+ openapi: {
202
+ title: $locale('CreateProduct')
203
+ },
204
+ fields: {
205
+ _test: {
206
+ title: 'Test',
207
+ rest: {
208
+ render: 'text'
209
+ }
210
+ }
211
+ }
212
+ }), BeanInfo({
213
+ module: "test-rest"
214
+ })], DtoProductCreate);
215
+
216
+ let DtoProductQuery = class DtoProductQuery extends $Dto.queryPage(EntityProduct, ['name', 'createdAt']) {
217
+ constructor(...args) {
218
+ super(...args);
219
+ // remove .min(3)
220
+ this.name = void 0;
221
+ }
222
+ };
223
+ __decorate([Api.field(v.optional()), __metadata("design:type", String)], DtoProductQuery.prototype, "name", void 0);
224
+ DtoProductQuery = __decorate([Dto({
225
+ openapi: {
226
+ filter: {
227
+ table: 'testRestProduct'
228
+ }
229
+ },
230
+ fields: {
231
+ createdAt: z.string().optional()
232
+ }
233
+ }), BeanInfo({
234
+ module: "test-rest"
235
+ })], DtoProductQuery);
236
+
237
+ let DtoProductQueryRes = class DtoProductQueryRes extends $Dto.selectAndCount(() => ModelProduct) {};
238
+ DtoProductQueryRes = __decorate([Dto(), BeanInfo({
239
+ module: "test-rest"
240
+ })], DtoProductQueryRes);
241
+
242
+ let DtoProductUpdate = class DtoProductUpdate extends $Dto.update(() => ModelProduct) {};
243
+ DtoProductUpdate = __decorate([Dto({
244
+ openapi: {
245
+ title: $locale('UpdateProduct')
246
+ },
247
+ fields: {}
248
+ }), BeanInfo({
249
+ module: "test-rest"
250
+ })], DtoProductUpdate);
251
+
252
+ let ControllerProduct = class ControllerProduct extends BeanBase {
253
+ async create(product) {
254
+ return (await this.scope.service.product.create(product)).id;
255
+ }
256
+ async select(params) {
257
+ return await this.scope.service.product.select(params);
258
+ }
259
+ async view(id) {
260
+ return await this.scope.service.product.view(id);
261
+ }
262
+ async update(id, product) {
263
+ return await this.scope.service.product.update(id, product);
264
+ }
265
+ async delete(id) {
266
+ return await this.scope.service.product.delete(id);
267
+ }
268
+ };
269
+ __decorate([Web.post(), Api.body(v.tableIdentity()), Passport.roleName({
270
+ name: 'admin'
271
+ }), __param(0, Arg.body()), __metadata("design:type", Function), __metadata("design:paramtypes", [DtoProductCreate]), __metadata("design:returntype", Promise)], ControllerProduct.prototype, "create", null);
272
+ __decorate([Web.get(), Api.body(DtoProductQueryRes), Ssr.redirect('basic-siteadmin:admin', '/rest/resource/:resource', {
273
+ params: {
274
+ resource: 'test-rest:product'
275
+ }
276
+ }), __param(0, Arg.filter(DtoProductQuery)), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ControllerProduct.prototype, "select", null);
277
+ __decorate([Web.get(':id'), Api.body(v.optional(), v.object(EntityProduct)), __param(0, Arg.param('id', v.tableIdentity())), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ControllerProduct.prototype, "view", null);
278
+ __decorate([Web.patch(':id'), __param(0, Arg.param('id', v.tableIdentity())), __param(1, Arg.body()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, DtoProductUpdate]), __metadata("design:returntype", Promise)], ControllerProduct.prototype, "update", null);
279
+ __decorate([Web.delete(':id'), __param(0, Arg.param('id', v.tableIdentity())), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ControllerProduct.prototype, "delete", null);
280
+ ControllerProduct = __decorate([Controller('product', {
281
+ resourceMeta: {
282
+ provider: {
283
+ components: {
284
+ // restPage: <PPDevuiRestpage showFilter={true}></PPDevuiRestpage>,
285
+ // restPageEntry: <PPDevuiRestpageEntry toolbarPosition="bottom"></PPDevuiRestpageEntry>,
286
+ }
287
+ }
288
+ // permissions: true,
289
+ // permissions: false,
290
+ }
291
+ }), Resource(), BeanInfo({
292
+ module: "test-rest"
293
+ })], ControllerProduct);
294
+
295
+ let SsrMenuProduct = class SsrMenuProduct extends BeanBase {};
296
+ SsrMenuProduct = __decorate([SsrMenu({
297
+ items: {
298
+ product: {
299
+ title: $locale('Product'),
300
+ group: 'basic-siteadmin:management',
301
+ link: 'presetResource',
302
+ meta: {
303
+ params: {
304
+ resource: 'test-rest:product'
305
+ }
306
+ }
307
+ }
308
+ },
309
+ site: 'basic-siteadmin:admin'
310
+ }), BeanInfo({
311
+ module: "test-rest"
312
+ })], SsrMenuProduct);
313
+
314
+ let ScopeModuleTestRest = class ScopeModuleTestRest extends BeanScopeBase {};
315
+ ScopeModuleTestRest = __decorate([Scope(), BeanInfo({
316
+ module: "test-rest"
317
+ })], ScopeModuleTestRest);
318
+ /** scope: end */
319
+
320
+ export { $locale, ControllerProduct, DtoProductCreate, DtoProductQuery, DtoProductQueryRes, DtoProductUpdate, EntityProduct, MetaVersion, ModelProduct, ScopeModuleTestRest, ServiceProduct, SsrMenuProduct, locales };
321
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/config/locale/en-us.ts","../src/config/locale/zh-cn.ts","../src/.metadata/locales.ts","../src/entity/product.tsx","../src/model/product.ts","../src/service/product.ts","../src/bean/meta.version.ts","../src/dto/productCreate.ts","../src/dto/productQuery.ts","../src/dto/productQueryRes.ts","../src/dto/productUpdate.ts","../src/controller/product.tsx","../src/bean/ssrMenu.product.ts","../src/.metadata/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["CreateProduct","UpdateProduct","ProductInfo","Name","Description","Product","Admin","Price","Quantity","Amount","ZodErrorStringMin","ZodErrorNumberMin","locales","locale_en_us","locale_zh_cn","$locale","key","args","$makeLocaleMagic","EntityProduct","EntityBase","constructor","name","description","price","quantity","amount","__decorate","Api","field","v","title","order","render","min","required","prototype","optional","component","default","Entity","openapi","fields","_custom","rest","__z_BeanInfo","module","ModelProduct","BeanModelBase","Model","entity","ServiceProduct","BeanBase","create","product","scope","model","insert","select","params","selectAndCount","view","id","getById","update","updateById","delete","deleteById","Service","MetaVersion","options","version","entityProduct","bean","createTable","$table","table","basicFields","string","integer","int0","test","_options","items","now","Date","i","getRandomInt","createdAt","push","faker","commerce","productName","insertBulk","Meta","DtoProductCreate","$Dto","Dto","_test","DtoProductQuery","queryPage","filter","z","DtoProductQueryRes","DtoProductUpdate","ControllerProduct","service","Web","post","body","tableIdentity","Passport","roleName","__param","Arg","get","Ssr","redirect","resource","object","param","patch","Controller","resourceMeta","provider","components","Resource","SsrMenuProduct","SsrMenu","group","link","meta","site","ScopeModuleTestRest","BeanScopeBase","Scope"],"mappings":";;;;;;;;;;;;;;AAAA,mBAAe;AACbA,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,iBAAiB,EAAE,gCAAgC;AACnDC,EAAAA,iBAAiB,EAAE;CACpB;;ACbD,mBAAe;AACbX,EAAAA,aAAa,EAAE,MAAM;AACrBC,EAAAA,aAAa,EAAE,MAAM;AACrBC,EAAAA,WAAW,EAAE,MAAM;AACnBC,EAAAA,IAAI,EAAE,IAAI;AACVC,EAAAA,WAAW,EAAE,IAAI;AACjBC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,KAAK,EAAE,IAAI;AACXC,EAAAA,KAAK,EAAE,IAAI;AACXC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,iBAAiB,EAAE,kBAAkB;AACrCC,EAAAA,iBAAiB,EAAE;CACpB;;ACRM,MAAMC,OAAO,GAAG;AACrB,EAAA,OAAO,EAAEC,YAAY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AAA1F,QAAA,CAAA;EAAAC,MAAA,EAAA;AAAA,CAAA,CAAA,CACK,EAAAuF,mBAAmB,CAAyB;AA4BzD;;;;"}
@@ -0,0 +1,8 @@
1
+ import type { IDecoratorModelOptions } from 'vona-module-a-orm';
2
+ import { BeanModelBase } from 'vona-module-a-orm';
3
+ import { EntityProduct } from '../entity/product.tsx';
4
+ export interface IModelOptionsProduct extends IDecoratorModelOptions<EntityProduct> {
5
+ }
6
+ export declare class ModelProduct extends BeanModelBase<EntityProduct> {
7
+ }
8
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/model/product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAS,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB,CAAC,aAAa,CAAC;CAAG;AAEtF,qBACa,YAAa,SAAQ,aAAa,CAAC,aAAa,CAAC;CAAG"}
@@ -0,0 +1,16 @@
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IQueryParams } from 'vona-module-a-orm';
3
+ import { BeanBase } from 'vona';
4
+ import type { DtoProductCreate } from '../dto/productCreate.ts';
5
+ import type { DtoProductQueryRes } from '../dto/productQueryRes.ts';
6
+ import type { DtoProductUpdate } from '../dto/productUpdate.ts';
7
+ import type { EntityProduct } from '../entity/product.tsx';
8
+ import type { ModelProduct } from '../model/product.ts';
9
+ export declare class ServiceProduct extends BeanBase {
10
+ create(product: DtoProductCreate): Promise<EntityProduct>;
11
+ select(params?: IQueryParams<ModelProduct>): Promise<DtoProductQueryRes>;
12
+ view(id: TableIdentity): Promise<EntityProduct | undefined>;
13
+ update(id: TableIdentity, product: DtoProductUpdate): Promise<import("vona-module-a-orm").TypeModelMutateRelationData<EntityProduct, ModelProduct, import("vona-module-a-orm").IModelUpdateOptions<EntityProduct, ModelProduct>>>;
14
+ delete(id: TableIdentity): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/service/product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBACa,cAAe,SAAQ,QAAQ;IACpC,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIzD,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAMxE,IAAI,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAI3D,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB;IAInD,MAAM,CAAC,EAAE,EAAE,aAAa;CAG/B"}
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "vona-module-test-rest",
3
- "type": "module",
4
- "version": "5.0.0",
5
- "title": "test-rest",
6
- "vonaModule": {
7
- "fileVersion": 1,
8
- "dependencies": {
9
- "a-cabloy": "5.0.0"
10
- }
11
- },
3
+ "version": "5.1.2",
12
4
  "description": "",
13
- "author": "",
14
5
  "keywords": [
15
6
  "Vona Module"
16
7
  ],
8
+ "author": "",
9
+ "files": [
10
+ "assets",
11
+ "dist",
12
+ "src"
13
+ ],
14
+ "type": "module",
17
15
  "exports": {
18
16
  ".": {
19
17
  "types": [
@@ -24,13 +22,34 @@
24
22
  },
25
23
  "./package.json": "./package.json"
26
24
  },
27
- "files": [
28
- "dist",
29
- "static"
30
- ],
31
- "dependencies": {},
32
25
  "scripts": {
33
- "clean": "rimraf dist tsconfig.tsbuildinfo",
34
- "tsc:publish": "npm run clean && tsc"
35
- }
36
- }
26
+ "clean": "rimraf dist tsconfig.build.tsbuildinfo",
27
+ "tsc:publish": "npm run clean && vona :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
28
+ "prepublishOnly": "npm run tsc:publish",
29
+ "prepack": "clean-package",
30
+ "postpack": "clean-package restore && npm run clean"
31
+ },
32
+ "dependencies": {
33
+ "@faker-js/faker": "^10.0.0"
34
+ },
35
+ "devDependencies": {
36
+ "clean-package": "^2.2.0",
37
+ "rimraf": "^6.0.1"
38
+ },
39
+ "title": "test-rest",
40
+ "vonaModule": {
41
+ "fileVersion": 1,
42
+ "dependencies": {
43
+ "a-cabloy": "5.0.0"
44
+ },
45
+ "capabilities": {
46
+ "meta": {
47
+ "mode": [
48
+ "dev",
49
+ "test"
50
+ ]
51
+ }
52
+ }
53
+ },
54
+ "gitHead": "a79189b882c17af5911573896a781bbb0046d37d"
55
+ }