New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quirons-broker

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quirons-broker - npm Package Compare versions

Comparing version 0.0.1-alpha.44 to 0.0.1-alpha.45

4

index.d.ts

@@ -1311,3 +1311,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -1366,3 +1366,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -1369,0 +1369,0 @@ SourceApplication: t.StringC;

@@ -9,3 +9,3 @@ import * as t from 'io-ts';

/**
* An object as returned by TOTVS' TTalk API.
* An object as returned by TOTVS' EAI API.
*/

@@ -16,3 +16,3 @@ export declare const Object: t.UnionC<[t.TypeC<{

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -46,3 +46,5 @@ SourceApplication: t.StringC;

Values: t.TypeC<{
CostPrice: t.NumberC;
CostPrice: t.NumberC; /**
* A converter interface, meant to convert between TOTVS' models and ours.
*/
SalesPrice: t.NumberC;

@@ -63,3 +65,3 @@ AverageCostPrice: t.NumberC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -95,3 +97,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -127,3 +129,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -159,3 +161,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -176,7 +178,3 @@ SourceApplication: t.StringC;

BranchSharingMode: t.StringC;
}>]>; /**
* Converts a message in our internal odel to TOTVS' TTalk's.
*
* @param from Original message
*/
}>]>;
Content: t.IntersectionC<[t.TypeC<{

@@ -197,7 +195,3 @@ ItemInternalId: t.StringC;

BranchId: t.StringC;
CompanyId: t.StringC; /**
* Convert a TOTVS' TTalk message to an internal model of our own.
*
* @param from Original message
*/
CompanyId: t.StringC;
UnitItemCost: t.StringC;

@@ -211,3 +205,3 @@ WarehouseInternalId: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -259,3 +253,3 @@ SourceApplication: t.StringC;

/**
* Convert a TOTVS' TTalk message to an internal model of our own.
* Convert a TOTVS' EAI message to an internal model of our own.
*

@@ -266,3 +260,3 @@ * @param from Original message

/**
* Converts a message in our internal odel to TOTVS' TTalk's.
* Converts a message in our internal odel to TOTVS' EAI's.
*

@@ -269,0 +263,0 @@ * @param from Original message

@@ -37,3 +37,3 @@ "use strict";

/**
* An object as returned by TOTVS' TTalk API.
* An object as returned by TOTVS' EAI API.
*/

@@ -40,0 +40,0 @@ exports.Object = t.union([

@@ -25,3 +25,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.ItemInfo): Item;
fromInventoryUM(data: inventoryUM.ItemInfo): Item;
};

@@ -49,3 +49,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -52,0 +52,0 @@ return {

@@ -19,3 +19,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.SellerInfo): Seller;
fromInventoryUM(data: inventoryUM.SellerInfo): Seller;
};

@@ -43,3 +43,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -46,0 +46,0 @@ return {

@@ -21,3 +21,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.StockLevelInfo): Array<StockLevel>;
fromInventoryUM(data: inventoryUM.StockLevelInfo): Array<StockLevel>;
};

