@ruiapp/rapid-configure-tools 0.6.3 → 0.6.5

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/mod.js CHANGED
@@ -295,6 +295,9 @@ function generateDictionaryTypes(metaDir) {
295
295
  for (const dictionary of dictionaries) {
296
296
  codes.push(`/**`);
297
297
  codes.push(` * ${dictionary.name}`);
298
+ if (dictionary.deprecated) {
299
+ codes.push(` * @deprecated ${dictionary.deprecationDescription || ""}`);
300
+ }
298
301
  codes.push(` */`);
299
302
  if (!dictionary.entries) {
300
303
  codes.push(`export type ${dictionary.code} = any;`);
@@ -318,7 +321,7 @@ function generateEntityTypes(metaDir) {
318
321
  const referencedDictionaryCodes = [];
319
322
  for (const entity of entities) {
320
323
  for (const field of entity.fields) {
321
- if (field.type === "option" && field.dataDictionary) {
324
+ if ((field.type === "option" || field.type === "option[]") && field.dataDictionary) {
322
325
  referencedDictionaryCodes.push(field.dataDictionary);
323
326
  }
324
327
  }
@@ -342,6 +345,9 @@ function generateEntityTypes(metaDir) {
342
345
  for (const field of entity.fields) {
343
346
  codes.push(` /**`);
344
347
  codes.push(` * ${field.name}`);
348
+ if (field.deprecated) {
349
+ codes.push(` * @deprecated ${field.deprecationDescription || ""}`);
350
+ }
345
351
  codes.push(` */`);
346
352
  codes.push(` ${field.code}${field.required ? "" : "?"}: ${convertSdRpdFieldTypeToTypeScriptType(field, entities)};`);
347
353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-configure-tools",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "",
5
5
  "main": "dist/mod.js",
6
6
  "keywords": [],
@@ -20,8 +20,8 @@
20
20
  "axios-cookiejar-support": "^4.0.7",
21
21
  "lodash": "^4.17.21",
22
22
  "tough-cookie": "^4.1.3",
23
- "@ruiapp/rapid-core": "^0.10.5",
24
- "@ruiapp/rapid-extension": "^0.6.18"
23
+ "@ruiapp/rapid-core": "^0.11.0",
24
+ "@ruiapp/rapid-extension": "^0.9.2"
25
25
  },
26
26
  "dependencies": {},
27
27
  "scripts": {
@@ -54,6 +54,9 @@ function generateDictionaryTypes(metaDir: string) {
54
54
  for (const dictionary of dictionaries) {
55
55
  codes.push(`/**`);
56
56
  codes.push(` * ${dictionary.name}`);
57
+ if (dictionary.deprecated) {
58
+ codes.push(` * @deprecated ${dictionary.deprecationDescription || ""}`);
59
+ }
57
60
  codes.push(` */`);
58
61
  if (!dictionary.entries) {
59
62
  codes.push(`export type ${dictionary.code} = any;`);
@@ -80,7 +83,7 @@ function generateEntityTypes(metaDir: string) {
80
83
  const referencedDictionaryCodes = [];
81
84
  for (const entity of entities) {
82
85
  for (const field of entity.fields) {
83
- if (field.type === "option" && field.dataDictionary) {
86
+ if ((field.type === "option" || field.type === "option[]") && field.dataDictionary) {
84
87
  referencedDictionaryCodes.push(field.dataDictionary);
85
88
  }
86
89
  }
@@ -107,6 +110,9 @@ function generateEntityTypes(metaDir: string) {
107
110
  for (const field of entity.fields) {
108
111
  codes.push(` /**`);
109
112
  codes.push(` * ${field.name}`);
113
+ if (field.deprecated) {
114
+ codes.push(` * @deprecated ${field.deprecationDescription || ""}`);
115
+ }
110
116
  codes.push(` */`);
111
117
  codes.push(` ${field.code}${field.required ? "" : "?"}: ${convertSdRpdFieldTypeToTypeScriptType(field, entities)};`);
112
118
  }