quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.3 to 0.0.1-alpha.4
@@ -329,2 +329,9 @@ import * as t from 'io-ts'; | ||
export declare type BusinessMessage = t.TypeOf<typeof BusinessMessage>; | ||
export declare const Method: t.KeyofC<{ | ||
GET: null; | ||
POST: null; | ||
PUT: null; | ||
DELETE: null; | ||
}>; | ||
export declare type Method = t.TypeOf<typeof Method>; | ||
export declare const SenderMessage: t.UnionC<[t.TypeC<{ | ||
@@ -464,9 +471,2 @@ kind: t.LiteralC<"allowance">; | ||
export declare type SenderMessage = t.TypeOf<typeof SenderMessage>; | ||
declare const Method: t.KeyofC<{ | ||
GET: null; | ||
POST: null; | ||
PUT: null; | ||
DELETE: null; | ||
}>; | ||
export declare type Method = t.TypeOf<typeof Method>; | ||
/** | ||
@@ -473,0 +473,0 @@ * Common content of a business message. |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Message = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.SenderMessage = exports.BusinessMessage = exports.TError = exports.Greeting = exports.Identification = void 0; | ||
exports.Message = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.SenderMessage = exports.Method = exports.BusinessMessage = exports.TError = exports.Greeting = exports.Identification = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -92,2 +92,9 @@ const errors_1 = require("./errors"); | ||
]); | ||
// Recomendation for enums, io-ts | ||
exports.Method = t.keyof({ | ||
GET: null, | ||
POST: null, | ||
PUT: null, | ||
DELETE: null | ||
}); | ||
exports.SenderMessage = t.union([ | ||
@@ -100,9 +107,2 @@ senderMessage('allowance', Allowance_1_000_1.AllowanceInfo), | ||
]); | ||
// Recomendation for enums, io-ts | ||
const Method = t.keyof({ | ||
GET: null, | ||
POST: null, | ||
PUT: null, | ||
DELETE: null | ||
}); | ||
/** | ||
@@ -186,5 +186,5 @@ * A delete message. | ||
identification: exports.Identification, | ||
method: Method, | ||
method: exports.Method, | ||
content | ||
}); | ||
} |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.3", | ||
"version": "0.0.1-alpha.4", | ||
"description": "A small library to expose the broker ttalk types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
168441
0