grapp-common-se 0.6.50 → 0.6.51
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/orders/order.d.ts +34 -1
- package/dist/users/patient.d.ts +2 -1
- package/package.json +1 -1
package/dist/orders/order.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Patient, User } from '../users';
|
|
|
4
4
|
import { CIE10 } from '../clinics/CIE10';
|
|
5
5
|
import { InnerFile } from '../fileSystem';
|
|
6
6
|
import { RequestReduced } from './request';
|
|
7
|
+
import { Users } from '..';
|
|
7
8
|
export interface Order extends Resource {
|
|
8
9
|
_id?: string;
|
|
9
10
|
file?: string[] | (File | InnerFile)[];
|
|
@@ -39,6 +40,28 @@ export interface Order extends Resource {
|
|
|
39
40
|
sellPrice?: number;
|
|
40
41
|
buyCost?: number;
|
|
41
42
|
totalSale?: number;
|
|
43
|
+
transferred?: boolean;
|
|
44
|
+
transferStatus?: TransferStatus;
|
|
45
|
+
sendTo?: SendTo[];
|
|
46
|
+
}
|
|
47
|
+
export interface SendTo {
|
|
48
|
+
transferStatus?: TransferStatus;
|
|
49
|
+
receiver?: DataReceiver;
|
|
50
|
+
createdAt?: Number;
|
|
51
|
+
createdBy?: DataCreatedBy;
|
|
52
|
+
}
|
|
53
|
+
interface DataReceiver {
|
|
54
|
+
nit?: string;
|
|
55
|
+
url?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
}
|
|
58
|
+
interface DataCreatedBy {
|
|
59
|
+
id?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
document?: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
idType?: string;
|
|
64
|
+
userType?: Users.UserType;
|
|
42
65
|
}
|
|
43
66
|
export interface OrderComplete extends Order {
|
|
44
67
|
patient?: Patient;
|
|
@@ -73,6 +96,10 @@ export declare enum SuccessCallTypeStatus {
|
|
|
73
96
|
DEFINITIVE = 0,
|
|
74
97
|
TENTATIVE = 1
|
|
75
98
|
}
|
|
99
|
+
export declare enum TransferStatus {
|
|
100
|
+
TRANSFERRED,
|
|
101
|
+
CANCELED
|
|
102
|
+
}
|
|
76
103
|
export declare enum OrderStatus {
|
|
77
104
|
APROOVED = 0,
|
|
78
105
|
SCHEDULED = 1,
|
|
@@ -119,11 +146,17 @@ export interface ContractTech {
|
|
|
119
146
|
epsId: string;
|
|
120
147
|
buyCost: number;
|
|
121
148
|
contractId: string;
|
|
122
|
-
createdAt
|
|
149
|
+
createdAt?: number;
|
|
123
150
|
frecuency: number;
|
|
124
151
|
frecuencyAlert: number;
|
|
125
152
|
sellPrice: number;
|
|
126
153
|
state: boolean;
|
|
127
154
|
techName: string;
|
|
128
155
|
technologyCode: number;
|
|
156
|
+
monthlyFrecuency?: number;
|
|
157
|
+
weeklyFrecuency?: number;
|
|
158
|
+
createdBy?: string;
|
|
159
|
+
lastModifiedAt?: number;
|
|
160
|
+
lastModifiedBy?: string;
|
|
129
161
|
}
|
|
162
|
+
export {};
|
package/dist/users/patient.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface Patient extends User {
|
|
|
41
41
|
* Trazabilidad de cambios
|
|
42
42
|
*/
|
|
43
43
|
changesTraceability?: ChangeTraceability[];
|
|
44
|
-
messagePatientLog?: string;
|
|
44
|
+
messagePatientLog?: string[];
|
|
45
45
|
}
|
|
46
46
|
export interface ChangeTraceability {
|
|
47
47
|
modifiedBy: User;
|
|
@@ -63,4 +63,5 @@ export interface PatientLog {
|
|
|
63
63
|
patientID?: string;
|
|
64
64
|
createdAt?: number;
|
|
65
65
|
createBy?: {};
|
|
66
|
+
changeCamp?: {};
|
|
66
67
|
}
|