fixed infra

This commit is contained in:
snoop 2017-07-04 15:37:45 +09:00
parent 451c169ae6
commit 4b2e782955
49 changed files with 101 additions and 45 deletions

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraHost from '../..//api/model/InfraHost';
import InfraHostRegistPayload from '../payload/InfraHostRegistPayload';
import HostRegistPayload from '../payload/HostRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraHost/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraHost/regist/REQU
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraHost/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraHost: InfraHost) => Action<InfraHostRegistPayload>;
export type request = (infraHost: InfraHost) => Action<HostRegistPayload>;
export type requestSuccess = (infraHost: InfraHost) => Action<InfraHost>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraHost: InfraHost): Action<InfraHostRegistPayload> => {
export const request: request = (infraHost: InfraHost): Action<HostRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraMachine from '../..//api/model/InfraMachine';
import InfraMachineRegistPayload from '../payload/InfraMachineRegistPayload';
import MachineRegistPayload from '../payload/MachineRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraMachine: InfraMachine) => Action<InfraMachineRegistPayload>;
export type request = (infraMachine: InfraMachine) => Action<MachineRegistPayload>;
export type requestSuccess = (infraMachine: InfraMachine) => Action<InfraMachine>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraMachine: InfraMachine): Action<InfraMachineRegistPayload> => {
export const request: request = (infraMachine: InfraMachine): Action<MachineRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraOSApplication from '../..//api/model/InfraOSApplication';
import InfraOSApplicationRegistPayload from '../payload/InfraOSApplicationRegistPayload';
import OSApplicationRegistPayload from '../payload/OSApplicationRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraOSApplication: InfraOSApplication) => Action<InfraOSApplicationRegistPayload>;
export type request = (infraOSApplication: InfraOSApplication) => Action<OSApplicationRegistPayload>;
export type requestSuccess = (infraOSApplication: InfraOSApplication) => Action<InfraOSApplication>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraOSApplication: InfraOSApplication): Action<InfraOSApplicationRegistPayload> => {
export const request: request = (infraOSApplication: InfraOSApplication): Action<OSApplicationRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraOSDaemon from '../..//api/model/InfraOSDaemon';
import InfraOSDaemonRegistPayload from '../payload/InfraOSDaemonRegistPayload';
import OSDaemonRegistPayload from '../payload/OSDaemonRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraOSDaemon: InfraOSDaemon) => Action<InfraOSDaemonRegistPayload>;
export type request = (infraOSDaemon: InfraOSDaemon) => Action<OSDaemonRegistPayload>;
export type requestSuccess = (infraOSDaemon: InfraOSDaemon) => Action<InfraOSDaemon>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraOSDaemon: InfraOSDaemon): Action<InfraOSDaemonRegistPayload> => {
export const request: request = (infraOSDaemon: InfraOSDaemon): Action<OSDaemonRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraOSPort from '../..//api/model/InfraOSPort';
import InfraOSPortRegistPayload from '../payload/InfraOSPortRegistPayload';
import OSPortRegistPayload from '../payload/OSPortRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraOSPort: InfraOSPort) => Action<InfraOSPortRegistPayload>;
export type request = (infraOSPort: InfraOSPort) => Action<OSPortRegistPayload>;
export type requestSuccess = (infraOSPort: InfraOSPort) => Action<InfraOSPort>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraOSPort: InfraOSPort): Action<InfraOSPortRegistPayload> => {
export const request: request = (infraOSPort: InfraOSPort): Action<OSPortRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraOS from '../..//api/model/InfraOS';
import InfraOSRegistPayload from '../payload/InfraOSRegistPayload';
import OSRegistPayload from '../payload/OSRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraOS: InfraOS) => Action<InfraOSRegistPayload>;
export type request = (infraOS: InfraOS) => Action<OSRegistPayload>;
export type requestSuccess = (infraOS: InfraOS) => Action<InfraOS>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraOS: InfraOS): Action<InfraOSRegistPayload> => {
export const request: request = (infraOS: InfraOS): Action<OSRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import Infra from '../..//api/model/Infra';
import InfraRegistPayload from '../payload/InfraRegistPayload';
import RegistPayload from '../payload/RegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infra: Infra) => Action<InfraRegistPayload>;
export type request = (infra: Infra) => Action<RegistPayload>;
export type requestSuccess = (infra: Infra) => Action<Infra>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infra: Infra): Action<InfraRegistPayload> => {
export const request: request = (infra: Infra): Action<RegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -1,7 +1,7 @@
import Action from '@overflow/commons/redux/Action';
import InfraService from '../..//api/model/InfraService';
import InfraServiceRegistPayload from '../payload/InfraServiceRegistPayload';
import ServiceRegistPayload from '../payload/ServiceRegistPayload';
// Action Type
export type REQUEST = '@overflow/infraMachine/regist/REQUEST';
@ -13,13 +13,13 @@ export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/infraMachine/regist/R
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/infraMachine/regist/REQUEST_FAILURE';
// Action Creater
export type request = (infraService: InfraService) => Action<InfraServiceRegistPayload>;
export type request = (infraService: InfraService) => Action<ServiceRegistPayload>;
export type requestSuccess = (infraService: InfraService) => Action<InfraService>;
export type requestFailure = (error: Error) => Action;
export const request: request = (infraService: InfraService): Action<InfraServiceRegistPayload> => {
export const request: request = (infraService: InfraService): Action<ServiceRegistPayload> => {
return {
type: REQUEST,
payload: {

View File

@ -0,0 +1,7 @@
interface HostReadPayload {
id: number;
}
export default HostReadPayload;

View File

@ -1,7 +1,7 @@
import InfraHost from '../../api/model/InfraHost';
interface InfraHostRegistPayload {
interface HostRegistPayload {
infraHost: InfraHost;
}
export default InfraHostRegistPayload;
export default HostRegistPayload;

View File

@ -1,7 +0,0 @@
import Infra from '../../api/model/Infra';
interface InfraRegistPayload {
infra: Infra;
}
export default InfraRegistPayload;

View File

@ -0,0 +1,7 @@
interface MachineReadPayload {
id: number;
}
export default MachineReadPayload;

View File

@ -2,8 +2,8 @@
import InfraMachine from '../../api/model/InfraMachine';
interface InfraMachineRegistPayload {
interface MachineRegistPayload {
infraMachine: InfraMachine;
}
export default InfraMachineRegistPayload;
export default MachineRegistPayload;

View File

@ -0,0 +1,7 @@
interface OSApplicationReadPayload {
id: number;
}
export default OSApplicationReadPayload;

View File

@ -1,7 +1,7 @@
import InfraOSApplication from '../../api/model/InfraOSApplication';
interface InfraOSApplicationRegistPayload {
interface OSApplicationRegistPayload {
infraOSApplication: InfraOSApplication;
}
export default InfraOSApplicationRegistPayload;
export default OSApplicationRegistPayload;

View File

@ -0,0 +1,7 @@
interface OSDaemonReadPayload {
id: number;
}
export default OSDaemonReadPayload;

View File

@ -1,7 +1,7 @@
import InfraOSDaemon from '../../api/model/InfraOSDaemon';
interface InfraOSDaemonRegistPayload {
interface OSDaemonRegistPayload {
infraOSDaemon: InfraOSDaemon;
}
export default InfraOSDaemonRegistPayload;
export default OSDaemonRegistPayload;

View File

@ -0,0 +1,7 @@
interface OSPortReadPayload {
id: number;
}
export default OSPortReadPayload;

View File

@ -1,7 +1,7 @@
import InfraOSPort from '../../api/model/InfraOSPort';
interface InfraOSPortRegistPayload {
interface OSPortRegistPayload {
infraOSPort: InfraOSPort;
}
export default InfraOSPortRegistPayload;
export default OSPortRegistPayload;

View File

@ -0,0 +1,7 @@
interface OSReadPayload {
id: number;
}
export default OSReadPayload;

View File

@ -1,7 +1,7 @@
import InfraOS from '../../api/model/InfraOS';
interface InfraOSRegistPayload {
interface OSRegistPayload {
infraOS: InfraOS;
}
export default InfraOSRegistPayload;
export default OSRegistPayload;

View File

@ -0,0 +1,7 @@
interface ReadPayload {
id: number;
}
export default ReadPayload;

View File

@ -0,0 +1,7 @@
import Infra from '../../api/model/Infra';
interface RegistPayload {
infra: Infra;
}
export default RegistPayload;

View File

@ -0,0 +1,7 @@
interface ServiceReadPayload {
id: number;
}
export default ServiceReadPayload;

View File

@ -1,7 +1,7 @@
import InfraService from '../../api/model/InfraService';
interface InfraServiceRegistPayload {
interface ServiceRegistPayload {
infraService: InfraService;
}
export default InfraServiceRegistPayload;
export default ServiceRegistPayload;