UNPKG

822 BTypeScriptView Raw
1import type { DefaultElements, MakeRequest, MetaSysProps } from '../common-types';
2export type PreviewApiKeyProps = {
3 sys: MetaSysProps;
4 name: string;
5 description: string;
6 accessToken: string;
7};
8export interface PreviewApiKey extends PreviewApiKeyProps, DefaultElements<PreviewApiKeyProps> {
9}
10/**
11 * @private
12 * @param makeRequest - function to make requests via an adapter
13 * @param data - Raw api key data
14 * @return Wrapped preview api key data
15 */
16export declare function wrapPreviewApiKey(_makeRequest: MakeRequest, data: PreviewApiKeyProps): PreviewApiKey;
17/**
18 * @private
19 */
20export declare const wrapPreviewApiKeyCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<PreviewApiKeyProps>) => import("../common-types").Collection<PreviewApiKey, PreviewApiKeyProps>;