quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.8 to 0.0.1-alpha.9
@@ -559,2 +559,9 @@ import * as t from 'io-ts'; | ||
export declare type SenderResponseMessage = t.TypeOf<typeof SenderResponseMessage>; | ||
export declare const RequesterResponseMessage: t.IntersectionC<[t.TypeC<{ | ||
kind: t.LiteralC<"requesterResponse">; | ||
status: t.NumberC; | ||
}>, t.PartialC<{ | ||
errorMessage: t.StringC; | ||
}>]>; | ||
export declare type RequesterResponseMessage = t.TypeOf<typeof SenderResponseMessage>; | ||
/** | ||
@@ -1109,2 +1116,7 @@ * Common content of a business message. | ||
errorMessage: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
kind: t.LiteralC<"requesterResponse">; | ||
status: t.NumberC; | ||
}>, t.PartialC<{ | ||
errorMessage: t.StringC; | ||
}>]>]>; | ||
@@ -1111,0 +1123,0 @@ export declare type Message = t.TypeOf<typeof Message>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Message = exports.BusinessRequestMessage = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.SenderResponseMessage = exports.SenderMessage = exports.SenderMessageContent = exports.Method = exports.BusinessMessage = exports.TError = exports.Greeting = exports.Identification = void 0; | ||
exports.Message = exports.BusinessRequestMessage = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.RequesterResponseMessage = exports.SenderResponseMessage = exports.SenderMessage = exports.SenderMessageContent = exports.Method = exports.BusinessMessage = exports.TError = exports.Greeting = exports.Identification = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -113,3 +113,3 @@ const errors_1 = require("./errors"); | ||
t.type({ | ||
kind: t.literal('senderResponse'), | ||
kind: t.literal('senderResponse') | ||
}), | ||
@@ -120,2 +120,11 @@ t.partial({ | ||
]); | ||
exports.RequesterResponseMessage = t.intersection([ | ||
t.type({ | ||
kind: t.literal('requesterResponse'), | ||
status: t.number | ||
}), | ||
t.partial({ | ||
errorMessage: t.string | ||
}) | ||
]); | ||
/** | ||
@@ -179,3 +188,4 @@ * A delete message. | ||
exports.SenderMessage, | ||
exports.SenderResponseMessage | ||
exports.SenderResponseMessage, | ||
exports.RequesterResponseMessage | ||
]); | ||
@@ -182,0 +192,0 @@ // Type for a meta message (without identification) |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.8", | ||
"version": "0.0.1-alpha.9", | ||
"description": "A small library to expose the broker ttalk types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
173320
4687