oro-sdk-apis 1.1.0 → 1.5.0
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/LICENSE +21 -0
- package/README.md +12 -1
- package/dist/models/diagnosis.d.ts +11 -3
- package/dist/models/guard.d.ts +1 -0
- package/dist/oro-sdk-apis.cjs.development.js +37 -5
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +39 -7
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/guard.d.ts +8 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +13 -3
- package/src/models/guard.ts +2 -0
- package/src/services/guard.ts +11 -1
package/dist/services/guard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosAuthRefreshRequestConfig } from 'axios-auth-refresh';
|
|
2
|
-
import { AuthRecoverRequest, AuthTokenRequest, AuthTokenResponse, Base64String, IdentityCreateRequest, IdentityResponse, IdentityUpdateRequest, QRCodeResponse, Tokens, Uuid, WhoAmIResponse } from '../models';
|
|
2
|
+
import { AuthRecoverRequest, AuthTokenRequest, AuthTokenResponse, Base64String, IdentityCreateRequest, IdentityResendConfirmEmailRequest, IdentityResponse, IdentityUpdateRequest, QRCodeResponse, Tokens, Uuid, WhoAmIResponse } from '../models';
|
|
3
3
|
import { APIService } from './api';
|
|
4
4
|
export interface GuardRequestConfig extends AxiosAuthRefreshRequestConfig {
|
|
5
5
|
useRefreshToken: boolean;
|
|
@@ -89,4 +89,11 @@ export declare class GuardService {
|
|
|
89
89
|
* @returns QRCodeResponse
|
|
90
90
|
*/
|
|
91
91
|
identityMFAQRCode(identityID: Uuid, password: Base64String): Promise<QRCodeResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Attempt to resend the email confirmation email
|
|
94
|
+
*
|
|
95
|
+
* @param req IdentityResendConfirmEmailRequest
|
|
96
|
+
* @return void
|
|
97
|
+
*/
|
|
98
|
+
identitySendConfirmEmail(req: IdentityResendConfirmEmailRequest): Promise<void>;
|
|
92
99
|
}
|
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export enum
|
|
1
|
+
export enum VisibilityType {
|
|
2
2
|
Generic = 'Generic',
|
|
3
3
|
Private = 'Private',
|
|
4
4
|
Instance = 'Instance',
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
export type DiagnosisType = VisibilityType
|
|
8
|
+
|
|
9
|
+
export type TreatmentType = VisibilityType
|
|
10
|
+
|
|
7
11
|
export interface DiagnosisRequest {
|
|
8
12
|
uuid?: string
|
|
9
13
|
name: string
|
|
@@ -28,11 +32,13 @@ export interface TreatmentRequest {
|
|
|
28
32
|
name: string
|
|
29
33
|
description: string
|
|
30
34
|
urlMultimedia?: string
|
|
35
|
+
type?: TreatmentType
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
export interface Treatment extends TreatmentRequest {
|
|
34
39
|
uuid: string
|
|
35
40
|
uuidDiagnosis: string
|
|
41
|
+
uuidPractitioner?: string
|
|
36
42
|
createdAt: string
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -43,10 +49,11 @@ export enum DrugType {
|
|
|
43
49
|
|
|
44
50
|
export interface DrugRequest {
|
|
45
51
|
name: string // name of the drug
|
|
46
|
-
description
|
|
52
|
+
description?: string // Description of the drug
|
|
47
53
|
type: DrugType // Entry type
|
|
48
54
|
language: string // drug locale
|
|
49
|
-
|
|
55
|
+
posology?: string // drug posology
|
|
56
|
+
sideEffects?: string // Side effects of the drug
|
|
50
57
|
imageUrl?: string // Image URL to the drug
|
|
51
58
|
parentUuid?: string // (optional) parent uuid of the drug. In case of DrugType.Instance
|
|
52
59
|
uuid?: string // uuid of the drug (will be used as parentUuid in case of creation of new drug)
|
|
@@ -85,6 +92,7 @@ export interface TreatmentPlan {
|
|
|
85
92
|
uuidConsult: string
|
|
86
93
|
uuidDiagnosis: string
|
|
87
94
|
uuidTreatment?: string
|
|
95
|
+
notes?: string
|
|
88
96
|
status: PlanStatus
|
|
89
97
|
}
|
|
90
98
|
|
|
@@ -114,6 +122,7 @@ export interface TreatmentAndDrugPrescriptionRequest {
|
|
|
114
122
|
trackingId: string
|
|
115
123
|
treatment: TreatmentRequest
|
|
116
124
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
|
125
|
+
notes?: string
|
|
117
126
|
}
|
|
118
127
|
|
|
119
128
|
export interface TreatmentPlansRequest {
|
|
@@ -125,6 +134,7 @@ export interface TreatmentPlansRequest {
|
|
|
125
134
|
export interface TreatmentAndDrugPrescriptionUpdateRequest {
|
|
126
135
|
treatment: Treatment
|
|
127
136
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
|
137
|
+
notes?: string
|
|
128
138
|
}
|
|
129
139
|
|
|
130
140
|
export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
package/src/models/guard.ts
CHANGED
package/src/services/guard.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
AuthenticationBadRequest,
|
|
5
5
|
AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AuthRecoverRequest, AuthTokenRequest,
|
|
6
6
|
AuthTokenResponse, Base64String, IdentityCreateRequest, IdentityCreationBadRequest,
|
|
7
|
-
IdentityCreationConflict, IdentityCreationFailed, IdentityResponse, IdentityUpdateRequest, QRCodeRequest,
|
|
7
|
+
IdentityCreationConflict, IdentityCreationFailed, IdentityResendConfirmEmailRequest, IdentityResponse, IdentityUpdateRequest, QRCodeRequest,
|
|
8
8
|
QRCodeResponse, Tokens, Uuid,
|
|
9
9
|
WhoAmIResponse
|
|
10
10
|
} from '../models'
|
|
@@ -214,5 +214,15 @@ export class GuardService {
|
|
|
214
214
|
const req: QRCodeRequest = { password }
|
|
215
215
|
return this.api.post<QRCodeResponse>(`${this.baseURL}/v1/identities/${identityID}/mfa`, req, { headers: { 'Accept': 'application/json' } })
|
|
216
216
|
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Attempt to resend the email confirmation email
|
|
220
|
+
*
|
|
221
|
+
* @param req IdentityResendConfirmEmailRequest
|
|
222
|
+
* @return void
|
|
223
|
+
*/
|
|
224
|
+
public async identitySendConfirmEmail(req : IdentityResendConfirmEmailRequest): Promise<void> {
|
|
225
|
+
return this.api.post<void>(`${this.baseURL}/v1/identity/confirm`, req)
|
|
226
|
+
}
|
|
217
227
|
}
|
|
218
228
|
|