We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d066122 commit 5e5753aCopy full SHA for 5e5753a
lib/models/spaces/space.models.ts
@@ -4,11 +4,19 @@ import { SharedModels } from '../shared/shared-models';
4
export namespace SpaceModels {
5
export type ModifySpaceOperation = 'replace';
6
7
- export interface IModifySpaceData {
8
- op: ModifySpaceOperation;
9
- property_name: string;
+ type ModifySpaceProperties = {
+ property_name: "name" | "codename";
10
value: string;
+ } | {
11
+ property_name: "web_spotlight_root_item";
12
+ value: SharedContracts.IReferenceObjectContract;
13
}
14
+ | {
15
+ property_name: "collections";
16
+ value: SharedContracts.IReferenceObjectContract[];
17
+ }
18
+
19
+ export type IModifySpaceData = { op: ModifySpaceOperation } & ModifySpaceProperties;
20
21
export interface IAddSpaceData {
22
name: string;
0 commit comments