mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[MNT-24128] in ADW/ADF, when downloading a ZIP from a selection of files and folders, display a progress bar (#9957)
This commit is contained in:
26
lib/js-api/src/api/content-rest-api/model/download-status.ts
Normal file
26
lib/js-api/src/api/content-rest-api/model/download-status.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* @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 const FileDownloadStatus = {
|
||||
PENDING: 'PENDING',
|
||||
CANCELLED: 'CANCELLED',
|
||||
IN_PROGRESS: 'IN_PROGRESS',
|
||||
DONE: 'DONE',
|
||||
MAX_CONTENT_SIZE_EXCEEDED: 'MAX_CONTENT_SIZE_EXCEEDED'
|
||||
} as const;
|
||||
|
||||
export type DownloadStatus = keyof typeof FileDownloadStatus;
|
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { DownloadStatus } from './download-status';
|
||||
|
||||
export interface Download {
|
||||
/**
|
||||
* number of files added so far in the zip
|
||||
@@ -39,5 +41,5 @@ export interface Download {
|
||||
/**
|
||||
* the current status of the download node creation
|
||||
*/
|
||||
status?: 'PENDING' | 'CANCELLED' | 'IN_PROGRESS' | 'DONE' | 'MAX_CONTENT_SIZE_EXCEEDED' | string;
|
||||
status?: DownloadStatus;
|
||||
}
|
||||
|
@@ -68,6 +68,7 @@ export * from './deletedNodesPagingList';
|
||||
export * from './directAccessUrl';
|
||||
export * from './directAccessUrlEntry';
|
||||
export * from './download';
|
||||
export * from './download-status';
|
||||
export * from './downloadBodyCreate';
|
||||
export * from './downloadEntry';
|
||||
export * from './errorError';
|
||||
@@ -162,10 +163,10 @@ 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 './siteGroup';
|
||||
export * from './siteGroupEntry';
|
||||
export * from './siteGroupPaging';
|
||||
export * from './siteGroupPagingList';
|
||||
export * from './siteMembershipApprovalBody';
|
||||
export * from './siteMembershipBodyCreate';
|
||||
export * from './siteMembershipBodyUpdate';
|
||||
|
Reference in New Issue
Block a user