Skip to content

Commit

Permalink
Merge pull request #162 from kontent-ai/update_modify_space_type
Browse files Browse the repository at this point in the history
feat: Improves modify space type
  • Loading branch information
Enngage authored Jan 29, 2025
2 parents 5eb7fa0 + 5e5753a commit 1b0007c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/models/spaces/space.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ import { SharedModels } from '../shared/shared-models';
export namespace SpaceModels {
export type ModifySpaceOperation = 'replace';

export interface IModifySpaceData {
op: ModifySpaceOperation;
property_name: string;
type ModifySpaceProperties = {
property_name: "name" | "codename";
value: string;
} | {
property_name: "web_spotlight_root_item";
value: SharedContracts.IReferenceObjectContract;
}
| {
property_name: "collections";
value: SharedContracts.IReferenceObjectContract[];
}

export type IModifySpaceData = { op: ModifySpaceOperation } & ModifySpaceProperties;

export interface IAddSpaceData {
name: string;
Expand Down

0 comments on commit 1b0007c

Please sign in to comment.