lml-main
Version:
This is now a mono repository published into many standalone packages.
48 lines (47 loc) • 2.72 kB
TypeScript
import { JobModel, CourierModel, AllocationType, AllocationModel, AllocationGroupModel } from '@lml/cosmo-ts-data';
import { RxHttpActionTypes, RxHttpRequestAction } from 'redux-rx-http';
export declare const POST_ALLOCATION: RxHttpActionTypes;
export declare const POST_REALLOCATION: RxHttpActionTypes;
export declare const POST_DEALLOCATION: RxHttpActionTypes;
export declare const POST_TAG: RxHttpActionTypes;
export declare const POST_UNTAG: RxHttpActionTypes;
export declare const POST_ALLOCATION_GROUP: RxHttpActionTypes;
export declare const POST_REALLOCATION_GROUP: RxHttpActionTypes;
export declare const POST_DEALLOCATION_GROUP: RxHttpActionTypes;
export declare const POST_TAG_GROUP: RxHttpActionTypes;
export declare const POST_UNTAG_GROUP: RxHttpActionTypes;
export declare const SET_ALLOCATION_BY_ID = "SET_ALLOCATION_BY_ID";
export declare const SET_ALLOCATIONS_BY_ID_BATCH = "SET_ALLOCATIONS_BY_ID_BATCH";
export declare const SET_ALLOCATION_GROUP_BY_ID = "SET_ALLOCATION_GROUP_BY_ID";
export declare const SET_ALLOCATION_GROUPS_BY_ID_BATCH = "SET_ALLOCATION_GROUPS_BY_ID_BATCH";
export interface SetAllocationByIdAction {
type: 'SET_ALLOCATION_BY_ID';
allocation: AllocationModel;
}
export interface SetAllocationsByIdBatchAction {
type: 'SET_ALLOCATIONS_BY_ID_BATCH';
allocations: {
[jobRefId: string]: AllocationModel;
};
}
export interface SetAllocationGroupByIdAction {
type: 'SET_ALLOCATION_GROUP_BY_ID';
allocationGroup: AllocationGroupModel;
}
export interface SetAllocationGroupsByIdBatchAction {
type: 'SET_ALLOCATION_GROUPS_BY_ID_BATCH';
allocationGroups: {
[jobRefId: string]: AllocationGroupModel;
};
}
export declare type AllocationDataAction = SetAllocationByIdAction | SetAllocationsByIdBatchAction | SetAllocationGroupByIdAction | SetAllocationGroupsByIdBatchAction;
export declare const postAllocation: (job: JobModel, courier: CourierModel, callsign: string, allocationType: AllocationType, username: string, args?: any) => RxHttpRequestAction;
export declare const postAllocationGroup: (jobs: JobModel[], courier: CourierModel, allocationType: AllocationType, username: string, args?: any) => RxHttpRequestAction;
export declare const setAllocationById: (allocation: AllocationModel) => SetAllocationByIdAction;
export declare const setAllocationsByIdBatch: (allocations: {
[jobRefId: string]: AllocationModel;
}) => SetAllocationsByIdBatchAction;
export declare const setAllocationGroupById: (allocationGroup: AllocationGroupModel) => SetAllocationGroupByIdAction;
export declare const setAllocationGroupByIdBatch: (allocationGroups: {
[jobRefId: string]: AllocationGroupModel;
}) => SetAllocationGroupsByIdBatchAction;