sigo-entities 1.2.381 → 1.2.382

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.mts CHANGED
@@ -9477,7 +9477,7 @@ interface IParams {
9477
9477
  prefix: string;
9478
9478
  dataDB: SystemOptionEntity[];
9479
9479
  rawData: RouteInfo[];
9480
- UnprocessableEntityException: any;
9480
+ UnprocessableEntityException: ClassConstructor<Error>;
9481
9481
  root?: boolean;
9482
9482
  }
9483
9483
  declare function builSystemOption(params: IParams): Promise<{
package/dist/index.d.ts CHANGED
@@ -9477,7 +9477,7 @@ interface IParams {
9477
9477
  prefix: string;
9478
9478
  dataDB: SystemOptionEntity[];
9479
9479
  rawData: RouteInfo[];
9480
- UnprocessableEntityException: any;
9480
+ UnprocessableEntityException: ClassConstructor<Error>;
9481
9481
  root?: boolean;
9482
9482
  }
9483
9483
  declare function builSystemOption(params: IParams): Promise<{
package/dist/index.js CHANGED
@@ -50213,16 +50213,16 @@ async function builSystemOption(params) {
50213
50213
  if (mapaLocal.has(key)) continue;
50214
50214
  mapaLocal.add(key);
50215
50215
  if (!dataDBSet.has(key)) {
50216
- const _newEntity = new SystemOptionEntity();
50217
- _newEntity.father = father;
50218
- _newEntity.name = separarPalabras(element);
50219
- _newEntity.prefix = prefix;
50220
- _newEntity.root = root;
50221
- _newEntity.key = key;
50222
- if (isLast) {
50223
- _newEntity.method = method;
50224
- _newEntity.route = `${method} ${rootPath}${pathParts}`;
50225
- }
50216
+ const _newEntity = {
50217
+ father,
50218
+ name: separarPalabras(element),
50219
+ prefix,
50220
+ root,
50221
+ key,
50222
+ method: isLast ? method : "",
50223
+ route: isLast ? `${method} ${rootPath}${pathParts}` : "",
50224
+ _id: crypto.randomUUID()
50225
+ };
50226
50226
  const newItem = await validateCustom(_newEntity, SystemOptionEntity, UnprocessableEntityException);
50227
50227
  newData.push(newItem);
50228
50228
  }
package/dist/index.mjs CHANGED
@@ -49738,16 +49738,16 @@ async function builSystemOption(params) {
49738
49738
  if (mapaLocal.has(key)) continue;
49739
49739
  mapaLocal.add(key);
49740
49740
  if (!dataDBSet.has(key)) {
49741
- const _newEntity = new SystemOptionEntity();
49742
- _newEntity.father = father;
49743
- _newEntity.name = separarPalabras(element);
49744
- _newEntity.prefix = prefix;
49745
- _newEntity.root = root;
49746
- _newEntity.key = key;
49747
- if (isLast) {
49748
- _newEntity.method = method;
49749
- _newEntity.route = `${method} ${rootPath}${pathParts}`;
49750
- }
49741
+ const _newEntity = {
49742
+ father,
49743
+ name: separarPalabras(element),
49744
+ prefix,
49745
+ root,
49746
+ key,
49747
+ method: isLast ? method : "",
49748
+ route: isLast ? `${method} ${rootPath}${pathParts}` : "",
49749
+ _id: crypto.randomUUID()
49750
+ };
49751
49751
  const newItem = await validateCustom(_newEntity, SystemOptionEntity, UnprocessableEntityException);
49752
49752
  newData.push(newItem);
49753
49753
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.381",
3
+ "version": "1.2.382",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",