Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions packages/mdctl-api/index.d.ts
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, O = unknown>(url: string, options?: O): Promise<R>
delete<R = unknown, O = unknown>(url: string, options?: O): Promise<R>
post<R = unknown, B = unknown, O = unknown>(
url: string,
body: B,
options?: O
): Promise<R>
get<R = unknown, O = unknown>(url: string, options?: O): Promise<R>
patch<R = unknown, O = unknown>(url: string, options?: O): Promise<R>

}
1 change: 1 addition & 0 deletions packages/mdctl-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@medable/mdctl-api",
"version": "1.0.69",
"description": "Medable Developer Client Tools :: API",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Medable/mdctl.git"
Expand Down
13 changes: 13 additions & 0 deletions packages/mdctl-axon-tools/index.d.ts
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
}>

}
1 change: 1 addition & 0 deletions packages/mdctl-axon-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@medable/mdctl-axon-tools",
"version": "1.0.69",
"description": "Medable Axon Tools :: Tools For interaction with Axon orgs",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Medable/mdctl.git"
Expand Down
1 change: 1 addition & 0 deletions packages/mdctl-core-utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './values'
1 change: 1 addition & 0 deletions packages/mdctl-core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@medable/mdctl-core-utils",
"version": "1.0.69",
"description": "Medable Developer Client Tools :: Utils",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Medable/mdctl.git"
Expand Down
5 changes: 5 additions & 0 deletions packages/mdctl-core-utils/values.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export function pathTo(
object: object,
propertyPath: string,
value: unknown
): object
44 changes: 44 additions & 0 deletions packages/mdctl-core/index.d.ts
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

}
1 change: 1 addition & 0 deletions packages/mdctl-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@medable/mdctl-core",
"version": "1.0.69",
"description": "Medable Developer Client Tools :: Core",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Medable/mdctl.git"
Expand Down
4 changes: 4 additions & 0 deletions packages/mdctl-export-adapter-tree/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

declare class ExportFileTreeAdapter {}

export = ExportFileTreeAdapter
1 change: 1 addition & 0 deletions packages/mdctl-export-adapter-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@medable/mdctl-export-adapter-tree",
"version": "1.0.69",
"description": "Medable Developer Client Tools :: Export Tree Adapter",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Medable/mdctl.git"
Expand Down