@ldsg/constants 0.3.25 → 0.3.27
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/LICENSE +1 -1
- package/dist/app-manifest.json +61 -18
- package/dist/base-resource-kinds.json +1 -4
- package/dist/files-in-app-template-module.json +3 -5
- package/dist/files-in-handler-template-module.json +2 -6
- package/dist/index.d.ts +1 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/resource-definition-related-resource-records.json +61 -18
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-present
|
|
3
|
+
Copyright (c) 2014-present Wanxger and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/dist/app-manifest.json
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"handlerResourceId": "application-resource-definition-handler",
|
|
9
9
|
"title": "应用资源定义",
|
|
10
10
|
"description": "",
|
|
11
|
-
"kind": "application"
|
|
12
|
-
"parentKind": "root"
|
|
11
|
+
"kind": "application"
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
{
|
|
@@ -35,8 +34,7 @@
|
|
|
35
34
|
"handlerResourceId": "database-resource-definition-handler",
|
|
36
35
|
"title": "数据库资源定义",
|
|
37
36
|
"description": "",
|
|
38
|
-
"kind": "database"
|
|
39
|
-
"parentKind": "root"
|
|
37
|
+
"kind": "database"
|
|
40
38
|
}
|
|
41
39
|
},
|
|
42
40
|
{
|
|
@@ -62,8 +60,7 @@
|
|
|
62
60
|
"handlerResourceId": "field-type-resource-definition-handler",
|
|
63
61
|
"title": "字段类型资源定义",
|
|
64
62
|
"description": "",
|
|
65
|
-
"kind": "field_type"
|
|
66
|
-
"parentKind": "root"
|
|
63
|
+
"kind": "field_type"
|
|
67
64
|
}
|
|
68
65
|
},
|
|
69
66
|
{
|
|
@@ -219,8 +216,7 @@
|
|
|
219
216
|
"handlerResourceId": "handler-resource-definition-handler",
|
|
220
217
|
"title": "处理程序资源定义",
|
|
221
218
|
"description": "主要包含引入模块列表与相应的处理程序代码,处理程序类型资源无子级资源。",
|
|
222
|
-
"kind": "handler"
|
|
223
|
-
"parentKind": "root"
|
|
219
|
+
"kind": "handler"
|
|
224
220
|
}
|
|
225
221
|
},
|
|
226
222
|
{
|
|
@@ -246,8 +242,7 @@
|
|
|
246
242
|
"handlerResourceId": "key-value-cache-resource-definition-handler",
|
|
247
243
|
"title": "键值对缓存资源定义",
|
|
248
244
|
"description": "",
|
|
249
|
-
"kind": "key_value_cache"
|
|
250
|
-
"parentKind": "root"
|
|
245
|
+
"kind": "key_value_cache"
|
|
251
246
|
}
|
|
252
247
|
},
|
|
253
248
|
{
|
|
@@ -273,8 +268,7 @@
|
|
|
273
268
|
"handlerResourceId": "object-resource-definition-handler",
|
|
274
269
|
"title": "对象资源定义",
|
|
275
270
|
"description": "",
|
|
276
|
-
"kind": "object"
|
|
277
|
-
"parentKind": "root"
|
|
271
|
+
"kind": "object"
|
|
278
272
|
}
|
|
279
273
|
},
|
|
280
274
|
{
|
|
@@ -326,8 +320,7 @@
|
|
|
326
320
|
"handlerResourceId": "resource-definition-resource-definition-handler",
|
|
327
321
|
"title": "资源定义资源定义",
|
|
328
322
|
"description": "",
|
|
329
|
-
"kind": "resource_definition"
|
|
330
|
-
"parentKind": "root"
|
|
323
|
+
"kind": "resource_definition"
|
|
331
324
|
}
|
|
332
325
|
},
|
|
333
326
|
{
|
|
@@ -371,6 +364,58 @@
|
|
|
371
364
|
]
|
|
372
365
|
}
|
|
373
366
|
},
|
|
367
|
+
{
|
|
368
|
+
"id": "schedule-resource-definition",
|
|
369
|
+
"kind": "resource_definition",
|
|
370
|
+
"parentId": "root",
|
|
371
|
+
"settings": {
|
|
372
|
+
"handlerResourceId": "schedule-resource-definition-handler",
|
|
373
|
+
"title": "定时任务资源定义",
|
|
374
|
+
"description": "",
|
|
375
|
+
"kind": "schedule"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "schedule-resource-definition-handler",
|
|
380
|
+
"kind": "handler",
|
|
381
|
+
"parentId": "root",
|
|
382
|
+
"settings": {
|
|
383
|
+
"title": "定时任务实例化资源处理程序",
|
|
384
|
+
"description": "",
|
|
385
|
+
"code": "export * from \"@ldsg/schedule\";",
|
|
386
|
+
"dependencies": [
|
|
387
|
+
{
|
|
388
|
+
"name": "@ldsg/schedule"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"id": "schedules-resource-definition",
|
|
395
|
+
"kind": "resource_definition",
|
|
396
|
+
"parentId": "root",
|
|
397
|
+
"settings": {
|
|
398
|
+
"handlerResourceId": "schedules-resource-definition-handler",
|
|
399
|
+
"title": "定时任务组资源定义",
|
|
400
|
+
"description": "",
|
|
401
|
+
"kind": "schedules"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "schedules-resource-definition-handler",
|
|
406
|
+
"kind": "handler",
|
|
407
|
+
"parentId": "root",
|
|
408
|
+
"settings": {
|
|
409
|
+
"title": "定时任务组实例化资源处理程序",
|
|
410
|
+
"description": "",
|
|
411
|
+
"code": "export * from \"@ldsg/schedules\";",
|
|
412
|
+
"dependencies": [
|
|
413
|
+
{
|
|
414
|
+
"name": "@ldsg/schedules"
|
|
415
|
+
}
|
|
416
|
+
]
|
|
417
|
+
}
|
|
418
|
+
},
|
|
374
419
|
{
|
|
375
420
|
"id": "table-resource-definition",
|
|
376
421
|
"kind": "resource_definition",
|
|
@@ -431,8 +476,7 @@
|
|
|
431
476
|
"handlerResourceId": "workflow-resource-definition-handler",
|
|
432
477
|
"title": "工作流资源定义",
|
|
433
478
|
"description": "",
|
|
434
|
-
"kind": "workflow"
|
|
435
|
-
"parentKind": "root"
|
|
479
|
+
"kind": "workflow"
|
|
436
480
|
}
|
|
437
481
|
},
|
|
438
482
|
{
|
|
@@ -510,8 +554,7 @@
|
|
|
510
554
|
"handlerResourceId": "workflow-node-type-resource-definition-handler",
|
|
511
555
|
"title": "工作流节点类型资源定义",
|
|
512
556
|
"description": "",
|
|
513
|
-
"kind": "workflow_node_type"
|
|
514
|
-
"parentKind": "root"
|
|
557
|
+
"kind": "workflow_node_type"
|
|
515
558
|
}
|
|
516
559
|
},
|
|
517
560
|
{
|
|
@@ -113,7 +113,8 @@
|
|
|
113
113
|
"type": "module",
|
|
114
114
|
"scripts": {
|
|
115
115
|
"build": "tsc --project tsconfig.json",
|
|
116
|
-
"start": "node
|
|
116
|
+
"start": "node ./dist/index.js",
|
|
117
|
+
"start:telemetry": "node --import @ldsg/opentelemetry-node ./dist/index.js"
|
|
117
118
|
},
|
|
118
119
|
"dependencies": {
|
|
119
120
|
"@ldsg/create-app": "workspace:*",
|
|
@@ -157,10 +158,7 @@
|
|
|
157
158
|
"resolveJsonModule": true,
|
|
158
159
|
"esModuleInterop": true
|
|
159
160
|
},
|
|
160
|
-
"include": [
|
|
161
|
-
"./*.ts",
|
|
162
|
-
"./service-records.json"
|
|
163
|
-
]
|
|
161
|
+
"include": ["./*.ts", "./service-records.json"]
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
164
|
]
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist",
|
|
16
|
-
"files": [
|
|
17
|
-
"dist/"
|
|
18
|
-
],
|
|
16
|
+
"files": ["dist/"],
|
|
19
17
|
"scripts": {
|
|
20
18
|
"build": "tsc"
|
|
21
19
|
},
|
|
@@ -53,9 +51,7 @@
|
|
|
53
51
|
"resolveJsonModule": true,
|
|
54
52
|
"esModuleInterop": true
|
|
55
53
|
},
|
|
56
|
-
"include": [
|
|
57
|
-
"./index.ts"
|
|
58
|
-
]
|
|
54
|
+
"include": ["./index.ts"]
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
57
|
]
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare const RESOURCE_DEFINITION_RELATED_RESOURCE_RECORDS: ({
|
|
|
10
10
|
title: string;
|
|
11
11
|
description: string;
|
|
12
12
|
kind: string;
|
|
13
|
-
parentKind: string;
|
|
14
13
|
code?: undefined;
|
|
15
14
|
dependencies?: undefined;
|
|
16
15
|
};
|
|
@@ -27,20 +26,6 @@ export declare const RESOURCE_DEFINITION_RELATED_RESOURCE_RECORDS: ({
|
|
|
27
26
|
}[];
|
|
28
27
|
handlerResourceId?: undefined;
|
|
29
28
|
kind?: undefined;
|
|
30
|
-
parentKind?: undefined;
|
|
31
|
-
};
|
|
32
|
-
} | {
|
|
33
|
-
id: string;
|
|
34
|
-
kind: string;
|
|
35
|
-
parentId: string;
|
|
36
|
-
settings: {
|
|
37
|
-
handlerResourceId: string;
|
|
38
|
-
title: string;
|
|
39
|
-
description: string;
|
|
40
|
-
kind: string;
|
|
41
|
-
parentKind?: undefined;
|
|
42
|
-
code?: undefined;
|
|
43
|
-
dependencies?: undefined;
|
|
44
29
|
};
|
|
45
30
|
})[];
|
|
46
31
|
export declare const APP_MANIFEST: {
|
|
@@ -53,7 +38,6 @@ export declare const APP_MANIFEST: {
|
|
|
53
38
|
title: string;
|
|
54
39
|
description: string;
|
|
55
40
|
kind: string;
|
|
56
|
-
parentKind: string;
|
|
57
41
|
code?: undefined;
|
|
58
42
|
dependencies?: undefined;
|
|
59
43
|
};
|
|
@@ -70,20 +54,6 @@ export declare const APP_MANIFEST: {
|
|
|
70
54
|
}[];
|
|
71
55
|
handlerResourceId?: undefined;
|
|
72
56
|
kind?: undefined;
|
|
73
|
-
parentKind?: undefined;
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
id: string;
|
|
77
|
-
kind: string;
|
|
78
|
-
parentId: string;
|
|
79
|
-
settings: {
|
|
80
|
-
handlerResourceId: string;
|
|
81
|
-
title: string;
|
|
82
|
-
description: string;
|
|
83
|
-
kind: string;
|
|
84
|
-
parentKind?: undefined;
|
|
85
|
-
code?: undefined;
|
|
86
|
-
dependencies?: undefined;
|
|
87
57
|
};
|
|
88
58
|
} | {
|
|
89
59
|
id: string;
|
|
@@ -94,7 +64,6 @@ export declare const APP_MANIFEST: {
|
|
|
94
64
|
description: string;
|
|
95
65
|
handlerResourceId?: undefined;
|
|
96
66
|
kind?: undefined;
|
|
97
|
-
parentKind?: undefined;
|
|
98
67
|
code?: undefined;
|
|
99
68
|
dependencies?: undefined;
|
|
100
69
|
};
|
|
@@ -171,6 +140,7 @@ export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
|
|
|
171
140
|
scripts: {
|
|
172
141
|
build: string;
|
|
173
142
|
start: string;
|
|
143
|
+
"start:telemetry": string;
|
|
174
144
|
};
|
|
175
145
|
dependencies: {
|
|
176
146
|
"@ldsg/create-app": string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,UAA2B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,QAAwB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAE1D,eAAO,MAAM,4CAA4C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,UAA2B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,QAAwB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAE1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoD,CAAC;AAE9G,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwC,CAAC"}
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
"handlerResourceId": "application-resource-definition-handler",
|
|
8
8
|
"title": "应用资源定义",
|
|
9
9
|
"description": "",
|
|
10
|
-
"kind": "application"
|
|
11
|
-
"parentKind": "root"
|
|
10
|
+
"kind": "application"
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
13
|
{
|
|
@@ -34,8 +33,7 @@
|
|
|
34
33
|
"handlerResourceId": "database-resource-definition-handler",
|
|
35
34
|
"title": "数据库资源定义",
|
|
36
35
|
"description": "",
|
|
37
|
-
"kind": "database"
|
|
38
|
-
"parentKind": "root"
|
|
36
|
+
"kind": "database"
|
|
39
37
|
}
|
|
40
38
|
},
|
|
41
39
|
{
|
|
@@ -61,8 +59,7 @@
|
|
|
61
59
|
"handlerResourceId": "field-type-resource-definition-handler",
|
|
62
60
|
"title": "字段类型资源定义",
|
|
63
61
|
"description": "",
|
|
64
|
-
"kind": "field_type"
|
|
65
|
-
"parentKind": "root"
|
|
62
|
+
"kind": "field_type"
|
|
66
63
|
}
|
|
67
64
|
},
|
|
68
65
|
{
|
|
@@ -218,8 +215,7 @@
|
|
|
218
215
|
"handlerResourceId": "handler-resource-definition-handler",
|
|
219
216
|
"title": "处理程序资源定义",
|
|
220
217
|
"description": "主要包含引入模块列表与相应的处理程序代码,处理程序类型资源无子级资源。",
|
|
221
|
-
"kind": "handler"
|
|
222
|
-
"parentKind": "root"
|
|
218
|
+
"kind": "handler"
|
|
223
219
|
}
|
|
224
220
|
},
|
|
225
221
|
{
|
|
@@ -245,8 +241,7 @@
|
|
|
245
241
|
"handlerResourceId": "key-value-cache-resource-definition-handler",
|
|
246
242
|
"title": "键值对缓存资源定义",
|
|
247
243
|
"description": "",
|
|
248
|
-
"kind": "key_value_cache"
|
|
249
|
-
"parentKind": "root"
|
|
244
|
+
"kind": "key_value_cache"
|
|
250
245
|
}
|
|
251
246
|
},
|
|
252
247
|
{
|
|
@@ -272,8 +267,7 @@
|
|
|
272
267
|
"handlerResourceId": "object-resource-definition-handler",
|
|
273
268
|
"title": "对象资源定义",
|
|
274
269
|
"description": "",
|
|
275
|
-
"kind": "object"
|
|
276
|
-
"parentKind": "root"
|
|
270
|
+
"kind": "object"
|
|
277
271
|
}
|
|
278
272
|
},
|
|
279
273
|
{
|
|
@@ -325,8 +319,7 @@
|
|
|
325
319
|
"handlerResourceId": "resource-definition-resource-definition-handler",
|
|
326
320
|
"title": "资源定义资源定义",
|
|
327
321
|
"description": "",
|
|
328
|
-
"kind": "resource_definition"
|
|
329
|
-
"parentKind": "root"
|
|
322
|
+
"kind": "resource_definition"
|
|
330
323
|
}
|
|
331
324
|
},
|
|
332
325
|
{
|
|
@@ -370,6 +363,58 @@
|
|
|
370
363
|
]
|
|
371
364
|
}
|
|
372
365
|
},
|
|
366
|
+
{
|
|
367
|
+
"id": "schedule-resource-definition",
|
|
368
|
+
"kind": "resource_definition",
|
|
369
|
+
"parentId": "root",
|
|
370
|
+
"settings": {
|
|
371
|
+
"handlerResourceId": "schedule-resource-definition-handler",
|
|
372
|
+
"title": "定时任务资源定义",
|
|
373
|
+
"description": "",
|
|
374
|
+
"kind": "schedule"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "schedule-resource-definition-handler",
|
|
379
|
+
"kind": "handler",
|
|
380
|
+
"parentId": "root",
|
|
381
|
+
"settings": {
|
|
382
|
+
"title": "定时任务实例化资源处理程序",
|
|
383
|
+
"description": "",
|
|
384
|
+
"code": "export * from \"@ldsg/schedule\";",
|
|
385
|
+
"dependencies": [
|
|
386
|
+
{
|
|
387
|
+
"name": "@ldsg/schedule"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"id": "schedules-resource-definition",
|
|
394
|
+
"kind": "resource_definition",
|
|
395
|
+
"parentId": "root",
|
|
396
|
+
"settings": {
|
|
397
|
+
"handlerResourceId": "schedules-resource-definition-handler",
|
|
398
|
+
"title": "定时任务组资源定义",
|
|
399
|
+
"description": "",
|
|
400
|
+
"kind": "schedules"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"id": "schedules-resource-definition-handler",
|
|
405
|
+
"kind": "handler",
|
|
406
|
+
"parentId": "root",
|
|
407
|
+
"settings": {
|
|
408
|
+
"title": "定时任务组实例化资源处理程序",
|
|
409
|
+
"description": "",
|
|
410
|
+
"code": "export * from \"@ldsg/schedules\";",
|
|
411
|
+
"dependencies": [
|
|
412
|
+
{
|
|
413
|
+
"name": "@ldsg/schedules"
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
},
|
|
373
418
|
{
|
|
374
419
|
"id": "table-resource-definition",
|
|
375
420
|
"kind": "resource_definition",
|
|
@@ -430,8 +475,7 @@
|
|
|
430
475
|
"handlerResourceId": "workflow-resource-definition-handler",
|
|
431
476
|
"title": "工作流资源定义",
|
|
432
477
|
"description": "",
|
|
433
|
-
"kind": "workflow"
|
|
434
|
-
"parentKind": "root"
|
|
478
|
+
"kind": "workflow"
|
|
435
479
|
}
|
|
436
480
|
},
|
|
437
481
|
{
|
|
@@ -509,8 +553,7 @@
|
|
|
509
553
|
"handlerResourceId": "workflow-node-type-resource-definition-handler",
|
|
510
554
|
"title": "工作流节点类型资源定义",
|
|
511
555
|
"description": "",
|
|
512
|
-
"kind": "workflow_node_type"
|
|
513
|
-
"parentKind": "root"
|
|
556
|
+
"kind": "workflow_node_type"
|
|
514
557
|
}
|
|
515
558
|
},
|
|
516
559
|
{
|