Type aliases
ApiKeyProps
Type declaration
-
accessToken: string
-
Optional description?: undefined | string
-
-
name: string
-
Optional policies?: { action: string; effect: string }[]
-
-
AppLocation
AppLocation: "app-config" | "entry-sidebar" | "entry-editor" | "dialog" | "page"
ClientParams
Client
Params: { accessToken: string; application?: undefined | string; feature?: undefined | string; headers?: undefined | {}; host?: undefined | string; hostUpload?: undefined | string; httpAgent?: httpAgent; httpsAgent?: httpsAgent; insecure?: undefined | false | true; integration?: undefined | string; logHandler?: undefined | ((level: string, data: Error | string) => void); maxContentLength?: undefined | number; proxy?: AxiosProxyConfig; requestLogger?: undefined | ((config: AxiosRequestConfig) => void); responseLogger?: undefined | ((response: AxiosResponse) => void); retryLimit?: undefined | number; retryOnError?: undefined | false | true; timeout?: undefined | number }
Type declaration
-
accessToken: string
-
Optional application?: undefined | string
-
Optional feature?: undefined | string
-
Optional headers?: undefined | {}
-
Optional host?: undefined | string
-
Optional hostUpload?: undefined | string
-
Optional httpAgent?: httpAgent
-
Optional httpsAgent?: httpsAgent
-
Optional insecure?: undefined | false | true
-
Optional integration?: undefined | string
-
Optional logHandler?: undefined | ((level: string, data: Error | string) => void)
-
Optional maxContentLength?: undefined | number
-
Optional proxy?: AxiosProxyConfig
-
Optional requestLogger?: undefined | ((config: AxiosRequestConfig) => void)
-
Optional responseLogger?: undefined | ((response: AxiosResponse) => void)
-
Optional retryLimit?: undefined | number
-
Optional retryOnError?: undefined | false | true
-
Optional timeout?: undefined | number
CreateApiKeyProps
Create
ApiKeyProps: Pick<ApiKeyProps, "name" | "environments" | "description">
Field
Field: "Symbol" | "Text" | "RichText" | "Integer" | "Number" | "Date" | "Location" | "Boolean" | "Object"
LinkType
LinkType: "Asset" | "Entry"
UsageMetricEnum
UsageMetricEnum: "cda" | "cma" | "cpa" | "gql"
UsageProps
Usage
Props: { dateRange: { endAt: string; startAt: string }; metric: UsageMetricEnum; sys: UsageSysProps; unitOfMeasure: string; usage: number; usagePerDay: {} }
Type declaration
-
dateRange: { endAt: string; startAt: string }
-
endAt: string
-
startAt: string
-
-
-
unitOfMeasure: string
-
usage: number
-
usagePerDay: {}
UserProps
User
Props: { activated: boolean; avatarUrl: string; confirmed: boolean; email: string; firstName: string; lastName: string; signInCount: number; sys: MetaSysProps }
Type declaration
-
activated: boolean
-
avatarUrl: string
-
confirmed: boolean
-
email: string
-
firstName: string
-
lastName: string
-
signInCount: number
-
WebhookProps
Webhook
Props: { headers: {}; httpBasicPassword: string; httpBasicUsername: string; name: string; sys: MetaSysProps; topics: string[]; transformation?: undefined | { body?: undefined | object; contentType?: undefined | string; includeContentLength?: undefined | false | true; method?: undefined | string }; url: string }
Type declaration
-
headers: {}
-
httpBasicPassword: string
-
httpBasicUsername: string
-
name: string
-
-
topics: string[]
-
Optional transformation?: undefined | { body?: undefined | object; contentType?: undefined | string; includeContentLength?: undefined | false | true; method?: undefined | string }
-
url: string
Locations where the app can be installed