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.
- package/dist/models/guard.d.ts +2 -1
- package/package.json +1 -1
- package/src/models/guard.ts +2 -1
package/dist/models/guard.d.ts
CHANGED
|
@@ -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 =
|
|
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
package/src/models/guard.ts
CHANGED
|
@@ -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 =
|
|
149
|
+
export type RoleBasedScopes = AllRoleType
|
|
149
150
|
|
|
150
151
|
export type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'practice.assignments.post'
|
|
151
152
|
|