quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.16 to 0.0.1-alpha.17
@@ -50,3 +50,3 @@ import * as t from 'io-ts'; | ||
content: t.IntersectionC<[t.TypeC<{ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.PartialC<{ | ||
@@ -64,3 +64,3 @@ date: t.Type<Date, string, unknown>; | ||
content: t.IntersectionC<[t.TypeC<{ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.UnionC<[t.TypeC<{ | ||
@@ -343,2 +343,22 @@ id: t.StringC; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"department">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"position">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>]>, t.TypeC<{ | ||
@@ -345,0 +365,0 @@ kind: t.LiteralC<"send">; |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.16", | ||
"version": "0.0.1-alpha.17", | ||
"description": "A small library to expose the broker ttalk types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -305,2 +305,22 @@ import * as t from 'io-ts'; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"department">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"position">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>]>; | ||
@@ -548,3 +568,3 @@ export declare type BusinessMessage = t.TypeOf<typeof BusinessMessage>; | ||
export declare const Delete: t.IntersectionC<[t.TypeC<{ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.UnionC<[t.TypeC<{ | ||
@@ -571,3 +591,3 @@ id: t.StringC; | ||
*/ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.PartialC<{ | ||
@@ -592,3 +612,3 @@ /** Optional starting date, requesting only newer entries. */ | ||
*/ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.PartialC<{ | ||
@@ -658,3 +678,3 @@ /** Optional starting date, requesting only newer entries. */ | ||
*/ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.PartialC<{ | ||
@@ -675,3 +695,3 @@ /** Optional starting date, requesting only newer entries. */ | ||
content: t.IntersectionC<[t.TypeC<{ | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">]>; | ||
kind: t.UnionC<[t.LiteralC<"costcenter">, t.LiteralC<"occupation">, t.LiteralC<"workshift">, t.LiteralC<"training">, t.LiteralC<"absencetype">, t.LiteralC<"allowancetype">, t.LiteralC<"stabilitytype">, t.LiteralC<"person">, t.LiteralC<"employee">, t.LiteralC<"dependant">, t.LiteralC<"functionalhistory">, t.LiteralC<"traininghistory">, t.LiteralC<"department">, t.LiteralC<"position">]>; | ||
}>, t.UnionC<[t.TypeC<{ | ||
@@ -954,2 +974,22 @@ id: t.StringC; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"department">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"position">; | ||
identification: t.TypeC<{ | ||
userId: t.StringC; | ||
branchId: t.StringC; | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>]>, t.TypeC<{ | ||
@@ -956,0 +996,0 @@ kind: t.LiteralC<"send">; |
@@ -43,2 +43,3 @@ "use strict"; | ||
const TrainingNecessity_1_000_1 = require("./schemas/TrainingNecessity_1_000"); | ||
const index_1 = require("./index"); | ||
const constructors_1 = require("../constructors"); | ||
@@ -85,3 +86,5 @@ /** | ||
constructors_1.userMessage('functionalhistory', t.array(functional_history_1.FunctionalHistory)), | ||
constructors_1.userMessage('traininghistory', t.array(training_history_1.TrainingHistory)) | ||
constructors_1.userMessage('traininghistory', t.array(training_history_1.TrainingHistory)), | ||
constructors_1.userMessage('department', t.array(index_1.Department)), | ||
constructors_1.userMessage('position', t.array(index_1.Position)) | ||
]); | ||
@@ -88,0 +91,0 @@ exports.SenderMessageContent = t.union([ |
215030
5801