Specify a model while creating a VSP
[sdc.git] / openecomp-ui / src / sdc-app / onboarding / softwareProduct / SoftwareProductConstants.js
1 /*!
2  * Copyright © 2016-2018 European Support Limited
3  * Modifications Copyright (C) 2021 Nordix Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing
15  * permissions and limitations under the License.
16  */
17 import keyMirror from 'nfvo-utils/KeyMirror.js';
18
19 export const actionTypes = keyMirror(
20     {
21         SOFTWARE_PRODUCT_LOADED: null,
22         SOFTWARE_PRODUCT_LIST_LOADED: null,
23         ARCHIVED_SOFTWARE_PRODUCT_LIST_LOADED: null,
24         FINALIZED_SOFTWARE_PRODUCT_LIST_LOADED: null,
25         SOFTWARE_PRODUCT_LIST_EDIT: null,
26         SOFTWARE_PRODUCT_CATEGORIES_LOADED: null,
27         SOFTWARE_PRODUCT_MODELS_LOADED: null,
28         SOFTWARE_PRODUCT_QUESTIONNAIRE_UPDATE: null,
29         LOAD_LICENSING_VERSIONS_LIST: null,
30         TOGGLE_NAVIGATION_ITEM: null,
31         CANDIDATE_IN_PROCESS: null,
32
33         softwareProductEditor: {
34             OPEN: null,
35             CLOSE: null,
36             DATA_CHANGED: null,
37             IS_VALIDITY_DATA_CHANGED: null
38         }
39     },
40     'softwareProduct'
41 );
42
43 export const onboardingMethod = {
44     MANUAL: 'Manual',
45     NETWORK_PACKAGE: 'NetworkPackage'
46 };
47
48 export const ModelOption = {
49     DEFAULT: 'default',
50     SELECTED: 'selected'
51 };
52
53 export const onboardingOriginTypes = {
54     NONE: 'none',
55     ZIP: 'zip',
56     CSAR: 'csar'
57 };
58
59 export const forms = keyMirror({
60     VENDOR_SOFTWARE_PRODUCT_DETAILS: 'vendor-software-product-details'
61 });
62
63 export const PRODUCT_QUESTIONNAIRE = 'product';