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=========================================================
21 import keyMirror from 'nfvo-utils/KeyMirror.js';
22 import i18n from 'nfvo-utils/i18n/i18n.js';
24 export const actionTypes = keyMirror({
25 LICENSE_AGREEMENT_LIST_LOADED: null,
26 ADD_LICENSE_AGREEMENT: null,
27 EDIT_LICENSE_AGREEMENT: null,
28 DELETE_LICENSE_AGREEMENT: null,
29 LICENSE_AGREEMENT_DELETE_CONFIRM: null,
31 licenseAgreementEditor: {
36 SELECT_FEATURE_GROUPS_BUTTONTAB: null,
41 export const enums = keyMirror({
42 SELECTED_LICENSE_AGREEMENT_TAB: {
47 SELECTED_FEATURE_GROUPS_BUTTONTAB: {
48 ASSOCIATED_FEATURE_GROUPS: 1,
49 AVAILABLE_FEATURE_GROUPS: 2
53 export const defaultState = {
54 LICENSE_AGREEMENT_EDITOR_DATA: {
55 licenseTerm: {choice: '', other: ''}
59 export const optionsInputValues = {
61 {enum: '', title: i18n('please select…')},
62 {enum: 'Fixed_Term', title: 'Fixed Term'},
63 {enum: 'Perpetual', title: 'Perpetual'},
64 {enum: 'Unlimited', title: 'Unlimited'}