@scifeon/sdk 0.103.0 → 0.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/action-target.d.ts +7 -7
  2. package/dist/action-target.js +11 -11
  3. package/dist/app/app-generator.d.ts +34 -34
  4. package/dist/app/app-generator.js +460 -460
  5. package/dist/app/app-persist.d.ts +18 -18
  6. package/dist/app/app-persist.js +193 -193
  7. package/dist/app/app-validator.d.ts +8 -8
  8. package/dist/app/app-validator.js +145 -145
  9. package/dist/app/interfaces/app-json.interface.d.ts +4 -4
  10. package/dist/app/interfaces/app-json.interface.js +2 -2
  11. package/dist/app/interfaces/app-type.enum.d.ts +5 -5
  12. package/dist/app/interfaces/app-type.enum.js +9 -9
  13. package/dist/app/interfaces/contributions/contributions-json.interface.d.ts +55 -55
  14. package/dist/app/interfaces/contributions/contributions-json.interface.js +2 -2
  15. package/dist/app/interfaces/contributions/main-menu.interface.d.ts +12 -12
  16. package/dist/app/interfaces/contributions/main-menu.interface.js +2 -2
  17. package/dist/app/interfaces/contributions/menu-item.interface.d.ts +5 -5
  18. package/dist/app/interfaces/contributions/menu-item.interface.js +2 -2
  19. package/dist/app/interfaces/contributions/page-menu-item.interface.d.ts +10 -10
  20. package/dist/app/interfaces/contributions/page-menu-item.interface.js +2 -2
  21. package/dist/app/interfaces/contributions/page-menu.interface.d.ts +9 -9
  22. package/dist/app/interfaces/contributions/page-menu.interface.js +2 -2
  23. package/dist/app/interfaces/package-json.interface.d.ts +14 -14
  24. package/dist/app/interfaces/package-json.interface.js +2 -2
  25. package/dist/app/interfaces/webpack-config.interface.d.ts +5 -5
  26. package/dist/app/interfaces/webpack-config.interface.js +2 -2
  27. package/dist/cli/commands/app/build.d.ts +4 -4
  28. package/dist/cli/commands/app/build.js +43 -43
  29. package/dist/cli/commands/app/clean.d.ts +3 -3
  30. package/dist/cli/commands/app/clean.js +15 -15
  31. package/dist/cli/commands/app/debug.d.ts +3 -3
  32. package/dist/cli/commands/app/debug.js +22 -22
  33. package/dist/cli/commands/app/e2e-test.d.ts +3 -3
  34. package/dist/cli/commands/app/e2e-test.js +23 -23
  35. package/dist/cli/commands/app/new.d.ts +6 -6
  36. package/dist/cli/commands/app/new.js +190 -190
  37. package/dist/cli/commands/app/package.d.ts +3 -3
  38. package/dist/cli/commands/app/package.js +10 -10
  39. package/dist/cli/commands/app/post-process.d.ts +8 -8
  40. package/dist/cli/commands/app/post-process.js +122 -122
  41. package/dist/cli/commands/app/scaffold.d.ts +4 -4
  42. package/dist/cli/commands/app/scaffold.js +19 -19
  43. package/dist/cli/commands/app/unit-test.d.ts +3 -3
  44. package/dist/cli/commands/app/unit-test.js +11 -11
  45. package/dist/cli/commands/app/validate.d.ts +3 -3
  46. package/dist/cli/commands/app/validate.js +20 -20
  47. package/dist/cli/commands/app/version.d.ts +3 -3
  48. package/dist/cli/commands/app/version.js +17 -17
  49. package/dist/cli/commands/app/watch.d.ts +3 -3
  50. package/dist/cli/commands/app/watch.js +48 -48
  51. package/dist/cli/commands/scifeon/download.d.ts +3 -3
  52. package/dist/cli/commands/scifeon/download.js +48 -48
  53. package/dist/cli/commands/scifeon/run.d.ts +3 -3
  54. package/dist/cli/commands/scifeon/run.js +41 -41
  55. package/dist/cli/config.d.ts +11 -11
  56. package/dist/cli/config.js +23 -23
  57. package/dist/cli/index.d.ts +9 -9
  58. package/dist/cli/index.js +159 -159
  59. package/dist/cli/webpack-runner.d.ts +1 -1
  60. package/dist/cli/webpack-runner.js +26 -26
  61. package/dist/download-utils.d.ts +3 -3
  62. package/dist/download-utils.js +50 -50
  63. package/dist/file-utils.d.ts +5 -5
  64. package/dist/file-utils.js +41 -41
  65. package/dist/html-report.d.ts +15 -15
  66. package/dist/html-report.js +212 -212
  67. package/dist/index.d.ts +2 -2
  68. package/dist/index.js +23 -23
  69. package/dist/logger.d.ts +14 -14
  70. package/dist/logger.js +52 -52
  71. package/dist/measurement-units.d.ts +5 -5
  72. package/dist/measurement-units.js +9 -9
  73. package/dist/page-types.d.ts +6 -6
  74. package/dist/page-types.js +10 -10
  75. package/dist/plugin-types.d.ts +44 -44
  76. package/dist/plugin-types.js +48 -48
  77. package/dist/unit-test-runner.d.ts +1 -1
  78. package/dist/unit-test-runner.js +82 -82
  79. package/dist/utils/test-helper.d.ts +4 -4
  80. package/dist/utils/test-helper.js +46 -46
  81. package/dist/webpack-app-config.d.ts +2 -2
  82. package/dist/webpack-app-config.js +248 -248
  83. package/dist/webpack-utils.d.ts +8 -8
  84. package/dist/webpack-utils.js +91 -91
  85. package/package.json +72 -72
  86. package/resources/new-app/README.md +12 -12
  87. package/resources/new-app/editor/.vscode/launch.json +40 -40
  88. package/resources/new-app/gitignore.txt +6 -6
  89. package/resources/new-app/typescript/src/index.html +14 -14
  90. package/resources/new-app/typescript/src/index.ts +32 -32
  91. package/resources/new-app/typescript/test/e2e/frontpage.test.ts +16 -16
  92. package/resources/new-app/typescript/test/e2e-config.ts +14 -14
  93. package/resources/new-app/typescript/test/unit/index.test.ts +7 -7
  94. package/resources/new-app/typescript/tsconfig.json +39 -39
  95. package/resources/scaffold-templates/scaffold-e2e-test.ts +19 -19
  96. package/resources/test/chai.js +10706 -10706
  97. package/resources/test/mocha.css +326 -326
  98. package/resources/test/mocha.js +16590 -16590
  99. package/resources/test/tests.html +26 -26
