c2-clinical 1.0.15 → 1.0.17

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.
@@ -202,6 +202,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
202
202
  formulaToEnable: string;
203
203
  code: string;
204
204
  active: any;
205
+ form: any;
205
206
  options: Types.DocumentArray<{
206
207
  description: string;
207
208
  sequence: number;
@@ -267,7 +268,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
267
268
  account?: any;
268
269
  description?: string | null | undefined;
269
270
  reference?: any;
270
- form?: any;
271
271
  example?: string | null | undefined;
272
272
  parent?: any;
273
273
  line?: number | null | undefined;
@@ -284,6 +284,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
284
284
  formulaToEnable: string;
285
285
  code: string;
286
286
  active: any;
287
+ form: any;
287
288
  options: Types.DocumentArray<{
288
289
  description: string;
289
290
  sequence: number;
@@ -349,7 +350,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
349
350
  account?: any;
350
351
  description?: string | null | undefined;
351
352
  reference?: any;
352
- form?: any;
353
353
  example?: string | null | undefined;
354
354
  parent?: any;
355
355
  line?: number | null | undefined;
@@ -366,6 +366,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
366
366
  formulaToEnable: string;
367
367
  code: string;
368
368
  active: any;
369
+ form: any;
369
370
  options: Types.DocumentArray<{
370
371
  description: string;
371
372
  sequence: number;
@@ -431,7 +432,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
431
432
  account?: any;
432
433
  description?: string | null | undefined;
433
434
  reference?: any;
434
- form?: any;
435
435
  example?: string | null | undefined;
436
436
  parent?: any;
437
437
  line?: number | null | undefined;
@@ -91,7 +91,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
91
91
  //account só é usado quando for montado por uma conta, quando for modelo disponível a todos ele deve estar sem preenchimento
92
92
  account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account" },
93
93
  reference: { type: mongoose_1.Schema.Types.ObjectId, ref: "form-unit" },
94
- form: { type: mongoose_1.Schema.Types.ObjectId, ref: "form" },
94
+ form: { type: mongoose_1.Schema.Types.ObjectId, ref: "form", required: true },
95
95
  sequence: { type: Number, required: true, immutable: true },
96
96
  code: { type: String, required: true },
97
97
  description: { type: String },
@@ -1,5 +1,4 @@
1
1
  import { Schema, Types } from "mongoose";
2
- import { IFile } from "../File";
3
2
  import { IDefault } from "../IDefault";
4
3
  import { IForm } from "../form/Form";
5
4
  export declare enum StatusQPCEnum {
@@ -7,9 +6,6 @@ export declare enum StatusQPCEnum {
7
6
  IMPORTED = "IMPORTED"
8
7
  }
9
8
  export interface IQPC extends IDefault {
10
- name: string;
11
- photo: IFile;
12
- bornDate: Date;
13
9
  answeredDateTime: Date;
14
10
  status: StatusQPCEnum;
15
11
  form: Types.ObjectId | IForm;
@@ -20,43 +16,19 @@ export declare const QPCSchema: Schema<any, import("mongoose").Model<any, any, a
20
16
  updatedAt: string;
21
17
  };
22
18
  }, {} & {
23
- name: string;
24
19
  account: any;
25
20
  form: any;
26
- bornDate: NativeDate;
27
21
  status: string;
28
- photo?: ({} & {
29
- description: string;
30
- contentType: string;
31
- url?: string | null | undefined;
32
- format?: string | null | undefined;
33
- }) | null | undefined;
34
22
  answeredDateTime?: NativeDate | null | undefined;
35
23
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
36
- name: string;
37
24
  account: any;
38
25
  form: any;
39
- bornDate: NativeDate;
40
26
  status: string;
41
- photo?: ({} & {
42
- description: string;
43
- contentType: string;
44
- url?: string | null | undefined;
45
- format?: string | null | undefined;
46
- }) | null | undefined;
47
27
  answeredDateTime?: NativeDate | null | undefined;
48
28
  }>, {}> & import("mongoose").FlatRecord<{} & {
49
- name: string;
50
29
  account: any;
51
30
  form: any;
52
- bornDate: NativeDate;
53
31
  status: string;
54
- photo?: ({} & {
55
- description: string;
56
- contentType: string;
57
- url?: string | null | undefined;
58
- format?: string | null | undefined;
59
- }) | null | undefined;
60
32
  answeredDateTime?: NativeDate | null | undefined;
61
33
  }> & {
62
34
  _id: Types.ObjectId;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QPCSchema = exports.StatusQPCEnum = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
- const File_1 = require("../File");
6
5
  var StatusQPCEnum;
7
6
  (function (StatusQPCEnum) {
8
7
  StatusQPCEnum["AWAITING_IMPORT"] = "AWAITING_IMPORT";
@@ -10,9 +9,6 @@ var StatusQPCEnum;
10
9
  })(StatusQPCEnum || (exports.StatusQPCEnum = StatusQPCEnum = {}));
11
10
  exports.QPCSchema = new mongoose_1.Schema({
12
11
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
13
- name: { type: String, required: true },
14
- photo: { type: File_1.FileSchema },
15
- bornDate: { type: Date, required: true },
16
12
  answeredDateTime: { type: Date },
17
13
  status: { type: String, enum: StatusQPCEnum, default: StatusQPCEnum.AWAITING_IMPORT },
18
14
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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>",