diff --git a/src/ts/@overflow/infra/redux/action/infra_host_regist.ts b/src/ts/@overflow/infra/redux/action/infra_host_regist.ts index e69de29..1ab0770 100644 --- a/src/ts/@overflow/infra/redux/action/infra_host_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_host_regist.ts @@ -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; +export type requestSuccess = (infraHost: InfraHost) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraHost: InfraHost): Action => { + return { + type: REQUEST, + payload: { + infraHost:infraHost, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraHost: InfraHost): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraHost, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_machine_regist.ts b/src/ts/@overflow/infra/redux/action/infra_machine_regist.ts index e69de29..b36476e 100644 --- a/src/ts/@overflow/infra/redux/action/infra_machine_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_machine_regist.ts @@ -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; +export type requestSuccess = (infraMachine: InfraMachine) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraMachine: InfraMachine): Action => { + return { + type: REQUEST, + payload: { + infraMachine:infraMachine, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraMachine: InfraMachine): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraMachine, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_os_application_regist.ts b/src/ts/@overflow/infra/redux/action/infra_os_application_regist.ts index e69de29..9d05c42 100644 --- a/src/ts/@overflow/infra/redux/action/infra_os_application_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_os_application_regist.ts @@ -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; +export type requestSuccess = (infraOSApplication: InfraOSApplication) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraOSApplication: InfraOSApplication): Action => { + return { + type: REQUEST, + payload: { + infraOSApplication:infraOSApplication, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraOSApplication: InfraOSApplication): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraOSApplication, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_os_daemon_regist.ts b/src/ts/@overflow/infra/redux/action/infra_os_daemon_regist.ts index e69de29..aa1b6b0 100644 --- a/src/ts/@overflow/infra/redux/action/infra_os_daemon_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_os_daemon_regist.ts @@ -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; +export type requestSuccess = (infraOSDaemon: InfraOSDaemon) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraOSDaemon: InfraOSDaemon): Action => { + return { + type: REQUEST, + payload: { + infraOSDaemon:infraOSDaemon, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraOSDaemon: InfraOSDaemon): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraOSDaemon, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_os_port_regist.ts b/src/ts/@overflow/infra/redux/action/infra_os_port_regist.ts index e69de29..78a6ce6 100644 --- a/src/ts/@overflow/infra/redux/action/infra_os_port_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_os_port_regist.ts @@ -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; +export type requestSuccess = (infraOSPort: InfraOSPort) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraOSPort: InfraOSPort): Action => { + return { + type: REQUEST, + payload: { + infraOSPort:infraOSPort, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraOSPort: InfraOSPort): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraOSPort, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_os_regist.ts b/src/ts/@overflow/infra/redux/action/infra_os_regist.ts index e69de29..22955d6 100644 --- a/src/ts/@overflow/infra/redux/action/infra_os_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_os_regist.ts @@ -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; +export type requestSuccess = (infraOS: InfraOS) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraOS: InfraOS): Action => { + return { + type: REQUEST, + payload: { + infraOS:infraOS, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraOS: InfraOS): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraOS, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_regist.ts b/src/ts/@overflow/infra/redux/action/infra_regist.ts index e69de29..b30fc41 100644 --- a/src/ts/@overflow/infra/redux/action/infra_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_regist.ts @@ -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; +export type requestSuccess = (infra: Infra) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infra: Infra): Action => { + return { + type: REQUEST, + payload: { + infra:infra, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infra: Infra): Action => { + return { + type: REQUEST_SUCCESS, + payload: infra, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +}; diff --git a/src/ts/@overflow/infra/redux/action/infra_service_regist.ts b/src/ts/@overflow/infra/redux/action/infra_service_regist.ts index e69de29..71de387 100644 --- a/src/ts/@overflow/infra/redux/action/infra_service_regist.ts +++ b/src/ts/@overflow/infra/redux/action/infra_service_regist.ts @@ -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; +export type requestSuccess = (infraService: InfraService) => Action; +export type requestFailure = (error: Error) => Action; + + + +export const request: request = (infraService: InfraService): Action => { + return { + type: REQUEST, + payload: { + infraService:infraService, + }, + }; +}; + +export const requestSuccess: requestSuccess = (infraService: InfraService): Action => { + return { + type: REQUEST_SUCCESS, + payload: infraService, + }; +}; + +export const requestFailure: requestFailure = (error: Error): Action => { + return { + type: REQUEST_FAILURE, + error: error, + }; +};