Skip to content

Instantly share code, notes, and snippets.

@landorid
Created November 1, 2022 16:49
Show Gist options
  • Save landorid/792fb837eed41540e685794db4507f73 to your computer and use it in GitHub Desktop.
Save landorid/792fb837eed41540e685794db4507f73 to your computer and use it in GitHub Desktop.
import { rest } from 'msw'
import { Priority } from '../types'
export const handlers = [
rest.get(`${process.env.NEXT_PUBLIC_API_URL}records`, (_req, res, ctx) => {
return res(
ctx.json<{ results: any[]; total_result_count: number }>({
results: [
{
id: '4ea72bc8-3a2f-4364-b853-8659969d4792',
record_type: 'ISSUE',
account: {
id: '6f5ca847-a53d-4a9a-a3b8-f0b155cb202e',
phone: '0141 447 4731',
name: 'Raven Controls',
email: '[email protected]',
address_line_1: 'Red Tree Magenta',
address_line_2: 'Glasgow Rd',
address_line_3: 'Rutherglen',
city: 'Glasgow',
postcode: 'G73 1SA',
lead_contact: null,
organisational_role: null,
logo_image_url: '',
department: null,
is_active: '1',
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
title: 'Brian test',
notes: '',
is_flagged: false,
notify_all: false,
reference_number: '1-19/10/2022',
reporter: '',
is_complete: false,
location: {
id: '67126a12-e405-4175-94b1-707b94cfc70e',
name: null,
issue: {
id: '4ea72bc8-3a2f-4364-b853-8659969d4792',
title: 'Brian test',
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: null,
},
map: '',
lat: null,
long: null,
x: null,
y: null,
named_location: null,
location_state: 'EMPTY',
has_precise_point: false,
},
messages: [],
notification_groups: [],
categories: [],
media: [],
process: null,
process_tasks: [],
outstanding_tasks: 0,
completed_tasks: 0,
adhoc_tasks: [
{
id: 'fbe25c3e-8908-4732-9465-b22cc8eb0a20',
name: 'New vic',
type: 'issue_task',
task_order: 0,
description: null,
on_fly_addition: null,
record_media: [],
comment: null,
assignee: {
id: '30cee281-8e94-4edb-bac3-977084dd4c39',
first_name: 'Aleksandar',
last_name: 'Kalapsazov',
display_name: 'Aleks',
mobile: '1',
email: '[email protected]',
profile_picture: '',
is_active: true,
sms_notifications_active: false,
has_accepted_invitation: true,
organisational_role: null,
department: null,
organisation: null,
last_login_at: {
date: '2022-03-04 15:37:45.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-08-15 12:25:10.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-11-08 13:24:56.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 10:06:22.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:22:56.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
],
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: null,
log: {
id: 'cf98e91f-8cf3-4f11-98c8-5cf7aeef5204',
name: 'Brian Map Test Log',
lead_contact: 'Brian',
is_archived: false,
timezone: 'Europe/London',
created_at: {
date: '2022-10-19 16:49:18.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
last_activity: {
date: '2022-10-31 12:14:30.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
issue_count: 1,
checklist_count: 0,
},
timezone: 'Europe/London',
created_by: {
id: '42dd1ec9-3f38-4330-890c-37105b3e5c37',
first_name: 'bri',
last_name: 'Bri',
display_name: 'brian',
mobile: '07848852298',
email: '[email protected]',
profile_picture:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/users/42dd1ec9-3f38-4330-890c-37105b3e5c37/profile-picture/404f6efb-a5da-4544-890a-9dc63c93c47a?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=86dadd16427757cc23e2242267fb72eec25689b645ec184ba673c9c5e70111e4',
is_active: true,
sms_notifications_active: false,
has_accepted_invitation: true,
organisational_role: null,
department: null,
organisation: null,
last_login_at: {
date: '2022-06-02 10:06:19.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-03-14 16:06:31.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-12-01 14:56:32.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
created_at: {
date: '2022-10-19 16:50:58.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 12:14:30.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_active_at: {
date: '2022-10-19 16:50:58.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_inactive_at: null,
is_linked: false,
},
{
id: 'f9483ffd-5d65-40ce-9489-8f6388ac5493',
record_type: 'ISSUE',
account: {
id: '6f5ca847-a53d-4a9a-a3b8-f0b155cb202e',
phone: '0141 447 4731',
name: 'Raven Controls',
email: '[email protected]',
address_line_1: 'Red Tree Magenta',
address_line_2: 'Glasgow Rd',
address_line_3: 'Rutherglen',
city: 'Glasgow',
postcode: 'G73 1SA',
lead_contact: null,
organisational_role: null,
logo_image_url: '',
department: null,
is_active: '1',
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
title: 'Test again',
notes: '',
is_flagged: false,
notify_all: false,
reference_number: '2-26/10/2022',
reporter: '',
is_complete: true,
location: {
id: '32bcaf22-879c-4996-b407-613d0d42676a',
name: null,
issue: {
id: 'f9483ffd-5d65-40ce-9489-8f6388ac5493',
title: 'Test again',
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: {
id: 'a1b938c9-6235-4b68-933d-e5fc3b3803e8',
name: '5 - Low',
weight: 4,
colour_hash: '#FFDD7B',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
},
map: {
id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
name: 'Rock Werchter Area Map',
level: '0',
type: 'IMAGE',
original_filename: 'Rock Werchter Area Map.png',
storage_key:
'6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/processed/b85c60e2-1018-4f0c-9563-cf1968a5fc44',
url: 'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/processed/b85c60e2-1018-4f0c-9563-cf1968a5fc44?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=a9d2fe41e6cfbb4ce10259133b8fb9df9e30e35522891bd2c4d399519c1459f9',
storage_key_original: true,
url_original:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/originals/3ed2280e-3432-4d7c-ad32-5072a09c0e2d?response-content-disposition=attachment%3B%20filename%3D%22Rock%20Werchter%20Area%20Map.png%22&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=92cbcb490c03478f84da93c846237b45211f4e13c44ac2d8cae46e0daa53740d',
storage_key_thumbnail:
'6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/thumbnails/e42c7d74-8c0d-4829-b1ea-9fc6faca02df',
url_thumbnail:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/thumbnails/e42c7d74-8c0d-4829-b1ea-9fc6faca02df?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=06bbd9b59b1aac42857ee016ac41a0d04c57fa5b09514efbeacd370fccdea052',
sites: {},
named_locations: [
{
id: '2fa51af9-2f72-4966-9c1f-af5b7490b857',
name: 'Bus Stop 1',
full_name: 'All Maps > Bus Stop 1',
sites: [
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'point',
map_coordinates: '704,67',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: '3fe4ccce-7da7-4d12-8951-03f18a9acd9d',
name: 'Bus Stop 2',
full_name: 'Rock Werchter > Bus Stop 2',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}, {}, {}, {}, {}, {}, {}, {}, {}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'point',
map_coordinates: '100,216',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: '955e146b-f16a-4758-b0b8-105fce733da2',
name: 'C16',
full_name: 'Rock Werchter > C16',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates:
'678,1,731,0,722,42,713,40,701,44,687,38,677,36',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'a59d1f59-1a68-4076-a57d-3aecefd21782',
name: 'C17',
full_name: 'Rock Werchter > C17',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates: '268,8,279,8,280,24,268,26',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'ba7c1c73-45d8-4341-a344-d627b265729a',
name: 'Event Site',
full_name: 'Rock Werchter > Event Site',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}, {}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates:
'259,220,280,289,322,277,330,263,338,251,324,236,315,238,317,227',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'c95766fa-f00b-4431-a62a-18f7a200cf75',
name: 'Hive ADL',
full_name: 'All Maps > Hive ADL',
sites: [
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates: '303,214,305,202,318,204,313,216',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
],
named_location_count: 6,
user: {
id: 'ec3fe94d-74cd-49ad-9735-a4e44eff6620',
first_name: 'Jen',
last_name: 'McLean',
display_name: 'Jen',
profile_picture:
'/assets/img/theme/user-placeholder-default.png',
is_active: true,
has_accepted_invitation: true,
organisational_role: 'CEO',
department: 'Code Monkeys',
organisation: 'Raven',
sms_notifications_active: true,
email: '[email protected]',
mobile: '0',
has_outstanding_invitation: false,
account: {
id: '6f5ca847-a53d-4a9a-a3b8-f0b155cb202e',
phone: '0141 447 4731',
name: 'Raven Controls',
email: '[email protected]',
address_line_1: 'Red Tree Magenta',
address_line_2: 'Glasgow Rd',
address_line_3: 'Rutherglen',
city: 'Glasgow',
postcode: 'G73 1SA',
lead_contact: null,
organisational_role: null,
logo_image_url: '',
department: null,
is_active: '1',
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
user: {
id: 'f8317513-5e8f-4c22-b548-2cb98fcecc4f',
email: '[email protected]',
timezone: 'Europe/London',
last_detected_timezone: 'Europe/London',
last_login_at: {
date: '2022-10-31 13:53:27.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
password_reset_at: {
date: '2022-07-06 21:57:11.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
device_registration_tokens: [
{
id: 'bf32cf04-e913-41e7-8ed4-7808fb032b67',
token:
'eVUHCfRjwUpgoXNaSTEQZr:APA91bGb9hzCihfKNeOZYrcC1NNVyq6k0ule7NS6vcWJ4dorlEkH5mxy5exyFdwPF3VOPwZahrwHFO8DuGaimV-3PdCxCXBMbfauLdzrMwHbCSdvhuuBtUJo3bpTHV2LoP_VtgMsqCvy',
},
],
},
roles: [
{
id: '748b8266-95dc-4391-be32-d22edbc8d088',
name: 'Account Administrator',
description:
'Account Administrator - Full System Access - NON_CONFIGURABLE',
system_name: 'ROLE_ADMIN',
is_editable: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
notification_groups: [
{
id: '88107e69-7612-4a36-a75f-5cc812c22429',
name: 'Management',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:05.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2021-09-02 06:10:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
],
devices: [
{
id: 'bf32cf04-e913-41e7-8ed4-7808fb032b67',
token:
'eVUHCfRjwUpgoXNaSTEQZr:APA91bGb9hzCihfKNeOZYrcC1NNVyq6k0ule7NS6vcWJ4dorlEkH5mxy5exyFdwPF3VOPwZahrwHFO8DuGaimV-3PdCxCXBMbfauLdzrMwHbCSdvhuuBtUJo3bpTHV2LoP_VtgMsqCvy',
},
],
last_login_at: {
date: '2022-10-31 14:00:56.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-06-02 10:58:32.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:02.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
can_access_all_logs: true,
},
center_lat: null,
center_long: null,
coefficientD: null,
coefficientE: null,
coefficientF: null,
coefficientG: null,
coefficientH: null,
coefficientI: null,
coefficientJ: null,
coefficientK: null,
reverse_coefficientD: null,
reverse_coefficientE: null,
reverse_coefficientF: null,
reverse_coefficientG: null,
reverse_coefficientH: null,
reverse_coefficientI: null,
reverse_coefficientJ: null,
reverse_coefficientK: null,
height: null,
width: null,
created_at: {
date: '2021-08-29 15:46:38.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2021-10-19 17:24:39.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
lat: '',
long: '',
x: '463',
y: '362',
named_location: null,
location_state: 'MAPDIRECT',
has_precise_point: true,
},
messages: [],
notification_groups: [],
categories: [
{
id: '44fd99b2-15a3-4e64-9cdb-765014fc5cbf',
name: 'Fire',
label: '',
icon: 'fa-shield-alt',
fullname: 'Agencies > Fire',
has_parent: true,
parent_id: '8104df78-baee-46a3-a3db-7bb7a1d2e87f',
grandparent_id: null,
can_be_edited: false,
is_archived: false,
is_disabled: false,
is_group: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
media: [],
process: {
id: 'bf617ad5-dfe6-4e4b-8343-f73bb538f766',
name: 'Drone Incursion',
is_archived: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
process_tasks: [
{
id: 'fccc5235-40f9-4dde-8c22-7f65968de4f7',
name: 'Report the circumstances',
type: 'issue_process_task',
task_order: 1,
description: 'Access Safety',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: {
id: '9362f942-ac50-4490-99a8-fdc1da45ac41',
first_name: 'Victoria',
last_name: 'McCorrisken',
display_name: 'Victor',
mobile: '07814616170',
email: '[email protected]',
profile_picture:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/users/9362f942-ac50-4490-99a8-fdc1da45ac41/profile-picture/4790aaca-5589-4b59-86ec-632c2d985a26?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=c2608183585225772fd3385fcb7dc65aacc1f5d39b536f64e288328597c0669b',
is_active: true,
sms_notifications_active: true,
has_accepted_invitation: true,
organisational_role: 'CEO',
department: 'Code Monkeys',
organisation: 'Ops Executive',
last_login_at: {
date: '2022-10-31 13:51:27.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-08-03 10:32:20.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:02.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 10:07:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:08:08.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
{
id: '741f20c5-9bf3-4c91-9740-047a51e36640',
name: 'Circulate to group',
type: 'issue_process_task',
task_order: 2,
description: 'Notification',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: {
id: 'fe73dd55-8031-4706-bfd4-372175976700',
first_name: 'Aleks',
last_name: 'Test1',
display_name: 'Aleks Test1',
mobile: '12345',
email: '[email protected]',
profile_picture: '',
is_active: true,
sms_notifications_active: false,
has_accepted_invitation: true,
organisational_role: null,
department: null,
organisation: null,
last_login_at: {
date: '2022-10-24 11:49:11.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-02-15 11:59:41.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2022-02-01 14:27:12.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 10:07:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:25:47.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
{
id: '3768b27c-9d92-4f54-83b5-0fc99aa2fb12',
name: 'Inform Referee if appropriate',
type: 'issue_process_task',
task_order: 3,
description: 'Info to ref',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: {
id: '9362f942-ac50-4490-99a8-fdc1da45ac41',
first_name: 'Victoria',
last_name: 'McCorrisken',
display_name: 'Victor',
mobile: '07814616170',
email: '[email protected]',
profile_picture:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/users/9362f942-ac50-4490-99a8-fdc1da45ac41/profile-picture/4790aaca-5589-4b59-86ec-632c2d985a26?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-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5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=c2608183585225772fd3385fcb7dc65aacc1f5d39b536f64e288328597c0669b',
is_active: true,
sms_notifications_active: true,
has_accepted_invitation: true,
organisational_role: 'CEO',
department: 'Code Monkeys',
organisation: 'Ops Executive',
last_login_at: {
date: '2022-10-31 13:51:27.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-08-03 10:32:20.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:02.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 10:07:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:25:43.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
{
id: 'f7dacde1-4d29-4c6b-8102-3cf81dec83a9',
name: 'Report to Police',
type: 'issue_process_task',
task_order: 4,
description: 'If appropriate',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: {
id: '9362f942-ac50-4490-99a8-fdc1da45ac41',
first_name: 'Victoria',
last_name: 'McCorrisken',
display_name: 'Victor',
mobile: '07814616170',
email: '[email protected]',
profile_picture:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/users/9362f942-ac50-4490-99a8-fdc1da45ac41/profile-picture/4790aaca-5589-4b59-86ec-632c2d985a26?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3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2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=c2608183585225772fd3385fcb7dc65aacc1f5d39b536f64e288328597c0669b',
is_active: true,
sms_notifications_active: true,
has_accepted_invitation: true,
organisational_role: 'CEO',
department: 'Code Monkeys',
organisation: 'Ops Executive',
last_login_at: {
date: '2022-10-31 13:51:27.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-08-03 10:32:20.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:02.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 10:07:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:25:51.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
],
outstanding_tasks: 4,
completed_tasks: 0,
adhoc_tasks: [
{
id: '958a95a1-1010-4a61-b886-67ee388edd73',
name: 'Asdf',
type: 'issue_task',
task_order: 0,
description: null,
on_fly_addition: null,
record_media: [],
comment: null,
assignee: '',
deadline: '2022-10-31 20:41:32 AEDT',
deadline_object: {
date: '2022-10-31 09:41:32.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
short_time_until_deadline: '13 hrs ago',
time_until_deadline: '13 hours 5 mins ago',
deadline_state: 'DANGER',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 09:41:40.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: {
id: 'a1b938c9-6235-4b68-933d-e5fc3b3803e8',
name: '5 - Low',
weight: 4,
colour_hash: '#FFDD7B',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
log: {
id: '17db8a84-3e0c-4f17-a4c9-0f30f21f487d',
name: 'Boxing Weigh In',
lead_contact: 'Face',
is_archived: false,
timezone: 'Australia/Melbourne',
created_at: {
date: '2021-06-08 13:19:05.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-09-29 17:49:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_activity: {
date: '2022-10-31 10:07:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
issue_count: 30,
checklist_count: 21,
},
timezone: 'Australia/Melbourne',
created_by: {
id: '2e00d0d6-5f21-42bc-9ab9-27451d18616e',
first_name: 'Dávid',
last_name: 'Landori',
display_name: 'Dávid Landori',
mobile: '07777777777',
email: '[email protected]',
profile_picture: '',
is_active: true,
sms_notifications_active: false,
has_accepted_invitation: true,
organisational_role: 'Developer',
department: null,
organisation: 'GearedApp',
last_login_at: null,
last_updated_at: null,
created_at: {
date: '2022-03-02 10:11:10.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
created_at: {
date: '2022-10-26 08:03:01.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 10:25:51.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_active_at: {
date: '2022-10-26 08:03:01.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_inactive_at: null,
is_linked: false,
},
{
id: 'd88c75c3-7e30-4071-8c0c-db271837cd3d',
record_type: 'ISSUE',
account: {
id: '6f5ca847-a53d-4a9a-a3b8-f0b155cb202e',
phone: '0141 447 4731',
name: 'Raven Controls',
email: '[email protected]',
address_line_1: 'Red Tree Magenta',
address_line_2: 'Glasgow Rd',
address_line_3: 'Rutherglen',
city: 'Glasgow',
postcode: 'G73 1SA',
lead_contact: null,
organisational_role: null,
logo_image_url: '',
department: null,
is_active: '1',
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
title: 'Test issue',
notes: '',
is_flagged: false,
notify_all: false,
reference_number: '1-26/10/2022',
reporter: '',
is_complete: true,
location: {
id: '5fe515f0-31ec-4ccb-8aa8-1f64db6a7b47',
name: null,
issue: {
id: 'd88c75c3-7e30-4071-8c0c-db271837cd3d',
title: 'Test issue',
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: {
id: '325b8a5a-cbdb-4354-9713-d3d286fa970a',
name: '1 - High',
weight: 0,
colour_hash: '#FF532E',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
},
map: {
id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
name: 'Rock Werchter Area Map',
level: '0',
type: 'IMAGE',
original_filename: 'Rock Werchter Area Map.png',
storage_key:
'6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/processed/b85c60e2-1018-4f0c-9563-cf1968a5fc44',
url: 'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/processed/b85c60e2-1018-4f0c-9563-cf1968a5fc44?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F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%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=a9d2fe41e6cfbb4ce10259133b8fb9df9e30e35522891bd2c4d399519c1459f9',
storage_key_original: true,
url_original:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/originals/3ed2280e-3432-4d7c-ad32-5072a09c0e2d?response-content-disposition=attachment%3B%20filename%3D%22Rock%20Werchter%20Area%20Map.png%22&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMibLpyvVQNtKkONpGV2z8zuPH4xbJCa8FKvIDCID%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAxoMMDQ5NzMwMDIwODE2IgxJ8qWclXIiMA1LxiAqxgPnXrwcvx8XxCwsWBSbW%2BdNpaAos7EeimgAT%2Bt9KIJURe5GOOv7HvB%2BiHqKMPAVStCtmIE8%2BKBnccashJaFasdPX%2BtuctV7%2BacKQZavJv7aElHCqpNfSgsT0dcIbo7f1sefZZ%2BSG%2Fo2N6XAhPqF6DEba14%2B3FUOoqzHe%2F%2FsMYtstus9FW3SgN5u7R8JAxMvLGgzCTZAptHtJFANqMyLspKNV8UX4guhbnk6Fsh5ekzsvRSKV2xGhHuPbPCXNEFeuslz3clnVI7NNJkfPi1emybf273DpnoJabmAk4ckeSCMSRjMzVvuk%2BG3Lh%2BIeZAuScExmiUxyn2YBtZZ5yMWafV3TKWfqM%2BWwiHY5Ni6ACdnw8tkPz1hBtoUtiGbhHvCYEoQxuQYTihoU8%2FsWvh2m1aLx1qmxXTscJNw9mpTmHgzLlQU010H9QXn48Vg6zapQH8UJyldGs30bdTzANrQcs%2Bwg6tw3LqORiCjGaevxcmK%2FNP1xXreVKiGpinuUtM%2BKN5EL35fWSJd0wrSxEmny8NDrFSOJAv%2FwNRXKbXV9GbJwrvPSf9K4wQqQBRfz0gK80owCkdOfbYFia%2BX%2Bk1szW2YIwsrBf6%2FMJCegZsGOqQBHrjOxc5Etwg54UZSfPMz%2FvnyHqJaPJnPo1G8wroagwOfptNZkmqT2jlp8h6Ar0mouXugVVt6d1bVLe9lc0v3d3PIEq8poB%2FkePOobxBFGJhfKWcqzsr1k4q30DS3IigwFU%2BMQkPca7EmFHL2ky2CdN%2F6FvAiJ5oYSQvkst%2BaSRAzWQJDW6Euj53SAhEvxqrj5S0oyhW2%2BJ5N2clKMmtmBV8208A%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQXFBD4XIKRXFZMZA%2F20221031%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=92cbcb490c03478f84da93c846237b45211f4e13c44ac2d8cae46e0daa53740d',
storage_key_thumbnail:
'6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/thumbnails/e42c7d74-8c0d-4829-b1ea-9fc6faca02df',
url_thumbnail:
'https://raven-controls-development.s3.eu-west-1.amazonaws.com/6f5ca847-a53d-4a9a-a3b8-f0b155cb202e/maps/thumbnails/e42c7d74-8c0d-4829-b1ea-9fc6faca02df?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEJf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQChQjzBY7%2Fw7qVR%2FRq4urLoreRpJrvPBzHpglc5nlo%2FXwIhALsbjxjmz1KMib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%2Fs3%2Faws4_request&X-Amz-Date=20221031T224701Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=06bbd9b59b1aac42857ee016ac41a0d04c57fa5b09514efbeacd370fccdea052',
sites: {},
named_locations: [
{
id: '2fa51af9-2f72-4966-9c1f-af5b7490b857',
name: 'Bus Stop 1',
full_name: 'All Maps > Bus Stop 1',
sites: [
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'point',
map_coordinates: '704,67',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: '3fe4ccce-7da7-4d12-8951-03f18a9acd9d',
name: 'Bus Stop 2',
full_name: 'Rock Werchter > Bus Stop 2',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}, {}, {}, {}, {}, {}, {}, {}, {}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'point',
map_coordinates: '100,216',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: '955e146b-f16a-4758-b0b8-105fce733da2',
name: 'C16',
full_name: 'Rock Werchter > C16',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates:
'678,1,731,0,722,42,713,40,701,44,687,38,677,36',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'a59d1f59-1a68-4076-a57d-3aecefd21782',
name: 'C17',
full_name: 'Rock Werchter > C17',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates: '268,8,279,8,280,24,268,26',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'ba7c1c73-45d8-4341-a344-d627b265729a',
name: 'Event Site',
full_name: 'Rock Werchter > Event Site',
sites: [
{
id: '4cff22b1-bc75-45b2-97ec-d4e5a447d661',
name: 'Rock Werchter',
},
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [{}, {}],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates:
'259,220,280,289,322,277,330,263,338,251,324,236,315,238,317,227',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
{
id: 'c95766fa-f00b-4431-a62a-18f7a200cf75',
name: 'Hive ADL',
full_name: 'All Maps > Hive ADL',
sites: [
{
id: 'b6cb2357-6ecf-4908-a5f1-56a5f6ca7862',
name: 'All Maps',
},
],
issues: [],
map: {},
map_id: '3fa49f50-8fab-4f53-b521-311dca76c4f1',
map_type: 'area',
map_coordinates: '303,214,305,202,318,204,313,216',
lat: null,
long: null,
min_lat: null,
min_long: null,
max_lat: null,
max_long: null,
min_x: null,
min_y: null,
max_x: null,
max_y: null,
},
],
named_location_count: 6,
user: {
id: 'ec3fe94d-74cd-49ad-9735-a4e44eff6620',
first_name: 'Jen',
last_name: 'McLean',
display_name: 'Jen',
profile_picture:
'/assets/img/theme/user-placeholder-default.png',
is_active: true,
has_accepted_invitation: true,
organisational_role: 'CEO',
department: 'Code Monkeys',
organisation: 'Raven',
sms_notifications_active: true,
email: '[email protected]',
mobile: '0',
has_outstanding_invitation: false,
account: {
id: '6f5ca847-a53d-4a9a-a3b8-f0b155cb202e',
phone: '0141 447 4731',
name: 'Raven Controls',
email: '[email protected]',
address_line_1: 'Red Tree Magenta',
address_line_2: 'Glasgow Rd',
address_line_3: 'Rutherglen',
city: 'Glasgow',
postcode: 'G73 1SA',
lead_contact: null,
organisational_role: null,
logo_image_url: '',
department: null,
is_active: '1',
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
user: {
id: 'f8317513-5e8f-4c22-b548-2cb98fcecc4f',
email: '[email protected]',
timezone: 'Europe/London',
last_detected_timezone: 'Europe/London',
last_login_at: {
date: '2022-10-31 13:53:27.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
password_reset_at: {
date: '2022-07-06 21:57:11.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
device_registration_tokens: [
{
id: 'bf32cf04-e913-41e7-8ed4-7808fb032b67',
token:
'eVUHCfRjwUpgoXNaSTEQZr:APA91bGb9hzCihfKNeOZYrcC1NNVyq6k0ule7NS6vcWJ4dorlEkH5mxy5exyFdwPF3VOPwZahrwHFO8DuGaimV-3PdCxCXBMbfauLdzrMwHbCSdvhuuBtUJo3bpTHV2LoP_VtgMsqCvy',
},
],
},
roles: [
{
id: '748b8266-95dc-4391-be32-d22edbc8d088',
name: 'Account Administrator',
description:
'Account Administrator - Full System Access - NON_CONFIGURABLE',
system_name: 'ROLE_ADMIN',
is_editable: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
notification_groups: [
{
id: '88107e69-7612-4a36-a75f-5cc812c22429',
name: 'Management',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:05.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2021-09-02 06:10:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
],
devices: [
{
id: 'bf32cf04-e913-41e7-8ed4-7808fb032b67',
token:
'eVUHCfRjwUpgoXNaSTEQZr:APA91bGb9hzCihfKNeOZYrcC1NNVyq6k0ule7NS6vcWJ4dorlEkH5mxy5exyFdwPF3VOPwZahrwHFO8DuGaimV-3PdCxCXBMbfauLdzrMwHbCSdvhuuBtUJo3bpTHV2LoP_VtgMsqCvy',
},
],
last_login_at: {
date: '2022-10-31 14:00:56.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_updated_at: {
date: '2022-06-02 10:58:32.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
created_at: {
date: '2021-06-08 13:19:02.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
can_access_all_logs: true,
},
center_lat: null,
center_long: null,
coefficientD: null,
coefficientE: null,
coefficientF: null,
coefficientG: null,
coefficientH: null,
coefficientI: null,
coefficientJ: null,
coefficientK: null,
reverse_coefficientD: null,
reverse_coefficientE: null,
reverse_coefficientF: null,
reverse_coefficientG: null,
reverse_coefficientH: null,
reverse_coefficientI: null,
reverse_coefficientJ: null,
reverse_coefficientK: null,
height: null,
width: null,
created_at: {
date: '2021-08-29 15:46:38.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2021-10-19 17:24:39.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
lat: '',
long: '',
x: '490',
y: '362',
named_location: null,
location_state: 'MAPDIRECT',
has_precise_point: true,
},
messages: [],
notification_groups: [],
categories: [
{
id: '67e596b1-b70b-417b-8153-636ec1bf4a7b',
name: 'Ambulance',
label: '',
icon: 'fa-shield-alt',
fullname: 'Agencies > Ambulance',
has_parent: true,
parent_id: '8104df78-baee-46a3-a3db-7bb7a1d2e87f',
grandparent_id: null,
can_be_edited: false,
is_archived: false,
is_disabled: false,
is_group: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
media: [],
process: {
id: 'bf617ad5-dfe6-4e4b-8343-f73bb538f766',
name: 'Drone Incursion',
is_archived: false,
created_at: {
date: '2021-06-08 13:18:59.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
process_tasks: [
{
id: 'a143f6b9-e9b1-4ed8-bfd7-fd258896c115',
name: 'Report the circumstances',
type: 'issue_process_task',
task_order: 1,
description: 'Access Safety',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: '',
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 09:42:17.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: '7a9e65c9-c29f-4b77-8d59-2e687d569862',
name: 'Circulate to group',
type: 'issue_process_task',
task_order: 2,
description: 'Notification',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: '',
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 09:42:17.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: 'c457b20c-6683-4811-a8b7-5afd1a02b5b3',
name: 'Inform Referee if appropriate',
type: 'issue_process_task',
task_order: 3,
description: 'Info to ref',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: '',
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 09:42:17.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: 'd34988d5-2322-4bf3-9c2e-5acc3d04614a',
name: 'Report to Police',
task_order: 4,
description: 'If appropriate',
on_fly_addition: null,
record_media: [],
comment: null,
assignee: '',
deadline: null,
deadline_object: null,
short_time_until_deadline: null,
time_until_deadline: null,
deadline_state: 'OK',
is_complete: false,
completed_at: null,
created_at: {
date: '2022-10-31 09:42:17.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
outstanding_tasks: 4,
completed_tasks: 0,
adhoc_tasks: [],
status: {
id: '15cfc115-9e96-4f21-ae3a-9015e32122b5',
name: 'Open',
weight: 1,
is_closing_status: false,
colour_hash: '#7DE132',
record_type: 'ISSUE',
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
priority: {
id: '325b8a5a-cbdb-4354-9713-d3d286fa970a',
name: '1 - High',
weight: 0,
colour_hash: '#FF532E',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
timezone: 'Australia/Melbourne',
created_by: {
id: '2e00d0d6-5f21-42bc-9ab9-27451d18616e',
first_name: 'Dávid',
last_name: 'Landori',
display_name: 'Dávid Landori',
mobile: '07777777777',
email: '[email protected]',
profile_picture: '',
is_active: true,
sms_notifications_active: false,
has_accepted_invitation: true,
organisational_role: 'Developer',
department: null,
organisation: 'GearedApp',
last_login_at: null,
last_updated_at: null,
created_at: {
date: '2022-03-02 10:11:10.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
},
created_at: {
date: '2022-10-26 08:01:25.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: {
date: '2022-10-31 09:42:17.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_active_at: {
date: '2022-10-26 08:01:25.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
last_inactive_at: null,
is_linked: false,
},
],
total_result_count: 10,
})
)
}),
rest.get(
`${process.env.NEXT_PUBLIC_API_URL}issue/priorities`,
(_req, res, ctx) => {
return res(
ctx.json<{ results: Priority[]; total_result_count: number }>({
results: [
{
id: '325b8a5a-cbdb-4354-9713-d3d286fa970a',
name: '1 - High',
weight: 0,
colour_hash: '#FF532E',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: '20e07a27-45d7-46ad-92b0-d8745d19661b',
name: '2',
weight: 1,
colour_hash: '#FF8A4D',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: '9f2b330d-2a79-400b-8749-d527d798539c',
name: '3',
weight: 2,
colour_hash: '#FFC26B',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: '818c09a2-4eb6-4263-86f7-a6995b1044e1',
name: '4',
weight: 3,
colour_hash: '#FFF98A',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
{
id: 'a1b938c9-6235-4b68-933d-e5fc3b3803e8',
name: '5 - Low',
weight: 4,
colour_hash: '#FFDD7B',
is_active: true,
is_archived: false,
created_at: {
date: '2021-06-08 13:19:00.000000',
timezone_type: 3,
timezone: 'Europe/London',
},
updated_at: null,
},
],
total_result_count: 3,
})
)
}
),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment