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 // tslint:disable-next-line:interface-name
23 export interface IApi {
26 GET_SDC_Setup_Data: string;
27 GET_component: string;
28 PUT_component: string;
29 GET_component_validate_name: string;
30 POST_changeLifecycleState: string;
31 component_api_root: string;
33 GET_user_authorize: string;
34 GET_all_users: string;
39 GET_resources_latestversion_notabstract: string;
40 GET_resources_certified_not_abstract: string;
41 GET_resources_certified_abstract: string;
43 GET_resource_property: string;
44 GET_resource_artifact: string;
45 GET_download_instance_artifact: string;
46 POST_instance_artifact: string;
47 GET_resource_additional_information: string;
48 GET_service_artifact: string;
49 GET_resource_interface_artifact: string;
50 GET_resource_api_artifact: string;
51 GET_resource_validate_name: string;
52 GET_resource_artifact_types: string;
53 GET_activity_log: string;
54 GET_configuration_ui: string;
55 GET_plugins_configuration: string;
56 GET_plugin_online_state: string;
58 GET_ecomp_menu_items: string;
59 GET_service_validate_name: string;
60 GET_service_distributions: string;
61 GET_service_distributions_components: string;
62 POST_service_distribution_deploy: string;
65 GET_resource_category: string;
66 GET_service_category: string;
67 resource_instance: string;
68 GET_resource_instance_property: string;
69 GET_relationship: string;
70 GET_lifecycle_state_resource: string;
71 GET_lifecycle_state_CHECKIN: string;
72 GET_lifecycle_state_UNDOCHECKOUT: string;
74 no_proxy_root: string;
76 GET_download_artifact: string;
77 GET_SDC_Version: string;
78 GET_categories: string;
79 POST_category: string;
80 POST_subcategory: string;
81 POST_change_instance_version: string;
82 GET_requirements_capabilities: string;
83 GET_onboarding: string;
84 GET_component_from_csar_uuid: string;
85 POST_GAB_Search: string;
87 services_api_root: string;
89 GET_uicache_catalog: string;
90 GET_uicache_left_palette: string;
93 // tslint:disable-next-line:interface-name
94 export interface ILogConfig {
99 // tslint:disable-next-line:interface-name
100 export interface ICookie {
101 junctionName: string;
103 userIdSuffix: string;
104 userFirstName: string;
105 userLastName: string;
109 // tslint:disable-next-line:interface-name
110 export interface IConfigStatuses {
111 inDesign: IConfigStatus;
112 certified: IConfigStatus;
113 distributed: IConfigStatus;
116 // tslint:disable-next-line:interface-name
117 export interface IConfigStatus {
122 // tslint:disable-next-line:interface-name
123 export interface IConfigRoles {
125 DESIGNER: IConfigRole;
128 // tslint:disable-next-line:interface-name
129 export interface IConfigRole {
130 changeLifecycleStateButtons: any;
133 // tslint:disable-next-line:interface-name
134 export interface IConfirmationMessage {
135 showComment: boolean;
140 // tslint:disable-next-line:interface-name
141 export interface IConfirmationMessages {
142 checkin: IConfirmationMessage;
143 checkout: IConfirmationMessage;
144 certify: IConfirmationMessage;
145 failCertification: IConfirmationMessage;
146 certificationRequest: IConfirmationMessage;
147 approve: IConfirmationMessage;
148 reject: IConfirmationMessage;
151 // tslint:disable-next-line:interface-name
152 export interface IAlertMessage {
157 // tslint:disable-next-line:interface-name
158 export interface IAlertMessages {
159 deleteInstance: IAlertMessage;
160 exitWithoutSaving: IConfirmationMessage;
164 class ConfigMenuItem {
171 // tslint:disable-next-line:interface-name
172 export interface IAppConfigurtaion {
175 hostedApplications: IHostedApplication[];
176 resourceTypesFilter: IResourceTypesFilter;
177 logConfig: ILogConfig;
180 toscaFileExtension: string;
181 csarFileExtension: string;
185 cpEndPointInstances: string[];
187 showOutlook: boolean;
188 validationConfigPath: string;
191 // tslint:disable-next-line:interface-name
192 export interface IResourceTypesFilter {
196 // tslint:disable-next-line:interface-name
197 export interface IHostedApplication {
200 defaultState: string;
202 state: IHostedApplicationState;
205 // tslint:disable-next-line:interface-name
206 export interface IHostedApplicationState {
209 relativeHtmlPath: string;
210 controllerName: string;
213 // tslint:disable-next-line:interface-name
214 export interface ITester {
218 // tslint:disable-next-line:interface-name
219 export interface IAppMenu {
221 confirmationMessages: IConfirmationMessages;
222 alertMessages: IAlertMessages;
223 statuses: IConfigStatuses;
224 catalogMenuItem: any;
225 categoriesDictionary: any;
226 // tslint:disable-next-line:ban-types
227 canvas_buttons: Object;
228 component_workspace_menu_option: any;
229 LifeCycleStatuses: any;
230 DistributionStatuses: any;
231 ChangeLifecycleStateButton: any;