quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.104 to 0.0.1-alpha.105
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.104", | ||
"version": "0.0.1-alpha.105", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -582,6 +582,9 @@ import * as t from 'io-ts'; | ||
export declare type WorkingShift = t.TypeOf<typeof WorkingShift>; | ||
export declare const Department: t.TypeC<{ | ||
export declare const Department: t.IntersectionC<[t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>; | ||
}>, t.PartialC<{ | ||
companyId: t.UnionC<[t.StringC, t.NullC]>; | ||
branchId: t.UnionC<[t.StringC, t.NullC, t.LiteralC<false>]>; | ||
}>]>; | ||
export declare type Department = t.TypeOf<typeof Department>; | ||
@@ -588,0 +591,0 @@ export declare const Position: t.IntersectionC<[t.TypeC<{ |
@@ -258,6 +258,12 @@ "use strict"; | ||
]); | ||
exports.Department = t.type({ | ||
id: t.string, | ||
description: t.string | ||
}); | ||
exports.Department = t.intersection([ | ||
t.type({ | ||
id: t.string, | ||
description: t.string | ||
}), | ||
t.partial({ | ||
companyId: custom_types_1.nullable(t.string), | ||
branchId: t.union([t.string, t.null, t.literal(false)]) | ||
}) | ||
]); | ||
exports.Position = t.intersection([ | ||
@@ -264,0 +270,0 @@ t.type({ |
@@ -19,2 +19,3 @@ import * as t from 'io-ts'; | ||
updated_at: t.UnionC<[t.Type<Date, string, unknown>, t.NullC]>; | ||
observation: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>; | ||
@@ -21,0 +22,0 @@ export declare type Positions = t.TypeOf<typeof Positions>; |
@@ -44,3 +44,4 @@ "use strict"; | ||
created_at: custom_types_1.nullable(custom_types_1.datetime), | ||
updated_at: custom_types_1.nullable(custom_types_1.datetime) | ||
updated_at: custom_types_1.nullable(custom_types_1.datetime), | ||
observation: custom_types_1.nullable(t.string) | ||
}) | ||
@@ -47,0 +48,0 @@ ]); |
@@ -82,2 +82,3 @@ import * as t from 'io-ts'; | ||
updated_at: t.UnionC<[t.Type<Date, string, unknown>, t.NullC]>; | ||
observation: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>>; | ||
@@ -352,6 +353,9 @@ }>, t.TypeC<{ | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
content: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>, t.PartialC<{ | ||
companyId: t.UnionC<[t.StringC, t.NullC]>; | ||
branchId: t.UnionC<[t.StringC, t.NullC, t.LiteralC<false>]>; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
@@ -911,2 +915,3 @@ kind: t.LiteralC<"position">; | ||
updated_at: t.UnionC<[t.Type<Date, string, unknown>, t.NullC]>; | ||
observation: t.UnionC<[t.StringC, t.NullC]>; | ||
}>]>>; | ||
@@ -1181,6 +1186,9 @@ }>, t.TypeC<{ | ||
}>; | ||
content: t.ArrayC<t.TypeC<{ | ||
content: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
id: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
}>, t.PartialC<{ | ||
companyId: t.UnionC<[t.StringC, t.NullC]>; | ||
branchId: t.UnionC<[t.StringC, t.NullC, t.LiteralC<false>]>; | ||
}>]>>; | ||
}>, t.TypeC<{ | ||
@@ -1187,0 +1195,0 @@ kind: t.LiteralC<"position">; |
Sorry, the diff of this file is too big to display
1011073
23457