@bratislava/ginis-sdk 0.3.0 → 0.3.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/ginis.d.ts +41 -0
- package/package.json +1 -1
package/ginis.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ssl from './src/api/json/ssl'
|
|
2
|
+
import pod from './src/api/json/pod'
|
|
3
|
+
export type GinisConfig = {
|
|
4
|
+
username: string
|
|
5
|
+
password: string
|
|
6
|
+
urls: {
|
|
7
|
+
ude?: string
|
|
8
|
+
ssl?: string
|
|
9
|
+
pod?: string
|
|
10
|
+
}
|
|
11
|
+
debug?: boolean
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultConfig: {}
|
|
14
|
+
type _Ssl = typeof ssl
|
|
15
|
+
/**
|
|
16
|
+
* full SSL service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=SSL&language=cs-CZ&version=390
|
|
17
|
+
*/
|
|
18
|
+
export type Ssl = {
|
|
19
|
+
[P in keyof _Ssl]: OmitThisParameter<_Ssl[P]>
|
|
20
|
+
}
|
|
21
|
+
type _Pod = typeof pod
|
|
22
|
+
/**
|
|
23
|
+
* full POD service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=POD&language=cs-CZ&version=390
|
|
24
|
+
*/
|
|
25
|
+
export type Pod = {
|
|
26
|
+
[P in keyof _Pod]: OmitThisParameter<_Pod[P]>
|
|
27
|
+
}
|
|
28
|
+
export declare class Ginis {
|
|
29
|
+
config: GinisConfig
|
|
30
|
+
/**
|
|
31
|
+
* Exports functions of the api's with config and url values bound.
|
|
32
|
+
* See documentation of the api for request options.
|
|
33
|
+
* Inputs are typed objects, outputs unformatted xml.
|
|
34
|
+
*/
|
|
35
|
+
json: {
|
|
36
|
+
ssl: Ssl
|
|
37
|
+
pod: Pod
|
|
38
|
+
}
|
|
39
|
+
constructor(config: GinisConfig)
|
|
40
|
+
}
|
|
41
|
+
export {}
|
package/package.json
CHANGED