oro-sdk-apis 1.16.0 → 1.16.1

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.
@@ -1,4 +1,5 @@
1
1
  import { Uuid, Base64String, TokenData, RFC3339Date, Url } from './';
2
+ import { AllRoleType } from './practice';
2
3
  export declare type AuthRefreshFunc = (refreshToken?: string) => Promise<AuthTokenResponse>;
3
4
  export interface Tokens {
4
5
  accessToken?: string;
@@ -128,6 +129,6 @@ export interface LegalData {
128
129
  rpAcceptedVersion: Url;
129
130
  rpAcceptedAtIP?: string;
130
131
  }
131
- export declare type RoleBasedScopes = 'User' | 'Patient' | 'Practitioner' | 'Administrative';
132
+ export declare type RoleBasedScopes = AllRoleType;
132
133
  export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post';
133
134
  export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.0",
2
+ "version": "1.16.1",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -1,4 +1,5 @@
1
1
  import { Uuid, Base64String, TokenData, RFC3339Date, Url } from './'
2
+ import { AllRoleType } from './practice'
2
3
 
3
4
  export type AuthRefreshFunc = (refreshToken?: string) => Promise<AuthTokenResponse>
4
5
  export interface Tokens {
@@ -145,7 +146,7 @@ export interface LegalData {
145
146
  rpAcceptedAtIP?: string
146
147
  }
147
148
 
148
- export type RoleBasedScopes = 'User' | 'Patient' | 'Practitioner' | 'Administrative'
149
+ export type RoleBasedScopes = AllRoleType
149
150
 
150
151
  export type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post'
151
152