oro-sdk-apis 1.38.0 → 1.39.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.38.0",
2
+ "version": "1.39.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -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
@@ -11,3 +11,4 @@ export * from './workflow'
11
11
  export * from './external'
12
12
  export * from './user'
13
13
  export * from './teller'
14
+ export * from './search'
@@ -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
+ }
@@ -7,7 +7,7 @@ export interface SearchResponse {
7
7
  }
8
8
 
9
9
  export interface SearchResult {
10
- consultUUID: string
10
+ consultUuid: string
11
11
  kind: string
12
12
  score: number
13
13
  }