2022-08-11 22:48:58 +12: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-26 00:46:02 +12:00
|
|
|
|
2021-06-25 05:16:48 +12:00
|
|
|
export interface QueryOptions {
|
2021-06-26 05:34:21 +12:00
|
|
|
disableReturning?: boolean
|
2021-06-25 05:17:26 +12:00
|
|
|
}
|
2021-12-14 02:50:15 +13:00
|
|
|
|
2021-12-14 22:52:16 +13: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-14 02:50:15 +13:00
|
|
|
export interface RestConfig {
|
|
|
|
url: string
|
2022-09-10 09:14:28 +12:00
|
|
|
rejectUnauthorized: boolean
|
2021-12-14 02:50:15 +13:00
|
|
|
defaultHeaders: {
|
|
|
|
[key: string]: any
|
|
|
|
}
|
2022-09-12 21:00:05 +12:00
|
|
|
legacyHttpParser: boolean
|
2021-12-14 22:52:16 +13:00
|
|
|
authConfigs: AuthConfig[]
|
2022-01-05 07:23:45 +13:00
|
|
|
staticVariables: {
|
|
|
|
[key: string]: string
|
|
|
|
}
|
|
|
|
dynamicVariables: [
|
|
|
|
{
|
|
|
|
name: string
|
|
|
|
queryId: string
|
|
|
|
value: string
|
|
|
|
}
|
|
|
|
]
|
2021-12-14 02:50:15 +13:00
|
|
|
}
|