infra regist

This commit is contained in:
snoop 2017-07-04 14:23:42 +09:00
parent 53febc22f4
commit 77a3ce77ba
8 changed files with 344 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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