quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.55 to 0.0.1-alpha.56
@@ -237,2 +237,3 @@ import * as t from 'io-ts'; | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -239,0 +240,0 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ |
@@ -142,5 +142,3 @@ import * as t from 'io-ts'; | ||
GeneratedOn: t.Type<Date, string, unknown>; | ||
DeliveryType: t.StringC; /** | ||
* Possible business messages. | ||
*/ | ||
DeliveryType: t.StringC; | ||
Event: t.UnionC<[t.LiteralC<"upsert">, t.LiteralC<"delete">]>; | ||
@@ -155,2 +153,3 @@ }>, t.PartialC<{ | ||
Content: t.IntersectionC<[t.TypeC<{ | ||
Type: t.LiteralC<"001">; | ||
InternalId: t.StringC; | ||
@@ -216,2 +215,3 @@ UserRequesterCode: t.StringC; | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -269,5 +269,3 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ | ||
GeneratedOn: t.Type<Date, string, unknown>; | ||
DeliveryType: t.StringC; /** | ||
* Possible business messages. | ||
*/ | ||
DeliveryType: t.StringC; | ||
Event: t.UnionC<[t.LiteralC<"upsert">, t.LiteralC<"delete">]>; | ||
@@ -282,2 +280,3 @@ }>, t.PartialC<{ | ||
Content: t.IntersectionC<[t.TypeC<{ | ||
Type: t.LiteralC<"001">; | ||
InternalId: t.StringC; | ||
@@ -343,2 +342,3 @@ UserRequesterCode: t.StringC; | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -371,8 +371,175 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ | ||
export declare type SenderMessage = t.TypeOf<typeof SenderMessage>; | ||
export declare const SenderResponseMessage: t.IntersectionC<[t.TypeC<{ | ||
kind: t.LiteralC<"senderResponseInventory">; | ||
export declare const SenderResponseMessage: t.UnionC<[t.TypeC<{ | ||
kind: t.LiteralC<"responseInventory">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.UnionC<[t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>]>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
kind: t.LiteralC<"responseInventory">; | ||
}>, t.PartialC<{ | ||
errorMessage: t.StringC; | ||
bodyMessage: t.StringC; | ||
}>]>; | ||
}>]>]>; | ||
export declare type SenderResponseMessage = t.TypeOf<typeof SenderResponseMessage>; | ||
@@ -523,5 +690,3 @@ /** | ||
GeneratedOn: t.Type<Date, string, unknown>; | ||
DeliveryType: t.StringC; /** | ||
* Possible business messages. | ||
*/ | ||
DeliveryType: t.StringC; | ||
Event: t.UnionC<[t.LiteralC<"upsert">, t.LiteralC<"delete">]>; | ||
@@ -536,2 +701,3 @@ }>, t.PartialC<{ | ||
Content: t.IntersectionC<[t.TypeC<{ | ||
Type: t.LiteralC<"001">; | ||
InternalId: t.StringC; | ||
@@ -597,2 +763,3 @@ UserRequesterCode: t.StringC; | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -623,8 +790,175 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ | ||
}>]>; | ||
}>, t.UnionC<[t.TypeC<{ | ||
kind: t.LiteralC<"responseInventory">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.UnionC<[t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>]>; | ||
}>, t.IntersectionC<[t.TypeC<{ | ||
kind: t.LiteralC<"senderResponseInventory">; | ||
kind: t.LiteralC<"responseInventory">; | ||
}>, t.PartialC<{ | ||
errorMessage: t.StringC; | ||
bodyMessage: t.StringC; | ||
}>]>]>; | ||
}>]>]>]>; | ||
export declare type Message = t.TypeOf<typeof Message>; |
@@ -53,10 +53,18 @@ "use strict"; | ||
}); | ||
exports.SenderResponseMessage = t.intersection([ | ||
t.type({ | ||
kind: t.literal('senderResponseInventory') | ||
}), | ||
t.partial({ | ||
errorMessage: t.string, | ||
bodyMessage: t.string | ||
}) | ||
exports.SenderResponseMessage = t.union([ | ||
constructors_1.userMessage('responseInventory', t.union([ | ||
Request_1.RequestError, | ||
Request_1.RequestReturn, | ||
StockTurnOver_1.StockTurnOverError, | ||
StockTurnOver_1.StockTurnOverReturn | ||
])), | ||
t.intersection([ | ||
t.type({ | ||
kind: t.literal('responseInventory') | ||
}), | ||
t.partial({ | ||
errorMessage: t.string, | ||
bodyMessage: t.string | ||
}) | ||
]) | ||
]); | ||
@@ -63,0 +71,0 @@ /** |
@@ -22,2 +22,84 @@ import * as t from 'io-ts'; | ||
}>]>; | ||
export declare const RequestReturn: t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>; | ||
export declare const RequestError: t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"REQUEST">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>; | ||
export declare const RequestInfo: t.TypeC<{ | ||
@@ -45,2 +127,3 @@ Header: t.IntersectionC<[t.TypeC<{ | ||
Content: t.IntersectionC<[t.TypeC<{ | ||
Type: t.LiteralC<"001">; | ||
InternalId: t.StringC; | ||
@@ -95,2 +178,3 @@ UserRequesterCode: t.StringC; | ||
Content: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
Type: t.LiteralC<"001">; | ||
InternalId: t.StringC; | ||
@@ -123,3 +207,5 @@ UserRequesterCode: t.StringC; | ||
}>; | ||
export declare type RequestReturn = t.TypeOf<typeof RequestReturn>; | ||
export declare type RequestError = t.TypeOf<typeof RequestError>; | ||
export declare type RequestInfo = t.TypeOf<typeof RequestInfo>; | ||
export declare type ListRequestInfo = t.TypeOf<typeof ListRequestInfo>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListRequestInfo = exports.RequestInfo = exports.Header = void 0; | ||
exports.ListRequestInfo = exports.RequestInfo = exports.RequestError = exports.RequestReturn = exports.Header = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -67,2 +67,3 @@ const custom_types_1 = require("../../custom-types"); | ||
t.type({ | ||
Type: t.literal('001'), | ||
InternalId: t.string, | ||
@@ -85,2 +86,46 @@ UserRequesterCode: t.string, | ||
]); | ||
exports.RequestReturn = t.type({ | ||
Header: exports.Header, | ||
Content: t.type({ | ||
ReturnContent: t.type({ | ||
ListOfInternalID: t.array(t.type({ | ||
Destination: t.string, | ||
Name: t.string, | ||
Origin: t.string | ||
})) | ||
}), | ||
ProcessingInformation: t.type({ | ||
Status: t.string, | ||
ProcessedOn: t.union([custom_types_1.datetime, custom_types_1.date]) | ||
}), | ||
ReceivedMessage: t.type({ | ||
UUID: t.string, | ||
Event: t.string, | ||
SentBy: t.string | ||
}) | ||
}) | ||
}); | ||
exports.RequestError = t.type({ | ||
Header: exports.Header, | ||
Content: t.type({ | ||
ReturnContent: t.type({ | ||
Error: t.string | ||
}), | ||
ProcessingInformation: t.type({ | ||
Status: t.string, | ||
ProcessedOn: t.union([custom_types_1.datetime, custom_types_1.date]), | ||
Details: t.array(t.type({ | ||
Code: t.string, | ||
Message: t.string, | ||
DetailedMessage: t.string, | ||
HelpUrl: t.string | ||
})) | ||
}), | ||
ReceivedMessage: t.type({ | ||
UUID: t.string, | ||
Event: t.string, | ||
SentBy: t.string | ||
}) | ||
}) | ||
}); | ||
exports.RequestInfo = t.type({ | ||
@@ -87,0 +132,0 @@ Header: exports.Header, |
@@ -22,2 +22,84 @@ import * as t from 'io-ts'; | ||
}>]>; | ||
export declare const StockTurnOverReturn: t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
ListOfInternalID: t.ArrayC<t.TypeC<{ | ||
Destination: t.StringC; | ||
Name: t.StringC; | ||
Origin: t.StringC; | ||
}>>; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>; | ||
export declare const StockTurnOverError: t.TypeC<{ | ||
Header: t.IntersectionC<[t.TypeC<{ | ||
UUID: t.StringC; | ||
Type: t.StringC; | ||
Transaction: t.LiteralC<"STOCKTURNOVER">; | ||
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.TypeC<{ | ||
ReturnContent: t.TypeC<{ | ||
Error: t.StringC; | ||
}>; | ||
ProcessingInformation: t.TypeC<{ | ||
Status: t.StringC; | ||
ProcessedOn: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
Details: t.ArrayC<t.TypeC<{ | ||
Code: t.StringC; | ||
Message: t.StringC; | ||
DetailedMessage: t.StringC; | ||
HelpUrl: t.StringC; | ||
}>>; | ||
}>; | ||
ReceivedMessage: t.TypeC<{ | ||
UUID: t.StringC; | ||
Event: t.StringC; | ||
SentBy: t.StringC; | ||
}>; | ||
}>; | ||
}>; | ||
export declare const StockTurnOverInfo: t.TypeC<{ | ||
@@ -48,2 +130,3 @@ Header: t.IntersectionC<[t.TypeC<{ | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -98,2 +181,3 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ | ||
BranchId: t.StringC; | ||
MovementTypeCode: t.UnionC<[t.LiteralC<"399">, t.LiteralC<"599">]>; | ||
RegisterDateTime: t.UnionC<[t.Type<Date, string, unknown>, t.Type<string, string, unknown>]>; | ||
@@ -123,3 +207,5 @@ ListofStockTurnoverItem: t.ArrayC<t.TypeC<{ | ||
}>; | ||
export declare type StockTurnOverReturn = t.TypeOf<typeof StockTurnOverReturn>; | ||
export declare type StockTurnOverError = t.TypeOf<typeof StockTurnOverError>; | ||
export declare type StockTurnOverInfo = t.TypeOf<typeof StockTurnOverInfo>; | ||
export declare type ListStockTurnOverInfo = t.TypeOf<typeof ListStockTurnOverInfo>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListStockTurnOverInfo = exports.StockTurnOverInfo = exports.Header = void 0; | ||
exports.ListStockTurnOverInfo = exports.StockTurnOverInfo = exports.StockTurnOverError = exports.StockTurnOverReturn = exports.Header = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -70,2 +70,3 @@ const custom_types_1 = require("../../custom-types"); | ||
BranchId: t.string, | ||
MovementTypeCode: t.union([t.literal('399'), t.literal('599')]), | ||
RegisterDateTime: t.union([custom_types_1.datetime, custom_types_1.date]), | ||
@@ -85,2 +86,46 @@ ListofStockTurnoverItem: t.array(t.type({ | ||
]); | ||
exports.StockTurnOverReturn = t.type({ | ||
Header: exports.Header, | ||
Content: t.type({ | ||
ReturnContent: t.type({ | ||
ListOfInternalID: t.array(t.type({ | ||
Destination: t.string, | ||
Name: t.string, | ||
Origin: t.string | ||
})) | ||
}), | ||
ProcessingInformation: t.type({ | ||
Status: t.string, | ||
ProcessedOn: t.union([custom_types_1.datetime, custom_types_1.date]) | ||
}), | ||
ReceivedMessage: t.type({ | ||
UUID: t.string, | ||
Event: t.string, | ||
SentBy: t.string | ||
}) | ||
}) | ||
}); | ||
exports.StockTurnOverError = t.type({ | ||
Header: exports.Header, | ||
Content: t.type({ | ||
ReturnContent: t.type({ | ||
Error: t.string | ||
}), | ||
ProcessingInformation: t.type({ | ||
Status: t.string, | ||
ProcessedOn: t.union([custom_types_1.datetime, custom_types_1.date]), | ||
Details: t.array(t.type({ | ||
Code: t.string, | ||
Message: t.string, | ||
DetailedMessage: t.string, | ||
HelpUrl: t.string | ||
})) | ||
}), | ||
ReceivedMessage: t.type({ | ||
UUID: t.string, | ||
Event: t.string, | ||
SentBy: t.string | ||
}) | ||
}) | ||
}); | ||
exports.StockTurnOverInfo = t.type({ | ||
@@ -87,0 +132,0 @@ Header: exports.Header, |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.55", | ||
"version": "0.0.1-alpha.56", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
Sorry, the diff of this file is too big to display
702809
16710