/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
import { DashboardPublishingPackage } from '../models/Dashboard';
import { Observable } from 'rxjs';
import { DetailedItem, PagedArray, PublishingStats, PublishingTargets, SandboxItem } from '../models';
import { Activity } from '../models/Activity';
import PaginationOptions from '../models/PaginationOptions';
import SystemType from '../models/SystemType';
interface FetchActivityOptions extends PaginationOptions {
actions?: string[];
usernames?: string[];
dateFrom?: string;
dateTo?: string;
}
export declare function fetchActivity(siteId: string, options?: FetchActivityOptions): Observable>;
interface FetchMyActivityOptions extends Omit {}
export declare function fetchMyActivity(
siteId: string,
options?: FetchMyActivityOptions
): Observable>;
export interface FetchPendingApprovalOptions extends PaginationOptions {
itemType?: Array;
sortBy?: string;
sortOrder?: 'asc' | 'desc';
}
export declare function fetchPendingApproval(
siteId: string,
options?: FetchPendingApprovalOptions
): Observable>;
export interface FetchUnpublishedOptions extends PaginationOptions {
itemType?: Array;
sortBy?: string;
sortOrder?: 'asc' | 'desc';
}
export declare function fetchUnpublished(
siteId: string,
options: FetchUnpublishedOptions
): Observable>;
export interface FetchScheduledOptions extends PaginationOptions {
publishingTarget?: PublishingTargets;
approver?: string;
dateFrom?: string;
dateTo?: string;
itemType?: Array;
sortBy?: string;
sortOrder?: 'asc' | 'desc';
}
export declare function fetchScheduled(
siteId: string,
options: FetchScheduledOptions
): Observable>;
export declare function fetchScheduledPackageItems(siteId: string, packageId: number): Observable;
export declare function fetchPublishingHistory(
siteId: string,
options: Partial
): Observable>;
export declare function fetchPublishingHistoryPackageItems(
siteId: string,
packageId: string,
options?: PaginationOptions
): Observable>;
export interface ExpiredItem {
itemName: string;
itemPath: string;
expiredDateTime: string;
sandboxItem: SandboxItem;
}
export declare function fetchExpired(siteId: string, options?: PaginationOptions): Observable;
interface FetchExpiringOptions extends PaginationOptions {
dateFrom: string;
dateTo: string;
}
export declare function fetchExpiring(siteId: string, options: FetchExpiringOptions): Observable;
export declare function fetchPublishingStats(siteId: string, days: number): Observable;
export {};