MissionReassignedv2.0.0
Event represents when a FlatGuide has been reassigned to perform a Mission for a Customer
Details
This event was emitted when a new FlatGuide has been assigned by the Ops Team to replace the current Flatguide.
Consumer / Producer Diagram
Event Example
MissionReassigned Schema (json)
{
"version": "3.0",
"id": "676ddc84-11d2-587b-34a3-bb0d7c1ac7f3",
"detail-type": "MissionReassigned",
"source": "flatsy.service.mission",
"account": "221760190323",
"time": "2023-04-13T07:37:58Z",
"region": "eu-west-3",
"resources": [],
"detail": {
"metadata": {
"application": "System",
"service": "flatsy.service.mission",
"actor": "System",
"actorID": "f2bb4633-95ba-4e94-a53a-7986d7150a3d",
"entity": "Mission",
"correlationID": null,
"entityID": "d8a310f2-76db-4472-b32c-03cda359b067"
},
"data": {
"newAssignment": {
"agent": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "FLATGUIDE"
},
"state": "ACCEPTED",
"startsAt": "2023-11-30",
"endsAt": null
},
"mission": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"version": "3.0",
"createdAt": "2023-12-30T10:00:00+02:00",
"updatedAt": "2023-12-30T10:00:00+02:00",
"type": "INSPECTION",
"currentState": {
"state": "DRAFT",
"changedAt": "2023-12-30T10:00:00+02:00",
"reason": "NO_FLATSY_COVERAGE_OF_AREA",
"actor": "CUSTOMER",
"actorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"optionalComment": "Hiring process of new Flatguide in the area is still a work in progress. Should be okay by end of the year"
},
"propertyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"durationInMinutes": 120,
"incrementInMinutes": 15,
"operations": {
"bookings": {
"areAllowed": true,
"currentThreshold": 7,
"initialThreshold": 7,
"validCount": 7
}
},
"staffing": {
"assignments": [
{
"agent": {
"id": "12345678-4432-4562-b3fc-2c963f66afa6",
"type": "FLATGUIDE"
},
"state": "OFFERED",
"startsAt": "2023-11-30",
"endsAt": null
},
{
"agent": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "FLATGUIDE"
},
"state": "ACCEPTED",
"startsAt": "2023-11-13",
"endsAt": "2023-11-29"
},
{
"agent": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "FLATGUIDE"
},
"state": "ACCEPTED",
"startsAt": "2023-11-30",
"endsAt": null
}
],
"missingAssignment": true
},
"completedAt": "2023-12-30T10:00:00+02:00",
"public": {
"token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"slug": "agence_bleue_tructruc"
},
"bookings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"previousStates": [
{
"state": "DRAFT",
"changedAt": "2023-12-30T10:00:00+02:00",
"reason": "NO_FLATSY_COVERAGE_OF_AREA",
"actor": "CUSTOMER",
"actorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"optionalComment": "Hiring process of new Flatguide in the area is still a work in progress. Should be okay by end of the year"
}
],
"instructions": "La porte d'entrée est dure à ouvrir.",
"tenants": [
{
"firstName": "Olivier",
"lastName": "Dupont",
"email": "odupont@example.com",
"phoneNumber": "+33678901234",
"address": "52 rue d'aboukir",
"postalCode": "75002",
"locality": "Paris"
}
],
"landlord": {
"firstName": "Olivier",
"lastName": "Dupont",
"email": "odupont@example.com",
"address": "52 rue d'aboukir",
"postalCode": "75002",
"locality": "Paris"
},
"thirdParty": {
"id": "aaabbbccc",
"state": "OK",
"completedAt": "2023-12-30T10:00:00+02:00"
},
"inspection": {
"type": "ENTRY",
"preferredDates": {
"startsAt": "2023-11-13",
"endsAt": "2023-11-13"
},
"bookingHours": [
{
"day": "MONDAY",
"times": [
{
"openingTime": "09:30",
"closingTime": "20:30"
}
]
}
],
"daysForward": 10,
"maxViewingsSlots": 90,
"maxViewingsPerDay": 10,
"recipientEmail": "odupont@example.com",
"bookingSelectionMode": "CUSTOMER",
"requiresBrandedInspectionReport": false,
"tool": {
"default": "NOCKEE",
"fallback": "PAPER"
}
},
"property": {
"location": {
"latitude": 12.4,
"longitude": 12.4,
"countryCode": "FRA",
"postalCode": "75002",
"locality": "Paris",
"route": "rue d'Aboukir",
"streetAddress": "50 rue d'Aboukir",
"streetNumber": "50",
"entrance": "bte 2",
"unit": "Résidence les platanes",
"door": "2F",
"placeName": "Dumonceau",
"floorNumber": 3,
"zoneABC": "B1",
"zone123": "1"
},
"estateType": "HOUSE",
"spaces": {
"residential": {
"livingSpace": 120.25,
"livingSpaceLegacy": "120,25 m2",
"gardenSpace": 300,
"terraceSpace": 20,
"balconySpace": 20,
"rooftopSpace": 20,
"cellarSpace": 20
},
"commercial": {
"officeSpace": 100,
"showroomSpace": 500
},
"plot": {
"depth": 300,
"front": 25,
"space": 500
}
},
"structure": {
"rooms": {
"numberOfBathrooms": 2,
"numberOfBedrooms": 1,
"numberOfRooms": 2
},
"building": {
"numberOfFloors": 7,
"totalNumberOfProperties": 7,
"numberOfAnnexBuildings": 0,
"hasAttic": true,
"propertyOrientation": "SOUTH",
"terraceOrientation": "SOUTH",
"gardenOrientation": "SOUTH",
"hasElevator": true,
"kitchen": {
"equipment": "NONE",
"isOpen": true
},
"withView": {
"seaView": false,
"monumentView": false
},
"hasDiningRoom": true,
"hasLivingRoom": true,
"hasWorkspace": true,
"hasOffice": true,
"hasCellar": true,
"hasDressingRoom": true
},
"parkingLots": {
"outside": 0,
"garage": 0
}
},
"publication": {
"state": "STANDBY",
"stateLastUpdatedAt": "2023-11-13T13:46:59.993Z",
"reasonForLastStateUpdate": "string",
"reference": "string",
"additionalReferences": [
"string"
],
"portalUrls": [
{
"name": "APIMO",
"url": "string"
}
],
"showAddress": "STREET_ONLY",
"texts": {
"headline": {
"fr": "french title",
"en": "english title"
},
"description": {
"fr": "french description",
"en": "english description"
}
}
},
"features": {
"hasAirConditioning": true,
"isFurnished": true,
"security": {
"hasIntruderAlarm": true,
"hasReinforcedDoor": true,
"buildingIntercom": "NONE"
},
"isWheelchairAccessible": true,
"hasReceptionist": true,
"residential": {
"hasSauna": true,
"hasBikeGarage": true,
"hasSwimmingPool": true,
"hasJacuzzi": true,
"hasLaundryRoom": true,
"numberOfFireplaces": 2,
"hasCableTv": true
},
"hasHighSpeedInternetAccess": true,
"hasFiberInternetAccess": true,
"hasGarden": true,
"hasTerrace": true,
"hasBalcony": true,
"hasRooftop": true
},
"energy": {
"heatingSource": {
"isCoal": false,
"isDistrictHeating": true,
"isElectric": false,
"isGas": true,
"isOil": false,
"isSolarHeat": false,
"isSolarPower": false,
"isWood": true,
"isWoodPellet": false
},
"hotWaterSource": {
"isCoal": false,
"isDistrictHotWater": true,
"isElectric": false,
"isGas": true,
"isOil": false,
"isSolarHeat": false,
"isSolarPower": false,
"isWood": false,
"isWoodPellet": false
},
"certificate": {
"primaryEnergyConsumption": 448,
"efficiencyClass": "A",
"GHGEmission": 90,
"notes": {
"fr": "french notes",
"en": "english notes"
}
}
}
},
"medias": {
"supporting": {
"documents": {
"report": "string"
}
},
"deliverables": {
"documents": {
"report": "string"
}
}
}
}
}
}
}
Edit this pageLast updated on 2024/1/22
