@zum/flash-client
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -70,3 +70,2 @@ "use strict"; | ||
case types_1.FlashOperationResponseEnum.ERROR: | ||
case types_1.FlashOperationResponseEnum.UNAUTHORIZED: | ||
operationCompleteHandler(new types_1.FlashOperationError(response.status)); | ||
@@ -73,0 +72,0 @@ break; |
@@ -24,11 +24,8 @@ import { EntityId, Topic } from './flashEvent'; | ||
SUCCESS = "SUCCESS", | ||
ERROR = "ERROR", | ||
UNAUTHORIZED = "UNAUTHORIZED" | ||
ERROR = "ERROR" | ||
} | ||
export type FlashOperationResponse = { | ||
status: FlashOperationResponseEnum.SUCCESS; | ||
subscribedEntityIds?: EntityId[]; | ||
} | { | ||
status: FlashOperationResponseEnum.UNAUTHORIZED; | ||
entityIds?: EntityId[]; | ||
} | { | ||
status: FlashOperationResponseEnum.ERROR; | ||
@@ -35,0 +32,0 @@ reason: string; |
@@ -21,4 +21,3 @@ "use strict"; | ||
FlashOperationResponseEnum["ERROR"] = "ERROR"; | ||
FlashOperationResponseEnum["UNAUTHORIZED"] = "UNAUTHORIZED"; | ||
})(FlashOperationResponseEnum = exports.FlashOperationResponseEnum || (exports.FlashOperationResponseEnum = {})); | ||
//# sourceMappingURL=flashOperation.js.map |
@@ -31,3 +31,2 @@ import { AsyncQueue, queue } from 'async'; | ||
case FlashOperationResponseEnum.ERROR: | ||
case FlashOperationResponseEnum.UNAUTHORIZED: | ||
operationCompleteHandler(new FlashOperationError(response.status)); | ||
@@ -34,0 +33,0 @@ break; |
@@ -26,3 +26,2 @@ import { EntityId, Topic } from './flashEvent'; | ||
ERROR = 'ERROR', | ||
UNAUTHORIZED = 'UNAUTHORIZED', | ||
} | ||
@@ -33,10 +32,7 @@ | ||
status: FlashOperationResponseEnum.SUCCESS; | ||
subscribedEntityIds?: EntityId[]; | ||
} | ||
| { | ||
status: FlashOperationResponseEnum.UNAUTHORIZED; | ||
entityIds?: EntityId[]; | ||
} | ||
| { | ||
status: FlashOperationResponseEnum.ERROR; | ||
reason: string; | ||
}; |
@@ -8,4 +8,5 @@ export enum FlashTopic { | ||
TASK_LIST = 'TASK_LIST', | ||
CHECKPOINT_LIST = 'CHECKPOINT_LIST', | ||
DRIVER_BUS_REPORT = 'DRIVER_BUS_REPORT', | ||
ROUTE_ISSUE = 'ROUTE_ISSUE', | ||
} |
{ | ||
"name": "@zum/flash-client", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "Client for connecting to Zum Flash server", | ||
@@ -13,4 +13,3 @@ "license": "UNLICENSED", | ||
"scripts": { | ||
"coverage": "yarn test --coverage && nyc merge coverage coverage-final.json", | ||
"test": "jest --detectOpenHandles -c ../../jest.config.js" | ||
"test": "jest packages/flash-client/ -c ../../jest.config.js" | ||
}, | ||
@@ -17,0 +16,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157467
87
1384