2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
22 export interface IApi {
25 //***** NEW API *******//
28 GET_component_validate_name:string;
29 POST_changeLifecycleState:string;
30 component_api_root:string;
34 GET_user_authorize:string;
40 GET_resources_latestversion_notabstract:string;
41 GET_resources_certified_not_abstract:string;
42 GET_resources_certified_abstract:string;
44 GET_resource_property:string;
45 GET_resource_artifact:string;
46 GET_download_instance_artifact:string;
47 POST_instance_artifact:string;
48 GET_resource_additional_information:string;
49 GET_service_artifact:string;
50 GET_resource_interface_artifact:string;
51 GET_resource_api_artifact:string;
52 GET_resource_validate_name:string;
53 GET_resource_artifact_types:string;
54 GET_activity_log:string;
55 GET_configuration_ui:string;
57 GET_ecomp_menu_items:string;
58 GET_service_validate_name:string;
59 GET_service_distributions:string;
60 GET_service_distributions_components:string;
61 POST_service_distribution_deploy:string;
64 GET_resource_category:string;
65 GET_service_category:string;
66 resource_instance:string;
67 GET_resource_instance_property:string;
68 GET_relationship:string;
69 GET_lifecycle_state_resource:string;
70 GET_lifecycle_state_CHECKIN:string;
71 GET_lifecycle_state_CERTIFICATIONREQUEST:string;
72 GET_lifecycle_state_UNDOCHECKOUT:string;
75 GET_download_artifact:string;
76 GET_SDC_Version:string;
77 GET_categories:string;
79 POST_subcategory:string;
80 POST_change_instance_version:string;
81 GET_requirements_capabilities:string;
82 GET_onboarding:string;
83 GET_component_from_csar_uuid:string;
87 export interface ILogConfig {
92 export interface ICookie {
100 export interface IUserTypes {
106 export interface IConfigStatuses {
107 inDesign:IConfigStatus;
108 readyForCertification:IConfigStatus;
109 inCertification:IConfigStatus;
110 certified:IConfigStatus;
111 distributed:IConfigStatus;
114 export interface IConfigStatus {
116 values:Array<string>;
119 export interface IConfigRoles {
121 DESIGNER:IConfigRole;
124 GOVERNOR:IConfigRole;
127 export interface IConfigRole {
132 export interface IConfigState {
133 NOT_CERTIFIED_CHECKOUT:Array<IConfigDistribution>;
134 NOT_CERTIFIED_CHECKIN:Array<IConfigDistribution>;
135 READY_FOR_CERTIFICATION:Array<IConfigDistribution>;
136 CERTIFICATION_IN_PROGRESS:Array<IConfigDistribution>;
137 CERTIFIED:Array<IConfigDistribution>;
140 export interface IConfigDistribution {
141 DISTRIBUTION_NOT_APPROVED:Array<ConfigMenuItem>;
142 DISTRIBUTION_APPROVED:Array<ConfigMenuItem>;
143 DISTRIBUTED:Array<ConfigMenuItem>;
144 DISTRIBUTION_REJECTED:Array<ConfigMenuItem>;
147 export interface IConfirmationMessage {
153 export interface IConfirmationMessages {
154 checkin:IConfirmationMessage;
155 checkout:IConfirmationMessage;
156 certify:IConfirmationMessage;
157 failCertification:IConfirmationMessage;
158 certificationRequest:IConfirmationMessage;
159 approve:IConfirmationMessage;
160 reject:IConfirmationMessage;
163 export interface IAlertMessage {
168 export interface IAlertMessages {
169 deleteInstance:IAlertMessage;
170 exitWithoutSaving:IConfirmationMessage;
173 class ConfigMenuItem {
177 disable:boolean = false;
180 export interface IAppConfigurtaion {
183 hostedApplications:Array<IHostedApplication>;
184 resourceTypesFilter:IResourceTypesFilter;
185 logConfig:ILogConfig;
188 toscaFileExtension:string;
189 csarFileExtension:string;
190 testers:Array<ITester>
193 cpEndPointInstances:Array<string>;
196 validationConfigPath:string;
199 export interface IResourceTypesFilter {
200 resource:Array<string>;
203 export interface IHostedApplication {
208 state:IHostedApplicationState;
211 export interface IHostedApplicationState {
214 relativeHtmlPath:string;
215 controllerName:string;
218 export interface ITester {
222 export interface IAppMenu {
224 confirmationMessages:IConfirmationMessages;
225 alertMessages:IAlertMessages;
226 statuses:IConfigStatuses;
228 categoriesDictionary:any;
229 canvas_buttons:Object;
230 component_workspace_menu_option:any;
231 LifeCycleStatuses:any;
232 DistributionStatuses:any;
233 ChangeLifecycleStateButton:any;