mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[MNT-24575] Added APIS and models folder information dialog (#10460)
* [MNT-24575] Added APIs folder information * [MNT-24575] Added models * [MNT-24575] Added constructors to model * [MNT-24575] Added documentation * [MNT-24575] Added documentation * [MNT-24575] Addressed Code review comments * [MNT-24575] Added unit tests. Fixed typo * [MNT-24575] Fixed accesibility issue in DialogComponent. Fixed typo in enum * [MNT-24575] Fixed typo, incorrect ACS version, and incorrect imports * [MNT-24575] Added unit tests to js-api * Empty commit to trigger GHA * [ci:force] Empty force commit to trigger GHA * [MNT-24575] Fixed linting issue * [MNT-24575] Removed redundant * * [ci:force] Empty force commit to trigger GHA
This commit is contained in:
@@ -211,3 +211,7 @@ export * from './versionPagingList';
|
||||
export * from './deletedNode';
|
||||
export * from './nodeAssociation';
|
||||
export * from './nodeChildAssociation';
|
||||
export * from './sizeDetails';
|
||||
export * from './sizeDetailsEntry';
|
||||
export * from './jobIdBody';
|
||||
export * from './jobIdBodyEntry';
|
||||
|
24
lib/js-api/src/api/content-rest-api/model/jobIdBody.ts
Normal file
24
lib/js-api/src/api/content-rest-api/model/jobIdBody.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 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 JobIdBody {
|
||||
jobId: string;
|
||||
|
||||
constructor(jobIdBody: JobIdBody) {
|
||||
this.jobId = jobIdBody.jobId;
|
||||
}
|
||||
}
|
29
lib/js-api/src/api/content-rest-api/model/jobIdBodyEntry.ts
Normal file
29
lib/js-api/src/api/content-rest-api/model/jobIdBodyEntry.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 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 { JobIdBody } from './jobIdBody';
|
||||
|
||||
export class JobIdBodyEntry {
|
||||
entry: JobIdBody;
|
||||
|
||||
constructor(input?: Partial<JobIdBodyEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new JobIdBody(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
42
lib/js-api/src/api/content-rest-api/model/sizeDetails.ts
Normal file
42
lib/js-api/src/api/content-rest-api/model/sizeDetails.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 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 SizeDetails {
|
||||
id: string;
|
||||
sizeInBytes: string;
|
||||
calculatedAt: string;
|
||||
numberOfFiles: number;
|
||||
status: SizeDetails.StatusEnum;
|
||||
jobId: string;
|
||||
|
||||
constructor(entry: SizeDetails) {
|
||||
this.id = entry.id;
|
||||
this.sizeInBytes = entry.sizeInBytes;
|
||||
this.calculatedAt = entry.calculatedAt;
|
||||
this.numberOfFiles = entry.numberOfFiles;
|
||||
this.status = entry.status;
|
||||
this.jobId = entry.jobId;
|
||||
}
|
||||
}
|
||||
export namespace SizeDetails {
|
||||
export type StatusEnum = 'IN-PROGRESS' | 'COMPLETED' | 'NOT-INITIATED';
|
||||
export const StatusEnum = {
|
||||
IN_PROGRESS: 'IN-PROGRESS' as StatusEnum,
|
||||
COMPLETE: 'COMPLETED' as StatusEnum,
|
||||
NOT_INITIATED: 'NOT-INITIATED' as StatusEnum
|
||||
};
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2024 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 { SizeDetails } from './sizeDetails';
|
||||
|
||||
export class SizeDetailsEntry {
|
||||
entry: SizeDetails;
|
||||
|
||||
constructor(input?: Partial<SizeDetailsEntry>) {
|
||||
if (input) {
|
||||
Object.assign(this, input);
|
||||
this.entry = input.entry ? new SizeDetails(input.entry) : undefined;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user