grapp-common-se 0.6.30 → 0.6.37

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.
@@ -0,0 +1 @@
1
+ export * from './interContract';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./interContract"), exports);
@@ -0,0 +1,6 @@
1
+ export interface InterContractType {
2
+ id: string;
3
+ code: string;
4
+ description: string;
5
+ enabled: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -5,10 +5,11 @@ import * as Notifications from './notifications';
5
5
  import * as Orders from './orders';
6
6
  import * as Users from './users';
7
7
  import * as ChangeHistory from './change-history';
8
+ import * as ContractType from './contract-type';
8
9
  import * as Sockets from './sockets';
9
10
  import * as Db from './db';
10
11
  import * as Modules from './modules';
11
- export { Clinics, Files, Metadata, Notifications, Orders, Users, ChangeHistory, Sockets, Db, Modules };
12
+ export { Clinics, Files, Metadata, Notifications, Orders, Users, ChangeHistory, Sockets, Db, Modules, ContractType };
12
13
  export { Client } from './client';
13
14
  export declare namespace Collections {
14
15
  const CLIENT = "Client";
@@ -29,4 +30,5 @@ export declare namespace Collections {
29
30
  const ORDERS = "Orders";
30
31
  const CUSTOM_CAUSES = "CustomCauses";
31
32
  const REQUEST_ORIGINS = "RequestOrigins";
33
+ const CONTRACT_TYPE = "ContractType";
32
34
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Collections = exports.Modules = exports.Db = exports.Sockets = exports.ChangeHistory = exports.Users = exports.Orders = exports.Notifications = exports.Metadata = exports.Files = exports.Clinics = void 0;
3
+ exports.Collections = exports.ContractType = exports.Modules = exports.Db = exports.Sockets = exports.ChangeHistory = exports.Users = exports.Orders = exports.Notifications = exports.Metadata = exports.Files = exports.Clinics = void 0;
4
4
  const Clinics = require("./clinics");
5
5
  exports.Clinics = Clinics;
6
6
  const Files = require("./fileSystem");
@@ -15,6 +15,8 @@ const Users = require("./users");
15
15
  exports.Users = Users;
16
16
  const ChangeHistory = require("./change-history");
17
17
  exports.ChangeHistory = ChangeHistory;
18
+ const ContractType = require("./contract-type");
19
+ exports.ContractType = ContractType;
18
20
  const Sockets = require("./sockets");
19
21
  exports.Sockets = Sockets;
20
22
  const Db = require("./db");
@@ -41,4 +43,5 @@ var Collections;
41
43
  Collections.ORDERS = 'Orders';
42
44
  Collections.CUSTOM_CAUSES = 'CustomCauses';
43
45
  Collections.REQUEST_ORIGINS = 'RequestOrigins';
46
+ Collections.CONTRACT_TYPE = 'ContractType';
44
47
  })(Collections = exports.Collections || (exports.Collections = {}));
@@ -310,6 +310,15 @@ export interface Contract {
310
310
  code?: string;
311
311
  tag?: string;
312
312
  active?: boolean;
313
+ topContractMoney?: number;
314
+ initialDate?: Timestamp;
315
+ finalDate?: Timestamp;
316
+ monthlyCheck?: boolean;
317
+ topMonthly?: number;
318
+ monthlyAlertPercent?: number;
319
+ weeklyCheck?: boolean;
320
+ topWeekly?: number;
321
+ weeklyAlertPercent?: number;
313
322
  }
314
323
  export interface epsGroup {
315
324
  id?: string;
@@ -55,3 +55,11 @@ export interface ValueChange {
55
55
  previousValue: string;
56
56
  nextValue: string;
57
57
  }
58
+ export interface PatientLog {
59
+ _id?: string;
60
+ dataPatient?: Patient;
61
+ content?: string;
62
+ patientID?: string;
63
+ createdAt?: number;
64
+ createBy?: {};
65
+ }
@@ -25,10 +25,11 @@ export declare enum IDType {
25
25
  PA = "PA",
26
26
  CD = "CD",
27
27
  PR = "PR",
28
- PEP = "PEP",
29
- ASI = "ASI",
30
- MSI = "MSI",
31
- NV = "NV"
28
+ PE = "PE",
29
+ AS = "AS",
30
+ MS = "MS",
31
+ NV = "NV",
32
+ DE = "DE"
32
33
  }
33
34
  export declare enum UserType {
34
35
  COORDINATOR = 0,
@@ -11,10 +11,11 @@ var IDType;
11
11
  IDType["PA"] = "PA";
12
12
  IDType["CD"] = "CD";
13
13
  IDType["PR"] = "PR";
14
- IDType["PEP"] = "PEP";
15
- IDType["ASI"] = "ASI";
16
- IDType["MSI"] = "MSI";
14
+ IDType["PE"] = "PE";
15
+ IDType["AS"] = "AS";
16
+ IDType["MS"] = "MS";
17
17
  IDType["NV"] = "NV";
18
+ IDType["DE"] = "DE";
18
19
  })(IDType = exports.IDType || (exports.IDType = {}));
19
20
  var UserType;
20
21
  (function (UserType) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "grapp-common-se",
3
- "version": "0.6.30",
3
+ "version": "0.6.37",
4
4
  "description": "Interfaces for GRAPP project",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "prepublishOnly": "npm run build",
8
- "build": "tsc --skipLibCheck",
8
+ "build": "rm -rf dist && tsc --skipLibCheck",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "keywords": [],