Skip to content

Commit 5e5753a

Browse files
committed
update modify space type
1 parent d066122 commit 5e5753a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/models/spaces/space.models.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ import { SharedModels } from '../shared/shared-models';
44
export namespace SpaceModels {
55
export type ModifySpaceOperation = 'replace';
66

7-
export interface IModifySpaceData {
8-
op: ModifySpaceOperation;
9-
property_name: string;
7+
type ModifySpaceProperties = {
8+
property_name: "name" | "codename";
109
value: string;
10+
} | {
11+
property_name: "web_spotlight_root_item";
12+
value: SharedContracts.IReferenceObjectContract;
1113
}
14+
| {
15+
property_name: "collections";
16+
value: SharedContracts.IReferenceObjectContract[];
17+
}
18+
19+
export type IModifySpaceData = { op: ModifySpaceOperation } & ModifySpaceProperties;
1220

1321
export interface IAddSpaceData {
1422
name: string;

0 commit comments

Comments
 (0)