c2-clinical 1.0.112 → 1.0.115

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_crypto_1 = require("node:crypto");
3
+ // import { randomUUID } from "node:crypto";
4
+ const crypto_1 = require("crypto");
4
5
  class BuildTreeFlowItem {
5
6
  bank = [];
6
7
  execute(questions) {
@@ -30,7 +31,7 @@ class BuildTreeFlowItem {
30
31
  const lines = parent.children.reduce((acc, item) => {
31
32
  if (!acc.some((a) => a.line === item.line)) {
32
33
  acc.push({
33
- id: (0, node_crypto_1.randomUUID)(),
34
+ id: (0, crypto_1.randomUUID)(),
34
35
  line: item.line,
35
36
  collumns: []
36
37
  });
@@ -59,7 +60,7 @@ class BuildTreeFlowItem {
59
60
  const lines = config.children.reduce((acc, item) => {
60
61
  if (!acc.some((a) => a.line === item.line)) {
61
62
  acc.push({
62
- id: (0, node_crypto_1.randomUUID)(),
63
+ id: (0, crypto_1.randomUUID)(),
63
64
  line: item.line,
64
65
  collumns: []
65
66
  });
@@ -91,6 +91,7 @@ export interface IFormUnit extends IDefault {
91
91
  headerData: {
92
92
  headerText: string;
93
93
  fieldName: string;
94
+ _id: Types.ObjectId;
94
95
  }[];
95
96
  };
96
97
  isAnalyticalResult: boolean;
@@ -101,8 +101,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
101
101
  }
102
102
  ]
103
103
  }
104
- },
105
- _id: false
104
+ }
106
105
  },
107
106
  //DADOS PARA UPLOAD FILE
108
107
  uploadFileConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.112",
3
+ "version": "1.0.115",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://github.com/cabralsilva/c2-clinical.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",