quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.115 to 0.0.1-alpha.116
@@ -382,9 +382,20 @@ import * as t from 'io-ts'; | ||
}>; | ||
export declare const ESocialSendResponse: t.TypeC<{ | ||
protocol: t.StringC; | ||
}>; | ||
export declare const ESocialQuery: t.TypeC<{ | ||
protocol: t.StringC; | ||
}>; | ||
export declare const ESocialQueryResponse: t.IntersectionC<[t.TypeC<{ | ||
protocol: t.StringC; | ||
}>, t.PartialC<{ | ||
errors: t.ArrayC<t.StringC>; | ||
receiptNumber: t.StringC; | ||
}>]>; | ||
export declare type ESocialRequest = t.TypeOf<typeof ESocialRequest>; | ||
export declare type ESocialVersion = t.TypeOf<typeof ESocialVersion>; | ||
export declare type ESocialSend = t.TypeOf<typeof ESocialSend>; | ||
export declare type ESocialSendResponse = t.TypeOf<typeof ESocialSendResponse>; | ||
export declare type ESocialQuery = t.TypeOf<typeof ESocialQuery>; | ||
export declare type ESocialQueryResponse = t.TypeOf<typeof ESocialQueryResponse>; | ||
export declare const Message: t.UnionC<[t.TypeC<{ | ||
@@ -788,3 +799,20 @@ kind: t.LiteralC<"eSocialResponse">; | ||
}>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"responseGov">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.UnionC<[t.TypeC<{ | ||
protocol: t.StringC; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
protocol: t.StringC; | ||
}>, t.PartialC<{ | ||
errors: t.ArrayC<t.StringC>; | ||
receiptNumber: t.StringC; | ||
}>]>]>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"responseTAF">; | ||
errorMessage: t.StringC; | ||
}>]>; | ||
export declare type Message = t.TypeOf<typeof Message>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Message = exports.ESocialQuery = exports.ESocialSend = exports.ESocialRequest = exports.ESocialVersion = exports.Response = void 0; | ||
exports.Message = exports.ESocialQueryResponse = exports.ESocialQuery = exports.ESocialSendResponse = exports.ESocialSend = exports.ESocialRequest = exports.ESocialVersion = exports.Response = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -65,5 +65,17 @@ const evtCAT_1 = require("./schemas/evtCAT"); | ||
}); | ||
exports.ESocialSendResponse = t.type({ | ||
protocol: t.string | ||
}); | ||
exports.ESocialQuery = t.type({ | ||
protocol: t.string | ||
}); | ||
exports.ESocialQueryResponse = t.intersection([ | ||
t.type({ | ||
protocol: t.string | ||
}), | ||
t.partial({ | ||
errors: t.array(t.string), | ||
receiptNumber: t.string | ||
}) | ||
]); | ||
exports.Message = t.union([ | ||
@@ -73,3 +85,12 @@ exports.Response, | ||
constructors_1.userMessage('sendGov', exports.ESocialSend), | ||
constructors_1.userMessage('getGov', exports.ESocialQuery) | ||
constructors_1.userMessage('getGov', exports.ESocialQuery), | ||
constructors_1.userMessage('responseGov', t.union([ | ||
exports.ESocialSendResponse, | ||
exports.ESocialQueryResponse | ||
])), | ||
t.type({ | ||
// This should match the tag above | ||
kind: t.literal('responseTAF'), | ||
errorMessage: t.string | ||
}) | ||
]); |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.115", | ||
"version": "0.0.1-alpha.116", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
Sorry, the diff of this file is too big to display
1021156
23675