mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[PRODENG-211] integrate JS-API with monorepo (part 1) (#9081)
* integrate JS-API with monorepo * [ci:force] fix token issue [ci:force] migrate docs folder [ci:force] clean personal tokens * [ci:force] gha workflow support * [ci:force] npm publish target * fix js-api test linting * [ci:force] fix test linting, mocks, https scheme * [ci:force] fix https scheme * [ci:force] typescript mappings * [ci:force] update scripts * lint fixes * linting fixes * fix linting * [ci:force] linting fixes * linting fixes * [ci:force] remove js-api upstream and corresponding scripts * [ci:force] jsdoc fixes * fix jsdoc linting * [ci:force] jsdoc fixes * [ci:force] jsdoc fixes * jsdoc fixes * jsdoc fixes * jsdoc fixes * [ci:force] fix jsdoc * [ci:force] reduce code duplication * replace 'chai' expect with node.js assert * replace 'chai' expect with node.js assert * [ci:force] remove chai and chai-spies for js-api testing * [ci:force] cleanup and fix imports * [ci:force] fix linting * [ci:force] fix unit test * [ci:force] fix sonar linting findings * [ci:force] switch activiti api models to interfaces (-2.5% reduction of bundle) * [ci:force] switch activiti api models to interfaces * [ci:force] switch AGS api models to interfaces * [ci:force] switch AGS api models to interfaces * [ci:force] switch search api models to interfaces * [ci:force] switch content api models to interfaces where applicable
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class CategoryLinkBody {
|
||||
categoryId: string;
|
||||
|
||||
constructor(input?: Partial<CategoryLinkBody>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
}
|
25
lib/js-api/src/api/content-rest-api/model/actionBodyExec.ts
Normal file
25
lib/js-api/src/api/content-rest-api/model/actionBodyExec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface ActionBodyExec {
|
||||
actionDefinitionId: string;
|
||||
/**
|
||||
* The entity upon which to execute the action, typically a node ID or similar.
|
||||
*/
|
||||
targetId?: string;
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,46 @@
|
||||
/*!
|
||||
* @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 { ActionParameterDefinition } from './actionParameterDefinition';
|
||||
|
||||
export interface ActionDefinition {
|
||||
/**
|
||||
* Identifier of the action definition — used for example when executing an action
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* name of the action definition, e.g. \"move\"
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* title of the action definition, e.g. \"Move\"
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* describes the action definition, e.g. \"This will move the matched item to another space.\"
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* QNames of the types this action applies to
|
||||
*/
|
||||
applicableTypes: string[];
|
||||
/**
|
||||
* whether the basic action definition supports action tracking or not
|
||||
*/
|
||||
trackStatus: boolean;
|
||||
parameterDefinitions?: ActionParameterDefinition[];
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { ActionDefinition } from './actionDefinition';
|
||||
|
||||
export interface ActionDefinitionEntry {
|
||||
entry: ActionDefinition;
|
||||
}
|
@@ -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 { ActionDefinitionListList } from './actionDefinitionListList';
|
||||
|
||||
export class ActionDefinitionList {
|
||||
list?: ActionDefinitionListList;
|
||||
|
||||
constructor(input?: ActionDefinitionList) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new ActionDefinitionListList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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 { ActionDefinition } from './actionDefinition';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class ActionDefinitionListList {
|
||||
pagination?: Pagination;
|
||||
entries?: ActionDefinition[];
|
||||
|
||||
constructor(input?: Partial<ActionDefinitionListList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface ActionExecResult {
|
||||
/**
|
||||
* The unique identifier of the action pending execution
|
||||
*/
|
||||
id: string;
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { ActionExecResult } from './actionExecResult';
|
||||
|
||||
export interface ActionExecResultEntry {
|
||||
entry: ActionExecResult;
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface ActionParameterDefinition {
|
||||
name?: string;
|
||||
type?: string;
|
||||
multiValued?: boolean;
|
||||
mandatory?: boolean;
|
||||
displayLabel?: string;
|
||||
}
|
61
lib/js-api/src/api/content-rest-api/model/activity.ts
Normal file
61
lib/js-api/src/api/content-rest-api/model/activity.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/*!
|
||||
* @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 { DateAlfresco } from '../../content-custom-api';
|
||||
|
||||
/**
|
||||
* Activities describe any past activity in a site,
|
||||
* for example creating an item of content, commenting on a node,
|
||||
* liking an item of content.
|
||||
*/
|
||||
export class Activity {
|
||||
/**
|
||||
* The id of the person who performed the activity
|
||||
*/
|
||||
postPersonId: string;
|
||||
/**
|
||||
* The unique id of the activity
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* The unique id of the site on which the activity was performed
|
||||
*/
|
||||
siteId?: string;
|
||||
/**
|
||||
* The date time at which the activity was performed
|
||||
*/
|
||||
postedAt?: Date;
|
||||
/**
|
||||
* The feed on which this activity was posted
|
||||
*/
|
||||
feedPersonId: string;
|
||||
/**
|
||||
* An object summarizing the activity
|
||||
*/
|
||||
activitySummary?: { [key: string]: string };
|
||||
/**
|
||||
* The type of the activity posted
|
||||
*/
|
||||
activityType: string;
|
||||
|
||||
constructor(input?: Partial<Activity>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.postedAt = input.postedAt ? DateAlfresco.parseDate(input.postedAt) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/activityEntry.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/activityEntry.ts
Normal file
@@ -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 { Activity } from './activity';
|
||||
|
||||
export class ActivityEntry {
|
||||
entry: Activity;
|
||||
|
||||
constructor(input?: Partial<ActivityEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new Activity(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/activityPaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/activityPaging.ts
Normal file
@@ -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 { ActivityPagingList } from './activityPagingList';
|
||||
|
||||
export class ActivityPaging {
|
||||
list?: ActivityPagingList;
|
||||
|
||||
constructor(input?: Partial<ActivityPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new ActivityPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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 { ActivityEntry } from './activityEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class ActivityPagingList {
|
||||
pagination: Pagination;
|
||||
entries: ActivityEntry[];
|
||||
|
||||
constructor(input?: Partial<ActivityPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new ActivityEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
21
lib/js-api/src/api/content-rest-api/model/association.ts
Normal file
21
lib/js-api/src/api/content-rest-api/model/association.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Association {
|
||||
targetId: string;
|
||||
assocType: string;
|
||||
}
|
27
lib/js-api/src/api/content-rest-api/model/associationBody.ts
Normal file
27
lib/js-api/src/api/content-rest-api/model/associationBody.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class AssociationBody {
|
||||
targetId: string;
|
||||
assocType: string;
|
||||
|
||||
constructor(input?: Partial<AssociationBody>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { Association } from './association';
|
||||
|
||||
export interface AssociationEntry {
|
||||
entry: Association;
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/associationInfo.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/associationInfo.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface AssociationInfo {
|
||||
assocType: string;
|
||||
}
|
24
lib/js-api/src/api/content-rest-api/model/auditApp.ts
Normal file
24
lib/js-api/src/api/content-rest-api/model/auditApp.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface AuditApp {
|
||||
id: string;
|
||||
name?: string;
|
||||
isEnabled?: boolean;
|
||||
maxEntryId?: number;
|
||||
minEntryId?: number;
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/auditAppEntry.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/auditAppEntry.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { AuditApp } from './auditApp';
|
||||
|
||||
export interface AuditAppEntry {
|
||||
entry?: AuditApp;
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/auditAppPaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/auditAppPaging.ts
Normal file
@@ -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 { AuditAppPagingList } from './auditAppPagingList';
|
||||
|
||||
export class AuditAppPaging {
|
||||
list?: AuditAppPagingList;
|
||||
|
||||
constructor(input?: Partial<AuditAppPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new AuditAppPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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 { AuditAppEntry } from './auditAppEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class AuditAppPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: AuditAppEntry[];
|
||||
|
||||
constructor(input?: Partial<AuditAppPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/auditBodyUpdate.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/auditBodyUpdate.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface AuditBodyUpdate {
|
||||
isEnabled?: boolean;
|
||||
}
|
36
lib/js-api/src/api/content-rest-api/model/auditEntry.ts
Normal file
36
lib/js-api/src/api/content-rest-api/model/auditEntry.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/*!
|
||||
* @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 { DateAlfresco } from '../../content-custom-api';
|
||||
import { UserInfo } from './userInfo';
|
||||
|
||||
export class AuditEntry {
|
||||
id: string;
|
||||
auditApplicationId: string;
|
||||
createdByUser: UserInfo;
|
||||
createdAt: Date;
|
||||
values?: any;
|
||||
|
||||
constructor(input?: Partial<AuditEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/auditEntryEntry.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/auditEntryEntry.ts
Normal file
@@ -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 { AuditEntry } from './auditEntry';
|
||||
|
||||
export class AuditEntryEntry {
|
||||
entry?: AuditEntry;
|
||||
|
||||
constructor(input?: Partial<AuditEntryEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new AuditEntry(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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 { AuditEntryPagingList } from './auditEntryPagingList';
|
||||
|
||||
export class AuditEntryPaging {
|
||||
list?: AuditEntryPagingList;
|
||||
|
||||
constructor(input?: Partial<AuditEntryPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new AuditEntryPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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 { AuditEntryEntry } from './auditEntryEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class AuditEntryPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: AuditEntryEntry[];
|
||||
|
||||
constructor(input?: Partial<AuditEntryPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new AuditEntryEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/capabilities.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/capabilities.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Capabilities {
|
||||
isAdmin?: boolean;
|
||||
isGuest?: boolean;
|
||||
isMutable?: boolean;
|
||||
}
|
31
lib/js-api/src/api/content-rest-api/model/category.ts
Normal file
31
lib/js-api/src/api/content-rest-api/model/category.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class Category {
|
||||
id: string;
|
||||
name: string;
|
||||
parentId?: string;
|
||||
hasChildren?: boolean;
|
||||
count?: number;
|
||||
path?: string;
|
||||
|
||||
constructor(input?: Partial<Category>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/categoryBody.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/categoryBody.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface CategoryBody {
|
||||
name: string;
|
||||
}
|
29
lib/js-api/src/api/content-rest-api/model/categoryEntry.ts
Normal file
29
lib/js-api/src/api/content-rest-api/model/categoryEntry.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @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 { Category } from './category';
|
||||
|
||||
export class CategoryEntry {
|
||||
entry: Category;
|
||||
|
||||
constructor(input?: Partial<CategoryEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new Category(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
29
lib/js-api/src/api/content-rest-api/model/categoryPaging.ts
Normal file
29
lib/js-api/src/api/content-rest-api/model/categoryPaging.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @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 { CategoryPagingList } from './categoryPagingList';
|
||||
|
||||
export class CategoryPaging {
|
||||
list?: CategoryPagingList;
|
||||
|
||||
constructor(input?: Partial<CategoryPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new CategoryPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,34 @@
|
||||
/*!
|
||||
* @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 { Pagination } from './pagination';
|
||||
import { CategoryEntry } from './categoryEntry';
|
||||
|
||||
export class CategoryPagingList {
|
||||
pagination: Pagination;
|
||||
entries: CategoryEntry[];
|
||||
|
||||
constructor(input?: Partial<CategoryPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new CategoryEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class ChildAssociation {
|
||||
childId: string;
|
||||
assocType: string;
|
||||
|
||||
constructor(input?: Partial<ChildAssociation>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class ChildAssociationBody {
|
||||
childId: string;
|
||||
assocType: string;
|
||||
|
||||
constructor(input?: Partial<ChildAssociationBody>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
}
|
@@ -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 { ChildAssociation } from './childAssociation';
|
||||
|
||||
export class ChildAssociationEntry {
|
||||
entry: ChildAssociation;
|
||||
|
||||
constructor(input?: Partial<ChildAssociationEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new ChildAssociation(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class ChildAssociationInfo {
|
||||
assocType: string;
|
||||
isPrimary: boolean;
|
||||
|
||||
constructor(input?: Partial<ChildAssociationInfo>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/clientBody.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/clientBody.ts
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
export class ClientBody {
|
||||
/**
|
||||
* the client name
|
||||
*/
|
||||
client: string;
|
||||
|
||||
constructor(input?: Partial<ClientBody>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
43
lib/js-api/src/api/content-rest-api/model/comment.ts
Normal file
43
lib/js-api/src/api/content-rest-api/model/comment.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/*!
|
||||
* @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 { DateAlfresco } from '../../content-custom-api';
|
||||
import { Person } from './person';
|
||||
|
||||
export class Comment {
|
||||
id: string;
|
||||
title: string;
|
||||
content: string;
|
||||
createdBy: Person;
|
||||
createdAt: Date;
|
||||
edited: boolean;
|
||||
modifiedBy: Person;
|
||||
modifiedAt: Date;
|
||||
canEdit: boolean;
|
||||
canDelete: boolean;
|
||||
|
||||
constructor(input?: Partial<Comment>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.createdBy = input.createdBy ? new Person(input.createdBy) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
this.modifiedBy = input.modifiedBy ? new Person(input.modifiedBy) : undefined;
|
||||
this.modifiedAt = input.modifiedAt ? DateAlfresco.parseDate(input.modifiedAt) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/commentBody.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/commentBody.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface CommentBody {
|
||||
content: string;
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/commentEntry.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/commentEntry.ts
Normal file
@@ -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 { Comment } from './comment';
|
||||
|
||||
export class CommentEntry {
|
||||
entry: Comment;
|
||||
|
||||
constructor(input?: Partial<CommentEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new Comment(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/commentPaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/commentPaging.ts
Normal file
@@ -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 { CommentPagingList } from './commentPagingList';
|
||||
|
||||
export class CommentPaging {
|
||||
list?: CommentPagingList;
|
||||
|
||||
constructor(input?: Partial<CommentPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new CommentPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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 { CommentEntry } from './commentEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class CommentPagingList {
|
||||
pagination: Pagination;
|
||||
entries: CommentEntry[];
|
||||
|
||||
constructor(input?: Partial<CommentPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new CommentEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
27
lib/js-api/src/api/content-rest-api/model/company.ts
Normal file
27
lib/js-api/src/api/content-rest-api/model/company.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Company {
|
||||
organization?: string;
|
||||
address1?: string;
|
||||
address2?: string;
|
||||
address3?: string;
|
||||
postcode?: string;
|
||||
telephone?: string;
|
||||
fax?: string;
|
||||
email?: string;
|
||||
}
|
33
lib/js-api/src/api/content-rest-api/model/constraint.ts
Normal file
33
lib/js-api/src/api/content-rest-api/model/constraint.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Constraint {
|
||||
id: string;
|
||||
/**
|
||||
* the type of the constraint
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* the human-readable constraint title
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* the human-readable constraint description
|
||||
*/
|
||||
description?: string;
|
||||
parameters?: { [key: string]: any };
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/contentInfo.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/contentInfo.ts
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
export class ContentInfo {
|
||||
mimeType: string;
|
||||
mimeTypeName: string;
|
||||
sizeInBytes: number;
|
||||
encoding?: string;
|
||||
|
||||
constructor(input?: Partial<ContentInfo>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
25
lib/js-api/src/api/content-rest-api/model/definition.ts
Normal file
25
lib/js-api/src/api/content-rest-api/model/definition.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* @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 { Property } from './property';
|
||||
|
||||
export interface Definition {
|
||||
/**
|
||||
* List of property definitions effective for this node as the result of combining the type with all aspects.
|
||||
*/
|
||||
properties?: Property[];
|
||||
}
|
67
lib/js-api/src/api/content-rest-api/model/deletedNode.ts
Normal file
67
lib/js-api/src/api/content-rest-api/model/deletedNode.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
/*!
|
||||
* @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 { ContentInfo } from './contentInfo';
|
||||
import { DateAlfresco } from '../../content-custom-api';
|
||||
import { Definition } from './definition';
|
||||
import { PathInfo } from './pathInfo';
|
||||
import { PermissionsInfo } from './permissionsInfo';
|
||||
import { UserInfo } from './userInfo';
|
||||
|
||||
export class DeletedNode {
|
||||
id: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name: string;
|
||||
nodeType: string;
|
||||
isFolder: boolean;
|
||||
isFile: boolean;
|
||||
isLocked?: boolean;
|
||||
modifiedAt: Date;
|
||||
modifiedByUser: UserInfo;
|
||||
createdAt: Date;
|
||||
createdByUser: UserInfo;
|
||||
parentId?: string;
|
||||
isLink?: boolean;
|
||||
isFavorite?: boolean;
|
||||
content?: ContentInfo;
|
||||
aspectNames?: string[];
|
||||
properties?: any;
|
||||
allowableOperations?: string[];
|
||||
path?: PathInfo;
|
||||
permissions?: PermissionsInfo;
|
||||
definition?: Definition;
|
||||
archivedByUser: UserInfo;
|
||||
archivedAt: Date;
|
||||
|
||||
constructor(input?: Partial<DeletedNode>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.modifiedAt = input.modifiedAt ? DateAlfresco.parseDate(input.modifiedAt) : undefined;
|
||||
this.modifiedByUser = input.modifiedByUser ? new UserInfo(input.modifiedByUser) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined;
|
||||
this.content = input.content ? new ContentInfo(input.content) : undefined;
|
||||
this.path = input.path ? new PathInfo(input.path) : undefined;
|
||||
this.permissions = input.permissions ? new PermissionsInfo(input.permissions) : undefined;
|
||||
this.archivedByUser = input.archivedByUser ? new UserInfo(input.archivedByUser) : undefined;
|
||||
this.archivedAt = input.archivedAt ? DateAlfresco.parseDate(input.archivedAt) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface DeletedNodeBodyRestore {
|
||||
targetParentId?: string;
|
||||
assocType?: string;
|
||||
}
|
@@ -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 { DeletedNode } from './deletedNode';
|
||||
|
||||
export class DeletedNodeEntry {
|
||||
entry?: DeletedNode;
|
||||
|
||||
constructor(input?: Partial<DeletedNodeEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new DeletedNode(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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 { DeletedNodesPagingList } from './deletedNodesPagingList';
|
||||
|
||||
export class DeletedNodesPaging {
|
||||
list?: DeletedNodesPagingList;
|
||||
|
||||
constructor(input?: Partial<DeletedNodesPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new DeletedNodesPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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 { DeletedNodeEntry } from './deletedNodeEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class DeletedNodesPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: DeletedNodeEntry[];
|
||||
|
||||
constructor(input?: Partial<DeletedNodesPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new DeletedNodeEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
41
lib/js-api/src/api/content-rest-api/model/directAccessUrl.ts
Normal file
41
lib/js-api/src/api/content-rest-api/model/directAccessUrl.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/*!
|
||||
* @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 { DateAlfresco } from '../../content-custom-api';
|
||||
|
||||
export class DirectAccessUrl {
|
||||
/**
|
||||
* The direct access URL of a binary content
|
||||
*/
|
||||
contentUrl: string;
|
||||
/**
|
||||
* Whether or not the content downloads as an attachment
|
||||
*/
|
||||
attachment?: boolean;
|
||||
/**
|
||||
* The direct access URL would become invalid when the expiry date is reached
|
||||
*/
|
||||
expiryTime?: Date;
|
||||
|
||||
constructor(input?: Partial<DirectAccessUrl>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.expiryTime = input.expiryTime ? DateAlfresco.parseDate(input.expiryTime) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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 { DirectAccessUrl } from './directAccessUrl';
|
||||
|
||||
export class DirectAccessUrlEntry {
|
||||
entry: DirectAccessUrl;
|
||||
|
||||
constructor(input?: Partial<DirectAccessUrlEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new DirectAccessUrl(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
43
lib/js-api/src/api/content-rest-api/model/download.ts
Normal file
43
lib/js-api/src/api/content-rest-api/model/download.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Download {
|
||||
/**
|
||||
* number of files added so far in the zip
|
||||
*/
|
||||
filesAdded?: number;
|
||||
/**
|
||||
* number of bytes added so far in the zip
|
||||
*/
|
||||
bytesAdded?: number;
|
||||
/**
|
||||
* the id of the download node
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* the total number of files to be added in the zip
|
||||
*/
|
||||
totalFiles?: number;
|
||||
/**
|
||||
* the total number of bytes to be added in the zip
|
||||
*/
|
||||
totalBytes?: number;
|
||||
/**
|
||||
* the current status of the download node creation
|
||||
*/
|
||||
status?: 'PENDING' | 'CANCELLED' | 'IN_PROGRESS' | 'DONE' | 'MAX_CONTENT_SIZE_EXCEEDED' | string;
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface DownloadBodyCreate {
|
||||
nodeIds: string[];
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/downloadEntry.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/downloadEntry.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { Download } from './download';
|
||||
|
||||
export interface DownloadEntry {
|
||||
entry: Download;
|
||||
}
|
25
lib/js-api/src/api/content-rest-api/model/errorError.ts
Normal file
25
lib/js-api/src/api/content-rest-api/model/errorError.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface ErrorError {
|
||||
errorKey?: string;
|
||||
statusCode: number;
|
||||
briefSummary: string;
|
||||
stackTrace: string;
|
||||
descriptionURL: string;
|
||||
logId?: string;
|
||||
}
|
45
lib/js-api/src/api/content-rest-api/model/favorite.ts
Normal file
45
lib/js-api/src/api/content-rest-api/model/favorite.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
/*!
|
||||
* @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 { DateAlfresco } from '../../content-custom-api';
|
||||
|
||||
/**
|
||||
* A favorite describes an Alfresco entity that a person has marked as a favorite.
|
||||
* The target can be a site, file or folder.
|
||||
*/
|
||||
export class Favorite {
|
||||
/**
|
||||
* The guid of the object that is a favorite.
|
||||
*/
|
||||
targetGuid: string;
|
||||
/**
|
||||
* The time the object was made a favorite.
|
||||
*/
|
||||
createdAt?: Date;
|
||||
target: any;
|
||||
/**
|
||||
* A subset of the target favorite properties, system properties and properties already available in the target are excluded.
|
||||
*/
|
||||
properties?: any;
|
||||
|
||||
constructor(input?: Partial<Favorite>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface FavoriteBodyCreate {
|
||||
target: any;
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/favoriteEntry.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/favoriteEntry.ts
Normal file
@@ -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 { Favorite } from './favorite';
|
||||
|
||||
export class FavoriteEntry {
|
||||
entry: Favorite;
|
||||
|
||||
constructor(input?: Partial<FavoriteEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new Favorite(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/favoritePaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/favoritePaging.ts
Normal file
@@ -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 { FavoritePagingList } from './favoritePagingList';
|
||||
|
||||
export class FavoritePaging {
|
||||
list?: FavoritePagingList;
|
||||
|
||||
constructor(input?: Partial<FavoritePaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new FavoritePagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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 { FavoriteEntry } from './favoriteEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class FavoritePagingList {
|
||||
pagination: Pagination;
|
||||
entries: FavoriteEntry[];
|
||||
|
||||
constructor(input?: Partial<FavoritePagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new FavoriteEntry(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/favoriteSite.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/favoriteSite.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface FavoriteSite {
|
||||
id: string;
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface FavoriteSiteBodyCreate {
|
||||
id: string;
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { FavoriteSite } from './favoriteSite';
|
||||
|
||||
export interface FavoriteSiteEntry {
|
||||
entry: FavoriteSite;
|
||||
}
|
24
lib/js-api/src/api/content-rest-api/model/group.ts
Normal file
24
lib/js-api/src/api/content-rest-api/model/group.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface Group {
|
||||
id?: string;
|
||||
displayName?: string;
|
||||
isRoot?: boolean;
|
||||
parentIds?: string[];
|
||||
zones?: string[];
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/groupBodyCreate.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/groupBodyCreate.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface GroupBodyCreate {
|
||||
id: string;
|
||||
displayName: string;
|
||||
parentIds?: string[];
|
||||
}
|
20
lib/js-api/src/api/content-rest-api/model/groupBodyUpdate.ts
Normal file
20
lib/js-api/src/api/content-rest-api/model/groupBodyUpdate.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface GroupBodyUpdate {
|
||||
displayName: string;
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/groupEntry.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/groupEntry.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { Group } from './group';
|
||||
|
||||
export interface GroupEntry {
|
||||
entry: Group;
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/groupMember.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/groupMember.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface GroupMember {
|
||||
id: string;
|
||||
displayName: string;
|
||||
memberType: 'GROUP' | 'PERSON' | string;
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { GroupMember } from './groupMember';
|
||||
|
||||
export interface GroupMemberEntry {
|
||||
entry: GroupMember;
|
||||
}
|
@@ -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 { GroupMemberPagingList } from './groupMemberPagingList';
|
||||
|
||||
export class GroupMemberPaging {
|
||||
list?: GroupMemberPagingList;
|
||||
|
||||
constructor(input?: Partial<GroupMemberPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new GroupMemberPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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 { GroupMemberEntry } from './groupMemberEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class GroupMemberPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: GroupMemberEntry[];
|
||||
|
||||
constructor(input?: Partial<GroupMemberPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class GroupMembershipBodyCreate {
|
||||
id: string;
|
||||
memberType: GroupMembershipBodyCreate.MemberTypeEnum | string;
|
||||
|
||||
constructor(input?: Partial<GroupMembershipBodyCreate>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
export namespace GroupMembershipBodyCreate {
|
||||
export type MemberTypeEnum = 'GROUP' | 'PERSON';
|
||||
export const MemberTypeEnum = {
|
||||
GROUP: 'GROUP' as MemberTypeEnum,
|
||||
PERSON: 'PERSON' as MemberTypeEnum
|
||||
};
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/groupPaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/groupPaging.ts
Normal file
@@ -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 { GroupPagingList } from './groupPagingList';
|
||||
|
||||
export class GroupPaging {
|
||||
list?: GroupPagingList;
|
||||
|
||||
constructor(input?: Partial<GroupPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new GroupPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
31
lib/js-api/src/api/content-rest-api/model/groupPagingList.ts
Normal file
31
lib/js-api/src/api/content-rest-api/model/groupPagingList.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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 { GroupEntry } from './groupEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class GroupPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: GroupEntry[];
|
||||
|
||||
constructor(input?: Partial<GroupPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
201
lib/js-api/src/api/content-rest-api/model/index.ts
Normal file
201
lib/js-api/src/api/content-rest-api/model/index.ts
Normal file
@@ -0,0 +1,201 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export * from './actionBodyExec';
|
||||
export * from './actionDefinition';
|
||||
export * from './actionDefinitionEntry';
|
||||
export * from './actionDefinitionList';
|
||||
export * from './actionDefinitionListList';
|
||||
export * from './actionExecResult';
|
||||
export * from './actionExecResultEntry';
|
||||
export * from './actionParameterDefinition';
|
||||
export * from './activity';
|
||||
export * from './activityEntry';
|
||||
export * from './activityPaging';
|
||||
export * from './activityPagingList';
|
||||
export * from './association';
|
||||
export * from './associationBody';
|
||||
export * from './associationEntry';
|
||||
export * from './associationInfo';
|
||||
export * from './auditApp';
|
||||
export * from './auditAppEntry';
|
||||
export * from './auditAppPaging';
|
||||
export * from './auditAppPagingList';
|
||||
export * from './auditBodyUpdate';
|
||||
export * from './auditEntry';
|
||||
export * from './auditEntryEntry';
|
||||
export * from './auditEntryPaging';
|
||||
export * from './auditEntryPagingList';
|
||||
export * from './capabilities';
|
||||
export * from './childAssociation';
|
||||
export * from './childAssociationBody';
|
||||
export * from './childAssociationEntry';
|
||||
export * from './childAssociationInfo';
|
||||
export * from './clientBody';
|
||||
export * from './category';
|
||||
export * from './categoryBody';
|
||||
export * from './categoryEntry';
|
||||
export * from './CategoryLinkBody';
|
||||
export * from './categoryPaging';
|
||||
export * from './categoryPagingList';
|
||||
export * from './comment';
|
||||
export * from './commentBody';
|
||||
export * from './commentEntry';
|
||||
export * from './commentPaging';
|
||||
export * from './commentPagingList';
|
||||
export * from './company';
|
||||
export * from './constraint';
|
||||
export * from './contentInfo';
|
||||
export * from './definition';
|
||||
export * from './deletedNodeBodyRestore';
|
||||
export * from './deletedNodeEntry';
|
||||
export * from './deletedNodesPaging';
|
||||
export * from './deletedNodesPagingList';
|
||||
export * from './directAccessUrl';
|
||||
export * from './directAccessUrlEntry';
|
||||
export * from './download';
|
||||
export * from './downloadBodyCreate';
|
||||
export * from './downloadEntry';
|
||||
export * from './errorError';
|
||||
export * from './favorite';
|
||||
export * from './favoriteBodyCreate';
|
||||
export * from './favoriteEntry';
|
||||
export * from './favoritePaging';
|
||||
export * from './favoritePagingList';
|
||||
export * from './favoriteSite';
|
||||
export * from './favoriteSiteBodyCreate';
|
||||
export * from './favoriteSiteEntry';
|
||||
export * from './group';
|
||||
export * from './groupBodyCreate';
|
||||
export * from './groupBodyUpdate';
|
||||
export * from './groupEntry';
|
||||
export * from './groupMember';
|
||||
export * from './groupMemberEntry';
|
||||
export * from './groupMemberPaging';
|
||||
export * from './groupMemberPagingList';
|
||||
export * from './groupMembershipBodyCreate';
|
||||
export * from './groupPaging';
|
||||
export * from './groupPagingList';
|
||||
export * from './modelError';
|
||||
export * from './networkQuota';
|
||||
export * from './node';
|
||||
export * from './nodeAssociationEntry';
|
||||
export * from './nodeAssociationPaging';
|
||||
export * from './nodeAssociationPagingList';
|
||||
export * from './nodeBodyCopy';
|
||||
export * from './nodeBodyCreate';
|
||||
export * from './nodeBodyCreateAssociation';
|
||||
export * from './nodeBodyLock';
|
||||
export * from './nodeBodyMove';
|
||||
export * from './nodeBodyUpdate';
|
||||
export * from './nodeChildAssociationEntry';
|
||||
export * from './nodeChildAssociationPaging';
|
||||
export * from './nodeChildAssociationPagingList';
|
||||
export * from './nodeEntry';
|
||||
export * from './nodePaging';
|
||||
export * from './nodePagingList';
|
||||
export * from './pagination';
|
||||
export * from './passwordResetBody';
|
||||
export * from './pathElement';
|
||||
export * from './pathInfo';
|
||||
export * from './permissionElement';
|
||||
export * from './permissionsBody';
|
||||
export * from './permissionsInfo';
|
||||
export * from './person';
|
||||
export * from './personBodyCreate';
|
||||
export * from './personBodyUpdate';
|
||||
export * from './personEntry';
|
||||
export * from './personNetwork';
|
||||
export * from './personNetworkEntry';
|
||||
export * from './personNetworkPaging';
|
||||
export * from './personNetworkPagingList';
|
||||
export * from './personPaging';
|
||||
export * from './personPagingList';
|
||||
export * from './preference';
|
||||
export * from './preferenceEntry';
|
||||
export * from './preferencePaging';
|
||||
export * from './preferencePagingList';
|
||||
export * from './probeEntry';
|
||||
export * from './probeEntryEntry';
|
||||
export * from './property';
|
||||
export * from './rating';
|
||||
export * from './ratingAggregate';
|
||||
export * from './ratingBody';
|
||||
export * from './ratingEntry';
|
||||
export * from './ratingPaging';
|
||||
export * from './ratingPagingList';
|
||||
export * from './rendition';
|
||||
export * from './renditionBodyCreate';
|
||||
export * from './renditionEntry';
|
||||
export * from './renditionPaging';
|
||||
export * from './renditionPagingList';
|
||||
export * from './revertBody';
|
||||
export * from './sharedLink';
|
||||
export * from './sharedLinkBodyCreate';
|
||||
export * from './sharedLinkBodyEmail';
|
||||
export * from './sharedLinkEntry';
|
||||
export * from './sharedLinkPaging';
|
||||
export * from './sharedLinkPagingList';
|
||||
export * from './site';
|
||||
export * from './siteBodyCreate';
|
||||
export * from './siteBodyUpdate';
|
||||
export * from './siteContainer';
|
||||
export * from './siteContainerEntry';
|
||||
export * from './siteContainerPaging';
|
||||
export * from './siteContainerPagingList';
|
||||
export * from './siteEntry';
|
||||
export * from './siteMember';
|
||||
export * from './siteMemberEntry';
|
||||
export * from './siteMemberPaging';
|
||||
export * from './siteMemberPagingList';
|
||||
export * from './siteGroup';
|
||||
export * from './siteGroupEntry';
|
||||
export * from './siteGroupPaging';
|
||||
export * from './siteGroupPagingList';
|
||||
export * from './siteMembershipApprovalBody';
|
||||
export * from './siteMembershipBodyCreate';
|
||||
export * from './siteMembershipBodyUpdate';
|
||||
export * from './siteMembershipRejectionBody';
|
||||
export * from './siteMembershipRequest';
|
||||
export * from './siteMembershipRequestBodyCreate';
|
||||
export * from './siteMembershipRequestBodyUpdate';
|
||||
export * from './siteMembershipRequestEntry';
|
||||
export * from './siteMembershipRequestPaging';
|
||||
export * from './siteMembershipRequestPagingList';
|
||||
export * from './siteMembershipRequestWithPerson';
|
||||
export * from './siteMembershipRequestWithPersonEntry';
|
||||
export * from './siteMembershipRequestWithPersonPaging';
|
||||
export * from './siteMembershipRequestWithPersonPagingList';
|
||||
export * from './sitePaging';
|
||||
export * from './sitePagingList';
|
||||
export * from './siteRole';
|
||||
export * from './siteRoleEntry';
|
||||
export * from './siteRolePaging';
|
||||
export * from './siteRolePagingList';
|
||||
export * from './tag';
|
||||
export * from './tagBody';
|
||||
export * from './tagEntry';
|
||||
export * from './tagPaging';
|
||||
export * from './tagPagingList';
|
||||
export * from './userInfo';
|
||||
export * from './version';
|
||||
export * from './versionEntry';
|
||||
export * from './versionPaging';
|
||||
export * from './versionPagingList';
|
||||
export * from './deletedNode';
|
||||
export * from './nodeAssociation';
|
||||
export * from './nodeChildAssociation';
|
22
lib/js-api/src/api/content-rest-api/model/modelError.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/modelError.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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 { ErrorError } from './errorError';
|
||||
|
||||
export interface ModelError {
|
||||
error?: ErrorError;
|
||||
}
|
27
lib/js-api/src/api/content-rest-api/model/networkQuota.ts
Normal file
27
lib/js-api/src/api/content-rest-api/model/networkQuota.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Limits and usage of each quota. A network will have quotas for File space,
|
||||
* the number of sites in the network, the number of people in the network,
|
||||
* and the number of network administrators
|
||||
*/
|
||||
export interface NetworkQuota {
|
||||
id: string;
|
||||
limit: number;
|
||||
usage: number;
|
||||
}
|
63
lib/js-api/src/api/content-rest-api/model/node.ts
Normal file
63
lib/js-api/src/api/content-rest-api/model/node.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
/*!
|
||||
* @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 { ContentInfo } from './contentInfo';
|
||||
import { DateAlfresco } from '../../content-custom-api';
|
||||
import { Definition } from './definition';
|
||||
import { PathInfo } from './pathInfo';
|
||||
import { PermissionsInfo } from './permissionsInfo';
|
||||
import { UserInfo } from './userInfo';
|
||||
|
||||
export class Node {
|
||||
id: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name: string;
|
||||
nodeType: string;
|
||||
isFolder: boolean;
|
||||
isFile: boolean;
|
||||
isLocked?: boolean;
|
||||
modifiedAt: Date;
|
||||
modifiedByUser: UserInfo;
|
||||
createdAt: Date;
|
||||
createdByUser: UserInfo;
|
||||
parentId?: string;
|
||||
isLink?: boolean;
|
||||
isFavorite?: boolean;
|
||||
content?: ContentInfo;
|
||||
aspectNames?: string[];
|
||||
properties?: any;
|
||||
allowableOperations?: string[];
|
||||
path?: PathInfo;
|
||||
permissions?: PermissionsInfo;
|
||||
definition?: Definition;
|
||||
|
||||
constructor(input?: Partial<Node>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.modifiedAt = input.modifiedAt ? DateAlfresco.parseDate(input.modifiedAt) : undefined;
|
||||
this.modifiedByUser = input.modifiedByUser ? new UserInfo(input.modifiedByUser) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined;
|
||||
this.content = input.content ? new ContentInfo(input.content) : undefined;
|
||||
this.path = input.path ? new PathInfo(input.path) : undefined;
|
||||
this.permissions = input.permissions ? new PermissionsInfo(input.permissions) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
65
lib/js-api/src/api/content-rest-api/model/nodeAssociation.ts
Normal file
65
lib/js-api/src/api/content-rest-api/model/nodeAssociation.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/*!
|
||||
* @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 { AssociationInfo } from './associationInfo';
|
||||
import { ContentInfo } from './contentInfo';
|
||||
import { DateAlfresco } from '../../content-custom-api';
|
||||
import { Definition } from './definition';
|
||||
import { PathInfo } from './pathInfo';
|
||||
import { PermissionsInfo } from './permissionsInfo';
|
||||
import { UserInfo } from './userInfo';
|
||||
|
||||
export class NodeAssociation {
|
||||
id: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name: string;
|
||||
nodeType: string;
|
||||
isFolder: boolean;
|
||||
isFile: boolean;
|
||||
isLocked?: boolean;
|
||||
modifiedAt: Date;
|
||||
modifiedByUser: UserInfo;
|
||||
createdAt: Date;
|
||||
createdByUser: UserInfo;
|
||||
parentId?: string;
|
||||
isLink?: boolean;
|
||||
isFavorite?: boolean;
|
||||
content?: ContentInfo;
|
||||
aspectNames?: string[];
|
||||
properties?: any;
|
||||
allowableOperations?: string[];
|
||||
path?: PathInfo;
|
||||
permissions?: PermissionsInfo;
|
||||
definition?: Definition;
|
||||
association?: AssociationInfo;
|
||||
|
||||
constructor(input?: Partial<NodeAssociation>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.modifiedAt = input.modifiedAt ? DateAlfresco.parseDate(input.modifiedAt) : undefined;
|
||||
this.modifiedByUser = input.modifiedByUser ? new UserInfo(input.modifiedByUser) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined;
|
||||
this.content = input.content ? new ContentInfo(input.content) : undefined;
|
||||
this.path = input.path ? new PathInfo(input.path) : undefined;
|
||||
this.permissions = input.permissions ? new PermissionsInfo(input.permissions) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -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 { NodeAssociation } from './nodeAssociation';
|
||||
|
||||
export class NodeAssociationEntry {
|
||||
entry: NodeAssociation;
|
||||
|
||||
constructor(input?: Partial<NodeAssociationEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new NodeAssociation(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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 { NodeAssociationPagingList } from './nodeAssociationPagingList';
|
||||
|
||||
export class NodeAssociationPaging {
|
||||
list?: NodeAssociationPagingList;
|
||||
|
||||
constructor(input?: Partial<NodeAssociationPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new NodeAssociationPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
/*!
|
||||
* @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 { Node } from './node';
|
||||
import { NodeAssociationEntry } from './nodeAssociationEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class NodeAssociationPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: NodeAssociationEntry[];
|
||||
source?: Node;
|
||||
|
||||
constructor(input?: Partial<NodeAssociationPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new NodeAssociationEntry(item));
|
||||
}
|
||||
this.source = input.source ? new Node(input.source) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
25
lib/js-api/src/api/content-rest-api/model/nodeBodyCopy.ts
Normal file
25
lib/js-api/src/api/content-rest-api/model/nodeBodyCopy.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface NodeBodyCopy {
|
||||
targetParentId: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
52
lib/js-api/src/api/content-rest-api/model/nodeBodyCreate.ts
Normal file
52
lib/js-api/src/api/content-rest-api/model/nodeBodyCreate.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/*!
|
||||
* @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 { AssociationBody } from './associationBody';
|
||||
import { ChildAssociationBody } from './childAssociationBody';
|
||||
import { Definition } from './definition';
|
||||
import { NodeBodyCreateAssociation } from './nodeBodyCreateAssociation';
|
||||
import { PermissionsBody } from './permissionsBody';
|
||||
|
||||
export class NodeBodyCreate {
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name: string;
|
||||
nodeType: string;
|
||||
aspectNames?: string[];
|
||||
properties?: any;
|
||||
permissions?: PermissionsBody;
|
||||
definition?: Definition;
|
||||
relativePath?: string;
|
||||
association?: NodeBodyCreateAssociation;
|
||||
secondaryChildren?: ChildAssociationBody[];
|
||||
targets?: AssociationBody[];
|
||||
|
||||
constructor(input?: Partial<NodeBodyCreate>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.permissions = input.permissions ? new PermissionsBody(input.permissions) : undefined;
|
||||
if (input.secondaryChildren) {
|
||||
this.secondaryChildren = input.secondaryChildren.map((item) => new ChildAssociationBody(item));
|
||||
}
|
||||
if (input.targets) {
|
||||
this.targets = input.targets.map((item) => new AssociationBody(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface NodeBodyCreateAssociation {
|
||||
assocType?: string;
|
||||
}
|
22
lib/js-api/src/api/content-rest-api/model/nodeBodyLock.ts
Normal file
22
lib/js-api/src/api/content-rest-api/model/nodeBodyLock.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface NodeBodyLock {
|
||||
timeToExpire?: number;
|
||||
type?: 'ALLOW_OWNER_CHANGES' | 'FULL' | string;
|
||||
lifetime?: 'PERSISTENT' | 'EPHEMERAL' | string;
|
||||
}
|
25
lib/js-api/src/api/content-rest-api/model/nodeBodyMove.ts
Normal file
25
lib/js-api/src/api/content-rest-api/model/nodeBodyMove.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface NodeBodyMove {
|
||||
targetParentId: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
37
lib/js-api/src/api/content-rest-api/model/nodeBodyUpdate.ts
Normal file
37
lib/js-api/src/api/content-rest-api/model/nodeBodyUpdate.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/*!
|
||||
* @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 { PermissionsBody } from './permissionsBody';
|
||||
|
||||
export class NodeBodyUpdate {
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name?: string;
|
||||
nodeType?: string;
|
||||
aspectNames?: string[];
|
||||
properties?: { [key: string]: string };
|
||||
permissions?: PermissionsBody;
|
||||
|
||||
constructor(input?: Partial<NodeBodyUpdate>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.permissions = input.permissions ? new PermissionsBody(input.permissions) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,66 @@
|
||||
/*!
|
||||
* @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 { ChildAssociationInfo } from './childAssociationInfo';
|
||||
import { ContentInfo } from './contentInfo';
|
||||
import { DateAlfresco } from '../../content-custom-api';
|
||||
import { Definition } from './definition';
|
||||
import { PathInfo } from './pathInfo';
|
||||
import { PermissionsInfo } from './permissionsInfo';
|
||||
import { UserInfo } from './userInfo';
|
||||
|
||||
export class NodeChildAssociation {
|
||||
id: string;
|
||||
/**
|
||||
* The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |.
|
||||
* The character . must not be used at the end of the name.
|
||||
*/
|
||||
name: string;
|
||||
nodeType: string;
|
||||
isFolder: boolean;
|
||||
isFile: boolean;
|
||||
isLocked?: boolean;
|
||||
modifiedAt: Date;
|
||||
modifiedByUser: UserInfo;
|
||||
createdAt: Date;
|
||||
createdByUser: UserInfo;
|
||||
parentId?: string;
|
||||
isLink?: boolean;
|
||||
isFavorite?: boolean;
|
||||
content?: ContentInfo;
|
||||
aspectNames?: string[];
|
||||
properties?: any;
|
||||
allowableOperations?: string[];
|
||||
path?: PathInfo;
|
||||
permissions?: PermissionsInfo;
|
||||
definition?: Definition;
|
||||
association?: ChildAssociationInfo;
|
||||
|
||||
constructor(input?: Partial<NodeChildAssociation>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.modifiedAt = input.modifiedAt ? DateAlfresco.parseDate(input.modifiedAt) : undefined;
|
||||
this.modifiedByUser = input.modifiedByUser ? new UserInfo(input.modifiedByUser) : undefined;
|
||||
this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined;
|
||||
this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined;
|
||||
this.content = input.content ? new ContentInfo(input.content) : undefined;
|
||||
this.path = input.path ? new PathInfo(input.path) : undefined;
|
||||
this.permissions = input.permissions ? new PermissionsInfo(input.permissions) : undefined;
|
||||
this.association = input.association ? new ChildAssociationInfo(input.association) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
@@ -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 { NodeChildAssociation } from './nodeChildAssociation';
|
||||
|
||||
export class NodeChildAssociationEntry {
|
||||
entry: NodeChildAssociation;
|
||||
|
||||
constructor(input?: Partial<NodeChildAssociationEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new NodeChildAssociation(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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 { NodeChildAssociationPagingList } from './nodeChildAssociationPagingList';
|
||||
|
||||
export class NodeChildAssociationPaging {
|
||||
list?: NodeChildAssociationPagingList;
|
||||
|
||||
constructor(input?: Partial<NodeChildAssociationPaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new NodeChildAssociationPagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
/*!
|
||||
* @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 { Node } from './node';
|
||||
import { NodeChildAssociationEntry } from './nodeChildAssociationEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class NodeChildAssociationPagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: NodeChildAssociationEntry[];
|
||||
source?: Node;
|
||||
|
||||
constructor(input?: Partial<NodeChildAssociationPagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new NodeChildAssociationEntry(item));
|
||||
}
|
||||
this.source = input.source ? new Node(input.source) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/nodeEntry.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/nodeEntry.ts
Normal file
@@ -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 { Node } from './node';
|
||||
|
||||
export class NodeEntry {
|
||||
entry: Node;
|
||||
|
||||
constructor(input?: Partial<NodeEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new Node(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
lib/js-api/src/api/content-rest-api/model/nodePaging.ts
Normal file
30
lib/js-api/src/api/content-rest-api/model/nodePaging.ts
Normal file
@@ -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 { NodePagingList } from './nodePagingList';
|
||||
|
||||
export class NodePaging {
|
||||
list?: NodePagingList;
|
||||
|
||||
constructor(input?: Partial<NodePaging>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.list = input.list ? new NodePagingList(input.list) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
38
lib/js-api/src/api/content-rest-api/model/nodePagingList.ts
Normal file
38
lib/js-api/src/api/content-rest-api/model/nodePagingList.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/*!
|
||||
* @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 { Node } from './node';
|
||||
import { NodeEntry } from './nodeEntry';
|
||||
import { Pagination } from './pagination';
|
||||
|
||||
export class NodePagingList {
|
||||
pagination?: Pagination;
|
||||
entries?: NodeEntry[];
|
||||
source?: Node;
|
||||
|
||||
constructor(input?: Partial<NodePagingList>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.pagination = input.pagination ? new Pagination(input.pagination) : undefined;
|
||||
if (input.entries) {
|
||||
this.entries = input.entries.map((item) => new NodeEntry(item));
|
||||
}
|
||||
this.source = input.source ? new Node(input.source) : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
52
lib/js-api/src/api/content-rest-api/model/pagination.ts
Normal file
52
lib/js-api/src/api/content-rest-api/model/pagination.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export class Pagination {
|
||||
/**
|
||||
* The number of objects in the entries array.
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* A boolean value which is **true** if there are more entities in the collection
|
||||
* beyond those in this response. A true value means a request with a larger value
|
||||
* for the **skipCount** or the **maxItems** parameter will return more entities.
|
||||
*/
|
||||
hasMoreItems?: boolean;
|
||||
/**
|
||||
* An integer describing the total number of entities in the collection.
|
||||
* The API might not be able to determine this value,
|
||||
* in which case this property will not be present.
|
||||
*/
|
||||
totalItems?: number;
|
||||
/**
|
||||
* An integer describing how many entities exist in the collection before
|
||||
* those included in this list. If there was no **skipCount** parameter then the
|
||||
* default value is 0.
|
||||
*/
|
||||
skipCount?: number;
|
||||
/**
|
||||
* The value of the **maxItems** parameter used to generate this list.
|
||||
* If there was no **maxItems** parameter then the default value is 100.
|
||||
*/
|
||||
maxItems?: number;
|
||||
|
||||
constructor(input?: Partial<Pagination>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface PasswordResetBody {
|
||||
/**
|
||||
* the new password
|
||||
*/
|
||||
password: string;
|
||||
/**
|
||||
* the workflow id provided in the reset password email
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* the workflow key provided in the reset password email
|
||||
*/
|
||||
key: string;
|
||||
}
|
23
lib/js-api/src/api/content-rest-api/model/pathElement.ts
Normal file
23
lib/js-api/src/api/content-rest-api/model/pathElement.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* @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.
|
||||
*/
|
||||
|
||||
export interface PathElement {
|
||||
id?: string;
|
||||
name?: string;
|
||||
nodeType?: string;
|
||||
aspectNames?: string[];
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user