@simitgroup/simpleapp-generator 2.0.1-n-alpha → 2.0.1-p-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 +11 -0
- package/dist/buildinschemas/autoincreament.js +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/message.d.ts +3 -0
- package/dist/buildinschemas/message.d.ts.map +1 -0
- package/dist/buildinschemas/message.js +34 -0
- package/dist/buildinschemas/message.js.map +1 -0
- package/dist/buildinschemas/webhookhistory.d.ts +3 -0
- package/dist/buildinschemas/webhookhistory.d.ts.map +1 -0
- package/dist/buildinschemas/webhookhistory.js +44 -0
- package/dist/buildinschemas/webhookhistory.js.map +1 -0
- package/dist/createproject.js +138 -0
- package/dist/createproject.js.map +1 -0
- package/dist/generate-allow-changebackend.js +305 -0
- package/dist/generate-allow-changebackend.js.map +1 -0
- package/dist/index2.js +118 -0
- package/dist/index2.js.map +1 -0
- package/dist/installdependency.js +20 -0
- package/dist/installdependency.js.map +1 -0
- package/dist/installnest.js +2 -0
- package/dist/installnest.js.map +1 -0
- package/dist/installnuxt.js +2 -0
- package/dist/installnuxt.js.map +1 -0
- package/dist/processors/groupsbuilder.js +2 -0
- package/dist/processors/groupsbuilder.js.map +1 -0
- package/dist/schematype/baseschema.js +25 -0
- package/dist/schematype/baseschema.js.map +1 -0
- package/dist/schematype/default.js +2 -0
- package/dist/schematype/default.js.map +1 -0
- package/dist/schematype/index.js +12 -0
- package/dist/schematype/index.js.map +1 -0
- package/dist/schematype/primarymasterdata.js +38 -0
- package/dist/schematype/primarymasterdata.js.map +1 -0
- package/dist/schematype/simple.js +24 -0
- package/dist/schematype/simple.js.map +1 -0
- package/dist/schematype/simplemasterdata.js +31 -0
- package/dist/schematype/simplemasterdata.js.map +1 -0
- package/dist/schematype/transaction.js +74 -0
- package/dist/schematype/transaction.js.map +1 -0
- package/package.json +1 -1
- package/templates/nest/src/simple-app/_core/features/maintenance/maintenance.service.ts.eta +4 -4
- package/templates/nest/src/simple-app/_core/features/simple-app-core-features.module.ts.eta +4 -0
- package/templates/nest/src/simple-app/_core/features/user-context/user.context.ts.eta +4 -3
- package/templates/nest/src/simple-app/_core/framework/base/simple-app.service.ts.eta +24 -11
- package/templates/nest/src/simple-app/cron/cron.module.ts.eta +10 -0
- package/templates/nest/src/simple-app/simple-app.module.ts.eta +3 -0
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +25 -0
|
@@ -13,6 +13,7 @@ import { SimpleAppResourceApiModule } from './apis/resource-api.module';
|
|
|
13
13
|
import { SimpleAppMiniAppsModule } from './mini-apps/mini-apps.module';
|
|
14
14
|
import { SimpleAppQueueConsumersModule } from './queues/queues.module';
|
|
15
15
|
import { SimpleAppMiniAppScopeModule } from '@core-features/mini-app/mini-app-scope/mini-app-scope.module';
|
|
16
|
+
import { CronModule } from './crons/cron.module';
|
|
16
17
|
|
|
17
18
|
@Module({
|
|
18
19
|
imports: [
|
|
@@ -24,6 +25,7 @@ import { SimpleAppMiniAppScopeModule } from '@core-features/mini-app/mini-app-sc
|
|
|
24
25
|
SimpleAppMiniAppsModule,
|
|
25
26
|
SimpleAppQueueConsumersModule,
|
|
26
27
|
SimpleAppMiniAppScopeModule,
|
|
28
|
+
CronModule
|
|
27
29
|
],
|
|
28
30
|
controllers: [],
|
|
29
31
|
providers: [],
|
|
@@ -36,6 +38,7 @@ import { SimpleAppMiniAppScopeModule } from '@core-features/mini-app/mini-app-sc
|
|
|
36
38
|
SimpleAppMiniAppsModule,
|
|
37
39
|
SimpleAppQueueConsumersModule,
|
|
38
40
|
SimpleAppMiniAppScopeModule,
|
|
41
|
+
CronModule
|
|
39
42
|
]
|
|
40
43
|
})
|
|
41
44
|
export class SimpleAppModule {}
|
|
@@ -103,6 +103,31 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|
|
103
103
|
|
|
104
104
|
this.invites = res.invites;
|
|
105
105
|
this.moreProps = res.moreProps;
|
|
106
|
+
|
|
107
|
+
if (res.branches && Array.isArray(res.branches)) {
|
|
108
|
+
const currentBranch = res.branches.find(
|
|
109
|
+
(b: any) => b.branchId === res.branchId
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
if (currentBranch) {
|
|
113
|
+
this.branchCode = currentBranch.branchCode;
|
|
114
|
+
this.branchName = currentBranch.branchName;
|
|
115
|
+
this.branchRecordId = currentBranch.branch?._id || currentBranch.branchRecordId;
|
|
116
|
+
this.orgCode = currentBranch.orgCode;
|
|
117
|
+
this.orgName = currentBranch.orgName;
|
|
118
|
+
|
|
119
|
+
if (currentBranch.branch) {
|
|
120
|
+
this.branchInfo = {
|
|
121
|
+
...this.branchInfo,
|
|
122
|
+
_id: currentBranch.branch._id,
|
|
123
|
+
branchId: currentBranch.branchId,
|
|
124
|
+
branchCode: currentBranch.branchCode,
|
|
125
|
+
branchName: currentBranch.branchName,
|
|
126
|
+
imageUrl: currentBranch.branch.imageUrl,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
106
131
|
// this.package = res.moreProps.package;
|
|
107
132
|
// this.appintegration.einvoice = res.appintegration.einvoice;
|
|
108
133
|
// this.appintegration.simbiz6 = res.appintegration.simbiz6;
|