2022-08-11 12:48:58 +02:00
|
|
|
/********************************************
|
|
|
|
* This file contains structures which are *
|
|
|
|
* internal to the server and don't need to *
|
|
|
|
* be exposed for use by other services. *
|
|
|
|
********************************************/
|
2021-06-25 14:46:02 +02:00
|
|
|
|
2021-06-24 19:16:48 +02:00
|
|
|
export interface QueryOptions {
|
2021-06-25 19:34:21 +02:00
|
|
|
disableReturning?: boolean
|
2021-06-24 19:17:26 +02:00
|
|
|
}
|
2021-12-13 14:50:15 +01:00
|
|
|
|
2021-12-14 10:52:16 +01:00
|
|
|
export enum AuthType {
|
|
|
|
BASIC = "basic",
|
|
|
|
BEARER = "bearer",
|
|
|
|
}
|
|
|
|
|
|
|
|
interface AuthConfig {
|
|
|
|
_id: string
|
|
|
|
name: string
|
|
|
|
type: AuthType
|
|
|
|
config: BasicAuthConfig | BearerAuthConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BasicAuthConfig {
|
|
|
|
username: string
|
|
|
|
password: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BearerAuthConfig {
|
|
|
|
token: string
|
|
|
|
}
|
|
|
|
|
2021-12-13 14:50:15 +01:00
|
|
|
export interface RestConfig {
|
|
|
|
url: string
|
|
|
|
defaultHeaders: {
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2021-12-14 10:52:16 +01:00
|
|
|
authConfigs: AuthConfig[]
|
2022-01-04 19:23:45 +01:00
|
|
|
staticVariables: {
|
|
|
|
[key: string]: string
|
|
|
|
}
|
|
|
|
dynamicVariables: [
|
|
|
|
{
|
|
|
|
name: string
|
|
|
|
queryId: string
|
|
|
|
value: string
|
|
|
|
}
|
|
|
|
]
|
2021-12-13 14:50:15 +01:00
|
|
|
}
|