Skip to content

Commit

Permalink
kcsapi interface for change_deployment_base.
Browse files Browse the repository at this point in the history
kcsapi module is admittedly a more proper place, right now I'm too
lazy to juggle between 2 repos to make simple things work.
  • Loading branch information
Javran committed Oct 1, 2022
1 parent da97356 commit 6dc48da
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions views/redux/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
APIPortPortResponse,
} from 'kcsapi'

import { APIDistance, APIPlaneInfo } from 'kcsapi/api_req_air_corps/set_plane/response'

interface GameResponsePayload<Body, PostBody> {
method: string
path: string
Expand Down Expand Up @@ -62,3 +64,29 @@ export const createAPIReqMapNextResponseAction = createAction<
export const createAPIPortPortResponseAction = createAction<
GameResponsePayload<APIPortPortResponse, APIPortPortRequest>
>('@@Response/kcsapi/api_port/port')

export interface APIReqAirCorpsChangeDeploymentBaseRequest {
api_area_id: string
api_base_id: string
api_base_id_src: string
api_item_id: string
api_squadron_id: string
api_verno: string
}

export interface APIBaseItem {
api_distance: APIDistance
api_plane_info: APIPlaneInfo[]
api_rid: number
}

export interface APIReqAirCorpsChangeDeploymentBaseResponse {
api_base_items: APIBaseItem[]
}

export const createAPIReqAirCorpsChangeDeploymentBaseResponseAction = createAction<
GameResponsePayload<
APIReqAirCorpsChangeDeploymentBaseResponse,
APIReqAirCorpsChangeDeploymentBaseRequest
>
>('@@Response/kcsapi/api_req_air_corps/change_deployment_base')

0 comments on commit 6dc48da

Please sign in to comment.