c2-clinical 1.0.8 → 1.0.9

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.
@@ -16,9 +16,15 @@ export declare enum TypeFormEnum {
16
16
  STRUCTURED = "STRUCTURED",
17
17
  FREE_TEXT = "FREE_TEXT"
18
18
  }
19
+ export declare enum OwnerEnum {
20
+ SYSTEM = "SYSTEM",
21
+ NUTRITIONIST_REFERENCE = "NUTRITIONIST_REFERENCE",
22
+ ACCOUNT = "ACCOUNT"
23
+ }
19
24
  export interface IForm extends IDefault {
20
25
  type: TypeFormEnum;
21
26
  category: CategoryFormEnum;
27
+ owner: OwnerEnum;
22
28
  name: string;
23
29
  description: string;
24
30
  observation: string;
@@ -33,6 +39,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
33
39
  name: string;
34
40
  type: string;
35
41
  category: string;
42
+ owner: string;
36
43
  description?: string | null | undefined;
37
44
  account?: any;
38
45
  observation?: string | null | undefined;
@@ -41,6 +48,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
41
48
  name: string;
42
49
  type: string;
43
50
  category: string;
51
+ owner: string;
44
52
  description?: string | null | undefined;
45
53
  account?: any;
46
54
  observation?: string | null | undefined;
@@ -49,6 +57,7 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
49
57
  name: string;
50
58
  type: string;
51
59
  category: string;
60
+ owner: string;
52
61
  description?: string | null | undefined;
53
62
  account?: any;
54
63
  observation?: string | null | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormSchema = exports.TypeFormEnum = exports.CategoryFormEnum = void 0;
3
+ exports.FormSchema = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  // import { AdminQuestionSchema, CategoryQuestionEnum } from "./AdminQuestionV2";
6
6
  /**
@@ -21,11 +21,18 @@ var TypeFormEnum;
21
21
  TypeFormEnum["STRUCTURED"] = "STRUCTURED";
22
22
  TypeFormEnum["FREE_TEXT"] = "FREE_TEXT";
23
23
  })(TypeFormEnum || (exports.TypeFormEnum = TypeFormEnum = {}));
24
+ var OwnerEnum;
25
+ (function (OwnerEnum) {
26
+ OwnerEnum["SYSTEM"] = "SYSTEM";
27
+ OwnerEnum["NUTRITIONIST_REFERENCE"] = "NUTRITIONIST_REFERENCE";
28
+ OwnerEnum["ACCOUNT"] = "ACCOUNT";
29
+ })(OwnerEnum || (exports.OwnerEnum = OwnerEnum = {}));
24
30
  exports.FormSchema = new mongoose_1.Schema({
25
31
  //account só é usado quando o form for montado por uma conta, quando for default ele deve estar sem preenchimento
26
32
  account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account" },
27
33
  type: { type: String, enum: TypeFormEnum, required: true },
28
34
  category: { type: String, enum: CategoryFormEnum, required: true },
35
+ owner: { type: String, enum: OwnerEnum, required: true },
29
36
  name: { type: String, required: true },
30
37
  description: { type: String },
31
38
  observation: { type: String },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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>",