oro-sdk-apis 1.38.2 → 1.39.2
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/models/diagnosis.d.ts +1 -1
- package/dist/models/guard.d.ts +1 -1
- package/dist/models/practice.d.ts +15 -0
- package/dist/oro-sdk-apis.cjs.development.js +817 -400
- 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 +817 -400
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +1 -1
- package/src/models/guard.ts +1 -0
- package/src/models/practice.ts +16 -0
- package/src/services/search.ts +1 -1
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 ORO Health Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -75,7 +75,7 @@ export interface PrescriptionRequest {
|
|
75
75
|
export interface Prescription extends PrescriptionRequest {
|
76
76
|
uuid: string;
|
77
77
|
uuidTreatment: string;
|
78
|
-
status
|
78
|
+
status?: PrescriptionStatus;
|
79
79
|
createdAt: string;
|
80
80
|
}
|
81
81
|
export declare enum PlanStatus {
|
package/dist/models/guard.d.ts
CHANGED
@@ -130,5 +130,5 @@ export interface LegalData {
|
|
130
130
|
rpAcceptedAtIP?: string;
|
131
131
|
}
|
132
132
|
export declare type RoleBasedScopes = AllRoleType;
|
133
|
-
export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'consult.consults.put' | 'practice.assignments.post' | 'practice.emails.get' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'teller.emails.post';
|
133
|
+
export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'consult.consults.put' | 'practice.assignments.post' | 'practice.emails.get' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'practice.secrets.get' | 'teller.emails.post';
|
134
134
|
export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
|
@@ -529,3 +529,18 @@ export interface PracticeInvoice {
|
|
529
529
|
currency: string;
|
530
530
|
discount: number;
|
531
531
|
}
|
532
|
+
/**
|
533
|
+
* This interface represents a practice secret
|
534
|
+
* It is used to generate a symetric key to encrypt
|
535
|
+
* practice related data
|
536
|
+
*/
|
537
|
+
export interface PracticeSecret {
|
538
|
+
practiceUuid: string;
|
539
|
+
/**
|
540
|
+
* The payload is the actual base64 encoded bytes that can
|
541
|
+
* be used as the practice secret. In the db,
|
542
|
+
* this field is base64 encoded nonce+encrypted-payload.
|
543
|
+
* It's decrypted on the fly when returned by the api.
|
544
|
+
*/
|
545
|
+
payload: string;
|
546
|
+
}
|