@simitgroup/simpleapp-generator 1.6.7-m-alpha → 2.0.0-a-alpha
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/ReleaseNote.md +7 -0
- package/dist/buildinschemas/autoincreament.js +1 -1
- package/dist/buildinschemas/branch.d.ts.map +1 -1
- package/dist/buildinschemas/branch.js +2 -0
- package/dist/buildinschemas/branch.js.map +1 -1
- package/dist/buildinschemas/docnoformat.js +1 -1
- package/dist/buildinschemas/docnoformat.js.map +1 -1
- package/dist/buildinschemas/documentevent.js +1 -1
- package/dist/buildinschemas/documentnoformat.d.ts +3 -0
- package/dist/buildinschemas/documentnoformat.d.ts.map +1 -0
- package/dist/buildinschemas/documentnoformat.js +58 -0
- package/dist/buildinschemas/documentnoformat.js.map +1 -0
- package/dist/buildinschemas/index.d.ts +0 -5
- package/dist/buildinschemas/index.d.ts.map +1 -1
- package/dist/buildinschemas/index.js +5 -11
- package/dist/buildinschemas/index.js.map +1 -1
- package/dist/buildinschemas/organization.d.ts.map +1 -1
- package/dist/buildinschemas/organization.js +3 -19
- package/dist/buildinschemas/organization.js.map +1 -1
- package/dist/buildinschemas/user.d.ts.map +1 -1
- package/dist/buildinschemas/user.js +5 -2
- package/dist/buildinschemas/user.js.map +1 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +118 -23
- package/dist/generate.js.map +1 -1
- package/dist/type.d.ts +6 -0
- package/dist/type.d.ts.map +1 -1
- package/dist/type.js.map +1 -1
- package/package.json +1 -1
- package/src/buildinschemas/{autoincreament.ts → autoincreament.ts.backup} +1 -1
- package/src/buildinschemas/branch.ts +2 -0
- package/src/buildinschemas/{documentevent.ts → documentevent.ts.backup} +1 -1
- package/src/buildinschemas/{docnoformat.ts → documentnoformat.ts.backup} +3 -3
- package/src/buildinschemas/index.ts +4 -5
- package/src/buildinschemas/organization.ts +3 -19
- package/src/buildinschemas/user.ts +5 -2
- package/src/generate.ts +128 -28
- package/src/type.ts +6 -1
- package/templates/basic/nest/api.controller.ts.eta +153 -0
- package/templates/basic/nest/api.module.ts.eta +32 -0
- package/templates/basic/nest/api.resolver.ts.eta +94 -0
- package/templates/basic/nest/api.schema.ts.eta +20 -0
- package/templates/basic/nest/api.service.ts.eta +85 -0
- package/templates/basic/nest/controller.ts.eta +18 -119
- package/templates/basic/nest/default.ts.eta +16 -10
- package/templates/basic/nest/enum.ts.eta +16 -0
- package/templates/basic/nest/model.ts.eta +6 -28
- package/templates/basic/nest/module.ts.eta +25 -0
- package/templates/basic/nest/resolver.ts.eta +12 -56
- package/templates/basic/nest/schema.ts.eta +133 -0
- package/templates/basic/nest/service.ts.eta +82 -73
- package/templates/basic/nest/service.ts.eta-backup +50 -0
- package/templates/basic/nuxt/default.ts.eta +10 -8
- package/templates/basic/nuxt/pages.[id].vue.eta +2 -2
- package/templates/basic/nuxt/pages.form.vue.eta +2 -2
- package/templates/basic/nuxt/pages.viewer.vue.eta +2 -2
- package/templates/basic/nuxt/simpleapp.doc.ts.eta +1 -1
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +7 -5
- package/templates/nest/src/app.module.ts._eta +53 -67
- package/templates/nest/src/main.ts._eta +1 -1
- package/templates/nest/src/simple-app/.core/features/auth/api-key/api-key.service.ts.eta +29 -0
- package/templates/nest/src/simple-app/.core/features/auth/api-key/api-key.type.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/auth/api-key/validators/interface.ts.eta +7 -0
- package/templates/nest/src/simple-app/.core/features/auth/api-key/validators/mini-api-key.validator.ts.eta +30 -0
- package/templates/nest/src/simple-app/.core/features/auth/api-key/validators/static-api-key.validator.ts.eta +27 -0
- package/templates/nest/src/simple-app/.core/features/auth/auth.module.ts.eta +9 -0
- package/templates/nest/src/{simpleapp/generate/commons/roles → simple-app/.core/features/auth/role-guard}/roles.enum.ts.eta +7 -7
- package/templates/nest/src/{simpleapp/generate/commons/roles → simple-app/.core/features/auth/role-guard}/roles.guard.ts.eta +1 -1
- package/templates/nest/src/simple-app/.core/features/auto-increament/auto-increament.model.ts.eta +10 -0
- package/templates/nest/src/simple-app/.core/features/auto-increament/auto-increament.module.ts.eta +18 -0
- package/templates/nest/src/simple-app/.core/features/auto-increament/auto-increament.schema.ts.eta +119 -0
- package/templates/nest/src/simple-app/.core/features/auto-increament/auto-increament.service.ts.eta +65 -0
- package/templates/nest/src/simple-app/.core/features/cron/base/cron.base.ts.eta +13 -0
- package/templates/nest/src/simple-app/.core/features/cron/cron-system/cron-system.module.ts.eta +17 -0
- package/templates/nest/src/simple-app/.core/features/cron/cron-system/cron-system.service.ts.eta +37 -0
- package/templates/nest/src/simple-app/.core/features/cron/cron-system/schemas/index.ts.eta +2 -0
- package/templates/nest/src/simple-app/.core/features/cron/cron.module.ts.eta +10 -0
- package/templates/nest/src/simple-app/.core/features/document-no-format/document-no-format.controller.ts.eta +31 -0
- package/templates/nest/src/simple-app/.core/features/document-no-format/document-no-format.model.ts.eta +15 -0
- package/templates/nest/src/simple-app/.core/features/document-no-format/document-no-format.module.ts.eta +12 -0
- package/templates/nest/src/simple-app/.core/features/document-no-format/document-no-format.schema.ts.eta +162 -0
- package/templates/nest/src/simple-app/.core/features/document-no-format/document-no-format.service.ts.eta +189 -0
- package/templates/nest/src/simple-app/.core/features/event/event.module.ts.eta +9 -0
- package/templates/nest/src/simple-app/.core/features/event/event.type.ts.eta +23 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-after-create.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-after-delete.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-after-set-status.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-after-update.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-before-create.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-before-delete.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-before-set-status.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/event-before-update.interface.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/event/interface/index.ts.eta +8 -0
- package/templates/nest/src/simple-app/.core/features/foreign-key/foreign-key.module.ts.eta +16 -0
- package/templates/nest/src/simple-app/.core/features/log/log.module.ts.eta +20 -0
- package/templates/nest/src/simple-app/.core/features/log/log.service.ts.eta +68 -0
- package/templates/nest/src/simple-app/.core/features/log/schemas/api-event.schema.ts.eta +57 -0
- package/templates/nest/src/simple-app/.core/features/log/schemas/document-event.schema.ts.eta +87 -0
- package/templates/nest/src/simple-app/.core/features/log/schemas/index.ts.eta +2 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/db-update/1.00.00/index.ts._eta +39 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/db-update/index.ts._eta +8 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/maintenance.controller.ts.eta +84 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/maintenance.module.ts.eta +19 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/maintenance.service.ts.eta +86 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/schemas/db-update.ts.eta +17 -0
- package/templates/nest/src/simple-app/.core/features/maintenance/schemas/environment.ts.eta +23 -0
- package/templates/nest/src/{simpleapp/generate/workflow/formschema → simple-app/.core/features/maintenance/schemas}/index.ts.eta +3 -2
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal-bridge.service.ts.eta.eta +31 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal-env-development.service.ts.eta +124 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal-env-production.service.ts.eta +50 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal.controller.ts.eta +41 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal.schema.ts.eta +18 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/developer-portal.service.ts.eta +94 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/dto/developer-portal-create-app.dto.ts.eta +22 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/developer-portal/dto/developer-portal-publish-app.dto.ts.eta +0 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/dto/imports.ts.eta +2 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/dto/index.ts.eta +2 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/dto/mini-app.ts.eta +55 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager-bridge.service.ts.eta +162 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager-env-development.service.ts.eta +140 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager-env-production.service.ts.eta +125 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager-policy.service.ts.eta +43 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager.controller.ts.eta +81 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager.enum.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager.error.ts.eta +24 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager.processor.ts.eta +309 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-manager/mini-app-manager.service.ts.eta +346 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-scope/mini-app-scope.decorator.ts.eta +5 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-scope/mini-app-scope.guard.ts.eta +43 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app-scope/mini-app-scope.service.ts.eta +101 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/mini-app.module.ts.eta +24 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/types/miniApp.ts.eta +23 -0
- package/templates/nest/src/simple-app/.core/features/mini-app/utils/mini-app.util.ts.eta +26 -0
- package/templates/nest/src/simple-app/.core/features/policy/policy.module.ts.eta +12 -0
- package/templates/nest/src/simple-app/.core/features/policy/policy.service.ts.eta +45 -0
- package/templates/nest/src/{simpleapp/profile/profile.controller.ts._eta → simple-app/.core/features/profile/profile.controller.ts.eta} +37 -83
- package/templates/nest/src/simple-app/.core/features/profile/profile.module.ts.eta +22 -0
- package/templates/nest/src/simple-app/.core/features/profile/profile.schema.ts.eta +165 -0
- package/templates/nest/src/{simpleapp/profile/profile.service.ts._eta → simple-app/.core/features/profile/profile.service.ts.eta} +36 -48
- package/templates/nest/src/simple-app/.core/features/queue/queue-base/queue-base.consumer.ts.eta +196 -0
- package/templates/nest/src/simple-app/.core/features/queue/queue-base/queue-base.producer.ts.eta +147 -0
- package/templates/nest/src/simple-app/.core/features/queue/queue-user-context/queue-user-context.service.ts.eta +35 -0
- package/templates/nest/src/simple-app/.core/features/queue/queue.module.ts.eta +24 -0
- package/templates/nest/src/simple-app/.core/features/queue/queue.type.ts.eta +75 -0
- package/templates/nest/src/simple-app/.core/features/simple-app-core-features.module.ts.eta +51 -0
- package/templates/nest/src/{simpleapp/generate/commons/robotuser.service.ts.eta → simple-app/.core/features/user-context/robot-user.service.ts.eta} +27 -16
- package/templates/nest/src/simple-app/.core/features/user-context/user-context.module.ts.eta +24 -0
- package/templates/nest/src/simple-app/.core/features/user-context/user-context.type.ts.eta +15 -0
- package/templates/nest/src/{simpleapp/generate/commons → simple-app/.core/features/user-context}/user.context.ts.eta +469 -449
- package/templates/nest/src/{simpleapp/generate/commons/runwebhook.service.ts.eta → simple-app/.core/features/webhook/run-webhook.service.ts.eta} +7 -11
- package/templates/nest/src/simple-app/.core/features/webhook/schemas/index.ts.eta +2 -0
- package/templates/nest/src/simple-app/.core/features/webhook/schemas/webhook-log.schema.ts.eta +116 -0
- package/templates/nest/src/simple-app/.core/features/webhook/schemas/webhook.schema.ts.eta +177 -0
- package/templates/nest/src/simple-app/.core/features/webhook/webhook.module.ts.eta +20 -0
- package/templates/nest/src/{simpleapp/generate/controllers/simpleapp.controller.ts.eta → simple-app/.core/framework/base/simple-app.controller.ts.eta} +13 -35
- package/templates/nest/src/{simpleapp/generate/processors/simpleapp.processor.ts.eta → simple-app/.core/framework/base/simple-app.service.ts.eta} +242 -139
- package/templates/nest/src/simple-app/.core/framework/custom-exception.ts.eta +26 -0
- package/templates/nest/src/simple-app/.core/framework/framework.module.ts.eta +12 -0
- package/templates/nest/src/simple-app/.core/framework/schemas/index.ts.eta +3 -0
- package/templates/nest/src/simple-app/.core/framework/schemas/others.schema.ts.eta +153 -0
- package/templates/nest/src/simple-app/.core/framework/schemas/simple-app.schema.ts.eta +172 -0
- package/templates/nest/src/{simpleapp/generate/commons/interceptors/response.interceptor.ts.eta → simple-app/.core/framework/simple-app.interceptor.ts.eta} +12 -22
- package/templates/nest/src/{simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta → simple-app/.core/framework/simple-app.middleware.ts.eta} +39 -15
- package/templates/nest/src/simple-app/.core/readme.md.eta +3 -0
- package/templates/nest/src/simple-app/.core/resources/core-resources.module.ts.eta +38 -0
- package/templates/nest/src/simple-app/.core/simple-app-core.module.ts.eta +18 -0
- package/templates/nest/src/simple-app/.core/utils/dayjs.ts.eta +47 -0
- package/templates/nest/src/simple-app/.core/utils/locale-tool.ts.eta +11 -0
- package/templates/nest/src/simple-app/.core/utils/string-utils.ts.eta +1 -0
- package/templates/nest/src/simple-app/.resources/readme.md.eta +3 -0
- package/templates/nest/src/simple-app/.resources/resources.module.ts.eta +36 -0
- package/templates/nest/src/simple-app/apis/readme.md.eta +9 -0
- package/templates/nest/src/simple-app/apis/resource-api.module.ts.eta +37 -0
- package/templates/nest/src/simple-app/events/branch-event/branch-event.module.ts._eta +20 -0
- package/templates/nest/src/simple-app/events/branch-event/branch-event.service.ts._eta +43 -0
- package/templates/nest/src/simple-app/events/branch-event/branch-event.type.ts._eta +7 -0
- package/templates/nest/src/simple-app/events/events.module.ts._eta +17 -0
- package/templates/nest/src/simple-app/events/organization-event/organization-event.module.ts._eta +13 -0
- package/templates/nest/src/simple-app/events/organization-event/organization-event.service.ts._eta +52 -0
- package/templates/nest/src/simple-app/events/organization-event/organization-event.type.ts._eta +1 -0
- package/templates/nest/src/simple-app/events/permission-event/permission-event.module.ts.eta +11 -0
- package/templates/nest/src/simple-app/events/permission-event/permission-event.service.ts.eta +33 -0
- package/templates/nest/src/simple-app/events/permission-event/permission-event.type.ts.eta +1 -0
- package/templates/nest/src/simple-app/events/readme.md.eta +76 -0
- package/templates/nest/src/simple-app/events/tenant-event/tenant-event.module.ts_eta +12 -0
- package/templates/nest/src/simple-app/events/tenant-event/tenant-event.service.ts_eta +30 -0
- package/templates/nest/src/simple-app/events/tenant-event/tenant-event.type.ts_eta +1 -0
- package/templates/nest/src/{simpleapp/additional.module.ts._eta → simple-app/features/features.module.ts._eta} +8 -7
- package/templates/nest/src/{printapi/printapi.module.ts.eta → simple-app/features/print/print.module.ts.eta} +4 -4
- package/templates/nest/src/{printapi/printapi.service.ts.eta → simple-app/features/print/print.service.ts.eta} +7 -7
- package/templates/nest/src/simple-app/features/readme.md._eta +6 -0
- package/templates/nest/src/simple-app/simple-app.module.ts.eta +32 -0
- package/templates/nuxt/.env._eta +2 -0
- package/templates/nuxt/app.vue.eta +15 -7
- package/templates/nuxt/components/header/HeaderSelectBranch.vue.eta +2 -1
- package/templates/nuxt/components/image/ImageAvatar.vue._eta +63 -0
- package/templates/nuxt/components/image/ImageOrganization.vue._eta +77 -0
- package/templates/nuxt/components/simpleApp/SimpleAppForm.vue.eta +1 -1
- package/templates/nuxt/components/simpleApp/SimpleAppFormToolBar.vue._eta +95 -20
- package/templates/nuxt/components/user/UserButtonCreateTenant.vue._eta +20 -21
- package/templates/nuxt/components/user/UserTenantPicker.vue._eta +1 -1
- package/templates/nuxt/composables/docformat.generate.ts.eta +4 -2
- package/templates/nuxt/enums/enums.generate.ts.eta +1 -1
- package/templates/nuxt/middleware/30.acl.global.ts.eta +6 -6
- package/templates/nuxt/nuxt.config.ts._eta +1 -0
- package/templates/nuxt/pages/login.vue._eta +21 -15
- package/templates/nuxt/pages/profile.vue._eta +24 -32
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +31 -24
- package/templates/nuxt/plugins/50.simpleapp-client.ts.eta +2 -2
- package/templates/nuxt/providers/my-provider.ts.eta +5 -6
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +1 -0
- package/templates/nuxt/simpleapp/generate/defaults/index.ts.eta +1 -1
- package/templates/nuxt/simpleapp/generate/types/index.ts.eta +1 -1
- package/templates/nuxt/types/schema.ts.eta +1 -0
- package/templates/nuxt/types/user.ts.eta +39 -38
- package/templates/project/build.sh.eta +2 -2
- package/templates/basic/nest/apischema.ts.eta +0 -96
- package/templates/basic/nest/processor.ts.eta +0 -86
- package/templates/nest/src/cloudapi/cloudapi.module.ts._eta +0 -15
- package/templates/nest/src/cloudapi/cloudapi.service.ts._eta +0 -15
- package/templates/nest/src/enums/enums.generate.ts.eta +0 -23
- package/templates/nest/src/simpleapp/apischemas/index.ts._eta +0 -85
- package/templates/nest/src/simpleapp/generate/apischemas/index.ts.eta +0 -15
- package/templates/nest/src/simpleapp/generate/apischemas/simpleapp.apischema.ts.eta +0 -62
- package/templates/nest/src/simpleapp/generate/commons/audittrail.service.ts.eta +0 -52
- package/templates/nest/src/simpleapp/generate/commons/customkeycloa.guard.ts.eta +0 -45
- package/templates/nest/src/simpleapp/generate/commons/docnogenerator.service.ts.eta +0 -129
- package/templates/nest/src/simpleapp/generate/commons/providers/workflow.provider.ts.etax +0 -87
- package/templates/nest/src/simpleapp/generate/jsonschemas/index.ts.eta +0 -11
- package/templates/nest/src/simpleapp/generate/models/apievent.model.ts.eta +0 -27
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +0 -88
- package/templates/nest/src/simpleapp/generate/processors/branch.processor.ts.eta +0 -110
- package/templates/nest/src/simpleapp/generate/processors/docno.processor.ts.eta +0 -77
- package/templates/nest/src/simpleapp/generate/processors/org.processor.ts.eta +0 -110
- package/templates/nest/src/simpleapp/generate/processors/perm.processor.ts.eta +0 -71
- package/templates/nest/src/simpleapp/generate/processors/sysmsg.processor.ts.eta +0 -49
- package/templates/nest/src/simpleapp/generate/processors/tenant.processor.ts.eta +0 -52
- package/templates/nest/src/simpleapp/generate/processors/webhooklog.processor.ts.eta +0 -45
- package/templates/nest/src/simpleapp/generate/types/index.ts.eta +0 -7
- package/templates/nest/src/simpleapp/generate/types/schema.type.ts.eta +0 -193
- package/templates/nest/src/simpleapp/generate/types/simpleapp.type.ts.eta +0 -299
- package/templates/nest/src/simpleapp/generate/types/workflow.type.ts.eta +0 -15
- package/templates/nest/src/simpleapp/generate/workflow/formschema/SimpleApproveReject.ts.eta +0 -8
- package/templates/nest/src/simpleapp/generate/workflow/workflow.apischema.ts.eta +0 -136
- package/templates/nest/src/simpleapp/generate/workflow/workflow.config.ts.eta +0 -79
- package/templates/nest/src/simpleapp/generate/workflow/workflow.controller.ts.eta +0 -414
- package/templates/nest/src/simpleapp/generate/workflow/workflow.delegate.ts.eta +0 -201
- package/templates/nest/src/simpleapp/generate/workflow/workflow.service.ts.eta +0 -641
- package/templates/nest/src/simpleapp/generate/workflow/workflow.type.ts.eta +0 -98
- package/templates/nest/src/simpleapp/generate/workflow/workflow.userservice.ts.eta +0 -83
- package/templates/nest/src/simpleapp/profile/profile.apischema.ts._eta +0 -95
- package/templates/nest/src/simpleapp/resolvers/readme.md.eta +0 -1
- package/templates/nest/src/simpleapp/services/autoinc.service.ts.etaxx +0 -59
- package/templates/nest/src/simpleapp/services/branch.service.ts.etaxxx +0 -83
- package/templates/nest/src/simpleapp/services/docno.service.ts.etaxxx +0 -59
- package/templates/nest/src/simpleapp/services/org.service.ts.etaxxx +0 -37
- package/templates/nest/src/simpleapp/services/perm.service.ts.etaxxx +0 -56
- package/templates/nest/src/simpleapp/services/sysmsg.service.ts._etaxxx +0 -43
- package/templates/nest/src/simpleapp/services/tenant.service.ts.etaxxx +0 -38
- package/templates/nest/src/simpleapp/services/user.service.ts.eta.old +0 -118
- package/templates/nest/src/simpleapp/services/userresolver.service.ts._eta +0 -67
- package/templates/nest/src/simpleapp/services/webhook.service.ts._eta +0 -37
- package/templates/nest/src/simpleapp/simpleapp.module.ts.eta +0 -80
- package/templates/nest/src/simpleapp/types/index.ts._eta +0 -45
- package/templates/nest/src/simpleapp/webhooks/branch.ts._eta +0 -44
- package/templates/nest/src/simpleapp/webhooks/index.ts._eta +0 -21
- package/templates/nest/src/simpleapp/workflows/bpmn/readme.md._eta +0 -1
- package/templates/nest/src/simpleapp/workflows/listeners/simpleapp.listener.ts.eta +0 -31
- package/templates/nest/src/simpleapp/workflows/readme.md._eta +0 -1
- package/templates/nuxt/components/image/ImageAvatar.vue.eta +0 -56
- package/templates/nuxt/components/image/ImageOrganization.vue.eta +0 -66
- /package/src/buildinschemas/{webhook.ts → webhook.ts.backup} +0 -0
- /package/src/buildinschemas/{webhooklog.ts → webhooklog.ts.backup} +0 -0
- /package/templates/basic/nest/{type.ts.eta → type.ts.eta-backup} +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/customkeycloak.guard.ts.eta → simple-app/.core/features/auth/keycloak/keycloak.guard.ts.eta} +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/roles → simple-app/.core/features/auth/role-guard}/roles.decorator.ts.eta +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/roles → simple-app/.core/features/auth/role-guard}/roles.group.ts.eta +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/dicts/documents.ts.eta → simple-app/.core/features/document-no-format/document.dict.ts.eta} +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/dicts/foreignkeys.ts.eta → simple-app/.core/features/foreign-key/foreignkeys.dict.ts.eta} +0 -0
- /package/templates/nest/src/{simpleapp/profile/profile.types.ts.eta → simple-app/.core/features/profile/profile.types.ts.eta-backup} +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/decorators → simple-app/.core/features/user-context}/appuser.decorator.ts.eta +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons/exceptions/SimpleAppExceptionFilter.ts.eta → simple-app/.core/framework/exception-filter.ts.eta} +0 -0
- /package/templates/nest/src/{simpleapp/generate/commons → simple-app/.core/utils}/encryption.static.ts.eta +0 -0
- /package/templates/nest/src/{simpleapp → simple-app}/.gitignore.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/.gitignore.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/.npmignore.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/.openapi-generator/FILES.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/.openapi-generator/VERSION.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/.openapi-generator-ignore.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/api.ts.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/base.ts.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/common.ts.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/configuration.ts.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/git_push.sh.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/index.ts.eta +0 -0
- /package/templates/nest/src/{printapi → simple-app/features/print}/api/openapitools.json.eta +0 -0
- /package/templates/project/{sharelibs → share-libs}/hello.ts._eta +0 -0
- /package/templates/project/{sharelibs → share-libs}/index.ts.eta +0 -0
- /package/templates/project/{sharelibs → share-libs}/money.ts.eta +0 -0
- /package/templates/project/{sharelibs → share-libs}/validate.ts.eta +0 -0
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by simpleapp generator. Every
|
|
3
|
-
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-04-18
|
|
5
|
-
* Author: Ks Tan
|
|
6
|
-
*/
|
|
7
|
-
import { UserContext } from '../commons/user.context';
|
|
8
|
-
import { JSONSchema7,JSONSchema7Type,JSONSchema7Version, JSONSchema7TypeName,JSONSchema7Definition } from 'json-schema';
|
|
9
|
-
|
|
10
|
-
export type ModifiedCollection = {
|
|
11
|
-
[key: string]: string[];
|
|
12
|
-
};
|
|
13
|
-
export type ModifiedRecords = {
|
|
14
|
-
createds: ModifiedCollection;
|
|
15
|
-
updateds: ModifiedCollection;
|
|
16
|
-
deleteds: ModifiedCollection;
|
|
17
|
-
};
|
|
18
|
-
export type DocNumberFormatResult = {
|
|
19
|
-
formatId: string;
|
|
20
|
-
formatName: string;
|
|
21
|
-
result: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type SearchBody = {
|
|
25
|
-
filter?: Object;
|
|
26
|
-
|
|
27
|
-
fields?: any[];
|
|
28
|
-
|
|
29
|
-
sorts?: any[];
|
|
30
|
-
lookup?:Object;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export enum IsolationType {
|
|
34
|
-
'none' = 'none',
|
|
35
|
-
'org' = 'org',
|
|
36
|
-
'tenant' = 'tenant',
|
|
37
|
-
'branch' = 'branch',
|
|
38
|
-
}
|
|
39
|
-
export type DefaultHooks<T> = {
|
|
40
|
-
init?: () => Promise<void>;
|
|
41
|
-
beforeSearch?: (appuser: UserContext, filter: any) => Promise<void>;
|
|
42
|
-
afterSearch?: (appuser: UserContext, data: T[]) => Promise<void>;
|
|
43
|
-
beforeValidation?: (appuser: UserContext, data: T,_id?:string) => Promise<boolean>;
|
|
44
|
-
afterValidation?: (appuser: UserContext, data: T,_id?:string) => Promise<void>;
|
|
45
|
-
beforeCreate?: (appuser: UserContext, data: T) => Promise<void>;
|
|
46
|
-
afterCreate?: (appuser: UserContext, data: T) => Promise<void>;
|
|
47
|
-
beforeUpdate?: (
|
|
48
|
-
appuser: UserContext,
|
|
49
|
-
id: string,
|
|
50
|
-
data: T,
|
|
51
|
-
existingdata: T,
|
|
52
|
-
) => Promise<void>;
|
|
53
|
-
afterUpdate?: (appuser: UserContext, id: string, prevdata: T,newdata:T) => Promise<void>;
|
|
54
|
-
beforeDelete?: (
|
|
55
|
-
appuser: UserContext,
|
|
56
|
-
id: string,
|
|
57
|
-
deletedata: T,
|
|
58
|
-
) => Promise<void>;
|
|
59
|
-
afterDelete?: (
|
|
60
|
-
appuser: UserContext,
|
|
61
|
-
result: DeleteResultType<T>,
|
|
62
|
-
id: string,
|
|
63
|
-
) => Promise<void>;
|
|
64
|
-
beforeFetchRecord?: (appuser: UserContext, id: string) => Promise<void>;
|
|
65
|
-
afterFetchRecord?: (appuser: UserContext, data: T) => Promise<void>;
|
|
66
|
-
beforeSetStatus?: (
|
|
67
|
-
appuser: UserContext,
|
|
68
|
-
id: string,
|
|
69
|
-
data: T,
|
|
70
|
-
existdata: T,
|
|
71
|
-
) => Promise<void>;
|
|
72
|
-
afterSetStatus?: (appuser: UserContext, id: string, data: T) => Promise<void>;
|
|
73
|
-
};
|
|
74
|
-
export type MoreProjectionType = {
|
|
75
|
-
[key: string]: string;
|
|
76
|
-
};
|
|
77
|
-
export type ApiEvent = {
|
|
78
|
-
_id: string;
|
|
79
|
-
created: string;
|
|
80
|
-
updated?: string;
|
|
81
|
-
duration: number;
|
|
82
|
-
createdBy: string;
|
|
83
|
-
path: string;
|
|
84
|
-
ip: string;
|
|
85
|
-
method: string;
|
|
86
|
-
headers: any;
|
|
87
|
-
data?: any;
|
|
88
|
-
statusCode: number;
|
|
89
|
-
status: string;
|
|
90
|
-
errMsg?: string;
|
|
91
|
-
errData?: any;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export type DeleteResultType<T> = {
|
|
95
|
-
data: T;
|
|
96
|
-
result: {
|
|
97
|
-
acknowledged: boolean;
|
|
98
|
-
deletedCount: number;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
export type DocumentStatus = {
|
|
104
|
-
status:string //'CO', 'V', 'CL', 'D' and etc
|
|
105
|
-
statusName:string
|
|
106
|
-
readOnly:boolean
|
|
107
|
-
actions: string[] //api name ['confirm','revert','close','void' and etc]
|
|
108
|
-
}
|
|
109
|
-
export enum RESTMethods {'post'='post','get'='get', 'delete'='delete','put'='put', 'patch'='patch'}
|
|
110
|
-
export type DocumentApi = {
|
|
111
|
-
action:string //api action name
|
|
112
|
-
entryPoint:string //api entry point example:':id', ':id/confirm'
|
|
113
|
-
queryPara?:string[] //what query parameter wish to accept, example: ['description','date']
|
|
114
|
-
requiredRole?: string[] // what special user role wish to allow for this api, example: ['SuperUser']
|
|
115
|
-
workflowSetting?: {bpmn:string} //optional property, once define code gen connect the bpmn workflow
|
|
116
|
-
method:RESTMethods
|
|
117
|
-
schema?:string //any schema/type name in types & apischemas
|
|
118
|
-
responseType?:string //any schema/type name for response
|
|
119
|
-
description:string //description of api
|
|
120
|
-
}
|
|
121
|
-
//export enum IsolationType {"none"="none" , "tenant"="tenant","org"="org", "branch"="branch"}
|
|
122
|
-
// export type ImportLibs = {"lib":string,"as":string}
|
|
123
|
-
export type Formula = {
|
|
124
|
-
jsonPath:string //example: "$.subtotal","$.details[*]"
|
|
125
|
-
formula:string //example "jslib.getDocumentSubTotal(@F{$.details})"
|
|
126
|
-
}
|
|
127
|
-
export type SchemaConfig = {
|
|
128
|
-
isolationType: IsolationType
|
|
129
|
-
requiredRoles?:string[]
|
|
130
|
-
pageType?: string
|
|
131
|
-
uniqueKey?:string
|
|
132
|
-
uniqueKeys?:string[][]
|
|
133
|
-
documentTitle?:string
|
|
134
|
-
generateDocumentNumber?:boolean
|
|
135
|
-
documentDate?:string
|
|
136
|
-
allStatus?:DocumentStatus[]
|
|
137
|
-
additionalApis?:DocumentApi[]
|
|
138
|
-
additionalAutoCompleteFields ?: string[]
|
|
139
|
-
// libs?:ImportLibs[] // both process class and frontend client class will import same lib
|
|
140
|
-
formulas?: Formula[]
|
|
141
|
-
documentType: string
|
|
142
|
-
documentName: string
|
|
143
|
-
collectionName?: string
|
|
144
|
-
foreignKeys?:MyForeignKey
|
|
145
|
-
printFormats?: SchemaPrintFormat[]
|
|
146
|
-
}
|
|
147
|
-
export type SchemaPrintFormat = {
|
|
148
|
-
formatName: string
|
|
149
|
-
formatId: string
|
|
150
|
-
description?: string
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export type MyForeignKey = {
|
|
154
|
-
[collectionname:string]:string[]
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export type SchemaType = {
|
|
158
|
-
type:string
|
|
159
|
-
definitions?:SimpleAppJSONSchema7
|
|
160
|
-
required?:string[]
|
|
161
|
-
|
|
162
|
-
"x-simpleapp-config":SchemaConfig
|
|
163
|
-
properties: SchemaFields
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
export type SchemaFields = {
|
|
168
|
-
_id: SimpleAppJSONSchema7
|
|
169
|
-
tenantId: SimpleAppJSONSchema7
|
|
170
|
-
orgId: SimpleAppJSONSchema7
|
|
171
|
-
branchId: SimpleAppJSONSchema7
|
|
172
|
-
created: SimpleAppJSONSchema7
|
|
173
|
-
updated: SimpleAppJSONSchema7
|
|
174
|
-
createdBy: SimpleAppJSONSchema7
|
|
175
|
-
updatedBy: SimpleAppJSONSchema7
|
|
176
|
-
[key:string]:SimpleAppJSONSchema7 | SimpleAppJSONSchema7[] | undefined
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
// modified from jsonschemas
|
|
183
|
-
export type SimpleAppJSONSchema7Definition = SimpleAppJSONSchema7 | boolean;
|
|
184
|
-
export interface SimpleAppJSONSchema7 {
|
|
185
|
-
|
|
186
|
-
'x-foreignkey' ?:string
|
|
187
|
-
$id?: string | undefined;
|
|
188
|
-
$ref?: string | undefined;
|
|
189
|
-
$schema?: JSONSchema7Version | undefined;
|
|
190
|
-
$comment?: string | undefined;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
194
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
195
|
-
*/
|
|
196
|
-
$defs?: {
|
|
197
|
-
[key: string]: JSONSchema7Definition;
|
|
198
|
-
} | undefined;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
202
|
-
*/
|
|
203
|
-
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
204
|
-
enum?: JSONSchema7Type[] | undefined;
|
|
205
|
-
const?: JSONSchema7Type | undefined;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
209
|
-
*/
|
|
210
|
-
multipleOf?: number | undefined;
|
|
211
|
-
maximum?: number | undefined;
|
|
212
|
-
exclusiveMaximum?: number | undefined;
|
|
213
|
-
minimum?: number | undefined;
|
|
214
|
-
exclusiveMinimum?: number | undefined;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
218
|
-
*/
|
|
219
|
-
maxLength?: number | undefined;
|
|
220
|
-
minLength?: number | undefined;
|
|
221
|
-
pattern?: string | undefined;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
225
|
-
*/
|
|
226
|
-
items?: SimpleAppJSONSchema7Definition | SimpleAppJSONSchema7Definition[] | undefined;
|
|
227
|
-
additionalItems?: JSONSchema7Definition | undefined;
|
|
228
|
-
maxItems?: number | undefined;
|
|
229
|
-
minItems?: number | undefined;
|
|
230
|
-
uniqueItems?: boolean | undefined;
|
|
231
|
-
contains?: SimpleAppJSONSchema7Definition | undefined;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
235
|
-
*/
|
|
236
|
-
maxProperties?: number | undefined;
|
|
237
|
-
minProperties?: number | undefined;
|
|
238
|
-
required?: string[] | undefined;
|
|
239
|
-
properties?: {
|
|
240
|
-
[key: string]: SimpleAppJSONSchema7Definition;
|
|
241
|
-
} | undefined;
|
|
242
|
-
patternProperties?: {
|
|
243
|
-
[key: string]: SimpleAppJSONSchema7Definition;
|
|
244
|
-
} | undefined;
|
|
245
|
-
additionalProperties?: SimpleAppJSONSchema7Definition | undefined;
|
|
246
|
-
dependencies?: {
|
|
247
|
-
[key: string]: SimpleAppJSONSchema7Definition | string[];
|
|
248
|
-
} | undefined;
|
|
249
|
-
propertyNames?: SimpleAppJSONSchema7Definition | undefined;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
253
|
-
*/
|
|
254
|
-
if?: SimpleAppJSONSchema7Definition | undefined;
|
|
255
|
-
then?: SimpleAppJSONSchema7Definition | undefined;
|
|
256
|
-
else?: SimpleAppJSONSchema7Definition | undefined;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
260
|
-
*/
|
|
261
|
-
allOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
262
|
-
anyOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
263
|
-
oneOf?: SimpleAppJSONSchema7Definition[] | undefined;
|
|
264
|
-
not?: SimpleAppJSONSchema7Definition | undefined;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
268
|
-
*/
|
|
269
|
-
format?: string | undefined;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
273
|
-
*/
|
|
274
|
-
contentMediaType?: string | undefined;
|
|
275
|
-
contentEncoding?: string | undefined;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
279
|
-
*/
|
|
280
|
-
definitions?: {
|
|
281
|
-
[key: string]: JSONSchema7Definition;
|
|
282
|
-
} | undefined;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
286
|
-
*/
|
|
287
|
-
title?: string | undefined;
|
|
288
|
-
description?: string | undefined;
|
|
289
|
-
default?: JSONSchema7Type | undefined;
|
|
290
|
-
readOnly?: boolean | undefined;
|
|
291
|
-
writeOnly?: boolean | undefined;
|
|
292
|
-
example?: JSONSchema7Type | undefined;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export type NoParam = {}
|
|
296
|
-
|
|
297
|
-
export type DynamicParam = {
|
|
298
|
-
[key: string]: any;
|
|
299
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by simpleapp generator. Every
|
|
3
|
-
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-04-15
|
|
5
|
-
* Author: Ks Tan
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export type WorkflowCatalogue = {
|
|
9
|
-
<%for(let i=0; i<it.allbpmn.length;i++){ %>
|
|
10
|
-
<% const bpmn = it.allbpmn[i] %>
|
|
11
|
-
<%=bpmn%>:any,
|
|
12
|
-
<%}%>
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type WorkflowName = keyof WorkflowCatalogue
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by simpleapp generator. Every
|
|
3
|
-
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-02-23
|
|
5
|
-
* Author: Ks Tan
|
|
6
|
-
*/
|
|
7
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
8
|
-
|
|
9
|
-
export class WorkflowSettingApiSchema {
|
|
10
|
-
@ApiProperty({
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description:
|
|
14
|
-
'provide endpoint to refer user/group info inside bpmn user task',
|
|
15
|
-
})
|
|
16
|
-
userServiceUrl: string;
|
|
17
|
-
@ApiProperty({
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: false,
|
|
20
|
-
description:
|
|
21
|
-
'workflow may not realtime complete, supply call back url after complete workflow',
|
|
22
|
-
})
|
|
23
|
-
callBackUrl: string;
|
|
24
|
-
@ApiProperty({ type: 'string', required: false, description: 'optional' })
|
|
25
|
-
assignee: string;
|
|
26
|
-
@ApiProperty({ type: ()=>['string'], required: false, description: 'optional' })
|
|
27
|
-
candidateUsers: string;
|
|
28
|
-
@ApiProperty({ type: ()=>['string'], required: false, description: 'optional' })
|
|
29
|
-
candidateGroups: string;
|
|
30
|
-
}
|
|
31
|
-
export class WorkflowDataApiSchema {
|
|
32
|
-
@ApiProperty({ type: WorkflowSettingApiSchema, required: true })
|
|
33
|
-
workflowSetting: WorkflowSettingApiSchema;
|
|
34
|
-
|
|
35
|
-
@ApiProperty({ type: Object, required: true })
|
|
36
|
-
data: any;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export class WorkflowTaskApiSchema {
|
|
40
|
-
@ApiProperty()
|
|
41
|
-
id: string;
|
|
42
|
-
@ApiProperty()
|
|
43
|
-
name: string;
|
|
44
|
-
@ApiProperty()
|
|
45
|
-
status: string;
|
|
46
|
-
@ApiProperty()
|
|
47
|
-
assignee: string;
|
|
48
|
-
@ApiProperty()
|
|
49
|
-
candidateUsers: string[];
|
|
50
|
-
@ApiProperty()
|
|
51
|
-
candidateGroups: string[];
|
|
52
|
-
@ApiProperty()
|
|
53
|
-
type: string;
|
|
54
|
-
}
|
|
55
|
-
export class WorkflowProcessApiSchema {
|
|
56
|
-
@ApiProperty()
|
|
57
|
-
id: string;
|
|
58
|
-
@ApiProperty()
|
|
59
|
-
name: string;
|
|
60
|
-
@ApiProperty()
|
|
61
|
-
startedAt: string;
|
|
62
|
-
@ApiProperty()
|
|
63
|
-
status: string;
|
|
64
|
-
@ApiProperty({ type: () => [WorkflowTaskApiSchema] })
|
|
65
|
-
items: WorkflowTaskApiSchema[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class SearchWorkflowProcessApiSchema {
|
|
69
|
-
@ApiProperty()
|
|
70
|
-
id: string;
|
|
71
|
-
@ApiProperty()
|
|
72
|
-
name: string;
|
|
73
|
-
@ApiProperty()
|
|
74
|
-
startedAt: string;
|
|
75
|
-
@ApiProperty()
|
|
76
|
-
status: string;
|
|
77
|
-
|
|
78
|
-
@ApiProperty()
|
|
79
|
-
'items.id': string;
|
|
80
|
-
@ApiProperty()
|
|
81
|
-
'items.name': string;
|
|
82
|
-
@ApiProperty()
|
|
83
|
-
'items.status': string;
|
|
84
|
-
@ApiProperty()
|
|
85
|
-
'items.assignee': string;
|
|
86
|
-
@ApiProperty()
|
|
87
|
-
'items.candidateUsers': string[];
|
|
88
|
-
@ApiProperty()
|
|
89
|
-
'items.candidateGroups': string[];
|
|
90
|
-
@ApiProperty()
|
|
91
|
-
'items.type': string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export class UserTaskActorsApiSchema {
|
|
95
|
-
@ApiProperty()
|
|
96
|
-
assignee: string;
|
|
97
|
-
@ApiProperty()
|
|
98
|
-
candidateUsers: string[];
|
|
99
|
-
@ApiProperty()
|
|
100
|
-
candidateGroups: string[];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export class UserTaskApiSchema {
|
|
104
|
-
@ApiProperty()
|
|
105
|
-
id: string;
|
|
106
|
-
@ApiProperty()
|
|
107
|
-
taskId: string;
|
|
108
|
-
@ApiProperty()
|
|
109
|
-
elementId: string;
|
|
110
|
-
@ApiProperty()
|
|
111
|
-
name: string;
|
|
112
|
-
@ApiProperty()
|
|
113
|
-
processName: string;
|
|
114
|
-
@ApiProperty()
|
|
115
|
-
assignee: string;
|
|
116
|
-
@ApiProperty({ type: () => [String] })
|
|
117
|
-
candidateUsers: string[];
|
|
118
|
-
@ApiProperty({ type: () => [String] })
|
|
119
|
-
candidateGroups: string[];
|
|
120
|
-
@ApiProperty({ type: Object, required: true })
|
|
121
|
-
data: any;
|
|
122
|
-
@ApiProperty()
|
|
123
|
-
vars: any;
|
|
124
|
-
@ApiProperty()
|
|
125
|
-
startedAt: string;
|
|
126
|
-
@ApiProperty()
|
|
127
|
-
followUpDate: string;
|
|
128
|
-
@ApiProperty()
|
|
129
|
-
dueDate: string;
|
|
130
|
-
@ApiProperty()
|
|
131
|
-
priority: string;
|
|
132
|
-
@ApiProperty()
|
|
133
|
-
type: string;
|
|
134
|
-
@ApiProperty()
|
|
135
|
-
userId: string;
|
|
136
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by simpleapp generator. Every
|
|
3
|
-
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-02-23
|
|
5
|
-
* Author: Ks Tan
|
|
6
|
-
*/
|
|
7
|
-
import { Injectable, Logger } from '@nestjs/common';
|
|
8
|
-
import {
|
|
9
|
-
Configuration,
|
|
10
|
-
ModelsDatastore,
|
|
11
|
-
ModelsDatastoreDB,
|
|
12
|
-
DataStore,
|
|
13
|
-
NoCacheManager,
|
|
14
|
-
CacheManager,
|
|
15
|
-
BPMNServer,
|
|
16
|
-
} from 'bpmn-server';
|
|
17
|
-
import { WorkflowDelegate } from './workflow.delegate';
|
|
18
|
-
import { WorkflowUserService } from './workflow.userservice';
|
|
19
|
-
let _this: WorkflowConfig; //we need another variable to access WorkflowConfig
|
|
20
|
-
class MyDataStore extends DataStore {
|
|
21
|
-
constructor(bpmnserver) {
|
|
22
|
-
super(bpmnserver);
|
|
23
|
-
//console.log('this.dbConfiguration ', this.db);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@Injectable()
|
|
28
|
-
export class WorkflowConfig {
|
|
29
|
-
constructor(
|
|
30
|
-
private workflowdelegate: WorkflowDelegate,
|
|
31
|
-
private workflowUserService: WorkflowUserService,
|
|
32
|
-
) {
|
|
33
|
-
//inject delegate into config class
|
|
34
|
-
}
|
|
35
|
-
// setServer(server: BPMNServer) {
|
|
36
|
-
// //this become Configuration object, use _this instead
|
|
37
|
-
// _this.workflowdelegate.setServer(server);
|
|
38
|
-
// _this.workflowUserService.setServer(server)
|
|
39
|
-
// return _this.workflowdelegate;
|
|
40
|
-
// }
|
|
41
|
-
getConfig() {
|
|
42
|
-
const templatesPath = __dirname + '/emailTemplates/';
|
|
43
|
-
_this = this; //store reference of current object into _this
|
|
44
|
-
const configuration = new Configuration({
|
|
45
|
-
definitionsPath: process.env.BPMN_PATH,
|
|
46
|
-
templatesPath: templatesPath,
|
|
47
|
-
timers: {
|
|
48
|
-
precision: 3000,
|
|
49
|
-
},
|
|
50
|
-
database: {
|
|
51
|
-
MongoDB: {
|
|
52
|
-
db_url: process.env.MONGO_DB_URL,
|
|
53
|
-
// db: process.env.MONGO_DB_NAME, //'bpmn'
|
|
54
|
-
},
|
|
55
|
-
SQLite: { db_connection: '' },
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
apiKey: process.env.API_KEY,
|
|
59
|
-
/* Define Server Services */
|
|
60
|
-
logger: function (server) {
|
|
61
|
-
return new Logger();
|
|
62
|
-
},
|
|
63
|
-
definitions: function (server: BPMNServer) {
|
|
64
|
-
return new ModelsDatastore(server);
|
|
65
|
-
},
|
|
66
|
-
appDelegate: (server: BPMNServer) =>
|
|
67
|
-
_this.workflowdelegate.setServer(server),
|
|
68
|
-
//userService: (server: BPMNServer) =>
|
|
69
|
-
//_this.workflowUserService.setServer(server),
|
|
70
|
-
dataStore: function (server: BPMNServer) {
|
|
71
|
-
return new MyDataStore(server);
|
|
72
|
-
},
|
|
73
|
-
cacheManager: function (server: BPMNServer) {
|
|
74
|
-
return new NoCacheManager(server);
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
return configuration;
|
|
78
|
-
}
|
|
79
|
-
}
|