UNPKG

1 kBTypeScriptView Raw
1import type { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps } from '../common-types';
2export type SpaceMemberProps = {
3 sys: MetaSysProps;
4 /**
5 * User is an admin
6 */
7 admin: boolean;
8 /**
9 * Array of Role Links
10 */
11 roles: {
12 sys: MetaLinkProps;
13 }[];
14};
15export interface SpaceMember extends SpaceMemberProps, DefaultElements<SpaceMemberProps> {
16}
17/**
18 * @private
19 * @param makeRequest - function to make requests via an adapter
20 * @param data - Raw space member data
21 * @return Wrapped space member data
22 */
23export declare function wrapSpaceMember(_makeRequest: MakeRequest, data: SpaceMemberProps): SpaceMemberProps & {
24 toPlainObject(): SpaceMemberProps;
25};
26/**
27 * @private
28 */
29export declare const wrapSpaceMemberCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<SpaceMemberProps>) => import("../common-types").Collection<SpaceMemberProps & {
30 toPlainObject(): SpaceMemberProps;
31}, SpaceMemberProps>;