quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.38 to 0.0.1-alpha.39
102
index.d.ts
@@ -6,2 +6,3 @@ import * as t from 'io-ts'; | ||
export { Message as TAFMessage } from './taf/index'; | ||
export { Message as MiddlewareMessage } from './middleware-totvs/index'; | ||
export declare const Message: t.UnionC<[t.UnionC<[t.TypeC<{ | ||
@@ -1083,3 +1084,104 @@ kind: t.LiteralC<"error">; | ||
errorMessage: t.StringC; | ||
}>]>]>, t.UnionC<[t.TypeC<{ | ||
kind: t.LiteralC<"sendMiddleware">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.UnionC<[t.TypeC<{ | ||
ticketCode: t.StringC; | ||
sourceBranch: t.StringC; | ||
tpAmb: t.StringC; | ||
urlTSS: t.StringC; | ||
lote: t.ArrayC<t.TypeC<{ | ||
registryType: t.UnionC<[t.LiteralC<"S-2210">, t.LiteralC<"S-2220">, t.LiteralC<"S-2240">, t.LiteralC<"S-3000">]>; | ||
registryKey: t.StringC; | ||
integrationMessage: t.StringC; | ||
schemaVersion: t.StringC; | ||
}>>; | ||
}>, t.TypeC<{ | ||
sourceBranch: t.StringC; | ||
tpAmb: t.StringC; | ||
urlTSS: t.StringC; | ||
lote: t.ArrayC<t.TypeC<{ | ||
registryType: t.UnionC<[t.LiteralC<"S-2210">, t.LiteralC<"S-2220">, t.LiteralC<"S-2240">, t.LiteralC<"S-3000">]>; | ||
ticketCode: t.StringC; | ||
registryKey: t.StringC; | ||
returnRetResponse: t.StringC; | ||
}>>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
registrationType: t.StringC; | ||
registrationNumber: t.StringC; | ||
uf: t.StringC; | ||
digitalCertificate: t.StringC; | ||
password: t.StringC; | ||
}>, t.PartialC<{ | ||
ie: t.StringC; | ||
companyName: t.StringC; | ||
branchName: t.StringC; | ||
countyCode: t.StringC; | ||
grantNumber: t.StringC; | ||
url: t.StringC; | ||
slot: t.StringC; | ||
label: t.StringC; | ||
module: t.StringC; | ||
idHex: t.StringC; | ||
typeCert: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
registrationType: t.StringC; | ||
registrationNumber: t.StringC; | ||
uf: t.StringC; | ||
}>, t.PartialC<{ | ||
ie: t.StringC; | ||
corporateName: t.StringC; | ||
fancyName: t.StringC; | ||
cityCode: t.StringC; | ||
urlTSS: t.StringC; | ||
}>]>]>; | ||
}>, t.UnionC<[t.TypeC<{ | ||
kind: t.LiteralC<"responseMiddleware">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.UnionC<[t.UnionC<[t.TypeC<{ | ||
ticketCode: t.StringC; | ||
registryKey: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
key: t.StringC; | ||
success: t.BooleanC; | ||
}>, t.PartialC<{ | ||
error: t.ArrayC<t.TypeC<{ | ||
coderr: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>]>>; | ||
keyAmount: t.NumberC; | ||
}>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
success: t.BooleanC; | ||
processed: t.BooleanC; | ||
registryType: t.StringC; | ||
}>, t.PartialC<{ | ||
registryKey: t.StringC; | ||
ticketCode: t.StringC; | ||
statusCode: t.StringC; | ||
statusDescription: t.StringC; | ||
streamingErrors: t.ArrayC<t.PartialC<{ | ||
streamingErrorCode: t.StringC; | ||
streamingErrorDetail: t.StringC; | ||
}>>; | ||
receiptNumber: t.StringC; | ||
xmlRetResponse: t.StringC; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
idCompany: t.StringC; | ||
returnMessage: t.StringC; | ||
}>, t.TypeC<{ | ||
idCompany: t.StringC; | ||
returnMessage: t.StringC; | ||
}>]>, t.NullC]>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"responseMiddleware">; | ||
errorMessage: t.StringC; | ||
}>]>]>]>; | ||
export declare type Message = t.TypeOf<typeof Message>; |
14
index.js
@@ -28,2 +28,3 @@ "use strict"; | ||
const index_2 = require("./taf/index"); | ||
const index_3 = require("./middleware-totvs/index"); | ||
var messages_3 = require("./ttalk/messages"); | ||
@@ -33,6 +34,8 @@ Object.defineProperty(exports, "TtalkMessage", { enumerable: true, get: function () { return messages_3.Message; } }); | ||
Object.defineProperty(exports, "ESocialMessage", { enumerable: true, get: function () { return messages_4.Message; } }); | ||
var index_3 = require("./internal/index"); | ||
Object.defineProperty(exports, "InternalMessage", { enumerable: true, get: function () { return index_3.Message; } }); | ||
var index_4 = require("./taf/index"); | ||
Object.defineProperty(exports, "TAFMessage", { enumerable: true, get: function () { return index_4.Message; } }); | ||
var index_4 = require("./internal/index"); | ||
Object.defineProperty(exports, "InternalMessage", { enumerable: true, get: function () { return index_4.Message; } }); | ||
var index_5 = require("./taf/index"); | ||
Object.defineProperty(exports, "TAFMessage", { enumerable: true, get: function () { return index_5.Message; } }); | ||
var index_6 = require("./middleware-totvs/index"); | ||
Object.defineProperty(exports, "MiddlewareMessage", { enumerable: true, get: function () { return index_6.Message; } }); | ||
exports.Message = t.union([ | ||
@@ -42,3 +45,4 @@ messages_1.Message, | ||
index_1.Message, | ||
index_2.Message | ||
index_2.Message, | ||
index_3.Message | ||
]); |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.38", | ||
"version": "0.0.1-alpha.39", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
538560
12512