@esri/solution-common
Version:
Provides general helper functions for @esri/solution.js.
31 lines (30 loc) • 1.32 kB
TypeScript
/** @license
* Copyright 2018 Esri
*
* 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.
*/
/**
* @module deleteSolution
*/
import { ISolutionPrecis } from "./interfaces";
import { UserSession } from "./arcgisRestJS";
/**
* Returns a list of items in a deployed Solution that would be deleted by the `deleteSolution` function; list
* does not include the Solution folder, Solution items that are shared with any item other than the deployed
* Solution, or the Solution item itself.
*
* @param solutionItemId Id of a deployed Solution
* @param authentication Credentials for the request
* @returns Promise resolving to the list of items in the solution that would be deleted.
*/
export declare function getDeletableSolutionInfo(solutionItemId: string, authentication: UserSession): Promise<ISolutionPrecis>;