@ldsg/constants 0.3.42 → 0.3.44

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/dist/index.d.ts CHANGED
@@ -1,269 +1,5 @@
1
+ /**
2
+ * 基座级资源类型,其资源定义直接内置于运行时,不需要下发资源定义资源记录
3
+ */
1
4
  export declare const BASE_RESOURCE_KINDS: string[];
2
- export declare const RESOURCE_DEFINITION_RELATED_RESOURCE_RECORDS: ({
3
- id: string;
4
- kind: string;
5
- parentId: string;
6
- settings: {
7
- handlerResourceId: string;
8
- slug: string;
9
- title: string;
10
- description: string;
11
- kind: string;
12
- code?: undefined;
13
- dependencies?: undefined;
14
- };
15
- } | {
16
- id: string;
17
- kind: string;
18
- parentId: string;
19
- settings: {
20
- slug: string;
21
- title: string;
22
- description: string;
23
- code: string;
24
- dependencies: {
25
- name: string;
26
- }[];
27
- handlerResourceId?: undefined;
28
- kind?: undefined;
29
- };
30
- })[];
31
- export declare const APP_MANIFEST: {
32
- resourceRecords: ({
33
- id: string;
34
- kind: string;
35
- parentId: string;
36
- settings: {
37
- handlerResourceId: string;
38
- slug: string;
39
- title: string;
40
- description: string;
41
- kind: string;
42
- code?: undefined;
43
- dependencies?: undefined;
44
- };
45
- } | {
46
- id: string;
47
- kind: string;
48
- parentId: string;
49
- settings: {
50
- slug: string;
51
- title: string;
52
- description: string;
53
- code: string;
54
- dependencies: {
55
- name: string;
56
- }[];
57
- handlerResourceId?: undefined;
58
- kind?: undefined;
59
- };
60
- } | {
61
- id: string;
62
- kind: string;
63
- parentId: string;
64
- settings: {
65
- slug: string;
66
- title: string;
67
- description: string;
68
- handlerResourceId?: undefined;
69
- kind?: undefined;
70
- code?: undefined;
71
- dependencies?: undefined;
72
- };
73
- })[];
74
- };
75
- export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
76
- path: string;
77
- data: string;
78
- } | {
79
- path: string;
80
- data: {
81
- resourceRecords: ({
82
- id: string;
83
- kind: string;
84
- parentId: string;
85
- settings: {
86
- title: string;
87
- description: string;
88
- kind: string;
89
- parentKind: string;
90
- code?: undefined;
91
- dependencies?: undefined;
92
- };
93
- } | {
94
- id: string;
95
- kind: string;
96
- parentId: string;
97
- settings: {
98
- title: string;
99
- description: string;
100
- code: string;
101
- dependencies: {
102
- name: string;
103
- }[];
104
- kind?: undefined;
105
- parentKind?: undefined;
106
- };
107
- } | {
108
- id: string;
109
- kind: string;
110
- parentId: string;
111
- settings: {
112
- title: string;
113
- description: string;
114
- kind?: undefined;
115
- parentKind?: undefined;
116
- code?: undefined;
117
- dependencies?: undefined;
118
- };
119
- })[];
120
- name?: undefined;
121
- version?: undefined;
122
- private?: undefined;
123
- description?: undefined;
124
- license?: undefined;
125
- author?: undefined;
126
- type?: undefined;
127
- scripts?: undefined;
128
- dependencies?: undefined;
129
- devDependencies?: undefined;
130
- compilerOptions?: undefined;
131
- include?: undefined;
132
- };
133
- } | {
134
- path: string;
135
- data: {
136
- name: string;
137
- version: string;
138
- private: boolean;
139
- description: string;
140
- license: string;
141
- author: string;
142
- type: string;
143
- scripts: {
144
- build: string;
145
- start: string;
146
- "start:telemetry": string;
147
- };
148
- dependencies: {
149
- "@ldsg/create-app": string;
150
- "@ldsg/opentelemetry-node": string;
151
- graphql: string;
152
- "graphql-middleware": string;
153
- "graphql-shield": string;
154
- };
155
- devDependencies: {
156
- "@types/express": string;
157
- "@types/node": string;
158
- typescript: string;
159
- vite: string;
160
- };
161
- resourceRecords?: undefined;
162
- compilerOptions?: undefined;
163
- include?: undefined;
164
- };
165
- } | {
166
- path: string;
167
- data: {
168
- compilerOptions: {
169
- module: string;
170
- declaration: boolean;
171
- removeComments: boolean;
172
- emitDecoratorMetadata: boolean;
173
- experimentalDecorators: boolean;
174
- allowSyntheticDefaultImports: boolean;
175
- target: string;
176
- sourceMap: boolean;
177
- outDir: string;
178
- baseUrl: string;
179
- incremental: boolean;
180
- skipLibCheck: boolean;
181
- strictNullChecks: boolean;
182
- noImplicitAny: boolean;
183
- strictBindCallApply: boolean;
184
- forceConsistentCasingInFileNames: boolean;
185
- noFallthroughCasesInSwitch: boolean;
186
- resolveJsonModule: boolean;
187
- esModuleInterop: boolean;
188
- };
189
- include: string[];
190
- resourceRecords?: undefined;
191
- name?: undefined;
192
- version?: undefined;
193
- private?: undefined;
194
- description?: undefined;
195
- license?: undefined;
196
- author?: undefined;
197
- type?: undefined;
198
- scripts?: undefined;
199
- dependencies?: undefined;
200
- devDependencies?: undefined;
201
- };
202
- })[];
203
- export declare const FILES_IN_HANDLER_TEMPLATE_MODULE: ({
204
- path: string;
205
- data: string;
206
- } | {
207
- path: string;
208
- data: {
209
- name: string;
210
- version: string;
211
- private: boolean;
212
- description: string;
213
- license: string;
214
- files: string[];
215
- main: string;
216
- types: string;
217
- scripts: {
218
- build: string;
219
- };
220
- dependencies: {};
221
- devDependencies: {
222
- "@types/express": string;
223
- "@types/node": string;
224
- "ts-loader": string;
225
- tslib: string;
226
- typescript: string;
227
- };
228
- compilerOptions?: undefined;
229
- include?: undefined;
230
- };
231
- } | {
232
- path: string;
233
- data: {
234
- compilerOptions: {
235
- module: string;
236
- declaration: boolean;
237
- removeComments: boolean;
238
- emitDecoratorMetadata: boolean;
239
- experimentalDecorators: boolean;
240
- allowSyntheticDefaultImports: boolean;
241
- target: string;
242
- sourceMap: boolean;
243
- outDir: string;
244
- baseUrl: string;
245
- incremental: boolean;
246
- skipLibCheck: boolean;
247
- strictNullChecks: boolean;
248
- noImplicitAny: boolean;
249
- strictBindCallApply: boolean;
250
- forceConsistentCasingInFileNames: boolean;
251
- noFallthroughCasesInSwitch: boolean;
252
- resolveJsonModule: boolean;
253
- esModuleInterop: boolean;
254
- };
255
- include: string[];
256
- name?: undefined;
257
- version?: undefined;
258
- private?: undefined;
259
- description?: undefined;
260
- license?: undefined;
261
- files?: undefined;
262
- main?: undefined;
263
- types?: undefined;
264
- scripts?: undefined;
265
- dependencies?: undefined;
266
- devDependencies?: undefined;
267
- };
268
- })[];
269
5
  //# sourceMappingURL=index.d.ts.map
