Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Add relations to site entry #1658

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/api/content-rest-api/docs/SiteEntry.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SiteEntry

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**entry** | [**Site**](Site.md) | | [default to null]


| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **entry** | [**Site**](Site.md) | | [default to null] |
| **relations** | [**SiteEntryRelations**]() | | [default to undefined] |
7 changes: 7 additions & 0 deletions src/api/content-rest-api/docs/SiteEntryRelations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SiteEntryRelations

**Properties**

| Name | Type |
|----------------|-----------------------------|
| **members** | [SiteMemberPaging](SiteMemberPaging.md) |
3 changes: 3 additions & 0 deletions src/api/content-rest-api/model/siteEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
*/

import { Site } from './site';
import { SiteEntryRelations } from './siteEntryRelations';

export class SiteEntry {
entry: Site;
relations?: SiteEntryRelations;

constructor(input?: Partial<SiteEntry>) {
if (input) {
Object.assign(this, input);
this.entry = input.entry ? new Site(input.entry) : undefined;
this.relations = input.relations ? new SiteEntryRelations(input.relations) : undefined;
}
}

Expand Down
30 changes: 30 additions & 0 deletions src/api/content-rest-api/model/siteEntryRelations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { SiteMemberPaging } from './siteMemberPaging';

export class SiteEntryRelations {
members: SiteMemberPaging;

constructor(input?: Partial<SiteEntryRelations>) {
if (input) {
Object.assign(this, input);
this.members = input.members ? new SiteMemberPaging(input.members) : undefined;
}
}

}