1 | import type { ContentfulEnvironmentAPI } from '../create-environment-api';
|
2 | import type { DefaultElements, SysLink, BasicMetaSysProps, MakeRequest } from '../common-types';
|
3 | type EnvironmentMetaSys = BasicMetaSysProps & {
|
4 | status: SysLink;
|
5 | space: SysLink;
|
6 | aliases?: Array<SysLink>;
|
7 | aliasedEnvironment?: SysLink;
|
8 | };
|
9 | export type EnvironmentProps = {
|
10 | |
11 |
|
12 |
|
13 | sys: EnvironmentMetaSys;
|
14 | |
15 |
|
16 |
|
17 | name: string;
|
18 | };
|
19 | export type CreateEnvironmentProps = Partial<Omit<EnvironmentProps, 'sys'>>;
|
20 | export type Environment = ContentfulEnvironmentAPI & EnvironmentProps & DefaultElements<EnvironmentProps>;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function wrapEnvironment(makeRequest: MakeRequest, data: EnvironmentProps): Environment;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare const wrapEnvironmentCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<EnvironmentProps>) => import("../common-types").Collection<Environment, EnvironmentProps>;
|
38 | export {};
|