@@ -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,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACN,CAAC;AAEpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAqC,CAAC"}
package/dist/index.js CHANGED
@@ -1,16 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FILES_IN_HANDLER_TEMPLATE_MODULE = exports.FILES_IN_APP_TEMPLATE_MODULE = exports.APP_MANIFEST = exports.RESOURCE_DEFINITION_RELATED_RESOURCE_RECORDS = exports.BASE_RESOURCE_KINDS = void 0;
7
- const base_resource_kinds_json_1 = __importDefault(require("./base-resource-kinds.json"));
8
- exports.BASE_RESOURCE_KINDS = base_resource_kinds_json_1.default;
9
- const resource_definition_related_resource_records_json_1 = __importDefault(require("./resource-definition-related-resource-records.json"));
10
- exports.RESOURCE_DEFINITION_RELATED_RESOURCE_RECORDS = resource_definition_related_resource_records_json_1.default;
11
- const app_manifest_json_1 = __importDefault(require("./app-manifest.json"));
12
- exports.APP_MANIFEST = app_manifest_json_1.default;
13
- const files_in_app_template_module_json_1 = __importDefault(require("./files-in-app-template-module.json"));
14
- exports.FILES_IN_APP_TEMPLATE_MODULE = files_in_app_template_module_json_1.default;
15
- const files_in_handler_template_module_json_1 = __importDefault(require("./files-in-handler-template-module.json"));
16
- exports.FILES_IN_HANDLER_TEMPLATE_MODULE = files_in_handler_template_module_json_1.default;
3
+ exports.BASE_RESOURCE_KINDS = void 0;
4
+ /**
5
+ * 基座级资源类型,其资源定义直接内置于运行时,不需要下发资源定义资源记录
6
+ */
7
+ exports.BASE_RESOURCE_KINDS = ["resource_definition", "handler"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/constants",
3
- "version": "0.3.42",
3
+ "version": "0.3.44",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,13 +14,9 @@
14
14
  "access": "public"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/jest": "^29.5.2",
18
- "jest": "^29.5.0",
17
+ "@types/node": "^20.13.0",
19
18
  "oxfmt": "latest",
20
19
  "oxlint": "latest",
21
- "supertest": "^6.3.4",
22
- "ts-jest": "^29.1.5",
23
- "ts-node": "^10.9.2",
24
20
  "typescript": "^5.8.3"
25
21
  },
26
22
  "scripts": {