c2-clinical 1.0.46 → 1.0.47

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.ts CHANGED
@@ -8,7 +8,6 @@ export * from "./models/patient/Patient";
8
8
  export * from "./models/patient/Phone";
9
9
  export * from "./models/patient/State";
10
10
  export * from "./models/File";
11
- export * from "./models/Account";
12
11
  export * from "./models/Default";
13
12
  export * from "./models/form/Form";
14
13
  export * from "./models/form/FormUnit";
package/dist/index.js CHANGED
@@ -31,7 +31,6 @@ __exportStar(require("./models/patient/Patient"), exports);
31
31
  __exportStar(require("./models/patient/Phone"), exports);
32
32
  __exportStar(require("./models/patient/State"), exports);
33
33
  __exportStar(require("./models/File"), exports);
34
- __exportStar(require("./models/Account"), exports);
35
34
  __exportStar(require("./models/Default"), exports);
36
35
  __exportStar(require("./models/form/Form"), exports);
37
36
  __exportStar(require("./models/form/FormUnit"), exports);
@@ -1,5 +1,5 @@
1
+ import { IAccount } from "c2-account";
1
2
  import { Types } from "mongoose";
2
- import { IAccount } from "./Account";
3
3
  export interface IDefault extends IDefaultAdmin {
4
4
  account: Types.ObjectId | IAccount;
5
5
  }
@@ -15,24 +15,24 @@ export declare const FormSchema: Schema<any, import("mongoose").Model<any, any,
15
15
  updatedAt: string;
16
16
  };
17
17
  }, {} & {
18
- name: string;
19
18
  type: string;
19
+ name: string;
20
20
  category: string;
21
21
  owner: string;
22
22
  account?: any;
23
23
  description?: string | null | undefined;
24
24
  observation?: string | null | undefined;
25
25
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
26
- name: string;
27
26
  type: string;
27
+ name: string;
28
28
  category: string;
29
29
  owner: string;
30
30
  account?: any;
31
31
  description?: string | null | undefined;
32
32
  observation?: string | null | undefined;
33
33
  }>, {}> & import("mongoose").FlatRecord<{} & {
34
- name: string;
35
34
  type: string;
35
+ name: string;
36
36
  category: string;
37
37
  owner: string;
38
38
  account?: any;
@@ -4,7 +4,7 @@ exports.FormSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const enum_1 = require("../enum");
6
6
  exports.FormSchema = new mongoose_1.Schema({
7
- //account só é usado quando o form for montado por uma conta, quando for default ele deve estar sem preenchimento
7
+ //account só é usado quando o form for montado por uma conta, quando for padrao do sistema ou de indicacao dos nutri do projeto ele deve estar sem preenchimento
8
8
  account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account" },
9
9
  type: { type: String, enum: enum_1.TypeFormEnum, required: true },
10
10
  category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
@@ -106,8 +106,8 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
106
106
  cityCodeIbge?: string | null | undefined;
107
107
  city?: any;
108
108
  }>;
109
- email?: string | null | undefined;
110
109
  genre?: string | null | undefined;
110
+ email?: string | null | undefined;
111
111
  appConfig?: {
112
112
  accessEnable?: any;
113
113
  accessCode?: string | null | undefined;
@@ -174,8 +174,8 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
174
174
  cityCodeIbge?: string | null | undefined;
175
175
  city?: any;
176
176
  }>;
177
- email?: string | null | undefined;
178
177
  genre?: string | null | undefined;
178
+ email?: string | null | undefined;
179
179
  appConfig?: {
180
180
  accessEnable?: any;
181
181
  accessCode?: string | null | undefined;
@@ -242,8 +242,8 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
242
242
  cityCodeIbge?: string | null | undefined;
243
243
  city?: any;
244
244
  }>;
245
- email?: string | null | undefined;
246
245
  genre?: string | null | undefined;
246
+ email?: string | null | undefined;
247
247
  appConfig?: {
248
248
  accessEnable?: any;
249
249
  accessCode?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
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>",
@@ -18,6 +18,7 @@
18
18
  "publish-major": "npm version major"
19
19
  },
20
20
  "dependencies": {
21
+ "c2-account": "^1.0.5",
21
22
  "mongoose": "^8.3.4",
22
23
  "ts-node": "^10.8.1",
23
24
  "typescript": "^5.8.3"