Skip to content

Commit

Permalink
Improvement | WOLF-123 | Mdctl missing reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lsvalina committed Feb 6, 2023
1 parent aa5029d commit e55d7b9
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 0 deletions.
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, 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>

}
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.68",
"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.68",
"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.68",
"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.68",
"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.68",
"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

0 comments on commit e55d7b9

Please sign in to comment.