cabloy 5.1.19 → 5.1.21
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/.gitignore +0 -0
- package/LICENSE +0 -0
- package/package.json +28 -24
- package/scripts/upgrade.ts +13 -4
- package/vona/README.md +0 -0
- package/vona/README.zh-CN.md +0 -0
- package/vona/packages-cli/cabloy-cli/LICENSE +0 -0
- package/vona/packages-cli/cabloy-cli/README.md +0 -0
- package/vona/packages-cli/cabloy-cli/package.json +0 -0
- package/vona/packages-cli/cli/LICENSE +0 -0
- package/vona/packages-cli/cli/README.md +0 -0
- package/vona/packages-cli/cli/package.json +0 -0
- package/vona/packages-cli/cli-set-api/LICENSE +0 -0
- package/vona/packages-cli/cli-set-api/README.md +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/module/boilerplate/_package.json +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/module/boilerplate/src/index.ts_ +0 -0
- package/vona/packages-cli/cli-set-api/cli/templates/create/suite/modules/.gitkeep +0 -0
- package/vona/packages-cli/cli-set-api/package.json +0 -0
- package/vona/packages-utils/babel-plugin-vona-bean-module/README.md +0 -0
- package/vona/packages-utils/babel-plugin-vona-bean-module/package.json +0 -0
- package/vona/packages-utils/cascade-extend/LICENSE +0 -0
- package/vona/packages-utils/cascade-extend/README.md +0 -0
- package/vona/packages-utils/cascade-extend/package.json +0 -0
- package/vona/packages-utils/compose/README.md +0 -0
- package/vona/packages-utils/compose/package.json +0 -0
- package/vona/packages-utils/deps/README.md +0 -0
- package/vona/packages-utils/deps/package.json +0 -0
- package/vona/packages-utils/dotenv/README.md +0 -0
- package/vona/packages-utils/dotenv/package.json +0 -0
- package/vona/packages-utils/extend/README.md +0 -0
- package/vona/packages-utils/extend/package.json +0 -0
- package/vona/packages-utils/json5/README.md +0 -0
- package/vona/packages-utils/json5/package.json +0 -0
- package/vona/packages-utils/localeutil/README.md +0 -0
- package/vona/packages-utils/localeutil/package.json +0 -0
- package/vona/packages-utils/module-glob/README.md +0 -0
- package/vona/packages-utils/module-glob/package.json +0 -0
- package/vona/packages-utils/module-info-pro/README.md +0 -0
- package/vona/packages-utils/module-info-pro/package.json +0 -0
- package/vona/packages-utils/password-hash-salt/LICENSE +0 -0
- package/vona/packages-utils/password-hash-salt/README.md +0 -0
- package/vona/packages-utils/password-hash-salt/package.json +0 -0
- package/vona/packages-utils/process-helper/README.md +0 -0
- package/vona/packages-utils/process-helper/package.json +0 -0
- package/vona/packages-utils/socket/package.json +0 -0
- package/vona/packages-utils/table-identity/LICENSE +0 -0
- package/vona/packages-utils/table-identity/README.md +0 -0
- package/vona/packages-utils/table-identity/package.json +0 -0
- package/vona/packages-utils/utils/README.md +0 -0
- package/vona/packages-utils/utils/package.json +0 -0
- package/vona/packages-utils/zod-errors-custom/package.json +0 -0
- package/vona/packages-utils/zod-openapi/package.json +0 -0
- package/vona/packages-utils/zod-query/package.json +0 -0
- package/vona/packages-vona/vona/LICENSE +0 -0
- package/vona/packages-vona/vona/README.md +0 -0
- package/vona/packages-vona/vona/README.zh-CN.md +0 -0
- package/vona/packages-vona/vona/package.json +0 -0
- package/vona/packages-vona/vona-core/package.json +0 -0
- package/vona/packages-vona/vona-core/src/index.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorClass.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorInternal.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/core/context.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/core/meta.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/locale/zh-cn.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/config.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/constant.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/errors.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/loader.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/locales.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/module/module.ts +0 -0
- package/vona/packages-vona/vona-core/src/lib/utils/util.ts +0 -0
- package/vona/packages-vona/vona-mock/README.md +0 -0
- package/vona/packages-vona/vona-mock/package.json +0 -0
- package/vona/packages-vona/vona-shared/LICENSE +0 -0
- package/vona/packages-vona/vona-shared/package.json +0 -0
- package/vona/pnpm-lock.yaml +60 -58
- package/vona/scripts/release.sh +0 -0
- package/vona/src/suite-vendor/a-auth/modules/a-auth/src/lib/strategyMock.ts +0 -0
- package/vona/src/suite-vendor/a-auth/tsconfig.json +0 -3
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/package.json +0 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-status/src/model/status.ts +0 -0
- package/vona/src/suite-vendor/a-cabloy/tsconfig.json +0 -9
- package/vona/src/suite-vendor/a-captcha/tsconfig.json +0 -3
- package/vona/src/suite-vendor/a-vona/modules/a-instance/package.json +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-instance/src/index.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/package.json +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/config/errors.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/config/locale/zh-cn.ts +0 -0
- package/vona/src/suite-vendor/a-vona/modules/a-version/src/index.ts +0 -0
- package/vona/src/suite-vendor/a-vona/tsconfig.json +0 -3
- package/zova/packages-cli/cli/LICENSE +0 -0
- package/zova/packages-cli/cli/README.md +0 -0
- package/zova/packages-cli/cli/package.json +0 -0
- package/zova/packages-cli/cli-set-front/LICENSE +0 -0
- package/zova/packages-cli/cli-set-front/README.md +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/module/boilerplate/_package.json +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/module/boilerplate/src/index.ts_ +0 -0
- package/zova/packages-cli/cli-set-front/cli/templates/create/suite/modules/.gitkeep +0 -0
- package/zova/packages-cli/cli-set-front/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-module/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-bean-use/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-behavior/package.json +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/LICENSE +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/README.md +0 -0
- package/zova/packages-utils/babel-plugin-zova-component/package.json +0 -0
- package/zova/packages-utils/logger/LICENSE +0 -0
- package/zova/packages-utils/logger/README.md +0 -0
- package/zova/packages-utils/logger/package.json +0 -0
- package/zova/packages-utils/mutate-on-copy/LICENSE +0 -0
- package/zova/packages-utils/mutate-on-copy/README.md +0 -0
- package/zova/packages-utils/mutate-on-copy/package.json +0 -0
- package/zova/packages-utils/quasar-app-extension-zova/LICENSE +0 -0
- package/zova/packages-utils/word-utils/LICENSE +0 -0
- package/zova/packages-utils/word-utils/README.md +0 -0
- package/zova/packages-utils/word-utils/package.json +0 -0
- package/zova/packages-utils/zova-jsx/LICENSE +0 -0
- package/zova/packages-utils/zova-jsx/package.json +0 -0
- package/zova/packages-utils/zova-openapi/LICENSE +0 -0
- package/zova/packages-utils/zova-openapi/package.json +0 -0
- package/zova/packages-utils/zova-vite/LICENSE +0 -0
- package/zova/packages-utils/zova-vite/README.md +0 -0
- package/zova/packages-utils/zova-vite/package.json +0 -0
- package/zova/packages-zova/zova/LICENSE +0 -0
- package/zova/packages-zova/zova/package.json +0 -0
- package/zova/packages-zova/zova-core/LICENSE +0 -0
- package/zova/packages-zova/zova-core/README.md +0 -0
- package/zova/packages-zova/zova-core/package.json +0 -0
- package/zova/packages-zova/zova-core/src/bean/resource/error/errorClass.ts +0 -0
- package/zova/packages-zova/zova-core/src/bean/resource/error/errorInternal.ts +0 -0
- package/zova/scripts/release.sh +0 -0
- package/zova/src/suite/a-home/modules/home-index/package.json +0 -0
- package/zova/src/suite/a-home/modules/home-index/src/routes.ts +0 -0
- package/zova/src/suite-vendor/a-cabloy/LICENSE +0 -0
- package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-api/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-app/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-bean/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-behavior/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-behaviors/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-boundary/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-command/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-fetch/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-form/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-icon/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-interceptor/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-logger/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-meta/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-model/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-router/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-routerstack/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-routertabs/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-style/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-zod/LICENSE +0 -0
- package/zova/src/suite-vendor/a-zova/modules/a-zova/LICENSE +0 -0
- package/vona/src/suite-vendor/a-auth/modules/test-auth/package.json +0 -52
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/index.ts +0 -74
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/controller/passport.ts +0 -19
- package/vona/src/suite-vendor/a-auth/modules/test-auth/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authOauth.test.ts +0 -55
- package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authSimple.test.ts +0 -52
- package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/package.json +0 -60
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/index.ts +0 -103
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/bean/meta.status.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/controller/status.ts +0 -44
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/datasource.test.ts +0 -51
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/socket.test.ts +0 -48
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/status.test.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/package.json +0 -63
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/index.ts +0 -377
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/meta.version.ts +0 -49
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/ssrMenu.product.ts +0 -26
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/en-us.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/zh-cn.ts +0 -15
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/controller/product.tsx +0 -64
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productCreate.tsx +0 -40
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectReq.tsx +0 -25
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectRes.tsx +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectResItem.tsx +0 -39
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productUpdate.tsx +0 -30
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productView.tsx +0 -25
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/entity/product.tsx +0 -65
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/index.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/model/product.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/service/product.ts +0 -37
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/permission.test.ts +0 -19
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/product.test.ts +0 -65
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/package.json +0 -60
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -161
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/en-us.ts +0 -13
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/zh-cn.ts +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +0 -43
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +0 -37
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testBody.ts +0 -10
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testDetail.ts +0 -21
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testParams.ts +0 -13
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testQuery.ts +0 -12
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testResult.tsx +0 -159
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/index.ts +0 -2
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/package.json +0 -52
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/index.ts +0 -99
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/controller/captcha.ts +0 -18
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/dto/signin.ts +0 -20
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/index.ts +0 -1
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/test/captcha.test.ts +0 -148
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.json +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/img/vona.png +0 -0
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.png +0 -0
- package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.svg +0 -3
- package/vona/src/suite-vendor/a-vona/modules/test-vona/package.json +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/index.ts +0 -2181
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/locales.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/this.ts +0 -2
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.regExp.ts +0 -34
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.simple.ts +0 -80
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aopMethod.test.ts +0 -63
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/bean.testCtx.ts +0 -59
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/broadcast.test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheMem.test.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.post.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.test.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/event.helloEcho.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/eventListener.helloEcho.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.asset.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.static.ts +0 -7
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.version.ts +0 -108
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/queue.test.ts +0 -25
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test3.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts +0 -35
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.caching.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.test.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/config.ts +0 -5
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/en-us.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/zh-cn.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/bean.ts +0 -103
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheMem.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheRedis.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/dtoTest.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/guardPassport.ts +0 -26
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/onion.ts +0 -103
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/order.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/passport.ts +0 -49
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/performAction.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/post.ts +0 -59
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/queue.ts +0 -27
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/serializer.ts +0 -40
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/summer.ts +0 -130
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/tail.ts +0 -33
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/transaction.ts +0 -30
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/upload.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/categoryTree.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderCreate.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQuery.ts +0 -25
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQueryPage.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectRes.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectResItem.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderUpdate.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postAggregate.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postCreate.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postGroup.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectReq.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectRes.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectResItem.tsx +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/profile.ts +0 -15
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/roleLazy.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerArray.ts +0 -39
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerLazy.ts +0 -31
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerSimple.ts +0 -112
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/user.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userCreate.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userLazy.ts +0 -20
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userUpdate.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/category.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/order.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/post.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/postContent.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/product.ts +0 -27
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/role.ts +0 -12
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/roleUser.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/user.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/index.ts +0 -4
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/index.ts +0 -1
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/serializer.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/category.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/categoryChain.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/order.ts +0 -33
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/orderStats.ts +0 -29
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/post.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/postContent.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/product.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/role.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/roleUser.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/testDynamicTable.ts +0 -23
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/user.ts +0 -30
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStats.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStatsGroup.ts +0 -36
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/aopMethod.ts +0 -38
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/caching.ts +0 -89
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/category.ts +0 -153
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/order.ts +0 -67
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/post.ts +0 -280
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/product.ts +0 -5
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/test.ts +0 -9
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testApp.ts +0 -13
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testClass.ts +0 -15
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testData.ts +0 -71
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/transaction.ts +0 -20
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/user.ts +0 -124
- package/vona/src/suite-vendor/a-vona/modules/test-vona/src/types/index.ts +0 -6
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/aopMethod.test.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/bean.test.ts +0 -16
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/broadcast.test.ts +0 -17
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheMem.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheRedis.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/caching.test.ts +0 -61
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/summer.test.ts +0 -10
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/database.test.ts +0 -132
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoAggregate.test.ts +0 -44
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGet.test.ts +0 -82
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGroup.test.ts +0 -44
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoLazy.test.ts +0 -53
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoMutate.test.ts +0 -56
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoQuery.test.ts +0 -70
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelAggregate.test.ts +0 -222
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelCache.test.ts +0 -37
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGeneral.test.ts +0 -18
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGroup.test.ts +0 -248
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelMagic.test.ts +0 -37
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelations.test.ts +0 -215
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsJoins.test.ts +0 -58
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsMutate.test.ts +0 -436
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelWhere.test.ts +0 -173
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/orm.test.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/transaction.test.ts +0 -142
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/event.test.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/guardPassport.test.ts +0 -48
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/instance.test.ts +0 -35
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/jwt.test.ts +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/locale.test.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/mail.test.ts +0 -14
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/passport.test.ts +0 -69
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/queue.test.ts +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/runtime.test.ts +0 -24
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/serializer.test.ts +0 -82
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/static.test.ts +0 -22
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/tail.test.ts +0 -21
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/upload.test.ts +0 -75
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/cabloyUtils.test.ts +0 -19
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/celjs.test.ts +0 -64
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/mappedTypes.test.ts +0 -73
- package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/performAction.test.ts +0 -28
- package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.build.json +0 -11
- package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.json +0 -7
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
-
import { Dto } from 'vona-module-a-web';
|
|
5
|
-
|
|
6
|
-
import { SensitiveEmail } from '../lib/serializer.ts';
|
|
7
|
-
|
|
8
|
-
export interface IDtoOptionsSerializerSimple extends IDecoratorDtoOptions {}
|
|
9
|
-
|
|
10
|
-
@Dto<IDtoOptionsSerializerSimple>()
|
|
11
|
-
export class DtoSerializerSimple {
|
|
12
|
-
@Api.field(v.serializerExclude(), v.min(6))
|
|
13
|
-
password: string;
|
|
14
|
-
|
|
15
|
-
@Api.field(v.serializerExclude(), v.min(6))
|
|
16
|
-
password2: string;
|
|
17
|
-
|
|
18
|
-
@Api.field(v.serializerTransform('test-vona:email'))
|
|
19
|
-
email: string;
|
|
20
|
-
|
|
21
|
-
@Api.field(
|
|
22
|
-
v.serializerTransform('a-serialization:replace', {
|
|
23
|
-
// eslint-disable-next-line
|
|
24
|
-
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
25
|
-
patternTo: '$1****$3$4',
|
|
26
|
-
}),
|
|
27
|
-
v.email(),
|
|
28
|
-
)
|
|
29
|
-
email2: string;
|
|
30
|
-
|
|
31
|
-
@Api.field(
|
|
32
|
-
v.serializerReplace({
|
|
33
|
-
// eslint-disable-next-line
|
|
34
|
-
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
35
|
-
patternTo: '$1****$3$4',
|
|
36
|
-
}),
|
|
37
|
-
v.email(),
|
|
38
|
-
)
|
|
39
|
-
email3: string;
|
|
40
|
-
|
|
41
|
-
@Api.field(SensitiveEmail())
|
|
42
|
-
email4: string;
|
|
43
|
-
|
|
44
|
-
@Api.field(
|
|
45
|
-
v.openapi({
|
|
46
|
-
serializerTransforms: {
|
|
47
|
-
'a-serialization:replace': {
|
|
48
|
-
// eslint-disable-next-line
|
|
49
|
-
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
50
|
-
patternTo: '$1****$3$4',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
}),
|
|
54
|
-
v.email(),
|
|
55
|
-
)
|
|
56
|
-
email5: string;
|
|
57
|
-
|
|
58
|
-
@Api.field(
|
|
59
|
-
v.serializerTransform('a-serialization:replace', {
|
|
60
|
-
// eslint-disable-next-line
|
|
61
|
-
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
62
|
-
patternTo: '$1****$3$4',
|
|
63
|
-
}),
|
|
64
|
-
v.email(),
|
|
65
|
-
)
|
|
66
|
-
email6: string;
|
|
67
|
-
|
|
68
|
-
@Api.field(
|
|
69
|
-
v.serializerReplace({
|
|
70
|
-
// eslint-disable-next-line
|
|
71
|
-
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
72
|
-
patternTo: '$1****$3$4',
|
|
73
|
-
}),
|
|
74
|
-
v.email(),
|
|
75
|
-
)
|
|
76
|
-
email7: string;
|
|
77
|
-
|
|
78
|
-
@Api.field()
|
|
79
|
-
firstName: string;
|
|
80
|
-
|
|
81
|
-
@Api.field()
|
|
82
|
-
lastName: string;
|
|
83
|
-
|
|
84
|
-
@Api.field(
|
|
85
|
-
v.serializerGetter((data: DtoSerializerSimple) => {
|
|
86
|
-
return `${data.firstName} ${data.lastName}`;
|
|
87
|
-
}),
|
|
88
|
-
v.optional(),
|
|
89
|
-
)
|
|
90
|
-
fullName: string;
|
|
91
|
-
|
|
92
|
-
@Api.field(
|
|
93
|
-
v.serializerGetter((data: DtoSerializerSimple) => {
|
|
94
|
-
return `${data.firstName} ${data.lastName}`;
|
|
95
|
-
}),
|
|
96
|
-
v.optional(),
|
|
97
|
-
)
|
|
98
|
-
fullName2: string;
|
|
99
|
-
|
|
100
|
-
@Api.field(v.optional())
|
|
101
|
-
get fullName3(): string {
|
|
102
|
-
return `${this.firstName} ${this.lastName}`;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@Api.field(
|
|
106
|
-
v.serializerCustom((_value, data: DtoSerializerSimple) => {
|
|
107
|
-
return `${data.firstName} ${data.lastName}`;
|
|
108
|
-
}),
|
|
109
|
-
v.optional(),
|
|
110
|
-
)
|
|
111
|
-
fullName4: string;
|
|
112
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Dto } from 'vona-module-a-web';
|
|
6
|
-
|
|
7
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
-
|
|
9
|
-
export interface IDtoOptionsUser extends IDecoratorDtoOptions {}
|
|
10
|
-
|
|
11
|
-
@Dto<IDtoOptionsUser>({ openapi: { title: $locale('User') } })
|
|
12
|
-
export class DtoUser {
|
|
13
|
-
@Api.field(v.title($locale('UserId')), v.tableIdentity())
|
|
14
|
-
id: TableIdentity;
|
|
15
|
-
|
|
16
|
-
@Api.field(v.min(3))
|
|
17
|
-
name: string;
|
|
18
|
-
|
|
19
|
-
@Api.field()
|
|
20
|
-
married: boolean;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { $Dto } from 'vona-module-a-orm';
|
|
4
|
-
import { Dto } from 'vona-module-a-web';
|
|
5
|
-
|
|
6
|
-
export interface IDtoOptionsUserCreate extends IDecoratorDtoOptions {}
|
|
7
|
-
|
|
8
|
-
@Dto<IDtoOptionsUserCreate>({ independent: true })
|
|
9
|
-
export class DtoUserCreate extends $Dto.create('test-vona:user', {
|
|
10
|
-
include: { roles: true, posts: true },
|
|
11
|
-
}) {}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
-
import { Dto } from 'vona-module-a-web';
|
|
5
|
-
|
|
6
|
-
import { DtoRoleLazy } from './roleLazy.ts';
|
|
7
|
-
|
|
8
|
-
export interface IDtoOptionsUserLazy extends IDecoratorDtoOptions {}
|
|
9
|
-
|
|
10
|
-
@Dto<IDtoOptionsUserLazy>()
|
|
11
|
-
export class DtoUserLazy {
|
|
12
|
-
@Api.field()
|
|
13
|
-
name: string;
|
|
14
|
-
|
|
15
|
-
@Api.field(v.optional(), v.lazy(() => DtoUserLazy))
|
|
16
|
-
user?: DtoUserLazy;
|
|
17
|
-
|
|
18
|
-
@Api.field(v.optional(), v.array(v.lazy(() => DtoRoleLazy)))
|
|
19
|
-
roles?: DtoRoleLazy[];
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
-
|
|
3
|
-
import { $Dto } from 'vona-module-a-orm';
|
|
4
|
-
import { Dto } from 'vona-module-a-web';
|
|
5
|
-
|
|
6
|
-
export interface IDtoOptionsUserUpdate extends IDecoratorDtoOptions {}
|
|
7
|
-
|
|
8
|
-
@Dto<IDtoOptionsUserUpdate>()
|
|
9
|
-
export class DtoUserUpdate extends $Dto.update('test-vona:user', { include: { posts: true } }) {}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
export interface IEntityOptionsCategory extends IDecoratorEntityOptions {}
|
|
8
|
-
|
|
9
|
-
@Entity<IEntityOptionsCategory>('testVonaCategory')
|
|
10
|
-
export class EntityCategory extends EntityBase {
|
|
11
|
-
@Api.field()
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@Api.field(v.optional(), v.tableIdentity())
|
|
15
|
-
categoryIdParent?: TableIdentity;
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
-
|
|
9
|
-
export interface IEntityOptionsOrder extends IDecoratorEntityOptions {}
|
|
10
|
-
|
|
11
|
-
@Entity<IEntityOptionsOrder>('testVonaOrder', { openapi: { title: $locale('Order') } })
|
|
12
|
-
export class EntityOrder extends EntityBase {
|
|
13
|
-
@Api.field(v.openapi({ title: $locale('OrderNo') }), v.default(''), v.min(3))
|
|
14
|
-
orderNo: string;
|
|
15
|
-
|
|
16
|
-
@Api.field(v.openapi({ title: $locale('Remark') }), v.optional())
|
|
17
|
-
remark?: string;
|
|
18
|
-
|
|
19
|
-
@Api.field(v.tableIdentity())
|
|
20
|
-
userId: TableIdentity;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
-
|
|
9
|
-
export interface IEntityOptionsPost extends IDecoratorEntityOptions {}
|
|
10
|
-
|
|
11
|
-
@Entity<IEntityOptionsPost>('testVonaPost')
|
|
12
|
-
export class EntityPost extends EntityBase {
|
|
13
|
-
@Api.field(v.title($locale('Title')))
|
|
14
|
-
title: string;
|
|
15
|
-
|
|
16
|
-
@Api.field(v.tableIdentity())
|
|
17
|
-
userId: TableIdentity;
|
|
18
|
-
|
|
19
|
-
@Api.field(v.optional())
|
|
20
|
-
stars?: number;
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
export interface IEntityOptionsPostContent extends IDecoratorEntityOptions {}
|
|
8
|
-
|
|
9
|
-
@Entity<IEntityOptionsPostContent>('testVonaPostContent')
|
|
10
|
-
export class EntityPostContent extends EntityBase {
|
|
11
|
-
@Api.field()
|
|
12
|
-
content: string;
|
|
13
|
-
|
|
14
|
-
@Api.field(v.tableIdentity())
|
|
15
|
-
postId: TableIdentity;
|
|
16
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
8
|
-
|
|
9
|
-
export interface IEntityOptionsProduct extends IDecoratorEntityOptions {}
|
|
10
|
-
|
|
11
|
-
@Entity<IEntityOptionsProduct>('testVonaProduct', { independent: true })
|
|
12
|
-
export class EntityProduct extends EntityBase {
|
|
13
|
-
@Api.field(v.title($locale('Name')))
|
|
14
|
-
name: string;
|
|
15
|
-
|
|
16
|
-
@Api.field(v.title($locale('Price')))
|
|
17
|
-
price: number;
|
|
18
|
-
|
|
19
|
-
@Api.field(v.title($locale('Quantity')))
|
|
20
|
-
quantity: number;
|
|
21
|
-
|
|
22
|
-
@Api.field(v.title($locale('Amount')))
|
|
23
|
-
amount: number;
|
|
24
|
-
|
|
25
|
-
@Api.field(v.tableIdentity())
|
|
26
|
-
orderId: TableIdentity;
|
|
27
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { Api } from 'vona-module-a-openapiutils';
|
|
4
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
5
|
-
|
|
6
|
-
export interface IEntityOptionsRole extends IDecoratorEntityOptions {}
|
|
7
|
-
|
|
8
|
-
@Entity<IEntityOptionsRole>('testVonaRole')
|
|
9
|
-
export class EntityRole extends EntityBase {
|
|
10
|
-
@Api.field()
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { TableIdentity } from 'table-identity';
|
|
2
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
export interface IEntityOptionsRoleUser extends IDecoratorEntityOptions {}
|
|
8
|
-
|
|
9
|
-
@Entity<IEntityOptionsRoleUser>('testVonaRoleUser')
|
|
10
|
-
export class EntityRoleUser extends EntityBase {
|
|
11
|
-
@Api.field(v.tableIdentity())
|
|
12
|
-
userId: TableIdentity;
|
|
13
|
-
|
|
14
|
-
@Api.field(v.tableIdentity())
|
|
15
|
-
roleId: TableIdentity;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
5
|
-
|
|
6
|
-
import { $locale } from '../.metadata/locales.ts';
|
|
7
|
-
|
|
8
|
-
export interface IEntityOptionsTest extends IDecoratorEntityOptions {}
|
|
9
|
-
|
|
10
|
-
@Entity<IEntityOptionsTest>('testVonaTest', { openapi: { title: $locale('Test') } })
|
|
11
|
-
export class EntityTest extends EntityBase {
|
|
12
|
-
@Api.field(v.title($locale('Test')))
|
|
13
|
-
title: string;
|
|
14
|
-
|
|
15
|
-
@Api.field()
|
|
16
|
-
description: string;
|
|
17
|
-
|
|
18
|
-
@Api.field(
|
|
19
|
-
v.default(() => {
|
|
20
|
-
return new Date();
|
|
21
|
-
}),
|
|
22
|
-
)
|
|
23
|
-
testDate: Date;
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorEntityOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
-
import { Entity, EntityBase } from 'vona-module-a-orm';
|
|
5
|
-
|
|
6
|
-
export interface IEntityOptionsUser extends IDecoratorEntityOptions {}
|
|
7
|
-
|
|
8
|
-
@Entity<IEntityOptionsUser>('testVonaUser')
|
|
9
|
-
export class EntityUser extends EntityBase {
|
|
10
|
-
@Api.field()
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
@Api.field(v.optional())
|
|
14
|
-
age?: number;
|
|
15
|
-
|
|
16
|
-
@Api.field(v.optional())
|
|
17
|
-
scores?: number;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './serializer.ts';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
import { ModelCategoryChain } from 'vona-module-test-vona';
|
|
5
|
-
|
|
6
|
-
import { EntityCategory } from '../entity/category.ts';
|
|
7
|
-
|
|
8
|
-
export interface IModelOptionsCategory extends IDecoratorModelOptions<EntityCategory> {}
|
|
9
|
-
|
|
10
|
-
@Model<IModelOptionsCategory>({
|
|
11
|
-
entity: EntityCategory,
|
|
12
|
-
relations: {
|
|
13
|
-
children: $relation.hasMany(() => ModelCategory, 'categoryIdParent', {
|
|
14
|
-
autoload: true,
|
|
15
|
-
columns: ['id', 'name'],
|
|
16
|
-
}),
|
|
17
|
-
},
|
|
18
|
-
cache: {
|
|
19
|
-
modelsClear: () => ModelCategoryChain,
|
|
20
|
-
},
|
|
21
|
-
})
|
|
22
|
-
export class ModelCategory extends BeanModelBase<EntityCategory> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityCategory } from '../entity/category.ts';
|
|
6
|
-
|
|
7
|
-
export interface IModelOptionsCategoryChain extends IDecoratorModelOptions<EntityCategory> {}
|
|
8
|
-
|
|
9
|
-
@Model<IModelOptionsCategoryChain>({
|
|
10
|
-
entity: EntityCategory,
|
|
11
|
-
relations: {
|
|
12
|
-
parent: $relation.belongsTo(
|
|
13
|
-
() => ModelCategoryChain,
|
|
14
|
-
() => ModelCategoryChain,
|
|
15
|
-
'categoryIdParent',
|
|
16
|
-
{
|
|
17
|
-
autoload: true,
|
|
18
|
-
columns: ['id', 'name', 'categoryIdParent'],
|
|
19
|
-
},
|
|
20
|
-
),
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class ModelCategoryChain extends BeanModelBase<EntityCategory> {}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityOrder } from '../entity/order.ts';
|
|
6
|
-
import { ModelOrderStats } from './orderStats.ts';
|
|
7
|
-
import { ModelProduct } from './product.ts';
|
|
8
|
-
import { ModelUser } from './user.ts';
|
|
9
|
-
|
|
10
|
-
export interface IModelOptionsOrder extends IDecoratorModelOptions<EntityOrder> {}
|
|
11
|
-
|
|
12
|
-
@Model<IModelOptionsOrder>({
|
|
13
|
-
entity: EntityOrder,
|
|
14
|
-
relations: {
|
|
15
|
-
user: $relation.belongsTo(
|
|
16
|
-
() => ModelOrder,
|
|
17
|
-
() => ModelUser,
|
|
18
|
-
'userId',
|
|
19
|
-
{
|
|
20
|
-
autoload: true,
|
|
21
|
-
columns: ['id', 'name'],
|
|
22
|
-
},
|
|
23
|
-
),
|
|
24
|
-
products: $relation.hasMany(() => ModelProduct, 'orderId', {
|
|
25
|
-
autoload: true,
|
|
26
|
-
columns: ['id', 'name', 'price', 'quantity', 'amount'],
|
|
27
|
-
}),
|
|
28
|
-
},
|
|
29
|
-
cache: {
|
|
30
|
-
modelsClear: () => ModelOrderStats,
|
|
31
|
-
},
|
|
32
|
-
})
|
|
33
|
-
export class ModelOrder extends BeanModelBase<EntityOrder> {}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityOrder } from '../entity/order.ts';
|
|
6
|
-
import { ModelProduct } from './product.ts';
|
|
7
|
-
|
|
8
|
-
export interface IModelOptionsOrderStats extends IDecoratorModelOptions<EntityOrder> {}
|
|
9
|
-
|
|
10
|
-
@Model<IModelOptionsOrderStats>({
|
|
11
|
-
entity: EntityOrder,
|
|
12
|
-
relations: {
|
|
13
|
-
productStats: $relation.hasMany(() => ModelProduct, 'orderId', {
|
|
14
|
-
autoload: true,
|
|
15
|
-
aggrs: {
|
|
16
|
-
count: '*',
|
|
17
|
-
sum: 'amount',
|
|
18
|
-
},
|
|
19
|
-
}),
|
|
20
|
-
productsGroups: $relation.hasMany(() => ModelProduct, 'orderId', {
|
|
21
|
-
groups: 'id',
|
|
22
|
-
aggrs: {
|
|
23
|
-
count: '*',
|
|
24
|
-
sum: 'amount',
|
|
25
|
-
},
|
|
26
|
-
}),
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
export class ModelOrderStats extends BeanModelBase<EntityOrder> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityPost } from '../entity/post.ts';
|
|
6
|
-
import { ModelPostContent } from './postContent.ts';
|
|
7
|
-
import { ModelUser } from './user.ts';
|
|
8
|
-
|
|
9
|
-
export interface IModelOptionsPost extends IDecoratorModelOptions<EntityPost> {}
|
|
10
|
-
|
|
11
|
-
@Model<IModelOptionsPost>({
|
|
12
|
-
entity: EntityPost,
|
|
13
|
-
relations: {
|
|
14
|
-
postContent: $relation.hasOne(ModelPostContent, 'postId', { columns: ['id', 'content'] }),
|
|
15
|
-
user: $relation.belongsTo(
|
|
16
|
-
() => ModelPost,
|
|
17
|
-
() => ModelUser,
|
|
18
|
-
'userId',
|
|
19
|
-
{ autoload: true, columns: ['id', 'name'] },
|
|
20
|
-
),
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class ModelPost extends BeanModelBase<EntityPost> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityPostContent } from '../entity/postContent.ts';
|
|
6
|
-
import { ModelPost } from './post.ts';
|
|
7
|
-
|
|
8
|
-
export interface IModelOptionsPostContent extends IDecoratorModelOptions<EntityPostContent> {}
|
|
9
|
-
|
|
10
|
-
@Model<IModelOptionsPostContent>({
|
|
11
|
-
entity: EntityPostContent,
|
|
12
|
-
relations: {
|
|
13
|
-
post: $relation.belongsTo(
|
|
14
|
-
() => ModelPostContent,
|
|
15
|
-
() => ModelPost,
|
|
16
|
-
'postId',
|
|
17
|
-
),
|
|
18
|
-
},
|
|
19
|
-
cache: {
|
|
20
|
-
modelsClear: () => ModelPost,
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class ModelPostContent extends BeanModelBase<EntityPostContent> {}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityProduct } from '../entity/product.ts';
|
|
6
|
-
|
|
7
|
-
export interface IModelOptionsProduct extends IDecoratorModelOptions<EntityProduct> {}
|
|
8
|
-
|
|
9
|
-
@Model<IModelOptionsProduct>({ entity: EntityProduct })
|
|
10
|
-
export class ModelProduct extends BeanModelBase<EntityProduct> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityRole } from '../entity/role.ts';
|
|
6
|
-
import { ModelRoleUser } from './roleUser.ts';
|
|
7
|
-
import { ModelUser } from './user.ts';
|
|
8
|
-
|
|
9
|
-
export interface IModelOptionsRole extends IDecoratorModelOptions<EntityRole> {}
|
|
10
|
-
|
|
11
|
-
@Model<IModelOptionsRole>({
|
|
12
|
-
entity: EntityRole,
|
|
13
|
-
relations: {
|
|
14
|
-
users: $relation.belongsToMany(
|
|
15
|
-
() => ModelRoleUser,
|
|
16
|
-
() => ModelUser,
|
|
17
|
-
'roleId',
|
|
18
|
-
'userId',
|
|
19
|
-
{ columns: ['id', 'name'] },
|
|
20
|
-
),
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class ModelRole extends BeanModelBase<EntityRole> {}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityRoleUser } from '../entity/roleUser.ts';
|
|
6
|
-
|
|
7
|
-
export interface IModelOptionsRoleUser extends IDecoratorModelOptions<EntityRoleUser> {}
|
|
8
|
-
|
|
9
|
-
@Model<IModelOptionsRoleUser>({ entity: EntityRoleUser })
|
|
10
|
-
export class ModelRoleUser extends BeanModelBase<EntityRoleUser> {}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityTest } from '../entity/test.ts';
|
|
6
|
-
|
|
7
|
-
export interface IModelOptionsTest extends IDecoratorModelOptions<EntityTest> {}
|
|
8
|
-
|
|
9
|
-
@Model<IModelOptionsTest>({ entity: EntityTest, client: 'default' })
|
|
10
|
-
export class ModelTest extends BeanModelBase<EntityTest> {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { VonaContext } from 'vona';
|
|
2
|
-
import type { IDecoratorModelOptions, ITableRecord } from 'vona-module-a-orm';
|
|
3
|
-
|
|
4
|
-
import { DateTime } from 'luxon';
|
|
5
|
-
import { BeanModelBase, Model } from 'vona-module-a-orm';
|
|
6
|
-
|
|
7
|
-
import { EntityTest } from '../entity/test.ts';
|
|
8
|
-
|
|
9
|
-
export interface IModelOptionsTestDynamicTable extends IDecoratorModelOptions<EntityTest> {}
|
|
10
|
-
|
|
11
|
-
@Model<IModelOptionsTestDynamicTable>({
|
|
12
|
-
entity: EntityTest,
|
|
13
|
-
table(ctx: VonaContext, _where: EntityTest | undefined, defaultTable: keyof ITableRecord) {
|
|
14
|
-
if (ctx.instanceName !== '') return defaultTable;
|
|
15
|
-
return `${defaultTable}_${DateTime.now().toFormat('yyyyMMdd')}`;
|
|
16
|
-
},
|
|
17
|
-
softDeletionPrune: {
|
|
18
|
-
handler: async (_ctx, _modelInstance: ModelTestDynamicTable) => {
|
|
19
|
-
// do nothing
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
export class ModelTestDynamicTable extends BeanModelBase<EntityTest> {}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
-
|
|
3
|
-
import { $relation, BeanModelBase, Model } from 'vona-module-a-orm';
|
|
4
|
-
|
|
5
|
-
import { EntityUser } from '../entity/user.ts';
|
|
6
|
-
import { ModelOrder } from './order.ts';
|
|
7
|
-
import { ModelPost } from './post.ts';
|
|
8
|
-
import { ModelPostContent } from './postContent.ts';
|
|
9
|
-
import { ModelUserStats } from './userStats.ts';
|
|
10
|
-
import { ModelUserStatsGroup } from './userStatsGroup.ts';
|
|
11
|
-
|
|
12
|
-
export interface IModelOptionsUser extends IDecoratorModelOptions<EntityUser> {}
|
|
13
|
-
|
|
14
|
-
@Model<IModelOptionsUser>({
|
|
15
|
-
entity: EntityUser,
|
|
16
|
-
relations: {
|
|
17
|
-
posts: $relation.hasMany(() => ModelPost, 'userId', { columns: ['id', 'title'] }, [
|
|
18
|
-
'test-vona:user',
|
|
19
|
-
ModelPostContent,
|
|
20
|
-
]),
|
|
21
|
-
roles: $relation.belongsToMany('test-vona:roleUser', 'test-vona:role', 'userId', 'roleId', {
|
|
22
|
-
columns: ['id', 'name'],
|
|
23
|
-
}),
|
|
24
|
-
orders: $relation.hasMany(() => ModelOrder, 'userId'),
|
|
25
|
-
},
|
|
26
|
-
cache: {
|
|
27
|
-
modelsClear: [() => ModelUserStats, () => ModelUserStatsGroup],
|
|
28
|
-
},
|
|
29
|
-
})
|
|
30
|
-
export class ModelUser extends BeanModelBase<EntityUser> {}
|