@@ -1,145 +1,145 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppValidator = void 0;
4
- const fs = require("fs");
5
- const path = require("path");
6
- class AppValidator {
7
- constructor() {
8
- this.validScopeKeys = [
9
- "menu",
10
- "plugins",
11
- "routes",
12
- "userRoles",
13
- "entities",
14
- "dashboards",
15
- "database",
16
- "files",
17
- "previewFeatures",
18
- "scheduledNotifications",
19
- ];
20
- }
21
- validatePackageJson(packageJson) {
22
- if (!packageJson) {
23
- throw new Error("No package.json file could be found.");
24
- }
25
- if (!packageJson.name) {
26
- throw new Error(`Error in package.json: 'name' missing.`);
27
- }
28
- if (!packageJson.namespace) {
29
- throw new Error(`Error in package.json: 'namespace' missing.`);
30
- }
31
- if (!packageJson.version) {
32
- throw new Error(`Error in package.json: 'version' missing.`);
33
- }
34
- if (!packageJson.author) {
35
- throw new Error(`Error in package.json: 'author' missing.`);
36
- }
37
- if (!packageJson.description) {
38
- throw new Error(`Error in package.json: 'description' missing.`);
39
- }
40
- if (!/^([a-zA-Z]\d*(\.[a-zA-Z])?)+$/i.test(packageJson.namespace)) {
41
- throw new Error("Error in package.json: The namespace must be characters (a-z), numbers and dots.");
42
- }
43
- if (!/^([a-z]+(\_[a-z])?)+$/.test(packageJson.name)) {
44
- throw new Error("Error in package.json: The id must be letters, numbers, dot, dashes and underscores (_).");
45
- }
46
- if (packageJson.scifeon.scopes) {
47
- const notValidScopes = packageJson.scifeon.scopes.filter(s => !this.validScopeKeys.some(vs => vs === s) && !s.startsWith("plugins.") && !s.startsWith("menu."));
48
- if (notValidScopes.length) {
49
- throw new Error(`Error in contributions.json: The following keys are not recognized: ${notValidScopes}`);
50
- }
51
- }
52
- }
53
- validateContributionsJson(contributionsJson, appPath = "./") {
54
- if (contributionsJson.plugins) {
55
- for (const plugin of contributionsJson.plugins) {
56
- if (plugin.types && plugin.types.includes("page") && !plugin.id) {
57
- throw new Error(`Error in contributions.json: 'id' missing in plugin: ${JSON.stringify(plugin)}`);
58
- }
59
- if (!plugin.src) {
60
- throw new Error(`Error in contributions.json: 'src' missing in plugin: ${JSON.stringify(plugin)}`);
61
- }
62
- if (!plugin.types || !plugin.types.length) {
63
- throw new Error(`Error in contributions.json: 'types' missing in plugin: ${JSON.stringify(plugin)}`);
64
- }
65
- }
66
- }
67
- if (contributionsJson.database) {
68
- if (contributionsJson.database.sequences) {
69
- for (const seq of contributionsJson.database.sequences) {
70
- if (!seq.id || !seq.minDigits || !seq.prefix) {
71
- throw new Error(`Error in contributions.json: 'id', 'prefix' and 'minDigits' required in database sequence: ${JSON.stringify(seq)}`);
72
- }
73
- if (typeof seq.id !== "string"
74
- || typeof seq.minDigits !== "number"
75
- || typeof seq.prefix !== "string"
76
- || (seq.type && typeof seq.type !== "string")) {
77
- throw new Error(`Error in contributions.json: 'id', 'prefix', 'minDigits' or 'type' are not correct type in database sequence: ${JSON.stringify(seq)}`);
78
- }
79
- if (seq.env && !Array.isArray(seq.env)) {
80
- throw new Error(`Error in contributions.json: 'env' are not correct type in database sequence (should be array of strings): ${JSON.stringify(seq)}`);
81
- }
82
- }
83
- }
84
- if (contributionsJson.database.datamodel && !contributionsJson.database.prefix) {
85
- throw new Error(`Error in contributions.json: 'prefix' required in database when datamodel is included: ${JSON.stringify(contributionsJson.database)}`);
86
- }
87
- if (contributionsJson.database.views) {
88
- for (const view of contributionsJson.database.views) {
89
- if (!view.prefix && !contributionsJson.database.prefix) {
90
- throw new Error(`Error in contributions.json: 'prefix' required in database when view is included: ${JSON.stringify(view)}`);
91
- }
92
- if (!view.name || !view.sql) {
93
- throw new Error(`Error in contributions.json: 'name' and 'sql' required in database view: ${JSON.stringify(view)}`);
94
- }
95
- }
96
- }
97
- }
98
- if (contributionsJson.files) {
99
- for (const file of contributionsJson.files) {
100
- const fileSrc = path.resolve(appPath, file);
101
- if (!fs.existsSync(fileSrc)) {
102
- throw new Error(`Error in contributions.json: file '${fileSrc}' does not exist`);
103
- }
104
- }
105
- }
106
- if (contributionsJson.menu) {
107
- for (const menuKey of Object.keys(contributionsJson.menu)) {
108
- if (menuKey === "main" && !Array.isArray(contributionsJson.menu[menuKey])) {
109
- throw new Error(`Error in contributions.json: menu 'main' must be array of items`);
110
- }
111
- if (!AppValidator.reservedMenus.some(m => m === menuKey)) {
112
- if (Array.isArray(contributionsJson.menu[menuKey])
113
- || !contributionsJson.menu[menuKey].url
114
- || !contributionsJson.menu[menuKey].items) {
115
- throw new Error(`Error in contributions.json: menu '${menuKey}' must be object with key 'url' and 'items' array`);
116
- }
117
- }
118
- }
119
- }
120
- if (contributionsJson.previewFeatures) {
121
- const requiredKeys = ["id", "name", "description", "expireDate"];
122
- for (const previewFeature of contributionsJson.previewFeatures) {
123
- const keys = Object.keys(previewFeature);
124
- if (requiredKeys.some(rk => !keys.includes(rk))) {
125
- throw new Error(`Error in contributions.json: '${requiredKeys.join("' or '")}' missing in previewFeature: ${JSON.stringify(previewFeature)}`);
126
- }
127
- }
128
- }
129
- if (contributionsJson.scheduledNotifications) {
130
- const requiredKeys = ["schedule", "query", "emailTemplate", "emailSubject"];
131
- for (const scheduledNotification of contributionsJson.scheduledNotifications) {
132
- const keys = Object.keys(scheduledNotification);
133
- if (requiredKeys.some(rk => !keys.includes(rk))) {
134
- throw new Error(`Error in contributions.json: '${requiredKeys.join("' or '")}' missing in scheduledNotifications: ${JSON.stringify(scheduledNotification)}`);
135
- }
136
- }
137
- }
138
- }
139
- }
140
- exports.AppValidator = AppValidator;
141
- AppValidator.reservedMenus = [
142
- "main",
143
- "admin",
144
- "data",
145
- ];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppValidator = void 0;
4
+ const fs = require("fs");
5
+ const path = require("path");
6
+ class AppValidator {
7
+ constructor() {
8
+ this.validScopeKeys = [
9
+ "menu",
10
+ "plugins",
11
+ "routes",
12
+ "userRoles",
13
+ "entities",
14
+ "dashboards",
15
+ "database",
16
+ "files",
17
+ "previewFeatures",
18
+ "scheduledNotifications",
19
+ ];
20
+ }
21
+ validatePackageJson(packageJson) {
22
+ if (!packageJson) {
23
+ throw new Error("No package.json file could be found.");
24
+ }
25
+ if (!packageJson.name) {
26
+ throw new Error(`Error in package.json: 'name' missing.`);
27
+ }
28
+ if (!packageJson.namespace) {
29
+ throw new Error(`Error in package.json: 'namespace' missing.`);
30
+ }
31
+ if (!packageJson.version) {
32
+ throw new Error(`Error in package.json: 'version' missing.`);
33
+ }
34
+ if (!packageJson.author) {
35
+ throw new Error(`Error in package.json: 'author' missing.`);
36
+ }
37
+ if (!packageJson.description) {
38
+ throw new Error(`Error in package.json: 'description' missing.`);
39
+ }
40
+ if (!/^([a-zA-Z]\d*(\.[a-zA-Z])?)+$/i.test(packageJson.namespace)) {
41
+ throw new Error("Error in package.json: The namespace must be characters (a-z), numbers and dots.");
42
+ }
43
+ if (!/^([a-z]+(\_[a-z])?)+$/.test(packageJson.name)) {
44
+ throw new Error("Error in package.json: The id must be letters, numbers, dot, dashes and underscores (_).");
45
+ }
46
+ if (packageJson.scifeon.scopes) {
47
+ const notValidScopes = packageJson.scifeon.scopes.filter(s => !this.validScopeKeys.some(vs => vs === s) && !s.startsWith("plugins.") && !s.startsWith("menu."));
48
+ if (notValidScopes.length) {
49
+ throw new Error(`Error in contributions.json: The following keys are not recognized: ${notValidScopes}`);
50
+ }
51
+ }
52
+ }
53
+ validateContributionsJson(contributionsJson, appPath = "./") {
54
+ if (contributionsJson.plugins) {
55
+ for (const plugin of contributionsJson.plugins) {
56
+ if (plugin.types && plugin.types.includes("page") && !plugin.id) {
57
+ throw new Error(`Error in contributions.json: 'id' missing in plugin: ${JSON.stringify(plugin)}`);
58
+ }
59
+ if (!plugin.src) {
60
+ throw new Error(`Error in contributions.json: 'src' missing in plugin: ${JSON.stringify(plugin)}`);
61
+ }
62
+ if (!plugin.types || !plugin.types.length) {
63
+ throw new Error(`Error in contributions.json: 'types' missing in plugin: ${JSON.stringify(plugin)}`);
64
+ }
65
+ }
66
+ }
67
+ if (contributionsJson.database) {
68
+ if (contributionsJson.database.sequences) {
69
+ for (const seq of contributionsJson.database.sequences) {
70
+ if (!seq.id || !seq.minDigits || !seq.prefix) {
71
+ throw new Error(`Error in contributions.json: 'id', 'prefix' and 'minDigits' required in database sequence: ${JSON.stringify(seq)}`);
72
+ }
73
+ if (typeof seq.id !== "string"
74
+ || typeof seq.minDigits !== "number"
75
+ || typeof seq.prefix !== "string"
76
+ || (seq.type && typeof seq.type !== "string")) {
77
+ throw new Error(`Error in contributions.json: 'id', 'prefix', 'minDigits' or 'type' are not correct type in database sequence: ${JSON.stringify(seq)}`);
78
+ }
79
+ if (seq.env && !Array.isArray(seq.env)) {
80
+ throw new Error(`Error in contributions.json: 'env' are not correct type in database sequence (should be array of strings): ${JSON.stringify(seq)}`);
81
+ }
82
+ }
83
+ }
84
+ if (contributionsJson.database.datamodel && !contributionsJson.database.prefix) {
85
+ throw new Error(`Error in contributions.json: 'prefix' required in database when datamodel is included: ${JSON.stringify(contributionsJson.database)}`);
86
+ }
87
+ if (contributionsJson.database.views) {
88
+ for (const view of contributionsJson.database.views) {
89
+ if (!view.prefix && !contributionsJson.database.prefix) {
90
+ throw new Error(`Error in contributions.json: 'prefix' required in database when view is included: ${JSON.stringify(view)}`);
91
+ }
92
+ if (!view.name || !view.sql) {
93
+ throw new Error(`Error in contributions.json: 'name' and 'sql' required in database view: ${JSON.stringify(view)}`);
94
+ }
95
+ }
96
+ }
97
+ }
98
+ if (contributionsJson.files) {
99
+ for (const file of contributionsJson.files) {
100
+ const fileSrc = path.resolve(appPath, file);
101
+ if (!fs.existsSync(fileSrc)) {
102
+ throw new Error(`Error in contributions.json: file '${fileSrc}' does not exist`);
103
+ }
104
+ }
105
+ }
106
+ if (contributionsJson.menu) {
107
+ for (const menuKey of Object.keys(contributionsJson.menu)) {
108
+ if (menuKey === "main" && !Array.isArray(contributionsJson.menu[menuKey])) {
109
+ throw new Error(`Error in contributions.json: menu 'main' must be array of items`);
110
+ }
111
+ if (!AppValidator.reservedMenus.some(m => m === menuKey)) {
112
+ if (Array.isArray(contributionsJson.menu[menuKey])
113
+ || !contributionsJson.menu[menuKey].url
114
+ || !contributionsJson.menu[menuKey].items) {
115
+ throw new Error(`Error in contributions.json: menu '${menuKey}' must be object with key 'url' and 'items' array`);
116
+ }
117
+ }
118
+ }
119
+ }
120
+ if (contributionsJson.previewFeatures) {
121
+ const requiredKeys = ["id", "name", "description", "expireDate"];
122
+ for (const previewFeature of contributionsJson.previewFeatures) {
123
+ const keys = Object.keys(previewFeature);
124
+ if (requiredKeys.some(rk => !keys.includes(rk))) {
125
+ throw new Error(`Error in contributions.json: '${requiredKeys.join("' or '")}' missing in previewFeature: ${JSON.stringify(previewFeature)}`);
126
+ }
127
+ }
128
+ }
129
+ if (contributionsJson.scheduledNotifications) {
130
+ const requiredKeys = ["schedule", "query", "emailTemplate", "emailSubject"];
131
+ for (const scheduledNotification of contributionsJson.scheduledNotifications) {
132
+ const keys = Object.keys(scheduledNotification);
133
+ if (requiredKeys.some(rk => !keys.includes(rk))) {
134
+ throw new Error(`Error in contributions.json: '${requiredKeys.join("' or '")}' missing in scheduledNotifications: ${JSON.stringify(scheduledNotification)}`);
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ exports.AppValidator = AppValidator;
141
+ AppValidator.reservedMenus = [
142
+ "main",
143
+ "admin",
144
+ "data",
145
+ ];
@@ -1,4 +1,4 @@
1
- import { IPackageJson } from "./package-json.interface";
2
- export interface IAppJson extends IPackageJson {
3
- type?: string;
4
- }
1
+ import { IPackageJson } from "./package-json.interface";
2
+ export interface IAppJson extends IPackageJson {
3
+ type?: string;
4
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- export declare enum AppType {
2
- CORE = "core",
3
- MODULE = "core",
4
- DEMO = "demo"
5
- }
1
+ export declare enum AppType {
2
+ CORE = "core",
3
+ MODULE = "core",
4
+ DEMO = "demo"
5
+ }
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppType = void 0;
4
- var AppType;
5
- (function (AppType) {
6
- AppType["CORE"] = "core";
7
- AppType["MODULE"] = "core";
8
- AppType["DEMO"] = "demo";
9
- })(AppType = exports.AppType || (exports.AppType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppType = void 0;
4
+ var AppType;
5
+ (function (AppType) {
6
+ AppType["CORE"] = "core";
7
+ AppType["MODULE"] = "core";
8
+ AppType["DEMO"] = "demo";
9
+ })(AppType = exports.AppType || (exports.AppType = {}));
@@ -1,55 +1,55 @@
1
- import { IMainMenu } from "./main-menu.interface";
2
- import { IPageMenuItem } from "./page-menu-item.interface";
3
- import { IPageMenu } from "./page-menu.interface";
4
- export interface IContributionsJson {
5
- files?: string[];
6
- entities?: string[];
7
- dashboards?: string[];
8
- userRoles?: {
9
- [roleName: string]: string;
10
- };
11
- scheduledNotifications?: {
12
- description?: string;
13
- schedule: "daily";
14
- hourOfDay?: number;
15
- query: string;
16
- emailTemplate: string;
17
- emailSubject?: string;
18
- }[];
19
- previewFeatures?: {
20
- id: string;
21
- name: string;
22
- description: string;
23
- expireDate: string;
24
- default?: boolean;
25
- }[];
26
- database?: {
27
- prefix?: string;
28
- views: {
29
- prefix?: string;
30
- name: string;
31
- sql: string;
32
- accessScope: "All" | "Department" | "Project" | "Admin" | "User";
33
- fields?: string;
34
- dbms?: ("sqlserver" | "sqlite")[];
35
- }[];
36
- datamodel: string;
37
- sequences: {
38
- id: string;
39
- prefix: string;
40
- minDigits: number;
41
- type: string;
42
- nextValue?: number;
43
- env?: ("dev")[];
44
- }[];
45
- seed?: string[];
46
- };
47
- menu?: {
48
- main?: IMainMenu[];
49
- dev?: IPageMenu;
50
- admin?: IPageMenuItem[];
51
- data?: IPageMenuItem[];
52
- };
53
- routes: any[];
54
- plugins: any[];
55
- }
1
+ import { IMainMenu } from "./main-menu.interface";
2
+ import { IPageMenuItem } from "./page-menu-item.interface";
3
+ import { IPageMenu } from "./page-menu.interface";
4
+ export interface IContributionsJson {
5
+ files?: string[];
6
+ entities?: string[];
7
+ dashboards?: string[];
8
+ userRoles?: {
9
+ [roleName: string]: string;
10
+ };
11
+ scheduledNotifications?: {
12
+ description?: string;
13
+ schedule: "daily";
14
+ hourOfDay?: number;
15
+ query: string;
16
+ emailTemplate: string;
17
+ emailSubject?: string;
18
+ }[];
19
+ previewFeatures?: {
20
+ id: string;
21
+ name: string;
22
+ description: string;
23
+ expireDate: string;
24
+ default?: boolean;
25
+ }[];
26
+ database?: {
27
+ prefix?: string;
28
+ views: {
29
+ prefix?: string;
30
+ name: string;
31
+ sql: string;
32
+ accessScope: "All" | "Department" | "Project" | "Admin" | "User";
33
+ fields?: string;
34
+ dbms?: ("sqlserver" | "sqlite")[];
35
+ }[];
36
+ datamodel: string;
37
+ sequences: {
38
+ id: string;
39
+ prefix: string;
40
+ minDigits: number;
41
+ type: string;
42
+ nextValue?: number;
43
+ env?: ("dev")[];
44
+ }[];
45
+ seed?: string[];
46
+ };
47
+ menu?: {
48
+ main?: IMainMenu[];
49
+ dev?: IPageMenu;
50
+ admin?: IPageMenuItem[];
51
+ data?: IPageMenuItem[];
52
+ };
53
+ routes: any[];
54
+ plugins: any[];
55
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
- export interface IMainMenu {
2
- text: string;
3
- url?: string;
4
- iconFA?: string;
5
- iconSrc?: string;
6
- rank?: number;
7
- favorite?: boolean;
8
- items?: {
9
- text: string;
10
- url: string;
11
- }[];
12
- }
1
+ export interface IMainMenu {
2
+ text: string;
3
+ url?: string;
4
+ iconFA?: string;
5
+ iconSrc?: string;
6
+ rank?: number;
7
+ favorite?: boolean;
8
+ items?: {
9
+ text: string;
10
+ url: string;
11
+ }[];
12
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- export interface IMenuItem {
2
- src?: string;
3
- section?: string;
4
- items?: IMenuItem[];
5
- }
1
+ export interface IMenuItem {
2
+ src?: string;
3
+ section?: string;
4
+ items?: IMenuItem[];
5
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
- export interface IPageMenuItem {
2
- id?: string;
3
- section?: string;
4
- src?: string;
5
- text?: string;
6
- url?: string[];
7
- rank?: number;
8
- iconFA?: string;
9
- items?: IPageMenuItem[];
10
- }
1
+ export interface IPageMenuItem {
2
+ id?: string;
3
+ section?: string;
4
+ src?: string;
5
+ text?: string;
6
+ url?: string[];
7
+ rank?: number;
8
+ iconFA?: string;
9
+ items?: IPageMenuItem[];
10
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,9 @@
1
- import { IPageMenuItem } from "./page-menu-item.interface";
2
- export interface IPageMenu {
3
- section?: string;
4
- route: string;
5
- text: string;
6
- roles?: string[];
7
- rank?: number;
8
- items?: IPageMenuItem[];
9
- }
1
+ import { IPageMenuItem } from "./page-menu-item.interface";
2
+ export interface IPageMenu {
3
+ section?: string;
4
+ route: string;
5
+ text: string;
6
+ roles?: string[];
7
+ rank?: number;
8
+ items?: IPageMenuItem[];
9
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,14 @@
1
- import { IContributionsJson } from "./contributions/contributions-json.interface";
2
- export interface IPackageJson {
3
- name: string;
4
- namespace: string;
5
- description: string;
6
- author: string;
7
- version: string;
8
- scifeon: {
9
- cliVersion?: string;
10
- runtimeVersion?: string;
11
- scopes?: string[];
12
- contributions: IContributionsJson;
13
- };
14
- }
1
+ import { IContributionsJson } from "./contributions/contributions-json.interface";
2
+ export interface IPackageJson {
3
+ name: string;
4
+ namespace: string;
5
+ description: string;
6
+ author: string;
7
+ version: string;
8
+ scifeon: {
9
+ cliVersion?: string;
10
+ runtimeVersion?: string;
11
+ scopes?: string[];
12
+ contributions: IContributionsJson;
13
+ };
14
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- export interface IWebpackConfig {
2
- jsonDir: string;
3
- tempDir: string;
4
- appPath: string;
5
- }
1
+ export interface IWebpackConfig {
2
+ jsonDir: string;
3
+ tempDir: string;
4
+ appPath: string;
5
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- export declare class BuildCommand {
2
- execute(options: any): Promise<void>;
3
- private downloadTypes;
4
- }
1
+ export declare class BuildCommand {
2
+ execute(options: any): Promise<void>;
3
+ private downloadTypes;
4
+ }