@esri/solution-common
Version:
Provides general helper functions for @esri/solution.js.
69 lines • 2.92 kB
JavaScript
/** @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.
*/
//#endregion ---------------------------------------------------------------------------------------------------------//
export const SolutionTemplateFormatVersion = 1;
export const DeployedSolutionFormatVersion = 1;
export const UNREACHABLE = "unreachable";
//#region Enums ------------------------------------------------------------------------------------------------------//
/**
* Flags for storing an item's binary resources.
*/
export var EFileType;
(function (EFileType) {
EFileType[EFileType["Data"] = 0] = "Data";
EFileType[EFileType["Info"] = 1] = "Info";
EFileType[EFileType["Metadata"] = 2] = "Metadata";
EFileType[EFileType["Resource"] = 3] = "Resource";
EFileType[EFileType["Thumbnail"] = 4] = "Thumbnail";
})(EFileType || (EFileType = {}));
/**
* Text versions of flags for storing an item's binary resources.
*/
export var SFileType;
(function (SFileType) {
SFileType[SFileType["Data"] = 0] = "Data";
SFileType[SFileType["Info"] = 1] = "Info";
SFileType[SFileType["Metadata"] = 2] = "Metadata";
SFileType[SFileType["Resource"] = 3] = "Resource";
SFileType[SFileType["Thumbnail"] = 4] = "Thumbnail";
})(SFileType || (SFileType = {}));
/**
* Flags for reporting the status of creating or deploying an item.
*/
export var EItemProgressStatus;
(function (EItemProgressStatus) {
EItemProgressStatus[EItemProgressStatus["Started"] = 0] = "Started";
EItemProgressStatus[EItemProgressStatus["Created"] = 1] = "Created";
EItemProgressStatus[EItemProgressStatus["Cancelled"] = 2] = "Cancelled";
EItemProgressStatus[EItemProgressStatus["Finished"] = 3] = "Finished";
EItemProgressStatus[EItemProgressStatus["Ignored"] = 4] = "Ignored";
EItemProgressStatus[EItemProgressStatus["Failed"] = 5] = "Failed";
EItemProgressStatus[EItemProgressStatus["Unknown"] = 6] = "Unknown";
})(EItemProgressStatus || (EItemProgressStatus = {}));
/**
* Text versions of flags for reporting the status of creating or deploying an item.
*/
export const SItemProgressStatus = [
"1 Started",
"2 Created",
"3 Cancelled",
"3 Finished",
"3 Ignored",
"3 Failed",
"Unknown",
];
//#endregion ---------------------------------------------------------------------------------------------------------//
//# sourceMappingURL=interfaces.js.map