forked from Medable/mdctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement | WOLF-123 | Mdctl missing reference
- Loading branch information
Showing
11 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export class Environment { | ||
|
||
constructor(input: string) | ||
url: string | ||
|
||
} | ||
|
||
export class Client { | ||
|
||
environment: Environment | ||
|
||
constructor(params: { | ||
environment: | ||
| { | ||
endpoint: string | ||
env: string | ||
} | ||
| string | ||
credentials: { | ||
type?: string | ||
token?: string | ||
apiKey?: string | ||
} | ||
sessions: boolean | ||
requestOptions: { | ||
strictSSL: boolean | ||
} | ||
}) | ||
|
||
put<R = unknown, P = unknown>(url: string, params: P): Promise<R> | ||
delete<R = unknown>(url: string): Promise<R> | ||
post<R = unknown, P = unknown, P2 = unknown>( | ||
url: string, | ||
params: P, | ||
param?: P2 | ||
): Promise<R> | ||
|
||
get<R = unknown, P = unknown>(url: string, params?: P): Promise<R> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Client } from '../mdctl-api' | ||
|
||
export class StudyManifestTools { | ||
|
||
constructor(client: Client, options: Object) | ||
getStudyManifest(manifest?: string): Promise<{ | ||
manifest: unknown | ||
removedEntities: unknown | ||
mappingScript: unknown | ||
ingestTransform: string | ||
}> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './values' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export function pathTo( | ||
object: object, | ||
propertyPath: string, | ||
value: unknown | ||
): object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export class Config { | ||
|
||
constructor() | ||
static get global(): Config | ||
get credentials(): unknown | ||
get client(): { | ||
environment: | ||
| { | ||
endpoint: string | ||
env: string | ||
} | ||
| string | ||
credentials: { | ||
type: string | ||
token: string | ||
} | ||
sessions: boolean | ||
requestOptions: { | ||
strictSSL: boolean | ||
} | ||
} | ||
|
||
get environment(): unknown | ||
|
||
} | ||
|
||
export class Fault extends Error { | ||
|
||
errCode: string | ||
code: string | ||
statusCode: number | ||
name: string | ||
reason: unknown | ||
path: string | ||
resource: string | ||
trace: unknown | ||
index: unknown | ||
message: string | ||
|
||
static from(err: unknown, forceError?: boolean): Fault | null | ||
|
||
static create(code: string, message: string, statusCode: number): Fault | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
declare class ExportFileTreeAdapter {} | ||
|
||
export = ExportFileTreeAdapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters