@mcma/client
Advanced tools
Comparing version 0.4.3 to 0.4.4
import { AxiosRequestConfig, AxiosPromise } from "axios"; | ||
import { Resource, ResourceType, Service, ResourceEndpoint, ContextVariableProvider } from "@mcma/core"; | ||
import { Resource, ResourceType, Service, ResourceEndpoint, ContextVariableProvider, JobBase } from "@mcma/core"; | ||
@@ -14,2 +14,4 @@ export type HttpRequestConfig = AxiosRequestConfig; | ||
export class AuthProvider { | ||
constructor(); | ||
add(authType: string, authenticatorFactory: AuthenticatorFactory): void; | ||
@@ -41,4 +43,4 @@ get(authType: string, authContext: any): Authenticator; | ||
hasResourceEndpoint(resourceType: string): boolean; | ||
getResourceEndpoint(resourceType: string): ResourceEndpointClient; | ||
hasResourceEndpoint<T extends Resource>(resourceType: ResourceType<T>): boolean; | ||
getResourceEndpoint<T extends Resource>(resourceType: ResourceType<T>): ResourceEndpointClient; | ||
getAllResourceEndpoints(): ResourceEndpointClient[]; | ||
@@ -67,3 +69,3 @@ } | ||
export class ResourceManager { | ||
constructor(config: ResourceManagerConfig); | ||
constructor(config: ResourceManagerConfig, authProvider: AuthProvider); | ||
@@ -78,2 +80,3 @@ init(): Promise<void>; | ||
resolve<T extends Resource>(resource: T | string): Promise<T | undefined>; | ||
sendNotification(resource: JobBase): Promise<void>; | ||
} | ||
@@ -83,3 +86,3 @@ | ||
interface ContextVariableProvider { | ||
getResourceManagerFromContext(authProvider: AuthProvider): ResourceManager; | ||
getResourceManagerConfig(): ResourceManagerConfig; | ||
} | ||
@@ -91,3 +94,3 @@ } | ||
get(config: ResourceManagerConfig): ResourceManager; | ||
get(config?: ResourceManagerConfig): ResourceManager; | ||
} |
{ | ||
"name": "@mcma/client", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Node module with classes and functions used to access services in an MCMA environment", | ||
@@ -27,3 +27,3 @@ "engines": { | ||
"axios": "^0.18.0", | ||
"@mcma/core": "0.4.3" | ||
"@mcma/core": "0.4.4" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23857
515
+ Added@mcma/core@0.4.4(transitive)
- Removed@mcma/core@0.4.3(transitive)
Updated@mcma/core@0.4.4