quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.66 to 0.0.1-alpha.67
import * as t from 'io-ts'; | ||
import { CostCenterInfo } from './schema/CostCenter'; | ||
import { ItemInfo } from './schema/Item'; | ||
@@ -15,2 +16,34 @@ import { SellerInfo } from './schema/Seller'; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"CostCenter">; | ||
StandardVersion: t.StringC; | ||
SourceApplication: t.StringC; | ||
ProductName: t.StringC; | ||
ProductVersion: t.StringC; | ||
CompanyId: t.StringC; | ||
BranchId: t.StringC; | ||
GeneratedOn: t.Type<Date, string, unknown>; | ||
DeliveryType: t.StringC; | ||
Event: t.UnionC<[t.LiteralC<"upsert">, t.LiteralC<"delete">]>; | ||
}>, t.PartialC<{ | ||
SubType: t.UnionC<[t.StringC, t.NullC]>; | ||
Version: t.UnionC<[t.StringC, t.NullC]>; | ||
CompanySharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
BusinessUnitySharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
BranchSharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>; | ||
Content: t.IntersectionC<[t.TypeC<{ | ||
InternalId: t.StringC; | ||
CompanyId: t.StringC; | ||
Code: t.StringC; | ||
Name: t.StringC; | ||
}>, t.PartialC<{ | ||
CompanyInternalId: t.StringC; | ||
BranchId: t.StringC; | ||
ShortCode: t.StringC; | ||
Active: t.StringC; | ||
}>]>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"ITEM">; | ||
@@ -65,5 +98,2 @@ StandardVersion: t.StringC; | ||
SourceApplication: t.StringC; | ||
/** | ||
* An object as returned by TOTVS' EAI API. | ||
*/ | ||
ProductName: t.StringC; | ||
@@ -113,7 +143,3 @@ ProductVersion: t.StringC; | ||
BusinessUnitySharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
BranchSharingMode: t.UnionC<[t.StringC, t.NullC]>; /** | ||
* Converts a message in our internal odel to TOTVS' EAI's. | ||
* | ||
* @param from Original message | ||
*/ | ||
BranchSharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>; | ||
@@ -149,7 +175,3 @@ Content: t.IntersectionC<[t.TypeC<{ | ||
BusinessUnitySharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
BranchSharingMode: t.UnionC<[t.StringC, t.NullC]>; /** | ||
* Converts a message in our internal odel to TOTVS' EAI's. | ||
* | ||
* @param from Original message | ||
*/ | ||
BranchSharingMode: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>; | ||
@@ -227,5 +249,2 @@ Content: t.IntersectionC<[t.TypeC<{ | ||
SourceApplication: t.StringC; | ||
/** | ||
* An object as returned by TOTVS' EAI API. | ||
*/ | ||
ProductName: t.StringC; | ||
@@ -294,2 +313,2 @@ ProductVersion: t.StringC; | ||
} | ||
export { ItemInfo, UnitOfMeasureInfo, WarehouseInfo, SellerInfo, StockLevelInfo, StockTurnOverInfo }; | ||
export { CostCenterInfo, ItemInfo, UnitOfMeasureInfo, WarehouseInfo, SellerInfo, StockLevelInfo, StockTurnOverInfo }; |
@@ -22,4 +22,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StockTurnOverInfo = exports.StockLevelInfo = exports.SellerInfo = exports.WarehouseInfo = exports.UnitOfMeasureInfo = exports.ItemInfo = exports.Object = void 0; | ||
exports.StockTurnOverInfo = exports.StockLevelInfo = exports.SellerInfo = exports.WarehouseInfo = exports.UnitOfMeasureInfo = exports.ItemInfo = exports.CostCenterInfo = exports.Object = void 0; | ||
const t = __importStar(require("io-ts")); | ||
const CostCenter_1 = require("./schema/CostCenter"); | ||
Object.defineProperty(exports, "CostCenterInfo", { enumerable: true, get: function () { return CostCenter_1.CostCenterInfo; } }); | ||
const Item_1 = require("./schema/Item"); | ||
@@ -41,2 +43,3 @@ Object.defineProperty(exports, "ItemInfo", { enumerable: true, get: function () { return Item_1.ItemInfo; } }); | ||
exports.Object = t.union([ | ||
CostCenter_1.CostCenterInfo, | ||
Item_1.ItemInfo, | ||
@@ -43,0 +46,0 @@ UnitOfMeasure_1.UnitOfMeasureInfo, |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.66", | ||
"version": "0.0.1-alpha.67", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
808837
142
19494