blob: 5b33fc20999e9d01b16252e5e1b02ec178b5493c [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001/*!
Michael Landoefa037d2017-02-19 12:57:33 +02002 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
AviZi280f8012017-06-09 02:39:56 +03003 *
Michael Landoefa037d2017-02-19 12:57:33 +02004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
AviZi280f8012017-06-09 02:39:56 +03007 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
Michael Landoefa037d2017-02-19 12:57:33 +020010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
AviZi280f8012017-06-09 02:39:56 +030012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * permissions and limitations under the License.
Michael Landoefa037d2017-02-19 12:57:33 +020015 */
Michael Landoefa037d2017-02-19 12:57:33 +020016import keyMirror from 'nfvo-utils/KeyMirror.js';
17
Avi Zivb8e2faf2017-07-18 19:45:38 +030018export const DATE_FORMAT = 'MM/DD/YYYY';
19
Michael Landoefa037d2017-02-19 12:57:33 +020020export const actionTypes = keyMirror({
21 SET_CURRENT_SCREEN: null,
az2497644017c2017-08-10 17:49:40 +030022 SET_CURRENT_LICENSE_MODEL: null,
23 SET_CURRENT_SCREEN_VERSION: null,
talig8e9c0652017-12-20 14:30:43 +020024 UPDATE_CURRENT_SCREEN_PROPS: null,
25 UPDATE_ITEM_STATUS: null
Michael Landoefa037d2017-02-19 12:57:33 +020026});
27
talig8e9c0652017-12-20 14:30:43 +020028export const screenTypes = keyMirror({
29 LICENSE_MODEL: null,
30 SOFTWARE_PRODUCT: null,
31 SOFTWARE_PRODUCT_COMPONENT_DEFAULT_GENERAL: null
32});
33
34const breadcrumbsEnum = {
35 LICENSE_MODEL: 'LICENSE_MODEL',
36 VERSIONS_PAGE: 'VERSIONS_PAGE',
37 LICENSE_MODEL_OVERVIEW: 'LICENSE_MODEL_OVERVIEW',
38 LICENSE_AGREEMENTS: 'LICENSE_AGREEMENTS',
39 FEATURE_GROUPS: 'FEATURE_GROUPS',
40 ENTITLEMENT_POOLS: 'ENTITLEMENT_POOLS',
41 LICENSE_KEY_GROUPS: 'LICENSE_KEY_GROUPS',
42 ACTIVITY_LOG: 'ACTIVITY_LOG',
43
44 SOFTWARE_PRODUCT: 'SOFTWARE_PRODUCT',
45 SOFTWARE_PRODUCT_VERSIONS_PAGE: 'SOFTWARE_PRODUCT_VERSIONS_PAGE',
46 SOFTWARE_PRODUCT_LANDING_PAGE: 'SOFTWARE_PRODUCT_LANDING_PAGE',
47 SOFTWARE_PRODUCT_DETAILS: 'SOFTWARE_PRODUCT_DETAILS',
48 SOFTWARE_PRODUCT_ATTACHMENTS: 'SOFTWARE_PRODUCT_ATTACHMENTS',
49 SOFTWARE_PRODUCT_PROCESSES: 'SOFTWARE_PRODUCT_PROCESSES',
50 SOFTWARE_PRODUCT_DEPLOYMENT: 'SOFTWARE_PRODUCT_DEPLOYMENT',
51 SOFTWARE_PRODUCT_NETWORKS: 'SOFTWARE_PRODUCT_NETWORKS',
52 SOFTWARE_PRODUCT_DEPENDENCIES: 'SOFTWARE_PRODUCT_DEPENDENCIES',
53 SOFTWARE_PRODUCT_ACTIVITY_LOG: 'SOFTWARE_PRODUCT_ACTIVITY_LOG',
54 SOFTWARE_PRODUCT_COMPONENTS: 'SOFTWARE_PRODUCT_COMPONENTS',
55 SOFTWARE_PRODUCT_COMPONENT_PROCESSES: 'SOFTWARE_PRODUCT_COMPONENT_PROCESSES',
56 SOFTWARE_PRODUCT_COMPONENT_NETWORK: 'SOFTWARE_PRODUCT_COMPONENT_NETWORK',
57 SOFTWARE_PRODUCT_COMPONENT_STORAGE: 'SOFTWARE_PRODUCT_COMPONENT_STORAGE',
58 SOFTWARE_PRODUCT_COMPONENT_GENERAL: 'SOFTWARE_PRODUCT_COMPONENT_GENERAL',
59 SOFTWARE_PRODUCT_COMPONENT_COMPUTE: 'SOFTWARE_PRODUCT_COMPONENT_COMPUTE',
60 SOFTWARE_PRODUCT_COMPONENT_LOAD_BALANCING: 'SOFTWARE_PRODUCT_COMPONENT_LOAD_BALANCING',
61 SOFTWARE_PRODUCT_COMPONENT_MONITORING: 'SOFTWARE_PRODUCT_COMPONENT_MONITORING',
62 SOFTWARE_PRODUCT_COMPONENT_IMAGES: 'SOFTWARE_PRODUCT_COMPONENT_IMAGES'
63};
64
Michael Landoefa037d2017-02-19 12:57:33 +020065export const enums = keyMirror({
66
talig8e9c0652017-12-20 14:30:43 +020067 BREADCRUMS: {...breadcrumbsEnum},
Michael Landoefa037d2017-02-19 12:57:33 +020068
69 SCREEN: {
talig8e9c0652017-12-20 14:30:43 +020070 ONBOARDING_CATALOG: 'ONBOARDING_CATALOG',
71 VERSIONS_PAGE: breadcrumbsEnum.VERSIONS_PAGE,
72 LICENSE_MODEL_OVERVIEW: breadcrumbsEnum.LICENSE_MODEL_OVERVIEW,
73 LICENSE_AGREEMENTS: breadcrumbsEnum.LICENSE_AGREEMENTS,
74 FEATURE_GROUPS: breadcrumbsEnum.FEATURE_GROUPS,
75 ENTITLEMENT_POOLS: breadcrumbsEnum.ENTITLEMENT_POOLS,
76 LICENSE_KEY_GROUPS: breadcrumbsEnum.LICENSE_KEY_GROUPS,
77 ACTIVITY_LOG: breadcrumbsEnum.ACTIVITY_LOG,
Michael Landoefa037d2017-02-19 12:57:33 +020078
talig8e9c0652017-12-20 14:30:43 +020079 SOFTWARE_PRODUCT_VERSIONS_PAGE: breadcrumbsEnum.SOFTWARE_PRODUCT_VERSIONS_PAGE,
80 SOFTWARE_PRODUCT_LANDING_PAGE: breadcrumbsEnum.SOFTWARE_PRODUCT_LANDING_PAGE,
81 SOFTWARE_PRODUCT_DETAILS: breadcrumbsEnum.SOFTWARE_PRODUCT_DETAILS,
82 SOFTWARE_PRODUCT_ATTACHMENTS: breadcrumbsEnum.SOFTWARE_PRODUCT_ATTACHMENTS,
83 SOFTWARE_PRODUCT_ATTACHMENTS_SETUP: 'SOFTWARE_PRODUCT_ATTACHMENTS_SETUP',
84 SOFTWARE_PRODUCT_ATTACHMENTS_VALIDATION: 'SOFTWARE_PRODUCT_ATTACHMENTS_VALIDATION',
85 SOFTWARE_PRODUCT_PROCESSES: breadcrumbsEnum.SOFTWARE_PRODUCT_PROCESSES,
86 SOFTWARE_PRODUCT_DEPLOYMENT: breadcrumbsEnum.SOFTWARE_PRODUCT_DEPLOYMENT,
87 SOFTWARE_PRODUCT_NETWORKS: breadcrumbsEnum.SOFTWARE_PRODUCT_NETWORKS,
88 SOFTWARE_PRODUCT_DEPENDENCIES: breadcrumbsEnum.SOFTWARE_PRODUCT_DEPENDENCIES,
89 SOFTWARE_PRODUCT_ACTIVITY_LOG: breadcrumbsEnum.SOFTWARE_PRODUCT_ACTIVITY_LOG,
90 SOFTWARE_PRODUCT_COMPONENTS: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENTS,
91 SOFTWARE_PRODUCT_COMPONENT_PROCESSES: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_PROCESSES,
92 SOFTWARE_PRODUCT_COMPONENT_COMPUTE: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_COMPUTE,
93 SOFTWARE_PRODUCT_COMPONENT_STORAGE: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_STORAGE,
94 SOFTWARE_PRODUCT_COMPONENT_NETWORK: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_NETWORK,
95 SOFTWARE_PRODUCT_COMPONENT_GENERAL: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_GENERAL,
96 SOFTWARE_PRODUCT_COMPONENT_LOAD_BALANCING: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_LOAD_BALANCING,
97 SOFTWARE_PRODUCT_COMPONENT_MONITORING: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_MONITORING,
98 SOFTWARE_PRODUCT_COMPONENT_IMAGES: breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_IMAGES
Michael Landoefa037d2017-02-19 12:57:33 +020099 }
100});