@@ -45,3 +45,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -48,0 +48,0 @@ return Content.ListOfWarehouseStock.map(item => ({

@@ -18,3 +18,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.StockTurnOverInfo): Array<StockTurnOver>;
fromInventoryUM(data: inventoryUM.StockTurnOverInfo): Array<StockTurnOver>;
};

@@ -42,3 +42,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -45,0 +45,0 @@ return Content.ListofStockTurnoverItem.map(item => ({

@@ -19,3 +19,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.UnitOfMeasureInfo): UnitOfMeasure;
fromInventoryUM(data: inventoryUM.UnitOfMeasureInfo): UnitOfMeasure;
};

@@ -43,3 +43,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -46,0 +46,0 @@ return {

@@ -18,3 +18,3 @@ import * as t from 'io-ts';

export declare const Converter: {
fromTTalk(data: inventoryUM.WarehouseInfo): Warehouse;
fromInventoryUM(data: inventoryUM.WarehouseInfo): Warehouse;
};

@@ -42,3 +42,3 @@ "use strict";

exports.Converter = {
fromTTalk(data) {
fromInventoryUM(data) {
const { Content } = data;

@@ -45,0 +45,0 @@ return {

@@ -127,3 +127,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -182,3 +182,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -245,3 +245,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -300,3 +300,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -482,3 +482,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -537,3 +537,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -540,0 +540,0 @@ SourceApplication: t.StringC;

import * as t from 'io-ts';
export declare const Header: t.IntersectionC<[t.TypeC<{
export declare function getHeader(message: string): t.IntersectionC<[t.TypeC<{
UUID: t.StringC;
Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -7,0 +7,0 @@ SourceApplication: t.StringC;

@@ -22,27 +22,30 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Header = void 0;
exports.getHeader = void 0;
const t = __importStar(require("io-ts"));
const custom_types_1 = require("../../custom-types");
exports.Header = t.intersection([
t.type({
UUID: t.string,
Type: t.string,
Transaction: t.string,
StandardVersion: t.string,
SourceApplication: t.string,
ProductName: t.string,
ProductVersion: t.string,
CompanyId: t.string,
BranchId: t.string,
GeneratedOn: custom_types_1.datetime,
DeliveryType: t.string,
Event: t.string
}),
t.partial({
SubType: t.string,
Version: t.string,
CompanySharingMode: t.string,
BusinessUnitySharingMode: t.string,
BranchSharingMode: t.string
})
]);
function getHeader(message) {
return t.intersection([
t.type({
UUID: t.string,
Type: t.string,
Transaction: t.literal(message),
StandardVersion: t.string,
SourceApplication: t.string,
ProductName: t.string,
ProductVersion: t.string,
CompanyId: t.string,
BranchId: t.string,
GeneratedOn: custom_types_1.datetime,
DeliveryType: t.string,
Event: t.string
}),
t.partial({
SubType: t.string,
Version: t.string,
CompanySharingMode: t.string,
BusinessUnitySharingMode: t.string,
BranchSharingMode: t.string
})
]);
}
exports.getHeader = getHeader;

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -53,3 +53,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -56,0 +56,0 @@ SourceApplication: t.StringC;

@@ -26,2 +26,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'ITEM';
const Item = t.intersection([

@@ -55,8 +56,8 @@ t.type({

exports.ItemInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: Item
});
exports.ListItemInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(Item)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -53,3 +53,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -56,0 +56,0 @@ SourceApplication: t.StringC;

@@ -26,2 +26,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'REQUEST';
const Request = t.intersection([

@@ -55,8 +56,8 @@ t.type({

exports.RequestInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: Request
});
exports.ListRequestInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(Request)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -39,3 +39,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -42,0 +42,0 @@ SourceApplication: t.StringC;

@@ -25,2 +25,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'SELLER';
const Seller = t.intersection([

@@ -40,8 +41,8 @@ t.type({

exports.SellerInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: Seller
});
exports.ListSellerInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(Seller)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -49,3 +49,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -52,0 +52,0 @@ SourceApplication: t.StringC;

@@ -25,2 +25,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'STOCKLEVEL';
const StockLevel = t.intersection([

@@ -50,8 +51,8 @@ t.type({

exports.StockLevelInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: StockLevel
});
exports.ListStockLevelInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(StockLevel)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -53,3 +53,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -56,0 +56,0 @@ SourceApplication: t.StringC;

@@ -26,2 +26,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'STOCKTURNOVER';
const StockTurnOver = t.intersection([

@@ -55,8 +56,8 @@ t.type({

exports.StockTurnOverInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: StockTurnOver
});
exports.ListStockTurnOverInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(StockTurnOver)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -39,3 +39,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -42,0 +42,0 @@ SourceApplication: t.StringC;

@@ -25,2 +25,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'UNITOFMEASURE';
const UnitOfMeasure = t.intersection([

@@ -40,8 +41,8 @@ t.type({

exports.UnitOfMeasureInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: UnitOfMeasure
});
exports.ListUnitOfMeasureInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(UnitOfMeasure)
});

@@ -6,3 +6,3 @@ import * as t from 'io-ts';

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -39,3 +39,3 @@ SourceApplication: t.StringC;

Type: t.StringC;
Transaction: t.StringC;
Transaction: t.LiteralC<string>;
StandardVersion: t.StringC;

@@ -42,0 +42,0 @@ SourceApplication: t.StringC;

@@ -25,2 +25,3 @@ "use strict";

const Header_1 = require("./Header");
const MESSAGE = 'WAREHOUSE';
const Warehouse = t.intersection([

@@ -40,8 +41,8 @@ t.type({

exports.WarehouseInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: Warehouse
});
exports.ListWarehouseInfo = t.type({
Header: Header_1.Header,
Header: Header_1.getHeader(MESSAGE),
Content: t.array(Warehouse)
});
{
"name": "quirons-broker",
"version": "0.0.1-alpha.44",
"version": "0.0.1-alpha.45",
"description": "A small library to expose the broker types",

@@ -5,0 +5,0 @@ "main": "index.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc