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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.38.2",
2
+ "version": "1.39.2",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -87,7 +87,7 @@ export interface PrescriptionRequest {
87
87
  export interface Prescription extends PrescriptionRequest {
88
88
  uuid: string
89
89
  uuidTreatment: string
90
- status: PrescriptionStatus
90
+ status?: PrescriptionStatus
91
91
  createdAt: string
92
92
  }
93
93
 
@@ -157,6 +157,7 @@ export type PermissionBasedScopes =
157
157
  | 'practice.configs.get'
158
158
  | 'practice.invoices.get'
159
159
  | 'practice.payments.get'
160
+ | 'practice.secrets.get'
160
161
  | 'teller.emails.post'
161
162
 
162
163
  export type AllScopes = RoleBasedScopes | PermissionBasedScopes
@@ -616,3 +616,19 @@ export interface PracticeInvoice {
616
616
  currency: string
617
617
  discount: number
618
618
  }
619
+
620
+ /**
621
+ * This interface represents a practice secret
622
+ * It is used to generate a symetric key to encrypt
623
+ * practice related data
624
+ */
625
+ export interface PracticeSecret {
626
+ practiceUuid: string
627
+ /**
628
+ * The payload is the actual base64 encoded bytes that can
629
+ * be used as the practice secret. In the db,
630
+ * this field is base64 encoded nonce+encrypted-payload.
631
+ * It's decrypted on the fly when returned by the api.
632
+ */
633
+ payload: string
634
+ }
@@ -14,7 +14,7 @@ export class SearchService {
14
14
  terms: Terms
15
15
  ): Promise<any> {
16
16
  return this.api.post<IndexRequest>(
17
- `${this.baseURL}/v1/search`,
17
+ `${this.baseURL}/v1/index`,
18
18
  <IndexRequest> {
19
19
  consultUUID,
20
20
  terms