@ruiapp/rapid-core 0.9.9 → 0.10.1
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/CHANGELOG.md +11 -11
- package/dist/bootstrapApplicationConfig.d.ts +51 -0
- package/dist/index.js +168 -40
- package/dist/plugins/auth/services/AuthService.d.ts +7 -1
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
- package/rollup.config.js +16 -16
- package/src/bootstrapApplicationConfig.ts +897 -782
- package/src/core/actionHandler.ts +23 -23
- package/src/core/eventManager.ts +20 -20
- package/src/core/facility.ts +7 -7
- package/src/core/http/formDataParser.ts +89 -89
- package/src/core/http-types.ts +4 -4
- package/src/core/pluginManager.ts +193 -193
- package/src/core/providers/runtimeProvider.ts +5 -5
- package/src/core/request.ts +96 -96
- package/src/core/response.ts +79 -79
- package/src/core/routeContext.ts +127 -127
- package/src/core/routes/healthz.ts +20 -20
- package/src/core/routes/index.ts +3 -3
- package/src/core/routesBuilder.ts +110 -110
- package/src/core/server.ts +156 -156
- package/src/dataAccess/columnTypeMapper.ts +22 -22
- package/src/dataAccess/dataAccessTypes.ts +165 -165
- package/src/dataAccess/dataAccessor.ts +135 -135
- package/src/dataAccess/entityManager.ts +1932 -1932
- package/src/dataAccess/entityMapper.ts +111 -111
- package/src/dataAccess/entityValidator.ts +33 -33
- package/src/dataAccess/propertyMapper.ts +28 -28
- package/src/deno-std/assert/assert.ts +9 -9
- package/src/deno-std/assert/assertion_error.ts +7 -7
- package/src/deno-std/datetime/to_imf.ts +32 -32
- package/src/deno-std/encoding/base64.ts +141 -141
- package/src/deno-std/http/cookie.ts +372 -372
- package/src/facilities/cache/CacheFacilityTypes.ts +29 -29
- package/src/facilities/cache/CacheFactory.ts +31 -31
- package/src/facilities/cache/MemoryCache.ts +58 -58
- package/src/facilities/cache/MemoryCacheProvider.ts +15 -15
- package/src/facilities/log/LogFacility.ts +35 -35
- package/src/helpers/entityHelper.ts +89 -89
- package/src/helpers/filterHelper.ts +148 -148
- package/src/helpers/inputHelper.ts +11 -11
- package/src/helpers/licenseHelper.ts +29 -29
- package/src/helpers/metaHelper.ts +111 -111
- package/src/helpers/runCollectionEntityActionHandler.ts +58 -58
- package/src/index.ts +82 -82
- package/src/plugins/auth/AuthPlugin.ts +107 -103
- package/src/plugins/auth/AuthPluginTypes.ts +11 -11
- package/src/plugins/auth/actionHandlers/changePassword.ts +61 -61
- package/src/plugins/auth/actionHandlers/createSession.ts +68 -68
- package/src/plugins/auth/actionHandlers/deleteSession.ts +18 -18
- package/src/plugins/auth/actionHandlers/getMyProfile.ts +28 -38
- package/src/plugins/auth/actionHandlers/index.ts +8 -8
- package/src/plugins/auth/actionHandlers/resetPassword.ts +45 -45
- package/src/plugins/auth/models/AccessToken.ts +56 -56
- package/src/plugins/auth/models/index.ts +3 -3
- package/src/plugins/auth/routes/changePassword.ts +15 -15
- package/src/plugins/auth/routes/getMyProfile.ts +15 -15
- package/src/plugins/auth/routes/index.ts +7 -7
- package/src/plugins/auth/routes/resetPassword.ts +15 -15
- package/src/plugins/auth/routes/signin.ts +15 -15
- package/src/plugins/auth/routes/signout.ts +15 -15
- package/src/plugins/auth/services/AuthService.ts +66 -39
- package/src/plugins/cronJob/CronJobPlugin.ts +104 -104
- package/src/plugins/cronJob/CronJobPluginTypes.ts +44 -44
- package/src/plugins/cronJob/actionHandlers/index.ts +4 -4
- package/src/plugins/cronJob/actionHandlers/runCronJob.ts +32 -32
- package/src/plugins/cronJob/entityWatchers/cronJobEntityWatchers.ts +24 -24
- package/src/plugins/cronJob/entityWatchers/index.ts +4 -4
- package/src/plugins/cronJob/models/CronJob.ts +129 -129
- package/src/plugins/cronJob/models/index.ts +3 -3
- package/src/plugins/cronJob/routes/index.ts +3 -3
- package/src/plugins/cronJob/routes/runCronJob.ts +15 -15
- package/src/plugins/cronJob/services/CronJobService.ts +252 -252
- package/src/plugins/dataManage/DataManagePlugin.ts +163 -163
- package/src/plugins/dataManage/actionHandlers/addEntityRelations.ts +15 -15
- package/src/plugins/dataManage/actionHandlers/countCollectionEntities.ts +17 -17
- package/src/plugins/dataManage/actionHandlers/createCollectionEntitiesBatch.ts +81 -81
- package/src/plugins/dataManage/actionHandlers/createCollectionEntity.ts +20 -20
- package/src/plugins/dataManage/actionHandlers/deleteCollectionEntities.ts +45 -45
- package/src/plugins/dataManage/actionHandlers/deleteCollectionEntityById.ts +20 -20
- package/src/plugins/dataManage/actionHandlers/findCollectionEntities.ts +27 -27
- package/src/plugins/dataManage/actionHandlers/findCollectionEntityById.ts +30 -30
- package/src/plugins/dataManage/actionHandlers/queryDatabase.ts +22 -22
- package/src/plugins/dataManage/actionHandlers/removeEntityRelations.ts +15 -15
- package/src/plugins/dataManage/actionHandlers/updateCollectionEntityById.ts +38 -38
- package/src/plugins/entityAccessControl/EntityAccessControlPlugin.ts +146 -146
- package/src/plugins/fileManage/FileManagePlugin.ts +52 -52
- package/src/plugins/fileManage/actionHandlers/downloadDocument.ts +65 -65
- package/src/plugins/fileManage/actionHandlers/downloadFile.ts +44 -44
- package/src/plugins/fileManage/actionHandlers/uploadFile.ts +33 -33
- package/src/plugins/fileManage/routes/downloadDocument.ts +15 -15
- package/src/plugins/fileManage/routes/downloadFile.ts +15 -15
- package/src/plugins/fileManage/routes/index.ts +5 -5
- package/src/plugins/fileManage/routes/uploadFile.ts +15 -15
- package/src/plugins/license/LicensePlugin.ts +79 -79
- package/src/plugins/license/LicensePluginTypes.ts +95 -95
- package/src/plugins/license/LicenseService.ts +137 -137
- package/src/plugins/license/actionHandlers/getLicense.ts +18 -18
- package/src/plugins/license/actionHandlers/index.ts +5 -5
- package/src/plugins/license/actionHandlers/updateLicense.ts +24 -24
- package/src/plugins/license/helpers/certHelper.ts +21 -21
- package/src/plugins/license/helpers/cryptoHelper.ts +47 -47
- package/src/plugins/license/models/index.ts +1 -1
- package/src/plugins/license/routes/getLicense.ts +15 -15
- package/src/plugins/license/routes/index.ts +4 -4
- package/src/plugins/license/routes/updateLicense.ts +15 -15
- package/src/plugins/mail/MailPlugin.ts +74 -74
- package/src/plugins/mail/MailPluginTypes.ts +27 -27
- package/src/plugins/mail/MailService.ts +38 -38
- package/src/plugins/mail/actionHandlers/index.ts +3 -3
- package/src/plugins/mail/models/index.ts +1 -1
- package/src/plugins/mail/routes/index.ts +1 -1
- package/src/plugins/metaManage/MetaManagePlugin.ts +198 -198
- package/src/plugins/metaManage/actionHandlers/getMetaModelDetail.ts +10 -10
- package/src/plugins/metaManage/actionHandlers/listMetaModels.ts +9 -9
- package/src/plugins/metaManage/actionHandlers/listMetaRoutes.ts +9 -9
- package/src/plugins/metaManage/services/MetaService.ts +376 -376
- package/src/plugins/notification/NotificationPlugin.ts +68 -68
- package/src/plugins/notification/NotificationPluginTypes.ts +13 -13
- package/src/plugins/notification/NotificationService.ts +25 -25
- package/src/plugins/notification/actionHandlers/index.ts +3 -3
- package/src/plugins/notification/models/Notification.ts +60 -60
- package/src/plugins/notification/models/index.ts +3 -3
- package/src/plugins/notification/routes/index.ts +1 -1
- package/src/plugins/routeManage/RouteManagePlugin.ts +64 -64
- package/src/plugins/routeManage/actionHandlers/httpProxy.ts +13 -13
- package/src/plugins/routeManage/actionHandlers/mock.ts +28 -28
- package/src/plugins/sequence/SequencePlugin.ts +146 -146
- package/src/plugins/sequence/SequencePluginTypes.ts +69 -69
- package/src/plugins/sequence/SequenceService.ts +92 -92
- package/src/plugins/sequence/actionHandlers/generateSn.ts +32 -32
- package/src/plugins/sequence/actionHandlers/index.ts +4 -4
- package/src/plugins/sequence/models/SequenceAutoIncrementRecord.ts +49 -49
- package/src/plugins/sequence/models/SequenceRule.ts +42 -42
- package/src/plugins/sequence/models/index.ts +4 -4
- package/src/plugins/sequence/routes/generateSn.ts +15 -15
- package/src/plugins/sequence/routes/index.ts +3 -3
- package/src/plugins/sequence/segment-utility.ts +11 -11
- package/src/plugins/sequence/segments/autoIncrement.ts +90 -90
- package/src/plugins/sequence/segments/dayOfMonth.ts +19 -19
- package/src/plugins/sequence/segments/index.ts +9 -9
- package/src/plugins/sequence/segments/literal.ts +16 -16
- package/src/plugins/sequence/segments/month.ts +19 -19
- package/src/plugins/sequence/segments/parameter.ts +20 -20
- package/src/plugins/sequence/segments/year.ts +19 -19
- package/src/plugins/serverOperation/ServerOperationPlugin.ts +91 -91
- package/src/plugins/serverOperation/ServerOperationPluginTypes.ts +15 -15
- package/src/plugins/serverOperation/actionHandlers/index.ts +4 -4
- package/src/plugins/serverOperation/actionHandlers/runServerOperation.ts +15 -15
- package/src/plugins/setting/SettingPlugin.ts +68 -68
- package/src/plugins/setting/SettingPluginTypes.ts +37 -37
- package/src/plugins/setting/SettingService.ts +213 -213
- package/src/plugins/setting/actionHandlers/getSystemSettingValues.ts +30 -30
- package/src/plugins/setting/actionHandlers/getUserSettingValues.ts +38 -38
- package/src/plugins/setting/actionHandlers/index.ts +6 -6
- package/src/plugins/setting/actionHandlers/setSystemSettingValues.ts +30 -30
- package/src/plugins/setting/models/SystemSettingGroupSetting.ts +57 -57
- package/src/plugins/setting/models/SystemSettingItem.ts +48 -48
- package/src/plugins/setting/models/SystemSettingItemSetting.ts +73 -73
- package/src/plugins/setting/models/UserSettingGroupSetting.ts +57 -57
- package/src/plugins/setting/models/UserSettingItem.ts +55 -55
- package/src/plugins/setting/models/UserSettingItemSetting.ts +73 -73
- package/src/plugins/setting/models/index.ts +8 -8
- package/src/plugins/setting/routes/getSystemSettingValues.ts +15 -15
- package/src/plugins/setting/routes/getUserSettingValues.ts +15 -15
- package/src/plugins/setting/routes/index.ts +5 -5
- package/src/plugins/setting/routes/setSystemSettingValues.ts +15 -15
- package/src/plugins/stateMachine/StateMachinePlugin.ts +196 -196
- package/src/plugins/stateMachine/StateMachinePluginTypes.ts +48 -48
- package/src/plugins/stateMachine/actionHandlers/index.ts +4 -4
- package/src/plugins/stateMachine/actionHandlers/sendStateMachineEvent.ts +54 -54
- package/src/plugins/stateMachine/models/StateMachine.ts +42 -42
- package/src/plugins/stateMachine/models/index.ts +3 -3
- package/src/plugins/stateMachine/routes/index.ts +3 -3
- package/src/plugins/stateMachine/routes/sendStateMachineEvent.ts +15 -15
- package/src/plugins/stateMachine/stateMachineHelper.ts +36 -36
- package/src/plugins/webhooks/WebhooksPlugin.ts +148 -148
- package/src/plugins/webhooks/pluginConfig.ts +75 -75
- package/src/polyfill.ts +5 -5
- package/src/proxy/mod.ts +38 -38
- package/src/proxy/types.ts +21 -21
- package/src/queryBuilder/index.ts +1 -1
- package/src/queryBuilder/queryBuilder.ts +755 -755
- package/src/server.ts +530 -530
- package/src/types/cron-job-types.ts +66 -66
- package/src/types.ts +862 -856
- package/src/utilities/accessControlUtility.ts +33 -33
- package/src/utilities/entityUtility.ts +18 -18
- package/src/utilities/errorUtility.ts +15 -15
- package/src/utilities/fsUtility.ts +137 -137
- package/src/utilities/httpUtility.ts +19 -19
- package/src/utilities/jwtUtility.ts +26 -26
- package/src/utilities/passwordUtility.ts +26 -26
- package/src/utilities/pathUtility.ts +14 -14
- package/src/utilities/timeUtility.ts +17 -17
- package/src/utilities/typeUtility.ts +15 -15
- package/tsconfig.json +19 -19
|
@@ -1,782 +1,897 @@
|
|
|
1
|
-
import { RpdApplicationConfig } from "./types";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
code: "default",
|
|
5
|
-
name: "default",
|
|
6
|
-
models: [
|
|
7
|
-
{
|
|
8
|
-
maintainedBy: "metaManager",
|
|
9
|
-
namespace: "meta",
|
|
10
|
-
name: "model",
|
|
11
|
-
code: "Model",
|
|
12
|
-
singularCode: "model",
|
|
13
|
-
pluralCode: "models",
|
|
14
|
-
schema: "public",
|
|
15
|
-
tableName: "meta_models",
|
|
16
|
-
properties: [
|
|
17
|
-
{
|
|
18
|
-
name: "id",
|
|
19
|
-
code: "id",
|
|
20
|
-
columnName: "id",
|
|
21
|
-
type: "integer",
|
|
22
|
-
required: true,
|
|
23
|
-
autoIncrement: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: "name",
|
|
27
|
-
code: "name",
|
|
28
|
-
columnName: "name",
|
|
29
|
-
type: "text",
|
|
30
|
-
required: true,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "description",
|
|
34
|
-
code: "description",
|
|
35
|
-
columnName: "description",
|
|
36
|
-
type: "text",
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "i18n",
|
|
41
|
-
description: "The i18n text names of the model attributes.",
|
|
42
|
-
code: "i18n",
|
|
43
|
-
columnName: "i18n",
|
|
44
|
-
type: "json",
|
|
45
|
-
required: false,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "locales",
|
|
49
|
-
description: "The locale translations of the model attributes.",
|
|
50
|
-
code: "locales",
|
|
51
|
-
columnName: "locales",
|
|
52
|
-
type: "json",
|
|
53
|
-
required: false,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "code",
|
|
57
|
-
code: "code",
|
|
58
|
-
columnName: "code",
|
|
59
|
-
type: "text",
|
|
60
|
-
required: false,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "singular code",
|
|
64
|
-
code: "singularCode",
|
|
65
|
-
columnName: "singular_code",
|
|
66
|
-
type: "text",
|
|
67
|
-
required: true,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "plural code",
|
|
71
|
-
code: "pluralCode",
|
|
72
|
-
columnName: "plural_code",
|
|
73
|
-
type: "text",
|
|
74
|
-
required: true,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "schema",
|
|
78
|
-
code: "schema",
|
|
79
|
-
columnName: "schema",
|
|
80
|
-
type: "text",
|
|
81
|
-
required: false,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "table name",
|
|
85
|
-
code: "tableName",
|
|
86
|
-
columnName: "table_name",
|
|
87
|
-
type: "text",
|
|
88
|
-
required: true,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "namespace",
|
|
92
|
-
code: "namespace",
|
|
93
|
-
columnName: "namespace",
|
|
94
|
-
type: "text",
|
|
95
|
-
required: true,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "base",
|
|
99
|
-
code: "base",
|
|
100
|
-
columnName: "base",
|
|
101
|
-
type: "text",
|
|
102
|
-
required: false,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "derivedType",
|
|
106
|
-
code: "derivedType",
|
|
107
|
-
columnName: "derived_type",
|
|
108
|
-
type: "text",
|
|
109
|
-
required: false,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "derivedTypePropertyCode",
|
|
113
|
-
code: "derivedTypePropertyCode",
|
|
114
|
-
columnName: "derived_type_property_code",
|
|
115
|
-
type: "text",
|
|
116
|
-
required: false,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "displayPropertyCode",
|
|
120
|
-
code: "displayPropertyCode",
|
|
121
|
-
columnName: "display_property_code",
|
|
122
|
-
type: "text",
|
|
123
|
-
required: false,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "deprecated",
|
|
127
|
-
code: "deprecated",
|
|
128
|
-
columnName: "deprecated",
|
|
129
|
-
type: "boolean",
|
|
130
|
-
required: true,
|
|
131
|
-
defaultValue: "false",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "properties",
|
|
135
|
-
code: "properties",
|
|
136
|
-
type: "relation[]",
|
|
137
|
-
relation: "many",
|
|
138
|
-
targetSingularCode: "property",
|
|
139
|
-
selfIdColumnName: "model_id",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "indexes",
|
|
143
|
-
code: "indexes",
|
|
144
|
-
columnName: "indexes",
|
|
145
|
-
type: "json",
|
|
146
|
-
required: false,
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: "softDelete",
|
|
150
|
-
code: "softDelete",
|
|
151
|
-
columnName: "soft_delete",
|
|
152
|
-
type: "boolean",
|
|
153
|
-
required: true,
|
|
154
|
-
defaultValue: "false",
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
type: "
|
|
209
|
-
required: true,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: "
|
|
223
|
-
code: "
|
|
224
|
-
columnName: "
|
|
225
|
-
type: "text",
|
|
226
|
-
required: true,
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
name: "
|
|
230
|
-
code: "
|
|
231
|
-
columnName: "
|
|
232
|
-
type: "text",
|
|
233
|
-
required:
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: "
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
code: "
|
|
254
|
-
columnName: "
|
|
255
|
-
type: "
|
|
256
|
-
required: false,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
name: "
|
|
260
|
-
code: "
|
|
261
|
-
columnName: "
|
|
262
|
-
type: "text",
|
|
263
|
-
required:
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
name: "
|
|
267
|
-
code: "
|
|
268
|
-
columnName: "
|
|
269
|
-
type: "
|
|
270
|
-
required: true,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
name: "
|
|
290
|
-
code: "
|
|
291
|
-
columnName: "
|
|
292
|
-
type: "text",
|
|
293
|
-
required: false,
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
name: "
|
|
297
|
-
code: "
|
|
298
|
-
columnName: "
|
|
299
|
-
type: "
|
|
300
|
-
required:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: "
|
|
312
|
-
code: "
|
|
313
|
-
columnName: "
|
|
314
|
-
type: "
|
|
315
|
-
required:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
name: "
|
|
327
|
-
code: "
|
|
328
|
-
columnName: "
|
|
329
|
-
type: "integer",
|
|
330
|
-
required: false,
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: "
|
|
334
|
-
code: "
|
|
335
|
-
columnName: "
|
|
336
|
-
type: "
|
|
337
|
-
required: false,
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
name: "
|
|
341
|
-
code: "
|
|
342
|
-
columnName: "
|
|
343
|
-
type: "text",
|
|
344
|
-
required: false,
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
name: "target
|
|
348
|
-
code: "
|
|
349
|
-
columnName: "
|
|
350
|
-
type: "text",
|
|
351
|
-
required: false,
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
name: "
|
|
355
|
-
code: "
|
|
356
|
-
columnName: "
|
|
357
|
-
type: "text",
|
|
358
|
-
required: false,
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
name: "
|
|
362
|
-
code: "
|
|
363
|
-
columnName: "
|
|
364
|
-
type: "text",
|
|
365
|
-
required: false,
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
name: "link
|
|
369
|
-
code: "
|
|
370
|
-
columnName: "
|
|
371
|
-
type: "text",
|
|
372
|
-
required: false,
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
name: "
|
|
376
|
-
code: "
|
|
377
|
-
columnName: "
|
|
378
|
-
type: "text",
|
|
379
|
-
required: false,
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: "
|
|
424
|
-
code: "
|
|
425
|
-
columnName: "
|
|
426
|
-
type: "text",
|
|
427
|
-
required: true,
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
name: "
|
|
431
|
-
code: "
|
|
432
|
-
columnName: "
|
|
433
|
-
type: "text",
|
|
434
|
-
required: true,
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
name: "
|
|
438
|
-
code: "
|
|
439
|
-
columnName: "
|
|
440
|
-
type: "text",
|
|
441
|
-
required:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
name: "
|
|
453
|
-
code: "
|
|
454
|
-
columnName: "
|
|
455
|
-
type: "text",
|
|
456
|
-
required: false,
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
name: "
|
|
460
|
-
code: "
|
|
461
|
-
columnName: "
|
|
462
|
-
type: "text",
|
|
463
|
-
required: false,
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
name: "
|
|
467
|
-
code: "
|
|
468
|
-
columnName: "
|
|
469
|
-
type: "
|
|
470
|
-
required: false,
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: "
|
|
474
|
-
code: "
|
|
475
|
-
columnName: "
|
|
476
|
-
type: "
|
|
477
|
-
required: false,
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
name: "
|
|
481
|
-
code: "
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
code: "
|
|
506
|
-
columnName: "
|
|
507
|
-
type: "
|
|
508
|
-
required:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
type: "
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
name: "
|
|
556
|
-
code: "
|
|
557
|
-
columnName: "
|
|
558
|
-
type: "text",
|
|
559
|
-
required: true,
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
name: "
|
|
563
|
-
code: "
|
|
564
|
-
columnName: "
|
|
565
|
-
type: "text",
|
|
566
|
-
required:
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
name: "
|
|
570
|
-
code: "
|
|
571
|
-
columnName: "
|
|
572
|
-
type: "text",
|
|
573
|
-
required: false,
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
name: "
|
|
577
|
-
code: "
|
|
578
|
-
columnName: "
|
|
579
|
-
type: "text",
|
|
580
|
-
required: false,
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: "
|
|
584
|
-
code: "
|
|
585
|
-
columnName: "
|
|
586
|
-
type: "
|
|
587
|
-
required: false,
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
name: "
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
code: "
|
|
608
|
-
columnName: "
|
|
609
|
-
type: "
|
|
610
|
-
required:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
name: "
|
|
642
|
-
code: "
|
|
643
|
-
columnName: "
|
|
644
|
-
type: "text",
|
|
645
|
-
required: true,
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
name: "
|
|
649
|
-
code: "
|
|
650
|
-
columnName: "
|
|
651
|
-
type: "text",
|
|
652
|
-
required: true,
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
name: "
|
|
656
|
-
code: "
|
|
657
|
-
columnName: "
|
|
658
|
-
type: "text",
|
|
659
|
-
required:
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
name: "
|
|
663
|
-
code: "
|
|
664
|
-
columnName: "
|
|
665
|
-
type: "text",
|
|
666
|
-
required:
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
name: "
|
|
670
|
-
code: "
|
|
671
|
-
columnName: "
|
|
672
|
-
type: "text",
|
|
673
|
-
required: true,
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
name: "
|
|
677
|
-
code: "
|
|
678
|
-
columnName: "
|
|
679
|
-
type: "text",
|
|
680
|
-
required: true,
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
name: "
|
|
684
|
-
code: "
|
|
685
|
-
columnName: "
|
|
686
|
-
type: "
|
|
687
|
-
required:
|
|
688
|
-
},
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
name: "
|
|
718
|
-
code: "
|
|
719
|
-
columnName: "
|
|
720
|
-
type: "text",
|
|
721
|
-
required: true,
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
name: "
|
|
725
|
-
code: "
|
|
726
|
-
columnName: "
|
|
727
|
-
type: "text",
|
|
728
|
-
required: true,
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
name: "
|
|
732
|
-
code: "
|
|
733
|
-
columnName: "
|
|
734
|
-
type: "text",
|
|
735
|
-
required:
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1
|
+
import { RpdApplicationConfig } from "./types";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
code: "default",
|
|
5
|
+
name: "default",
|
|
6
|
+
models: [
|
|
7
|
+
{
|
|
8
|
+
maintainedBy: "metaManager",
|
|
9
|
+
namespace: "meta",
|
|
10
|
+
name: "model",
|
|
11
|
+
code: "Model",
|
|
12
|
+
singularCode: "model",
|
|
13
|
+
pluralCode: "models",
|
|
14
|
+
schema: "public",
|
|
15
|
+
tableName: "meta_models",
|
|
16
|
+
properties: [
|
|
17
|
+
{
|
|
18
|
+
name: "id",
|
|
19
|
+
code: "id",
|
|
20
|
+
columnName: "id",
|
|
21
|
+
type: "integer",
|
|
22
|
+
required: true,
|
|
23
|
+
autoIncrement: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "name",
|
|
27
|
+
code: "name",
|
|
28
|
+
columnName: "name",
|
|
29
|
+
type: "text",
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "description",
|
|
34
|
+
code: "description",
|
|
35
|
+
columnName: "description",
|
|
36
|
+
type: "text",
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "i18n",
|
|
41
|
+
description: "The i18n text names of the model attributes.",
|
|
42
|
+
code: "i18n",
|
|
43
|
+
columnName: "i18n",
|
|
44
|
+
type: "json",
|
|
45
|
+
required: false,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "locales",
|
|
49
|
+
description: "The locale translations of the model attributes.",
|
|
50
|
+
code: "locales",
|
|
51
|
+
columnName: "locales",
|
|
52
|
+
type: "json",
|
|
53
|
+
required: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "code",
|
|
57
|
+
code: "code",
|
|
58
|
+
columnName: "code",
|
|
59
|
+
type: "text",
|
|
60
|
+
required: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "singular code",
|
|
64
|
+
code: "singularCode",
|
|
65
|
+
columnName: "singular_code",
|
|
66
|
+
type: "text",
|
|
67
|
+
required: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "plural code",
|
|
71
|
+
code: "pluralCode",
|
|
72
|
+
columnName: "plural_code",
|
|
73
|
+
type: "text",
|
|
74
|
+
required: true,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "schema",
|
|
78
|
+
code: "schema",
|
|
79
|
+
columnName: "schema",
|
|
80
|
+
type: "text",
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "table name",
|
|
85
|
+
code: "tableName",
|
|
86
|
+
columnName: "table_name",
|
|
87
|
+
type: "text",
|
|
88
|
+
required: true,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "namespace",
|
|
92
|
+
code: "namespace",
|
|
93
|
+
columnName: "namespace",
|
|
94
|
+
type: "text",
|
|
95
|
+
required: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "base",
|
|
99
|
+
code: "base",
|
|
100
|
+
columnName: "base",
|
|
101
|
+
type: "text",
|
|
102
|
+
required: false,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "derivedType",
|
|
106
|
+
code: "derivedType",
|
|
107
|
+
columnName: "derived_type",
|
|
108
|
+
type: "text",
|
|
109
|
+
required: false,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "derivedTypePropertyCode",
|
|
113
|
+
code: "derivedTypePropertyCode",
|
|
114
|
+
columnName: "derived_type_property_code",
|
|
115
|
+
type: "text",
|
|
116
|
+
required: false,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "displayPropertyCode",
|
|
120
|
+
code: "displayPropertyCode",
|
|
121
|
+
columnName: "display_property_code",
|
|
122
|
+
type: "text",
|
|
123
|
+
required: false,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "deprecated",
|
|
127
|
+
code: "deprecated",
|
|
128
|
+
columnName: "deprecated",
|
|
129
|
+
type: "boolean",
|
|
130
|
+
required: true,
|
|
131
|
+
defaultValue: "false",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "properties",
|
|
135
|
+
code: "properties",
|
|
136
|
+
type: "relation[]",
|
|
137
|
+
relation: "many",
|
|
138
|
+
targetSingularCode: "property",
|
|
139
|
+
selfIdColumnName: "model_id",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "indexes",
|
|
143
|
+
code: "indexes",
|
|
144
|
+
columnName: "indexes",
|
|
145
|
+
type: "json",
|
|
146
|
+
required: false,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "softDelete",
|
|
150
|
+
code: "softDelete",
|
|
151
|
+
columnName: "soft_delete",
|
|
152
|
+
type: "boolean",
|
|
153
|
+
required: true,
|
|
154
|
+
defaultValue: "false",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "defaultOrderBy",
|
|
158
|
+
code: "defaultOrderBy",
|
|
159
|
+
columnName: "default_order_by",
|
|
160
|
+
type: "json",
|
|
161
|
+
required: false,
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
indexes: [
|
|
165
|
+
{
|
|
166
|
+
name: "meta_models_singular_code_uindex",
|
|
167
|
+
properties: [
|
|
168
|
+
{
|
|
169
|
+
code: "singularCode",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
unique: true,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: "meta_models_table_name_uindex",
|
|
176
|
+
properties: [
|
|
177
|
+
{
|
|
178
|
+
code: "tableName",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
unique: true,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "meta_models_name_index",
|
|
185
|
+
properties: [
|
|
186
|
+
{
|
|
187
|
+
code: "name",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
unique: false,
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
maintainedBy: "metaManager",
|
|
196
|
+
namespace: "meta",
|
|
197
|
+
name: "property",
|
|
198
|
+
code: "Property",
|
|
199
|
+
singularCode: "property",
|
|
200
|
+
pluralCode: "properties",
|
|
201
|
+
schema: "public",
|
|
202
|
+
tableName: "meta_properties",
|
|
203
|
+
properties: [
|
|
204
|
+
{
|
|
205
|
+
name: "id",
|
|
206
|
+
code: "id",
|
|
207
|
+
columnName: "id",
|
|
208
|
+
type: "integer",
|
|
209
|
+
required: true,
|
|
210
|
+
autoIncrement: true,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "model",
|
|
214
|
+
code: "model",
|
|
215
|
+
type: "relation",
|
|
216
|
+
required: true,
|
|
217
|
+
relation: "one",
|
|
218
|
+
targetSingularCode: "model",
|
|
219
|
+
targetIdColumnName: "model_id",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "name",
|
|
223
|
+
code: "name",
|
|
224
|
+
columnName: "name",
|
|
225
|
+
type: "text",
|
|
226
|
+
required: true,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "code",
|
|
230
|
+
code: "code",
|
|
231
|
+
columnName: "code",
|
|
232
|
+
type: "text",
|
|
233
|
+
required: true,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "description",
|
|
237
|
+
code: "description",
|
|
238
|
+
columnName: "description",
|
|
239
|
+
type: "text",
|
|
240
|
+
required: false,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "i18n",
|
|
244
|
+
description: "The i18n text names of the property attributes.",
|
|
245
|
+
code: "i18n",
|
|
246
|
+
columnName: "i18n",
|
|
247
|
+
type: "json",
|
|
248
|
+
required: false,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: "locales",
|
|
252
|
+
description: "The locale translations of the property attributes.",
|
|
253
|
+
code: "locales",
|
|
254
|
+
columnName: "locales",
|
|
255
|
+
type: "json",
|
|
256
|
+
required: false,
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: "column name",
|
|
260
|
+
code: "columnName",
|
|
261
|
+
columnName: "column_name",
|
|
262
|
+
type: "text",
|
|
263
|
+
required: false,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: "type",
|
|
267
|
+
code: "type",
|
|
268
|
+
columnName: "type",
|
|
269
|
+
type: "text",
|
|
270
|
+
required: true,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: "deprecated",
|
|
274
|
+
code: "deprecated",
|
|
275
|
+
columnName: "deprecated",
|
|
276
|
+
type: "boolean",
|
|
277
|
+
required: true,
|
|
278
|
+
defaultValue: "false",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "required",
|
|
282
|
+
code: "required",
|
|
283
|
+
columnName: "required",
|
|
284
|
+
type: "boolean",
|
|
285
|
+
required: true,
|
|
286
|
+
defaultValue: "false",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "default value",
|
|
290
|
+
code: "defaultValue",
|
|
291
|
+
columnName: "default_value",
|
|
292
|
+
type: "text",
|
|
293
|
+
required: false,
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "entityDeletingReaction",
|
|
297
|
+
code: "entityDeletingReaction",
|
|
298
|
+
columnName: "entity_deleting_reaction",
|
|
299
|
+
type: "text",
|
|
300
|
+
required: false,
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "readonly",
|
|
304
|
+
code: "readonly",
|
|
305
|
+
columnName: "readonly",
|
|
306
|
+
type: "boolean",
|
|
307
|
+
required: true,
|
|
308
|
+
defaultValue: "false",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
name: "config",
|
|
312
|
+
code: "config",
|
|
313
|
+
columnName: "config",
|
|
314
|
+
type: "json",
|
|
315
|
+
required: false,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: "auto increment",
|
|
319
|
+
code: "autoIncrement",
|
|
320
|
+
columnName: "auto_increment",
|
|
321
|
+
type: "boolean",
|
|
322
|
+
required: true,
|
|
323
|
+
defaultValue: "false",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: "min length",
|
|
327
|
+
code: "minLength",
|
|
328
|
+
columnName: "min_length",
|
|
329
|
+
type: "integer",
|
|
330
|
+
required: false,
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: "max length",
|
|
334
|
+
code: "maxLength",
|
|
335
|
+
columnName: "max_length",
|
|
336
|
+
type: "integer",
|
|
337
|
+
required: false,
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "relation",
|
|
341
|
+
code: "relation",
|
|
342
|
+
columnName: "relation",
|
|
343
|
+
type: "text",
|
|
344
|
+
required: false,
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "target singular code",
|
|
348
|
+
code: "targetSingularCode",
|
|
349
|
+
columnName: "target_singular_code",
|
|
350
|
+
type: "text",
|
|
351
|
+
required: false,
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: "target id column name",
|
|
355
|
+
code: "targetIdColumnName",
|
|
356
|
+
columnName: "target_id_column_name",
|
|
357
|
+
type: "text",
|
|
358
|
+
required: false,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: "self id column name",
|
|
362
|
+
code: "selfIdColumnName",
|
|
363
|
+
columnName: "self_id_column_name",
|
|
364
|
+
type: "text",
|
|
365
|
+
required: false,
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "link schema",
|
|
369
|
+
code: "linkSchema",
|
|
370
|
+
columnName: "link_schema",
|
|
371
|
+
type: "text",
|
|
372
|
+
required: false,
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: "link table name",
|
|
376
|
+
code: "linkTableName",
|
|
377
|
+
columnName: "link_table_name",
|
|
378
|
+
type: "text",
|
|
379
|
+
required: false,
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: "data dictionary",
|
|
383
|
+
code: "dataDictionary",
|
|
384
|
+
columnName: "data_dictionary",
|
|
385
|
+
type: "text",
|
|
386
|
+
required: false,
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
indexes: [
|
|
390
|
+
{
|
|
391
|
+
name: "meta_properties_model_id_code_uindex",
|
|
392
|
+
properties: [
|
|
393
|
+
{
|
|
394
|
+
code: "model",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
code: "code",
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
unique: true,
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
maintainedBy: "metaManager",
|
|
406
|
+
namespace: "meta",
|
|
407
|
+
name: "data dictionary",
|
|
408
|
+
code: "DataDictionary",
|
|
409
|
+
singularCode: "data_dictionary",
|
|
410
|
+
pluralCode: "data_dictionaries",
|
|
411
|
+
schema: "public",
|
|
412
|
+
tableName: "meta_data_dictionaries",
|
|
413
|
+
properties: [
|
|
414
|
+
{
|
|
415
|
+
name: "id",
|
|
416
|
+
code: "id",
|
|
417
|
+
columnName: "id",
|
|
418
|
+
type: "integer",
|
|
419
|
+
required: true,
|
|
420
|
+
autoIncrement: true,
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: "code",
|
|
424
|
+
code: "code",
|
|
425
|
+
columnName: "code",
|
|
426
|
+
type: "text",
|
|
427
|
+
required: true,
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "name",
|
|
431
|
+
code: "name",
|
|
432
|
+
columnName: "name",
|
|
433
|
+
type: "text",
|
|
434
|
+
required: true,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: "valueType",
|
|
438
|
+
code: "valueType",
|
|
439
|
+
columnName: "value_type",
|
|
440
|
+
type: "text",
|
|
441
|
+
required: true,
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: "level",
|
|
445
|
+
code: "level",
|
|
446
|
+
columnName: "level",
|
|
447
|
+
type: "text",
|
|
448
|
+
required: false,
|
|
449
|
+
defaultValue: "'app'",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
name: "description",
|
|
453
|
+
code: "description",
|
|
454
|
+
columnName: "description",
|
|
455
|
+
type: "text",
|
|
456
|
+
required: false,
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
name: "source",
|
|
460
|
+
code: "source",
|
|
461
|
+
columnName: "source",
|
|
462
|
+
type: "text",
|
|
463
|
+
required: false,
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: "externalId",
|
|
467
|
+
code: "externalId",
|
|
468
|
+
columnName: "external_id",
|
|
469
|
+
type: "text",
|
|
470
|
+
required: false,
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "externalData",
|
|
474
|
+
code: "externalData",
|
|
475
|
+
columnName: "external_data",
|
|
476
|
+
type: "json",
|
|
477
|
+
required: false,
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "state",
|
|
481
|
+
code: "state",
|
|
482
|
+
columnName: "state",
|
|
483
|
+
type: "text",
|
|
484
|
+
required: false,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
name: "entries",
|
|
488
|
+
code: "entries",
|
|
489
|
+
type: "relation[]",
|
|
490
|
+
relation: "many",
|
|
491
|
+
targetSingularCode: "data_dictionary_entry",
|
|
492
|
+
selfIdColumnName: "dictionary_id",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
name: "i18n",
|
|
496
|
+
description: "The i18n text names of the data dictionary attributes.",
|
|
497
|
+
code: "i18n",
|
|
498
|
+
columnName: "i18n",
|
|
499
|
+
type: "json",
|
|
500
|
+
required: false,
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
name: "locales",
|
|
504
|
+
description: "The locale translations of the data dictionary attributes.",
|
|
505
|
+
code: "locales",
|
|
506
|
+
columnName: "locales",
|
|
507
|
+
type: "json",
|
|
508
|
+
required: false,
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
name: "deprecated",
|
|
512
|
+
code: "deprecated",
|
|
513
|
+
columnName: "deprecated",
|
|
514
|
+
type: "boolean",
|
|
515
|
+
required: true,
|
|
516
|
+
defaultValue: "false",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
maintainedBy: "metaManager",
|
|
522
|
+
namespace: "meta",
|
|
523
|
+
name: "data dictionary entry",
|
|
524
|
+
code: "DataDictionaryEntry",
|
|
525
|
+
singularCode: "data_dictionary_entry",
|
|
526
|
+
pluralCode: "data_dictionary_entries",
|
|
527
|
+
schema: "public",
|
|
528
|
+
tableName: "meta_data_dictionary_entries",
|
|
529
|
+
properties: [
|
|
530
|
+
{
|
|
531
|
+
name: "id",
|
|
532
|
+
code: "id",
|
|
533
|
+
columnName: "id",
|
|
534
|
+
type: "integer",
|
|
535
|
+
required: true,
|
|
536
|
+
autoIncrement: true,
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "dictionary",
|
|
540
|
+
code: "dictionary",
|
|
541
|
+
type: "relation",
|
|
542
|
+
relation: "one",
|
|
543
|
+
targetSingularCode: "data_dictionary",
|
|
544
|
+
targetIdColumnName: "dictionary_id",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
name: "order number",
|
|
548
|
+
code: "orderNum",
|
|
549
|
+
columnName: "order_num",
|
|
550
|
+
type: "integer",
|
|
551
|
+
required: true,
|
|
552
|
+
defaultValue: "0",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: "name",
|
|
556
|
+
code: "name",
|
|
557
|
+
columnName: "name",
|
|
558
|
+
type: "text",
|
|
559
|
+
required: true,
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: "value",
|
|
563
|
+
code: "value",
|
|
564
|
+
columnName: "value",
|
|
565
|
+
type: "text",
|
|
566
|
+
required: true,
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: "color",
|
|
570
|
+
code: "color",
|
|
571
|
+
columnName: "color",
|
|
572
|
+
type: "text",
|
|
573
|
+
required: false,
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
name: "icon",
|
|
577
|
+
code: "icon",
|
|
578
|
+
columnName: "icon",
|
|
579
|
+
type: "text",
|
|
580
|
+
required: false,
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: "description",
|
|
584
|
+
code: "description",
|
|
585
|
+
columnName: "description",
|
|
586
|
+
type: "text",
|
|
587
|
+
required: false,
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
name: "disabled",
|
|
591
|
+
code: "disabled",
|
|
592
|
+
columnName: "disabled",
|
|
593
|
+
type: "boolean",
|
|
594
|
+
required: false,
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "i18n",
|
|
598
|
+
description: "The i18n text names of the data dictionary entry attributes.",
|
|
599
|
+
code: "i18n",
|
|
600
|
+
columnName: "i18n",
|
|
601
|
+
type: "json",
|
|
602
|
+
required: false,
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
name: "locales",
|
|
606
|
+
description: "The locale translations of the data dictionary entry attributes.",
|
|
607
|
+
code: "locales",
|
|
608
|
+
columnName: "locales",
|
|
609
|
+
type: "json",
|
|
610
|
+
required: false,
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "deprecated",
|
|
614
|
+
code: "deprecated",
|
|
615
|
+
columnName: "deprecated",
|
|
616
|
+
type: "boolean",
|
|
617
|
+
required: true,
|
|
618
|
+
defaultValue: "false",
|
|
619
|
+
},
|
|
620
|
+
],
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
maintainedBy: "dataManager",
|
|
624
|
+
namespace: "meta",
|
|
625
|
+
name: "routes",
|
|
626
|
+
code: "Route",
|
|
627
|
+
singularCode: "route",
|
|
628
|
+
pluralCode: "routes",
|
|
629
|
+
schema: "public",
|
|
630
|
+
tableName: "meta_routes",
|
|
631
|
+
properties: [
|
|
632
|
+
{
|
|
633
|
+
name: "id",
|
|
634
|
+
code: "id",
|
|
635
|
+
columnName: "id",
|
|
636
|
+
type: "integer",
|
|
637
|
+
required: true,
|
|
638
|
+
autoIncrement: true,
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
name: "namespace",
|
|
642
|
+
code: "namespace",
|
|
643
|
+
columnName: "namespace",
|
|
644
|
+
type: "text",
|
|
645
|
+
required: true,
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: "code",
|
|
649
|
+
code: "code",
|
|
650
|
+
columnName: "code",
|
|
651
|
+
type: "text",
|
|
652
|
+
required: true,
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: "name",
|
|
656
|
+
code: "name",
|
|
657
|
+
columnName: "name",
|
|
658
|
+
type: "text",
|
|
659
|
+
required: true,
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
name: "description",
|
|
663
|
+
code: "description",
|
|
664
|
+
columnName: "description",
|
|
665
|
+
type: "text",
|
|
666
|
+
required: false,
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
name: "type",
|
|
670
|
+
code: "type",
|
|
671
|
+
columnName: "type",
|
|
672
|
+
type: "text",
|
|
673
|
+
required: true,
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
name: "method",
|
|
677
|
+
code: "method",
|
|
678
|
+
columnName: "method",
|
|
679
|
+
type: "text",
|
|
680
|
+
required: true,
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: "endpoint",
|
|
684
|
+
code: "endpoint",
|
|
685
|
+
columnName: "endpoint",
|
|
686
|
+
type: "text",
|
|
687
|
+
required: true,
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: "actions",
|
|
691
|
+
code: "actions",
|
|
692
|
+
columnName: "actions",
|
|
693
|
+
type: "json",
|
|
694
|
+
required: false,
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
maintainedBy: "dataManager",
|
|
700
|
+
namespace: "meta",
|
|
701
|
+
name: "locale strings",
|
|
702
|
+
code: "LocaleString",
|
|
703
|
+
singularCode: "locale_string",
|
|
704
|
+
pluralCode: "locale_strings",
|
|
705
|
+
schema: "public",
|
|
706
|
+
tableName: "meta_locale_strings",
|
|
707
|
+
properties: [
|
|
708
|
+
{
|
|
709
|
+
name: "id",
|
|
710
|
+
code: "id",
|
|
711
|
+
columnName: "id",
|
|
712
|
+
type: "integer",
|
|
713
|
+
required: true,
|
|
714
|
+
autoIncrement: true,
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "namespace",
|
|
718
|
+
code: "namespace",
|
|
719
|
+
columnName: "namespace",
|
|
720
|
+
type: "text",
|
|
721
|
+
required: true,
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
name: "lingual",
|
|
725
|
+
code: "lingual",
|
|
726
|
+
columnName: "lingual",
|
|
727
|
+
type: "text",
|
|
728
|
+
required: true,
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
name: "name",
|
|
732
|
+
code: "name",
|
|
733
|
+
columnName: "name",
|
|
734
|
+
type: "text",
|
|
735
|
+
required: true,
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: "text",
|
|
739
|
+
code: "text",
|
|
740
|
+
columnName: "text",
|
|
741
|
+
type: "text",
|
|
742
|
+
required: false,
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
maintainedBy: "metaManager",
|
|
748
|
+
namespace: "meta",
|
|
749
|
+
name: "page",
|
|
750
|
+
code: "Page",
|
|
751
|
+
singularCode: "page",
|
|
752
|
+
pluralCode: "pages",
|
|
753
|
+
schema: "public",
|
|
754
|
+
tableName: "meta_pages",
|
|
755
|
+
properties: [
|
|
756
|
+
{
|
|
757
|
+
name: "id",
|
|
758
|
+
code: "id",
|
|
759
|
+
columnName: "id",
|
|
760
|
+
type: "integer",
|
|
761
|
+
required: true,
|
|
762
|
+
autoIncrement: true,
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
name: "code",
|
|
766
|
+
code: "code",
|
|
767
|
+
columnName: "code",
|
|
768
|
+
type: "text",
|
|
769
|
+
required: true,
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
name: "parentCode",
|
|
773
|
+
code: "parentCode",
|
|
774
|
+
columnName: "parent_code",
|
|
775
|
+
type: "text",
|
|
776
|
+
required: false,
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
name: "subSystem",
|
|
780
|
+
code: "subSystem",
|
|
781
|
+
columnName: "sub_system",
|
|
782
|
+
type: "text",
|
|
783
|
+
required: false,
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
name: "appCode",
|
|
787
|
+
code: "appCode",
|
|
788
|
+
columnName: "app_code",
|
|
789
|
+
type: "text",
|
|
790
|
+
required: false,
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "routePath",
|
|
794
|
+
code: "routePath",
|
|
795
|
+
columnName: "route_path",
|
|
796
|
+
type: "text",
|
|
797
|
+
required: false,
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
name: "name",
|
|
801
|
+
code: "name",
|
|
802
|
+
columnName: "name",
|
|
803
|
+
type: "text",
|
|
804
|
+
required: false,
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
name: "title",
|
|
808
|
+
code: "title",
|
|
809
|
+
columnName: "title",
|
|
810
|
+
type: "text",
|
|
811
|
+
required: false,
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
name: "config",
|
|
815
|
+
code: "config",
|
|
816
|
+
columnName: "config",
|
|
817
|
+
type: "json",
|
|
818
|
+
required: false,
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: "permissionCheck",
|
|
822
|
+
code: "permissionCheck",
|
|
823
|
+
columnName: "permission_check",
|
|
824
|
+
type: "json",
|
|
825
|
+
required: false,
|
|
826
|
+
},
|
|
827
|
+
],
|
|
828
|
+
indexes: [
|
|
829
|
+
{
|
|
830
|
+
name: "meta_pages_code_uindex",
|
|
831
|
+
properties: [
|
|
832
|
+
{
|
|
833
|
+
code: "code",
|
|
834
|
+
},
|
|
835
|
+
],
|
|
836
|
+
unique: true,
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
name: "meta_pages_subsystem_appcode_code_idx",
|
|
840
|
+
properties: [
|
|
841
|
+
{
|
|
842
|
+
code: "subSystem",
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
code: "appCode",
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
code: "code",
|
|
849
|
+
},
|
|
850
|
+
],
|
|
851
|
+
},
|
|
852
|
+
],
|
|
853
|
+
},
|
|
854
|
+
],
|
|
855
|
+
dataDictionaries: [],
|
|
856
|
+
routes: [
|
|
857
|
+
{
|
|
858
|
+
namespace: "meta",
|
|
859
|
+
name: "meta.model.list",
|
|
860
|
+
code: "meta.model.list",
|
|
861
|
+
type: "RESTful",
|
|
862
|
+
method: "GET",
|
|
863
|
+
endpoint: "/_meta/models",
|
|
864
|
+
actions: [
|
|
865
|
+
{
|
|
866
|
+
code: "listMetaModels",
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
namespace: "meta",
|
|
872
|
+
name: "meta.model.getDetail",
|
|
873
|
+
code: "meta.model.getDetail",
|
|
874
|
+
type: "RESTful",
|
|
875
|
+
method: "GET",
|
|
876
|
+
endpoint: "/_meta/models/:namespace/:singularCode",
|
|
877
|
+
actions: [
|
|
878
|
+
{
|
|
879
|
+
code: "getMetaModelDetail",
|
|
880
|
+
},
|
|
881
|
+
],
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
namespace: "meta",
|
|
885
|
+
name: "meta.route.list",
|
|
886
|
+
code: "meta.route.list",
|
|
887
|
+
type: "RESTful",
|
|
888
|
+
method: "GET",
|
|
889
|
+
endpoint: "/_meta/routes",
|
|
890
|
+
actions: [
|
|
891
|
+
{
|
|
892
|
+
code: "listMetaRoutes",
|
|
893
|
+
},
|
|
894
|
+
],
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
} satisfies RpdApplicationConfig;
|