quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.132 to 0.0.1-alpha.133
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.132", | ||
"version": "0.0.1-alpha.133", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "typings": "index.d.ts", |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Message = exports.BusinessRequestMessage = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.RequesterResponseMessage = exports.SenderResponseMessage = exports.SenderMessage = exports.SenderMessageContent = exports.BusinessMessage = exports.TError = exports.Greeting = void 0; | ||
exports.Message = exports.BusinessRequestMessage = exports.BusinessRequest = exports.Deleted = exports.Delete = exports.RequesterResponseMessage = exports.SenderResponseMessage = exports.SenderMessage = exports.SenderMessageContent = exports.BusinessMessage = exports.TError = exports.IntegrationBlocked = exports.Greeting = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -68,2 +68,13 @@ const errors_1 = require("../errors"); | ||
}); | ||
exports.IntegrationBlocked = t.intersection([ | ||
t.type({ | ||
integration: t.string, | ||
erpCompany: t.string, | ||
erpBranch: t.string, | ||
email: t.string | ||
}), | ||
t.partial({ | ||
reason: t.string | ||
}) | ||
]); | ||
exports.TError = t.intersection([ | ||
@@ -190,2 +201,3 @@ t.type({ type: errors_1.ErrorCodeKey }), | ||
constructors_1.metaMessage('greeting', exports.Greeting), | ||
constructors_1.metaMessage('integrationBlocked', exports.IntegrationBlocked), | ||
exports.BusinessRequestMessage, | ||
@@ -192,0 +204,0 @@ constructors_1.userMessage('delete', exports.Delete), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1179397
27823