@bodidata/events
Advanced tools
Comparing version 1.14.0 to 1.15.0-0
@@ -14,7 +14,7 @@ 'use strict'; | ||
const NumericMeasurement = _flowRuntime2.default.type('NumericMeasurement', _flowRuntime2.default.object(_flowRuntime2.default.indexer('mmt', _flowRuntime2.default.string(), _flowRuntime2.default.number()))); | ||
const NumericMeasurement = _flowRuntime2.default.type('NumericMeasurement', _flowRuntime2.default.object(_flowRuntime2.default.property('weight', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('height', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('inseam', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('seat_circumference', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('bust_chest_circumference', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('pant_waist_circumference', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('waist_circumference', _flowRuntime2.default.number(), true))); | ||
const FemaleBodyPart = _flowRuntime2.default.type('FemaleBodyPart', _flowRuntime2.default.union(_flowRuntime2.default.string('m_flipbook_shoulders'), _flowRuntime2.default.string('m_flipbook_chest'), _flowRuntime2.default.string('m_flipbook_waist'), _flowRuntime2.default.string('m_flipbook_hips'))); | ||
const FemaleBodyPart = _flowRuntime2.default.type('FemaleBodyPart', _flowRuntime2.default.union(_flowRuntime2.default.string('flipbook_shoulders'), _flowRuntime2.default.string('flipbook_chest'), _flowRuntime2.default.string('flipbook_waist'), _flowRuntime2.default.string('flipbook_hips'))); | ||
const MaleBodyPart = _flowRuntime2.default.type('MaleBodyPart', _flowRuntime2.default.union(_flowRuntime2.default.string('m_flipbook_shoulders'), _flowRuntime2.default.string('m_flipbook_chest'), _flowRuntime2.default.string('m_flipbook_hips'))); | ||
const MaleBodyPart = _flowRuntime2.default.type('MaleBodyPart', _flowRuntime2.default.union(_flowRuntime2.default.string('flipbook_shoulders'), _flowRuntime2.default.string('flipbook_chest'), _flowRuntime2.default.string('flipbook_hips'))); | ||
@@ -25,4 +25,4 @@ const BodiPart = _flowRuntime2.default.type('BodiPart', _flowRuntime2.default.union(MaleBodyPart, FemaleBodyPart)); | ||
const Shapes = _flowRuntime2.default.type('Shapes', _flowRuntime2.default.union(_flowRuntime2.default.object(_flowRuntime2.default.property('m_hip_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('LOW'), _flowRuntime2.default.string('MID'), _flowRuntime2.default.string('HIGH')), true)), _flowRuntime2.default.object(_flowRuntime2.default.property('m_belly_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('SLIGHT'), _flowRuntime2.default.string('FLAT'), _flowRuntime2.default.string('BELLY')), true)), _flowRuntime2.default.object(_flowRuntime2.default.property('m_waist_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('CURVY'), _flowRuntime2.default.string('AVERAGE'), _flowRuntime2.default.string('STRAIGHT')), true)))); | ||
const Shapes = _flowRuntime2.default.type('Shapes', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('hip_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('LOW'), _flowRuntime2.default.string('MID'), _flowRuntime2.default.string('HIGH')), true), _flowRuntime2.default.property('belly_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('SLIGHT'), _flowRuntime2.default.string('FLAT'), _flowRuntime2.default.string('BELLY')), true), _flowRuntime2.default.property('waist_shape', _flowRuntime2.default.union(_flowRuntime2.default.string('CURVY'), _flowRuntime2.default.string('AVERAGE'), _flowRuntime2.default.string('STRAIGHT')), true))); | ||
const Measurements = exports.Measurements = _flowRuntime2.default.type('Measurements', _flowRuntime2.default.union(NumericMeasurement, Flipbook, Shapes)); |
@@ -28,10 +28,8 @@ 'use strict'; | ||
const Model$EmployeeProfile = _flowRuntime2.default.type('Model$EmployeeProfile', _flowRuntime2.default.object(_flowRuntime2.default.property('first_name', _flowRuntime2.default.string()), _flowRuntime2.default.property('last_name', _flowRuntime2.default.string()), _flowRuntime2.default.property('birth_year', _flowRuntime2.default.number()), _flowRuntime2.default.property('email', _flowRuntime2.default.string()), _flowRuntime2.default.property('ethnicity', _flowRuntime2.default.ref(Ethnicity), true))); | ||
const Model$EmployeeEmployment = _flowRuntime2.default.type('Model$EmployeeEmployment', _flowRuntime2.default.object(_flowRuntime2.default.property('organization_id', _flowRuntime2.default.string()), _flowRuntime2.default.property('licensee_id', _flowRuntime2.default.string()), _flowRuntime2.default.property('employee_id', _flowRuntime2.default.string()))); | ||
const Events$Uniform$EmployeeCreated = exports.Events$Uniform$EmployeeCreated = _flowRuntime2.default.type('Events$Uniform$EmployeeCreated', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('id', _flowRuntime2.default.number()), _flowRuntime2.default.property('type', _flowRuntime2.default.string('UNIFORM:EMPLOYEE_CREATED')), _flowRuntime2.default.property('payload', _flowRuntime2.default.object(_flowRuntime2.default.property('profile', _flowRuntime2.default.intersection(_flowRuntime2.default.object(_flowRuntime2.default.property('id', _flowRuntime2.default.string())), Model$EmployeeProfile)), _flowRuntime2.default.property('employment', Model$EmployeeEmployment), _flowRuntime2.default.property('measurements', _flowRuntime2.default.ref(Measurements)))), _flowRuntime2.default.property('meta', DefaultMeta))); | ||
const Events$Uniform$EmployeeCreated = exports.Events$Uniform$EmployeeCreated = _flowRuntime2.default.type('Events$Uniform$EmployeeCreated', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('id', _flowRuntime2.default.number()), _flowRuntime2.default.property('type', _flowRuntime2.default.string('UNIFORM:EMPLOYEE_CREATED')), _flowRuntime2.default.property('payload', _flowRuntime2.default.object(_flowRuntime2.default.property('profile', _flowRuntime2.default.object(_flowRuntime2.default.property('id', _flowRuntime2.default.string()), _flowRuntime2.default.property('first_name', _flowRuntime2.default.string()), _flowRuntime2.default.property('last_name', _flowRuntime2.default.string()), _flowRuntime2.default.property('birth_year', _flowRuntime2.default.number()), _flowRuntime2.default.property('email', _flowRuntime2.default.string()), _flowRuntime2.default.property('ethnicity', _flowRuntime2.default.ref(Ethnicity), true), _flowRuntime2.default.property('sex', _flowRuntime2.default.union(_flowRuntime2.default.string('M'), _flowRuntime2.default.string('F'))), _flowRuntime2.default.property('zipcode', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('country', _flowRuntime2.default.string(), true))), _flowRuntime2.default.property('employment', Model$EmployeeEmployment), _flowRuntime2.default.property('measurements', _flowRuntime2.default.ref(Measurements)))), _flowRuntime2.default.property('meta', DefaultMeta))); | ||
const Events$Uniform$EmployeeProfileChanged = exports.Events$Uniform$EmployeeProfileChanged = _flowRuntime2.default.type('Events$Uniform$EmployeeProfileChanged', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('id', _flowRuntime2.default.number()), _flowRuntime2.default.property('type', _flowRuntime2.default.string('UNIFORM:EMPLOYEE_PROFILE_CHANGED')), _flowRuntime2.default.property('payload', _flowRuntime2.default.object(_flowRuntime2.default.property('profile', _flowRuntime2.default.intersection(_flowRuntime2.default.object(_flowRuntime2.default.property('id', _flowRuntime2.default.string())), _flowRuntime2.default.$shape(Model$EmployeeProfile))))), _flowRuntime2.default.property('meta', DefaultMeta))); | ||
const Events$Uniform$EmployeeProfileChanged = exports.Events$Uniform$EmployeeProfileChanged = _flowRuntime2.default.type('Events$Uniform$EmployeeProfileChanged', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('id', _flowRuntime2.default.number()), _flowRuntime2.default.property('type', _flowRuntime2.default.string('UNIFORM:EMPLOYEE_PROFILE_CHANGED')), _flowRuntime2.default.property('payload', _flowRuntime2.default.object(_flowRuntime2.default.property('profile', _flowRuntime2.default.object(_flowRuntime2.default.property('id', _flowRuntime2.default.string()), _flowRuntime2.default.property('first_name', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('last_name', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('birth_year', _flowRuntime2.default.number(), true), _flowRuntime2.default.property('email', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('ethnicity', _flowRuntime2.default.ref(Ethnicity), true), _flowRuntime2.default.property('sex', _flowRuntime2.default.union(_flowRuntime2.default.string('M'), _flowRuntime2.default.string('F')), true), _flowRuntime2.default.property('zipcode', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('country', _flowRuntime2.default.string(), true))))), _flowRuntime2.default.property('meta', DefaultMeta))); | ||
const Events$Uniform$EmployeeMeasurementsChanged = exports.Events$Uniform$EmployeeMeasurementsChanged = _flowRuntime2.default.type('Events$Uniform$EmployeeMeasurementsChanged', _flowRuntime2.default.exactObject(_flowRuntime2.default.property('id', _flowRuntime2.default.number()), _flowRuntime2.default.property('type', _flowRuntime2.default.string('UNIFORM:EMPLOYEE_MEASUREMENTS_CHANGED')), _flowRuntime2.default.property('payload', _flowRuntime2.default.object(_flowRuntime2.default.property('profile', _flowRuntime2.default.object(_flowRuntime2.default.property('id', _flowRuntime2.default.string()))), _flowRuntime2.default.property('measurements', _flowRuntime2.default.ref(Measurements)))), _flowRuntime2.default.property('meta', DefaultMeta))); |
{ | ||
"name": "@bodidata/events", | ||
"version": "1.14.0", | ||
"version": "1.15.0-0", | ||
"description": "strongly typed events dictionary", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
/* @flow */ | ||
type NumericMeasurement = { [mmt: string]: number }; | ||
type NumericMeasurement = { | ||
weight?: number, | ||
height?: number, | ||
inseam?: number, | ||
seat_circumference?: number, | ||
bust_chest_circumference?: number, | ||
pant_waist_circumference?: number, | ||
waist_circumference?: number, | ||
}; | ||
type FemaleBodyPart = | ||
| 'm_flipbook_shoulders' | ||
| 'm_flipbook_chest' | ||
| 'm_flipbook_waist' | ||
| 'm_flipbook_hips'; | ||
| 'flipbook_shoulders' | ||
| 'flipbook_chest' | ||
| 'flipbook_waist' | ||
| 'flipbook_hips'; | ||
type MaleBodyPart = | ||
| 'm_flipbook_shoulders' | ||
| 'm_flipbook_chest' | ||
| 'm_flipbook_hips'; | ||
type MaleBodyPart = 'flipbook_shoulders' | 'flipbook_chest' | 'flipbook_hips'; | ||
@@ -21,7 +26,8 @@ type BodiPart = MaleBodyPart | FemaleBodyPart; | ||
type Shapes = | ||
| { m_hip_shape?: 'LOW' | 'MID' | 'HIGH' } | ||
| { m_belly_shape?: 'SLIGHT' | 'FLAT' | 'BELLY' } | ||
| { m_waist_shape?: 'CURVY' | 'AVERAGE' | 'STRAIGHT' }; | ||
type Shapes = {| | ||
hip_shape?: 'LOW' | 'MID' | 'HIGH', | ||
belly_shape?: 'SLIGHT' | 'FLAT' | 'BELLY', | ||
waist_shape?: 'CURVY' | 'AVERAGE' | 'STRAIGHT', | ||
|}; | ||
export type Measurements = NumericMeasurement | Flipbook | Shapes; |
@@ -31,10 +31,2 @@ /* @flow */ | ||
type Model$EmployeeProfile = { | ||
first_name: string, | ||
last_name: string, | ||
birth_year: number, | ||
email: string, | ||
ethnicity?: Ethnicity, | ||
}; | ||
type Model$EmployeeEmployment = { | ||
@@ -50,3 +42,13 @@ organization_id: string, | ||
payload: { | ||
profile: { id: string } & Model$EmployeeProfile, | ||
profile: { | ||
id: string, | ||
first_name: string, | ||
last_name: string, | ||
birth_year: number, | ||
email: string, | ||
ethnicity?: Ethnicity, | ||
sex: 'M' | 'F', | ||
zipcode?: string, | ||
country?: string, | ||
}, | ||
employment: Model$EmployeeEmployment, | ||
@@ -62,3 +64,13 @@ measurements: Measurements, | ||
payload: { | ||
profile: { id: string } & $Shape<Model$EmployeeProfile>, | ||
profile: { | ||
id: string, | ||
first_name?: string, | ||
last_name?: string, | ||
birth_year?: number, | ||
email?: string, | ||
ethnicity?: Ethnicity, | ||
sex?: 'M' | 'F', | ||
zipcode?: string, | ||
country?: string, | ||
}, | ||
}, | ||
@@ -65,0 +77,0 @@ meta: DefaultMeta, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
131756
605
2