From 0173809d86fcf702d6f537a0be537cdd60cbcb2e Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Mon, 14 Apr 2025 17:02:28 +0100 Subject: [PATCH 1/8] Adding Safeguarding Issues to the API docs --- pages/api.yml | 4 + .../get-a-safeguarding-issue.json | 61 +++++++ .../get-a-safeguarding-issue.md | 4 + .../get-a-safeguarding-issue.py | 5 + .../list-all-safeguarding-issues.json | 39 +++++ .../list-all-safeguarding-issues.md | 3 + .../list-all-safeguarding-issues.py | 5 + .../safeguarding-issue-object.md | 4 + .../safeguarding-issue-object.yml | 159 ++++++++++++++++++ .../safeguarding-issues.yml | 24 +++ 10 files changed, 308 insertions(+) create mode 100644 pages/safeguarding-issues/get-a-safeguarding-issue.json create mode 100644 pages/safeguarding-issues/get-a-safeguarding-issue.md create mode 100644 pages/safeguarding-issues/get-a-safeguarding-issue.py create mode 100644 pages/safeguarding-issues/list-all-safeguarding-issues.json create mode 100644 pages/safeguarding-issues/list-all-safeguarding-issues.md create mode 100644 pages/safeguarding-issues/list-all-safeguarding-issues.py create mode 100644 pages/safeguarding-issues/safeguarding-issue-object.md create mode 100644 pages/safeguarding-issues/safeguarding-issue-object.yml create mode 100644 pages/safeguarding-issues/safeguarding-issues.yml diff --git a/pages/api.yml b/pages/api.yml index 325e991..f58e9f4 100644 --- a/pages/api.yml +++ b/pages/api.yml @@ -122,6 +122,10 @@ endpoint_sections: title: Reviews id: reviews layout: /reviews/reviews.yml + - + title: Safeguarding Issues + id: safeguarding-issues + layout: /safeguarding-issues/safeguarding-issues.yml - title: Services (Jobs) id: services diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.json b/pages/safeguarding-issues/get-a-safeguarding-issue.json new file mode 100644 index 0000000..7585e9b --- /dev/null +++ b/pages/safeguarding-issues/get-a-safeguarding-issue.json @@ -0,0 +1,61 @@ +{ + "id": 2, + "display_name": "SGI-2", + "status": "Unresolved", + "severity": "Severe", + "dt_raised": "2025-04-14T16:26:44.286782+01:00", + "dt_resolved": null, + "creator": { + "id": 58, + "first_name": "Diana", + "last_name": "Lafayette", + "email": "diana_lafayette@testagency.example.com" + }, + "creator_role_type": "Tutor", + "service_recipient": { + "id": 10, + "first_name": "Archie", + "last_name": "Hoskins", + "email": "archie_hoskins@testagency.example.com", + "url": "http://localhost:8000/api/recipients/10/" + }, + "contractor": { + "id": 58, + "first_name": "Diana", + "last_name": "Lafayette", + "email": "diana_lafayette@testagency.example.com", + "url": "http://localhost:8000/api/contractors/58/" + }, + "service": { + "id": 54, + "name": "Mathematics", + "dft_charge_type": "hourly", + "created": "2025-04-14T16:26:19.877383+01:00", + "dft_charge_rate": "100.00", + "dft_contractor_rate": "75.00", + "last_updated": "2025-04-14T16:26:32.479636+01:00", + "status": "available", + "url": "http://localhost:8000/api/services/54/" + }, + "appointment": { + "id": 586, + "start": "2025-04-14T17:26:00+01:00", + "finish": "2025-04-14T18:26:00+01:00", + "topic": "Lesson 1", + "status": "planned", + "service": { + "id": 54, + "name": "Mathematics", + "dft_charge_type": "hourly", + "created": "2025-04-14T16:26:19.877383+01:00", + "dft_charge_rate": "100.00", + "dft_contractor_rate": "75.00", + "last_updated": "2025-04-14T16:26:32.479636+01:00", + "status": "available", + "url": "http://localhost:8000/api/services/54/" + }, + "url": "http://localhost:8000/api/appointments/586/" + }, + "description": "This should be looked into urgently", + "resolution_note": "" +} diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.md b/pages/safeguarding-issues/get-a-safeguarding-issue.md new file mode 100644 index 0000000..d6b7339 --- /dev/null +++ b/pages/safeguarding-issues/get-a-safeguarding-issue.md @@ -0,0 +1,4 @@ +### Get a Safeguarding Issue + +Returns the details of an existing Safeguarding Issue. You only need to specify the unique `id` of +the Safeguarding Issue to get the correct details. diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.py b/pages/safeguarding-issues/get-a-safeguarding-issue.py new file mode 100644 index 0000000..d682890 --- /dev/null +++ b/pages/safeguarding-issues/get-a-safeguarding-issue.py @@ -0,0 +1,5 @@ +import pprint, requests + +headers = {'Authorization': 'token '} +r = requests.get('https://secure.tutorcruncher.com/api/safeguarding_issues//', headers=headers) +pprint.pprint(r.json()) diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.json b/pages/safeguarding-issues/list-all-safeguarding-issues.json new file mode 100644 index 0000000..1cc4a49 --- /dev/null +++ b/pages/safeguarding-issues/list-all-safeguarding-issues.json @@ -0,0 +1,39 @@ +{ + "count": 2, + "next": null, + "previous": null, + "results": [ + { + "id": 2, + "display_name": "SGI-2", + "status": "Unresolved", + "severity": "Severe", + "service_recipient": { + "id": 10, + "first_name": "Archie", + "last_name": "Hoskins", + "email": "archie_hoskins@testagency.example.com", + "url": "http://localhost:8000/api/recipients/10/" + }, + "dt_raised": "2025-04-14T16:26:44.286782+01:00", + "dt_resolved": null, + "url": "http://localhost:8000/api/safeguarding_issues/2/" + }, + { + "id": 1, + "display_name": "SGI-1", + "status": "Unresolved", + "severity": "Severe", + "service_recipient": { + "id": 47, + "first_name": "Jessica", + "last_name": "Coles", + "email": "jessica_coles@testagency.example.com", + "url": "http://localhost:8000/api/recipients/47/" + }, + "dt_raised": "2025-04-14T16:03:50.310174+01:00", + "dt_resolved": null, + "url": "http://localhost:8000/api/safeguarding_issues/1/" + } + ] +} diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.md b/pages/safeguarding-issues/list-all-safeguarding-issues.md new file mode 100644 index 0000000..c9a1c16 --- /dev/null +++ b/pages/safeguarding-issues/list-all-safeguarding-issues.md @@ -0,0 +1,3 @@ +### List all Safeguarding Issues + +Returns a list of all your Safeguarding Issues. The Safeguarding Issues are sorted by id, with the largest `id` first. diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.py b/pages/safeguarding-issues/list-all-safeguarding-issues.py new file mode 100644 index 0000000..d9721c6 --- /dev/null +++ b/pages/safeguarding-issues/list-all-safeguarding-issues.py @@ -0,0 +1,5 @@ +import pprint, requests + +headers = {'Authorization': 'token '} +r = requests.get('https://secure.tutorcruncher.com/api/safeguarding_issues/', headers=headers) +pprint.pprint(r.json()) diff --git a/pages/safeguarding-issues/safeguarding-issue-object.md b/pages/safeguarding-issues/safeguarding-issue-object.md new file mode 100644 index 0000000..c86f542 --- /dev/null +++ b/pages/safeguarding-issues/safeguarding-issue-object.md @@ -0,0 +1,4 @@ +### Safeguarding Issue Object + +Safeguarding Issue objects will contain information about safeguarding issues that have been raised, +including information about the related users. diff --git a/pages/safeguarding-issues/safeguarding-issue-object.yml b/pages/safeguarding-issues/safeguarding-issue-object.yml new file mode 100644 index 0000000..5f7f0e3 --- /dev/null +++ b/pages/safeguarding-issues/safeguarding-issue-object.yml @@ -0,0 +1,159 @@ +attributes: + - + name: id + type: integer + description: Unique identifier for the Safeguarding Issue. + - + name: display_name + type: string + description: The display name for the Safeguarding Issue. + - + name: status + type: string + description: The status of the Safeguarding Issue. + - + name: severity + type: string + description: The severity of the Safeguarding Issue. + - + name: dt_raised + type: string + description: The date the Safeguarding Issue was raised. + - + name: dt_resolved + type: string + description: The date the Safeguarding Issue was resolved. + - + name: creator + type: object + description: The Creator of the Safeguarding Issue. + children: + - + name: id + type: integer + description: The ID of the Safeguarding Issue creator. + - + name: first_name + type: string + description: The first name of the Safeguarding Issue creator. + - + name: last_name + type: string + description: The last name of the Safeguarding Issue creator. + - + name: email + type: string + description: The email address of the Safeguarding Issue creator. + - + name: creator_role_type + type: string + description: The role type of the Safeguarding Issue creator. + - + name: service_recipient + type: object + description: The Student related to the Safeguarding Issue. + children: + - name: id + type: integer + description: The ID of the student related to the Safeguarding Issue. + - name: first_name + type: string + description: The first name of the student related to the Safeguarding Issue. + - name: last_name + type: string + description: The last name of the student related to the Safeguarding Issue. + - name: email + type: string + description: The email address of the student related to the Safeguarding Issue. + - name: url + type: string + description: URL to the Student's object. + - + name: contractor + type: object + description: The Tutor related to the Safeguarding Issue. + children: + - name: id + type: integer + description: The ID of the tutor related to the Safeguarding Issue. + - name: first_name + type: string + description: The first name of the tutor related to the Safeguarding Issue. + - name: last_name + type: string + description: The last name of the tutor related to the Safeguarding Issue. + - name: email + type: string + description: The email address of the tutor related to the Safeguarding Issue. + - name: url + type: string + description: URL to the Tutor's object. + - + name: service + type: object + description: The Service the Safeguarding Issue is related to. + children: + - + name: id + type: integer + description: Unique identifier for the object. + - + name: name + type: string + description: Service's name. + - + name: dft_charge_type + type: string + description: | + Service's default charge type. Check out [Service Object](#service-object) for the types of choices. + - + name: created + type: string + description: Date and time the Service was created. + - + name: dft_charge_rate + type: string + description: Service's default amount Clients will be charged. + - + name: dft_contractor_rate + type: string + description: Service's default amount Contractors will be paided. + - + name: status + type: string + description: Status of the Service. Check out [Service Object](#service-object) for the types of statuses. + - + name: url + type: string + description: URL to the Service object. + - + name: appointment + type: object + description: The Appointment related to the Safeguarding Issue. + children: + - name: id + type: integer + description: Unique identifier for the object. + - name: start + type: string + description: Start date and time for the Appointment. + - name: finish + type: string + description: Finish date and time for the Appointment. + - name: topic + type: string + description: Topic for the Appointment. + - name: status + type: integer + description: | + The status for the Appointment, the status types are `planned`, `awaiting-report`, `complete`, `cancelled`, + and `cancelled-chargeable`. + - name: service + type: object + description: | + Object that contains information about the Service. Attributes in the object are `id`, `name`, + `dft_charge_type`, `created`, `dft_charge_rate`, `dft_conractor_rate`, `last_updated`, `status`, `url`. + - name: url + type: string + description: URL to the Appointment object. + diff --git a/pages/safeguarding-issues/safeguarding-issues.yml b/pages/safeguarding-issues/safeguarding-issues.yml new file mode 100644 index 0000000..f0c1eb6 --- /dev/null +++ b/pages/safeguarding-issues/safeguarding-issues.yml @@ -0,0 +1,24 @@ +sections: + - + title: Safeguarding Issue Object + id: safeguarding-issue-object + description: /safeguarding-issues/safeguarding-issue-object.md + attributes: /safeguarding-issues/safeguarding-issue-object.yml + response: /safeguarding-issues/get-a-safeguarding-issue.json + response_title: OBJECT + - + title: List all Safeguarding Issues + id: list-all-safeguarding-issues + description: /safeguarding-issues/list-all-safeguarding-issues.md + code: /safeguarding-issues/list-all-safeguarding-issues.py + code_type: GET + code_url: /api/safeguarding_issues/ + response: /safeguarding-issues/list-all-safeguarding-issues.json + - + title: Get a Safeguarding Issue + id: get-a-safeguarding-issue + description: /safeguarding-issues/get-a-safeguarding-issue.md + code: /safeguarding-issues/get-a-safeguarding-issue.py + code_type: GET + code_url: /api/safeguarding_issues// + response: /safeguarding-issues/get-a-safeguarding-issue.json From b53496808356c7d519ae42801ea41e7aa40a3066 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Wed, 14 May 2025 11:50:13 +0100 Subject: [PATCH 2/8] Replace all localhost with secure.tutorcruncher.com --- pages/countries/list-all-countries.json | 10 +++++----- pages/labels/get-a-label.json | 2 +- pages/notes/get-a-note.json | 2 +- pages/notes/list-all-notes.json | 6 +++--- pages/reports/get-a-report.json | 2 +- pages/reports/list-all-reports.json | 4 ++-- pages/reports/report-object.json | 2 +- .../safeguarding-issues/get-a-safeguarding-issue.json | 10 +++++----- .../list-all-safeguarding-issues.json | 8 ++++---- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/pages/countries/list-all-countries.json b/pages/countries/list-all-countries.json index 55d7c6c..a165f64 100644 --- a/pages/countries/list-all-countries.json +++ b/pages/countries/list-all-countries.json @@ -6,27 +6,27 @@ { "id": 3, "name": "Afghanistan", - "url": "http://localhost:8000/api/countries/3/" + "url": "https://secure.tutorcruncher.com/api/countries/3/" }, { "id": 5, "name": "Albania", - "url": "http://localhost:8000/api/countries/5/" + "url": "https://secure.tutorcruncher.com/api/countries/5/" }, { "id": 48, "name": "Algeria", - "url": "http://localhost:8000/api/countries/48/" + "url": "https://secure.tutorcruncher.com/api/countries/48/" }, { "id": 1, "name": "Andorra", - "url": "http://localhost:8000/api/countries/1/" + "url": "https://secure.tutorcruncher.com/api/countries/1/" }, { "id": 7, "name": "Angola", - "url": "http://localhost:8000/api/countries/7/" + "url": "https://secure.tutorcruncher.com/api/countries/7/" } ] } diff --git a/pages/labels/get-a-label.json b/pages/labels/get-a-label.json index e4bfa73..29714bb 100644 --- a/pages/labels/get-a-label.json +++ b/pages/labels/get-a-label.json @@ -22,5 +22,5 @@ } ], "contractor_editable": true, - "url": "http://localhost:8000/api/labels/42/" + "url": "https://secure.tutorcruncher.com/api/labels/42/" } diff --git a/pages/notes/get-a-note.json b/pages/notes/get-a-note.json index fb4a56a..b88d617 100644 --- a/pages/notes/get-a-note.json +++ b/pages/notes/get-a-note.json @@ -14,6 +14,6 @@ "first_name": "Jamie", "last_name": "Hoskins", "email": "jamie_hoskins@testagency.example.com", - "url": "http://localhost:8000/api/clients/62/" + "url": "https://secure.tutorcruncher.com/api/clients/62/" } } diff --git a/pages/notes/list-all-notes.json b/pages/notes/list-all-notes.json index f43c5ca..23cd29a 100644 --- a/pages/notes/list-all-notes.json +++ b/pages/notes/list-all-notes.json @@ -9,7 +9,7 @@ "dt_updated": "2023-08-16T16:05:54.465348Z", "creator": 2, "text": "This note is on an appointment.", - "url": "http://localhost:8000/api/notes/3/" + "url": "https://secure.tutorcruncher.com/api/notes/3/" }, { "id": 2, @@ -17,7 +17,7 @@ "dt_updated": "2023-08-16T16:05:37.596842Z", "creator": 2, "text": "This is a note on a job.", - "url": "http://localhost:8000/api/notes/2/" + "url": "https://secure.tutorcruncher.com/api/notes/2/" }, { "id": 1, @@ -25,7 +25,7 @@ "dt_updated": "2023-08-16T15:40:18.922874Z", "creator": 2, "text": "* test", - "url": "http://localhost:8000/api/notes/1/" + "url": "https://secure.tutorcruncher.com/api/notes/1/" } ] } diff --git a/pages/reports/get-a-report.json b/pages/reports/get-a-report.json index f75d246..972d578 100644 --- a/pages/reports/get-a-report.json +++ b/pages/reports/get-a-report.json @@ -48,7 +48,7 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } diff --git a/pages/reports/list-all-reports.json b/pages/reports/list-all-reports.json index c1bdaf7..76e253a 100644 --- a/pages/reports/list-all-reports.json +++ b/pages/reports/list-all-reports.json @@ -44,9 +44,9 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, - "url": "http://localhost:8000/api/reports/12/" + "url": "https://secure.tutorcruncher.com/api/reports/12/" }, ... ] diff --git a/pages/reports/report-object.json b/pages/reports/report-object.json index f75d246..972d578 100644 --- a/pages/reports/report-object.json +++ b/pages/reports/report-object.json @@ -48,7 +48,7 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.json b/pages/safeguarding-issues/get-a-safeguarding-issue.json index 7585e9b..f576153 100644 --- a/pages/safeguarding-issues/get-a-safeguarding-issue.json +++ b/pages/safeguarding-issues/get-a-safeguarding-issue.json @@ -17,14 +17,14 @@ "first_name": "Archie", "last_name": "Hoskins", "email": "archie_hoskins@testagency.example.com", - "url": "http://localhost:8000/api/recipients/10/" + "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, "contractor": { "id": 58, "first_name": "Diana", "last_name": "Lafayette", "email": "diana_lafayette@testagency.example.com", - "url": "http://localhost:8000/api/contractors/58/" + "url": "https://secure.tutorcruncher.com/api/contractors/58/" }, "service": { "id": 54, @@ -35,7 +35,7 @@ "dft_contractor_rate": "75.00", "last_updated": "2025-04-14T16:26:32.479636+01:00", "status": "available", - "url": "http://localhost:8000/api/services/54/" + "url": "https://secure.tutorcruncher.com/api/services/54/" }, "appointment": { "id": 586, @@ -52,9 +52,9 @@ "dft_contractor_rate": "75.00", "last_updated": "2025-04-14T16:26:32.479636+01:00", "status": "available", - "url": "http://localhost:8000/api/services/54/" + "url": "https://secure.tutorcruncher.com/api/services/54/" }, - "url": "http://localhost:8000/api/appointments/586/" + "url": "https://secure.tutorcruncher.com/api/appointments/586/" }, "description": "This should be looked into urgently", "resolution_note": "" diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.json b/pages/safeguarding-issues/list-all-safeguarding-issues.json index 1cc4a49..aaf4fcd 100644 --- a/pages/safeguarding-issues/list-all-safeguarding-issues.json +++ b/pages/safeguarding-issues/list-all-safeguarding-issues.json @@ -13,11 +13,11 @@ "first_name": "Archie", "last_name": "Hoskins", "email": "archie_hoskins@testagency.example.com", - "url": "http://localhost:8000/api/recipients/10/" + "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, "dt_raised": "2025-04-14T16:26:44.286782+01:00", "dt_resolved": null, - "url": "http://localhost:8000/api/safeguarding_issues/2/" + "url": "https://secure.tutorcruncher.com/api/safeguarding_issues/2/" }, { "id": 1, @@ -29,11 +29,11 @@ "first_name": "Jessica", "last_name": "Coles", "email": "jessica_coles@testagency.example.com", - "url": "http://localhost:8000/api/recipients/47/" + "url": "https://secure.tutorcruncher.com/api/recipients/47/" }, "dt_raised": "2025-04-14T16:03:50.310174+01:00", "dt_resolved": null, - "url": "http://localhost:8000/api/safeguarding_issues/1/" + "url": "https://secure.tutorcruncher.com/api/safeguarding_issues/1/" } ] } From b0f01adaa0a1383864cc2e109846fd6045877de8 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Tue, 3 Jun 2025 13:27:49 +0100 Subject: [PATCH 3/8] Rename all --- pages/api.yml | 6 +-- .../get-a-safeguarding-issue.md | 4 -- .../get-a-safeguarding-issue.py | 5 -- .../list-all-safeguarding-issues.md | 3 -- .../safeguarding-issue-object.md | 4 -- .../safeguarding-issues.yml | 24 ---------- .../get-a-wellbeing-concern.json} | 2 +- .../get-a-wellbeing-concern.md | 4 ++ .../get-a-wellbeing-concern.py | 5 ++ .../list-all-wellbeing-concerns.json} | 8 ++-- .../list-all-wellbeing-concerns.md | 3 ++ .../list-all-wellbeing-concerns.py} | 2 +- .../wellbeing-concern-object.md | 4 ++ .../wellbeing-concern-object.yml} | 48 +++++++++---------- .../wellbeing-concerns/wellbeing-concerns.yml | 24 ++++++++++ 15 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 pages/safeguarding-issues/get-a-safeguarding-issue.md delete mode 100644 pages/safeguarding-issues/get-a-safeguarding-issue.py delete mode 100644 pages/safeguarding-issues/list-all-safeguarding-issues.md delete mode 100644 pages/safeguarding-issues/safeguarding-issue-object.md delete mode 100644 pages/safeguarding-issues/safeguarding-issues.yml rename pages/{safeguarding-issues/get-a-safeguarding-issue.json => wellbeing-concerns/get-a-wellbeing-concern.json} (98%) create mode 100644 pages/wellbeing-concerns/get-a-wellbeing-concern.md create mode 100644 pages/wellbeing-concerns/get-a-wellbeing-concern.py rename pages/{safeguarding-issues/list-all-safeguarding-issues.json => wellbeing-concerns/list-all-wellbeing-concerns.json} (82%) create mode 100644 pages/wellbeing-concerns/list-all-wellbeing-concerns.md rename pages/{safeguarding-issues/list-all-safeguarding-issues.py => wellbeing-concerns/list-all-wellbeing-concerns.py} (50%) create mode 100644 pages/wellbeing-concerns/wellbeing-concern-object.md rename pages/{safeguarding-issues/safeguarding-issue-object.yml => wellbeing-concerns/wellbeing-concern-object.yml} (72%) create mode 100644 pages/wellbeing-concerns/wellbeing-concerns.yml diff --git a/pages/api.yml b/pages/api.yml index f58e9f4..ed18c3d 100644 --- a/pages/api.yml +++ b/pages/api.yml @@ -123,9 +123,9 @@ endpoint_sections: id: reviews layout: /reviews/reviews.yml - - title: Safeguarding Issues - id: safeguarding-issues - layout: /safeguarding-issues/safeguarding-issues.yml + title: Wellbeing Concerns + id: wellbeing-concerns + layout: /wellbeing-concerns/wellbeing-concerns.yml - title: Services (Jobs) id: services diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.md b/pages/safeguarding-issues/get-a-safeguarding-issue.md deleted file mode 100644 index d6b7339..0000000 --- a/pages/safeguarding-issues/get-a-safeguarding-issue.md +++ /dev/null @@ -1,4 +0,0 @@ -### Get a Safeguarding Issue - -Returns the details of an existing Safeguarding Issue. You only need to specify the unique `id` of -the Safeguarding Issue to get the correct details. diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.py b/pages/safeguarding-issues/get-a-safeguarding-issue.py deleted file mode 100644 index d682890..0000000 --- a/pages/safeguarding-issues/get-a-safeguarding-issue.py +++ /dev/null @@ -1,5 +0,0 @@ -import pprint, requests - -headers = {'Authorization': 'token '} -r = requests.get('https://secure.tutorcruncher.com/api/safeguarding_issues//', headers=headers) -pprint.pprint(r.json()) diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.md b/pages/safeguarding-issues/list-all-safeguarding-issues.md deleted file mode 100644 index c9a1c16..0000000 --- a/pages/safeguarding-issues/list-all-safeguarding-issues.md +++ /dev/null @@ -1,3 +0,0 @@ -### List all Safeguarding Issues - -Returns a list of all your Safeguarding Issues. The Safeguarding Issues are sorted by id, with the largest `id` first. diff --git a/pages/safeguarding-issues/safeguarding-issue-object.md b/pages/safeguarding-issues/safeguarding-issue-object.md deleted file mode 100644 index c86f542..0000000 --- a/pages/safeguarding-issues/safeguarding-issue-object.md +++ /dev/null @@ -1,4 +0,0 @@ -### Safeguarding Issue Object - -Safeguarding Issue objects will contain information about safeguarding issues that have been raised, -including information about the related users. diff --git a/pages/safeguarding-issues/safeguarding-issues.yml b/pages/safeguarding-issues/safeguarding-issues.yml deleted file mode 100644 index f0c1eb6..0000000 --- a/pages/safeguarding-issues/safeguarding-issues.yml +++ /dev/null @@ -1,24 +0,0 @@ -sections: - - - title: Safeguarding Issue Object - id: safeguarding-issue-object - description: /safeguarding-issues/safeguarding-issue-object.md - attributes: /safeguarding-issues/safeguarding-issue-object.yml - response: /safeguarding-issues/get-a-safeguarding-issue.json - response_title: OBJECT - - - title: List all Safeguarding Issues - id: list-all-safeguarding-issues - description: /safeguarding-issues/list-all-safeguarding-issues.md - code: /safeguarding-issues/list-all-safeguarding-issues.py - code_type: GET - code_url: /api/safeguarding_issues/ - response: /safeguarding-issues/list-all-safeguarding-issues.json - - - title: Get a Safeguarding Issue - id: get-a-safeguarding-issue - description: /safeguarding-issues/get-a-safeguarding-issue.md - code: /safeguarding-issues/get-a-safeguarding-issue.py - code_type: GET - code_url: /api/safeguarding_issues// - response: /safeguarding-issues/get-a-safeguarding-issue.json diff --git a/pages/safeguarding-issues/get-a-safeguarding-issue.json b/pages/wellbeing-concerns/get-a-wellbeing-concern.json similarity index 98% rename from pages/safeguarding-issues/get-a-safeguarding-issue.json rename to pages/wellbeing-concerns/get-a-wellbeing-concern.json index f576153..2e21133 100644 --- a/pages/safeguarding-issues/get-a-safeguarding-issue.json +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.json @@ -1,6 +1,6 @@ { "id": 2, - "display_name": "SGI-2", + "display_name": "WBC-2", "status": "Unresolved", "severity": "Severe", "dt_raised": "2025-04-14T16:26:44.286782+01:00", diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.md b/pages/wellbeing-concerns/get-a-wellbeing-concern.md new file mode 100644 index 0000000..7d62c23 --- /dev/null +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.md @@ -0,0 +1,4 @@ +### Get a Wellbeing Concern + +Returns the details of an existing Wellbeing Concern. You only need to specify the unique `id` of +the Wellbeing Concern to get the correct details. diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.py b/pages/wellbeing-concerns/get-a-wellbeing-concern.py new file mode 100644 index 0000000..0742a8b --- /dev/null +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.py @@ -0,0 +1,5 @@ +import pprint, requests + +headers = {'Authorization': 'token '} +r = requests.get('https://secure.tutorcruncher.com/api/wellbeing_concerns//', headers=headers) +pprint.pprint(r.json()) diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.json b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json similarity index 82% rename from pages/safeguarding-issues/list-all-safeguarding-issues.json rename to pages/wellbeing-concerns/list-all-wellbeing-concerns.json index aaf4fcd..17e3496 100644 --- a/pages/safeguarding-issues/list-all-safeguarding-issues.json +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json @@ -5,7 +5,7 @@ "results": [ { "id": 2, - "display_name": "SGI-2", + "display_name": "WBC-2", "status": "Unresolved", "severity": "Severe", "service_recipient": { @@ -17,11 +17,11 @@ }, "dt_raised": "2025-04-14T16:26:44.286782+01:00", "dt_resolved": null, - "url": "https://secure.tutorcruncher.com/api/safeguarding_issues/2/" + "url": "https://secure.tutorcruncher.com/api/wellbeing_concerns/2/" }, { "id": 1, - "display_name": "SGI-1", + "display_name": "WBC-1", "status": "Unresolved", "severity": "Severe", "service_recipient": { @@ -33,7 +33,7 @@ }, "dt_raised": "2025-04-14T16:03:50.310174+01:00", "dt_resolved": null, - "url": "https://secure.tutorcruncher.com/api/safeguarding_issues/1/" + "url": "https://secure.tutorcruncher.com/api/wellbeing_concerns/1/" } ] } diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.md b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md new file mode 100644 index 0000000..387d106 --- /dev/null +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md @@ -0,0 +1,3 @@ +### List all Wellbeing Concerns + +Returns a list of all your Wellbeing Concerns. The Wellbeing Concerns are sorted by id, with the largest `id` first. diff --git a/pages/safeguarding-issues/list-all-safeguarding-issues.py b/pages/wellbeing-concerns/list-all-wellbeing-concerns.py similarity index 50% rename from pages/safeguarding-issues/list-all-safeguarding-issues.py rename to pages/wellbeing-concerns/list-all-wellbeing-concerns.py index d9721c6..1f2acb0 100644 --- a/pages/safeguarding-issues/list-all-safeguarding-issues.py +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.py @@ -1,5 +1,5 @@ import pprint, requests headers = {'Authorization': 'token '} -r = requests.get('https://secure.tutorcruncher.com/api/safeguarding_issues/', headers=headers) +r = requests.get('https://secure.tutorcruncher.com/api/wellbeing_concerns/', headers=headers) pprint.pprint(r.json()) diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.md b/pages/wellbeing-concerns/wellbeing-concern-object.md new file mode 100644 index 0000000..04fe885 --- /dev/null +++ b/pages/wellbeing-concerns/wellbeing-concern-object.md @@ -0,0 +1,4 @@ +### Wellbeing Concern Object + +Wellbeing Concern objects will contain information about wellbeing concerns that have been raised, +including information about the related users. diff --git a/pages/safeguarding-issues/safeguarding-issue-object.yml b/pages/wellbeing-concerns/wellbeing-concern-object.yml similarity index 72% rename from pages/safeguarding-issues/safeguarding-issue-object.yml rename to pages/wellbeing-concerns/wellbeing-concern-object.yml index 5f7f0e3..bf55df2 100644 --- a/pages/safeguarding-issues/safeguarding-issue-object.yml +++ b/pages/wellbeing-concerns/wellbeing-concern-object.yml @@ -2,96 +2,96 @@ attributes: - name: id type: integer - description: Unique identifier for the Safeguarding Issue. + description: Unique identifier for the Wellbeing Concern. - name: display_name type: string - description: The display name for the Safeguarding Issue. + description: The display name for the Wellbeing Concern. - name: status type: string - description: The status of the Safeguarding Issue. + description: The status of the Wellbeing Concern. - name: severity type: string - description: The severity of the Safeguarding Issue. + description: The severity of the Wellbeing Concern. - name: dt_raised type: string - description: The date the Safeguarding Issue was raised. + description: The date the Wellbeing Concern was raised. - name: dt_resolved type: string - description: The date the Safeguarding Issue was resolved. + description: The date the Wellbeing Concern was resolved. - name: creator type: object - description: The Creator of the Safeguarding Issue. + description: The Creator of the Wellbeing Concern. children: - name: id type: integer - description: The ID of the Safeguarding Issue creator. + description: The ID of the Wellbeing Concern creator. - name: first_name type: string - description: The first name of the Safeguarding Issue creator. + description: The first name of the Wellbeing Concern creator. - name: last_name type: string - description: The last name of the Safeguarding Issue creator. + description: The last name of the Wellbeing Concern creator. - name: email type: string - description: The email address of the Safeguarding Issue creator. + description: The email address of the Wellbeing Concern creator. - name: creator_role_type type: string - description: The role type of the Safeguarding Issue creator. + description: The role type of the Wellbeing Concern creator. - name: service_recipient type: object - description: The Student related to the Safeguarding Issue. + description: The Student related to the Wellbeing Concern. children: - name: id type: integer - description: The ID of the student related to the Safeguarding Issue. + description: The ID of the student related to the Wellbeing Concern. - name: first_name type: string - description: The first name of the student related to the Safeguarding Issue. + description: The first name of the student related to the Wellbeing Concern. - name: last_name type: string - description: The last name of the student related to the Safeguarding Issue. + description: The last name of the student related to the Wellbeing Concern. - name: email type: string - description: The email address of the student related to the Safeguarding Issue. + description: The email address of the student related to the Wellbeing Concern. - name: url type: string description: URL to the Student's object. - name: contractor type: object - description: The Tutor related to the Safeguarding Issue. + description: The Tutor related to the Wellbeing Concern. children: - name: id type: integer - description: The ID of the tutor related to the Safeguarding Issue. + description: The ID of the tutor related to the Wellbeing Concern. - name: first_name type: string - description: The first name of the tutor related to the Safeguarding Issue. + description: The first name of the tutor related to the Wellbeing Concern. - name: last_name type: string - description: The last name of the tutor related to the Safeguarding Issue. + description: The last name of the tutor related to the Wellbeing Concern. - name: email type: string - description: The email address of the tutor related to the Safeguarding Issue. + description: The email address of the tutor related to the Wellbeing Concern. - name: url type: string description: URL to the Tutor's object. - name: service type: object - description: The Service the Safeguarding Issue is related to. + description: The Service the Wellbeing Concern is related to. children: - name: id @@ -129,7 +129,7 @@ attributes: - name: appointment type: object - description: The Appointment related to the Safeguarding Issue. + description: The Appointment related to the Wellbeing Concern. children: - name: id type: integer diff --git a/pages/wellbeing-concerns/wellbeing-concerns.yml b/pages/wellbeing-concerns/wellbeing-concerns.yml new file mode 100644 index 0000000..11795f6 --- /dev/null +++ b/pages/wellbeing-concerns/wellbeing-concerns.yml @@ -0,0 +1,24 @@ +sections: + - + title: Wellbeing Concern Object + id: wellbeing-concern-object + description: /wellbeing-concerns/wellbeing-concern-object.md + attributes: /wellbeing-concerns/wellbeing-concern-object.yml + response: /wellbeing-concerns/get-a-wellbeing-concern.json + response_title: OBJECT + - + title: List all Wellbeing Concerns + id: list-all-wellbeing-concerns + description: /wellbeing-concerns/list-all-wellbeing-concerns.md + code: /wellbeing-concerns/list-all-wellbeing-concerns.py + code_type: GET + code_url: /api/wellbeing_concerns/ + response: /wellbeing-concerns/list-all-wellbeing-concerns.json + - + title: Get a Wellbeing Concern + id: get-a-wellbeing-concern + description: /wellbeing-concerns/get-a-wellbeing-concern.md + code: /wellbeing-concerns/get-a-wellbeing-concern.py + code_type: GET + code_url: /api/wellbeing_concerns// + response: /wellbeing-concerns/get-a-wellbeing-concern.json From b7aa930834f013f62535888c3f43cf802addf286 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Tue, 3 Jun 2025 15:36:01 +0100 Subject: [PATCH 4/8] Changes to wellbeing concerns --- pages/api.yml | 8 ++++---- pages/wellbeing-concerns/get-a-wellbeing-concern.json | 4 ++-- pages/wellbeing-concerns/wellbeing-concern-object.yml | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/api.yml b/pages/api.yml index ed18c3d..11be1ea 100644 --- a/pages/api.yml +++ b/pages/api.yml @@ -122,10 +122,6 @@ endpoint_sections: title: Reviews id: reviews layout: /reviews/reviews.yml - - - title: Wellbeing Concerns - id: wellbeing-concerns - layout: /wellbeing-concerns/wellbeing-concerns.yml - title: Services (Jobs) id: services @@ -142,3 +138,7 @@ endpoint_sections: title: Tenders (Job Applications) id: tenders layout: /tenders/tenders.yml + - + title: Wellbeing Concerns + id: wellbeing-concerns + layout: /wellbeing-concerns/wellbeing-concerns.yml diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.json b/pages/wellbeing-concerns/get-a-wellbeing-concern.json index 2e21133..c7d88ac 100644 --- a/pages/wellbeing-concerns/get-a-wellbeing-concern.json +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.json @@ -9,9 +9,9 @@ "id": 58, "first_name": "Diana", "last_name": "Lafayette", - "email": "diana_lafayette@testagency.example.com" + "email": "diana_lafayette@testagency.example.com", + "role_type": "Tutor" }, - "creator_role_type": "Tutor", "service_recipient": { "id": 10, "first_name": "Archie", diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.yml b/pages/wellbeing-concerns/wellbeing-concern-object.yml index bf55df2..e6790d5 100644 --- a/pages/wellbeing-concerns/wellbeing-concern-object.yml +++ b/pages/wellbeing-concerns/wellbeing-concern-object.yml @@ -44,10 +44,11 @@ attributes: name: email type: string description: The email address of the Wellbeing Concern creator. - - - name: creator_role_type - type: string - description: The role type of the Wellbeing Concern creator. + - + name: role_type + type: string + description: The role type of the Wellbeing Concern creator. + - name: service_recipient type: object From 616be6ac33638a59a756d216ed2064ba7a8ed4d1 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Tue, 3 Jun 2025 17:09:26 +0100 Subject: [PATCH 5/8] Add role_type in all locations --- pages/adhoccharges/ad-hoc-charge-object.json | 2 ++ pages/adhoccharges/create-an-ad-hoc-charge.json | 4 +++- pages/adhoccharges/get-an-ad-hoc-charge.json | 2 ++ pages/adhoccharges/update-an-ad-hoc-charge.json | 4 +++- pages/contractor-skills/contractor-skills-object.json | 1 + pages/contractor-skills/create-a-contractor-skill.json | 3 ++- pages/contractor-skills/get-a-contractor-skill.json | 3 ++- pages/contractor-skills/list-all-contractor-skills.json | 3 ++- pages/contractors/contractor-object-v2.json | 2 ++ pages/contractors/create-a-contractor.json | 2 ++ pages/contractors/get-a-contractor.json | 2 ++ pages/contractors/update-a-contractor.json | 2 ++ pages/invoices/get-an-invoice.json | 1 + pages/invoices/invoice-object.json | 1 + pages/invoices/list-all-invoices.json | 1 + pages/notes/get-a-note.json | 3 ++- pages/proforma-invoices/create-a-pfi.json | 1 + pages/proforma-invoices/get-a-proforma-invoice.json | 1 + pages/proforma-invoices/list-all-proforma-invoices.json | 1 + pages/proforma-invoices/proforma-invoice-object.json | 1 + pages/reports/get-a-report.json | 6 ++++-- pages/reports/list-all-reports.json | 5 ++++- pages/reports/report-object.json | 6 ++++-- pages/reviews/list-all-reviews.json | 2 ++ pages/reviews/review-object.json | 2 ++ pages/tasks/get-a-task.json | 3 ++- pages/tenders/accept-a-tender.json | 1 + pages/tenders/list-all-tenders.json | 1 + pages/tenders/reject-a-tender.json | 1 + pages/tenders/tender-object.json | 1 + pages/wellbeing-concerns/get-a-wellbeing-concern.json | 4 +++- pages/wellbeing-concerns/list-all-wellbeing-concerns.json | 2 ++ 32 files changed, 61 insertions(+), 13 deletions(-) diff --git a/pages/adhoccharges/ad-hoc-charge-object.json b/pages/adhoccharges/ad-hoc-charge-object.json index 845abd1..c9c4979 100644 --- a/pages/adhoccharges/ad-hoc-charge-object.json +++ b/pages/adhoccharges/ad-hoc-charge-object.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -42,6 +43,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "status": "paid", diff --git a/pages/adhoccharges/create-an-ad-hoc-charge.json b/pages/adhoccharges/create-an-ad-hoc-charge.json index 858fc44..c962460 100644 --- a/pages/adhoccharges/create-an-ad-hoc-charge.json +++ b/pages/adhoccharges/create-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -29,7 +30,8 @@ "email": "billy_holiday@example.com", "first_name": "Billy", "id": 59, - "last_name": "Holiday" + "last_name": "Holiday", + "role_type": "Administrator" }, "currency": "GBP", "currency_conversion": null, diff --git a/pages/adhoccharges/get-an-ad-hoc-charge.json b/pages/adhoccharges/get-an-ad-hoc-charge.json index 845abd1..c9c4979 100644 --- a/pages/adhoccharges/get-an-ad-hoc-charge.json +++ b/pages/adhoccharges/get-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -42,6 +43,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "status": "paid", diff --git a/pages/adhoccharges/update-an-ad-hoc-charge.json b/pages/adhoccharges/update-an-ad-hoc-charge.json index 858fc44..c962460 100644 --- a/pages/adhoccharges/update-an-ad-hoc-charge.json +++ b/pages/adhoccharges/update-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -29,7 +30,8 @@ "email": "billy_holiday@example.com", "first_name": "Billy", "id": 59, - "last_name": "Holiday" + "last_name": "Holiday", + "role_type": "Administrator" }, "currency": "GBP", "currency_conversion": null, diff --git a/pages/contractor-skills/contractor-skills-object.json b/pages/contractor-skills/contractor-skills-object.json index 3eb672f..88b8cc9 100644 --- a/pages/contractor-skills/contractor-skills-object.json +++ b/pages/contractor-skills/contractor-skills-object.json @@ -5,6 +5,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { diff --git a/pages/contractor-skills/create-a-contractor-skill.json b/pages/contractor-skills/create-a-contractor-skill.json index b7f8b25..b3ba095 100644 --- a/pages/contractor-skills/create-a-contractor-skill.json +++ b/pages/contractor-skills/create-a-contractor-skill.json @@ -5,7 +5,8 @@ "first_name": "Billy", "last_name": "Holiday", "email": null, - "url": "https://secure.tutorcruncher.com/api/69/" + "role_type": "Tutor", + "url": "https://secure.tutorcruncher.com/api/contractors/69/" }, "subject": { "id": 51, diff --git a/pages/contractor-skills/get-a-contractor-skill.json b/pages/contractor-skills/get-a-contractor-skill.json index c215b2d..88b8cc9 100644 --- a/pages/contractor-skills/get-a-contractor-skill.json +++ b/pages/contractor-skills/get-a-contractor-skill.json @@ -5,6 +5,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { @@ -20,4 +21,4 @@ "ranking": 50.0, "custom_to_branch": null } -} \ No newline at end of file +} diff --git a/pages/contractor-skills/list-all-contractor-skills.json b/pages/contractor-skills/list-all-contractor-skills.json index 9652352..ac11777 100644 --- a/pages/contractor-skills/list-all-contractor-skills.json +++ b/pages/contractor-skills/list-all-contractor-skills.json @@ -10,6 +10,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { @@ -27,4 +28,4 @@ } } ] -} \ No newline at end of file +} diff --git a/pages/contractors/contractor-object-v2.json b/pages/contractors/contractor-object-v2.json index 39d4951..99fc660 100644 --- a/pages/contractors/contractor-object-v2.json +++ b/pages/contractors/contractor-object-v2.json @@ -27,6 +27,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -50,6 +51,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/create-a-contractor.json b/pages/contractors/create-a-contractor.json index b89aa09..5e29de0 100644 --- a/pages/contractors/create-a-contractor.json +++ b/pages/contractors/create-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/get-a-contractor.json b/pages/contractors/get-a-contractor.json index 4b6b997..4843563 100644 --- a/pages/contractors/get-a-contractor.json +++ b/pages/contractors/get-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/update-a-contractor.json b/pages/contractors/update-a-contractor.json index 6998384..8e65092 100644 --- a/pages/contractors/update-a-contractor.json +++ b/pages/contractors/update-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/invoices/get-an-invoice.json b/pages/invoices/get-an-invoice.json index 2c82a30..4745e79 100644 --- a/pages/invoices/get-an-invoice.json +++ b/pages/invoices/get-an-invoice.json @@ -107,6 +107,7 @@ "first_name": "Melissa", "last_name": "Spencer", "email": "melissa_spencer@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/35/" }, "date_sent": "2020-01-03T16:11:48.312507Z", diff --git a/pages/invoices/invoice-object.json b/pages/invoices/invoice-object.json index 2c82a30..4745e79 100644 --- a/pages/invoices/invoice-object.json +++ b/pages/invoices/invoice-object.json @@ -107,6 +107,7 @@ "first_name": "Melissa", "last_name": "Spencer", "email": "melissa_spencer@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/35/" }, "date_sent": "2020-01-03T16:11:48.312507Z", diff --git a/pages/invoices/list-all-invoices.json b/pages/invoices/list-all-invoices.json index 3155b3b..660644a 100644 --- a/pages/invoices/list-all-invoices.json +++ b/pages/invoices/list-all-invoices.json @@ -15,6 +15,7 @@ "first_name": "Jane", "last_name": "cli_a", "email": "testing+cli_a@tutorcruncher.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/52/" }, "status": "unpaid", diff --git a/pages/notes/get-a-note.json b/pages/notes/get-a-note.json index b88d617..ecfc6f4 100644 --- a/pages/notes/get-a-note.json +++ b/pages/notes/get-a-note.json @@ -6,7 +6,8 @@ "id": 2, "first_name": "Diana", "last_name": "Lafayette", - "email": "diana_lafayette@testagency.example.com" + "email": "diana_lafayette@testagency.example.com", + "role_type": "Administrator" }, "text": "This is a test note.", "focus": { diff --git a/pages/proforma-invoices/create-a-pfi.json b/pages/proforma-invoices/create-a-pfi.json index 89e5996..f973a64 100644 --- a/pages/proforma-invoices/create-a-pfi.json +++ b/pages/proforma-invoices/create-a-pfi.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/321/" }, "created": true, diff --git a/pages/proforma-invoices/get-a-proforma-invoice.json b/pages/proforma-invoices/get-a-proforma-invoice.json index 0d52cf9..4ddefcc 100644 --- a/pages/proforma-invoices/get-a-proforma-invoice.json +++ b/pages/proforma-invoices/get-a-proforma-invoice.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/proforma-invoices/list-all-proforma-invoices.json b/pages/proforma-invoices/list-all-proforma-invoices.json index c965832..89335ae 100644 --- a/pages/proforma-invoices/list-all-proforma-invoices.json +++ b/pages/proforma-invoices/list-all-proforma-invoices.json @@ -10,6 +10,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@testagency.example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/proforma-invoices/proforma-invoice-object.json b/pages/proforma-invoices/proforma-invoice-object.json index 0d52cf9..4ddefcc 100644 --- a/pages/proforma-invoices/proforma-invoice-object.json +++ b/pages/proforma-invoices/proforma-invoice-object.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/reports/get-a-report.json b/pages/reports/get-a-report.json index 972d578..88085be 100644 --- a/pages/reports/get-a-report.json +++ b/pages/reports/get-a-report.json @@ -24,6 +24,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -31,7 +32,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "extra_attrs": [ @@ -48,8 +50,8 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } - diff --git a/pages/reports/list-all-reports.json b/pages/reports/list-all-reports.json index 76e253a..a2a47ae 100644 --- a/pages/reports/list-all-reports.json +++ b/pages/reports/list-all-reports.json @@ -29,6 +29,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -36,7 +37,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "service_recipient": { @@ -44,6 +46,7 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, "url": "https://secure.tutorcruncher.com/api/reports/12/" diff --git a/pages/reports/report-object.json b/pages/reports/report-object.json index 972d578..88085be 100644 --- a/pages/reports/report-object.json +++ b/pages/reports/report-object.json @@ -24,6 +24,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -31,7 +32,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "extra_attrs": [ @@ -48,8 +50,8 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } - diff --git a/pages/reviews/list-all-reviews.json b/pages/reviews/list-all-reviews.json index af17e36..f027cce 100644 --- a/pages/reviews/list-all-reviews.json +++ b/pages/reviews/list-all-reviews.json @@ -10,6 +10,7 @@ "first_name": "Katherine", "last_name": "Brown", "email": "katherine_brown@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "contractor": { @@ -17,6 +18,7 @@ "first_name": "Brian", "last_name": "Johnston", "email": "brian_johnston@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "invoice": null, diff --git a/pages/reviews/review-object.json b/pages/reviews/review-object.json index b66d5f7..2b2c7b3 100644 --- a/pages/reviews/review-object.json +++ b/pages/reviews/review-object.json @@ -5,6 +5,7 @@ "first_name": "Katherine", "last_name": "Brown", "email": "katherine_brown@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "contractor": { @@ -12,6 +13,7 @@ "first_name": "Brian", "last_name": "Johnston", "email": "brian_johnston@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "invoice": null, diff --git a/pages/tasks/get-a-task.json b/pages/tasks/get-a-task.json index 19faaba..f469a05 100644 --- a/pages/tasks/get-a-task.json +++ b/pages/tasks/get-a-task.json @@ -4,7 +4,8 @@ "id": 59, "first_name": "Melissa", "last_name": "Spencer", - "email": "melissa_spencer@example.com" + "email": "melissa_spencer@example.com", + "role_type": "Administrator" }, "complete": false, "description": "This is an example description of a task.", diff --git a/pages/tenders/accept-a-tender.json b/pages/tenders/accept-a-tender.json index 203be48..91533fa 100644 --- a/pages/tenders/accept-a-tender.json +++ b/pages/tenders/accept-a-tender.json @@ -6,6 +6,7 @@ "first_name": null, "last_name": "Teacherson", "email": "jane_teacherson@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/1985/" }, "created": "2019-01-01T00:00:00Z", diff --git a/pages/tenders/list-all-tenders.json b/pages/tenders/list-all-tenders.json index 5460817..f4fcb87 100644 --- a/pages/tenders/list-all-tenders.json +++ b/pages/tenders/list-all-tenders.json @@ -11,6 +11,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/47/" }, "created": "2020-03-30T14:30:58.848581+01:00", diff --git a/pages/tenders/reject-a-tender.json b/pages/tenders/reject-a-tender.json index b4b0215..061d978 100644 --- a/pages/tenders/reject-a-tender.json +++ b/pages/tenders/reject-a-tender.json @@ -6,6 +6,7 @@ "first_name": null, "last_name": "Teacherson", "email": "jane_teacherson@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/1985/" }, "created": "2019-01-01T00:00:00Z", diff --git a/pages/tenders/tender-object.json b/pages/tenders/tender-object.json index 1c76c05..550327f 100644 --- a/pages/tenders/tender-object.json +++ b/pages/tenders/tender-object.json @@ -6,6 +6,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/47/" }, "created": "2020-03-30T14:30:58.848581+01:00", diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.json b/pages/wellbeing-concerns/get-a-wellbeing-concern.json index c7d88ac..2367b6e 100644 --- a/pages/wellbeing-concerns/get-a-wellbeing-concern.json +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.json @@ -17,6 +17,7 @@ "first_name": "Archie", "last_name": "Hoskins", "email": "archie_hoskins@testagency.example.com", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, "contractor": { @@ -24,6 +25,7 @@ "first_name": "Diana", "last_name": "Lafayette", "email": "diana_lafayette@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/58/" }, "service": { @@ -56,6 +58,6 @@ }, "url": "https://secure.tutorcruncher.com/api/appointments/586/" }, - "description": "This should be looked into urgently", + "description": "This should be looked into urgently.", "resolution_note": "" } diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.json b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json index 17e3496..f3041ee 100644 --- a/pages/wellbeing-concerns/list-all-wellbeing-concerns.json +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json @@ -13,6 +13,7 @@ "first_name": "Archie", "last_name": "Hoskins", "email": "archie_hoskins@testagency.example.com", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, "dt_raised": "2025-04-14T16:26:44.286782+01:00", @@ -29,6 +30,7 @@ "first_name": "Jessica", "last_name": "Coles", "email": "jessica_coles@testagency.example.com", + "role_type": "Student", "url": "https://secure.tutorcruncher.com/api/recipients/47/" }, "dt_raised": "2025-04-14T16:03:50.310174+01:00", From 64cfc055107599ace731b272211174457ed63391 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Mon, 23 Jun 2025 10:29:54 +0100 Subject: [PATCH 6/8] Rename --- pages/api.yml | 8 ++-- .../get-a-wellbeing-concern.md | 6 +-- .../list-all-wellbeing-concerns.md | 4 +- .../wellbeing-concern-object.md | 4 +- .../wellbeing-concern-object.yml | 48 +++++++++---------- .../wellbeing-concerns/wellbeing-concerns.yml | 6 +-- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pages/api.yml b/pages/api.yml index 11be1ea..238b798 100644 --- a/pages/api.yml +++ b/pages/api.yml @@ -122,6 +122,10 @@ endpoint_sections: title: Reviews id: reviews layout: /reviews/reviews.yml + - + title: Safeguarding/Wellbeing Concerns + id: wellbeing-concerns + layout: /wellbeing-concerns/wellbeing-concerns.yml - title: Services (Jobs) id: services @@ -138,7 +142,3 @@ endpoint_sections: title: Tenders (Job Applications) id: tenders layout: /tenders/tenders.yml - - - title: Wellbeing Concerns - id: wellbeing-concerns - layout: /wellbeing-concerns/wellbeing-concerns.yml diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.md b/pages/wellbeing-concerns/get-a-wellbeing-concern.md index 7d62c23..100999d 100644 --- a/pages/wellbeing-concerns/get-a-wellbeing-concern.md +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.md @@ -1,4 +1,4 @@ -### Get a Wellbeing Concern +### Get a Safeguarding/Wellbeing Concern -Returns the details of an existing Wellbeing Concern. You only need to specify the unique `id` of -the Wellbeing Concern to get the correct details. +Returns the details of an existing Safeguarding/Wellbeing Concern. You only need to specify the unique `id` of +the Safeguarding/Wellbeing Concern to get the correct details. diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.md b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md index 387d106..1d3d424 100644 --- a/pages/wellbeing-concerns/list-all-wellbeing-concerns.md +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md @@ -1,3 +1,3 @@ -### List all Wellbeing Concerns +### List all Safeguarding/Wellbeing Concerns -Returns a list of all your Wellbeing Concerns. The Wellbeing Concerns are sorted by id, with the largest `id` first. +Returns a list of all your Safeguarding/Wellbeing Concerns. The Safeguarding/Wellbeing Concerns are sorted by id, with the largest `id` first. diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.md b/pages/wellbeing-concerns/wellbeing-concern-object.md index 04fe885..d2fac77 100644 --- a/pages/wellbeing-concerns/wellbeing-concern-object.md +++ b/pages/wellbeing-concerns/wellbeing-concern-object.md @@ -1,4 +1,4 @@ -### Wellbeing Concern Object +### Safeguarding/Wellbeing Concern Object -Wellbeing Concern objects will contain information about wellbeing concerns that have been raised, +Safeguarding/Wellbeing Concern objects will contain information about Safeguarding/Wellbeing Concerns that have been raised, including information about the related users. diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.yml b/pages/wellbeing-concerns/wellbeing-concern-object.yml index e6790d5..e7bf671 100644 --- a/pages/wellbeing-concerns/wellbeing-concern-object.yml +++ b/pages/wellbeing-concerns/wellbeing-concern-object.yml @@ -2,97 +2,97 @@ attributes: - name: id type: integer - description: Unique identifier for the Wellbeing Concern. + description: Unique identifier for the Safeguarding/Wellbeing Concern. - name: display_name type: string - description: The display name for the Wellbeing Concern. + description: The display name for the Safeguarding/Wellbeing Concern. - name: status type: string - description: The status of the Wellbeing Concern. + description: The status of the Safeguarding/Wellbeing Concern. - name: severity type: string - description: The severity of the Wellbeing Concern. + description: The severity of the Safeguarding/Wellbeing Concern. - name: dt_raised type: string - description: The date the Wellbeing Concern was raised. + description: The date the Safeguarding/Wellbeing Concern was raised. - name: dt_resolved type: string - description: The date the Wellbeing Concern was resolved. + description: The date the Safeguarding/Wellbeing Concern was resolved. - name: creator type: object - description: The Creator of the Wellbeing Concern. + description: The Creator of the Safeguarding/Wellbeing Concern. children: - name: id type: integer - description: The ID of the Wellbeing Concern creator. + description: The ID of the Safeguarding/Wellbeing Concern creator. - name: first_name type: string - description: The first name of the Wellbeing Concern creator. + description: The first name of the Safeguarding/Wellbeing Concern creator. - name: last_name type: string - description: The last name of the Wellbeing Concern creator. + description: The last name of the Safeguarding/Wellbeing Concern creator. - name: email type: string - description: The email address of the Wellbeing Concern creator. + description: The email address of the Safeguarding/Wellbeing Concern creator. - name: role_type type: string - description: The role type of the Wellbeing Concern creator. + description: The role type of the Safeguarding/Wellbeing Concern creator. - name: service_recipient type: object - description: The Student related to the Wellbeing Concern. + description: The Student related to the Safeguarding/Wellbeing Concern. children: - name: id type: integer - description: The ID of the student related to the Wellbeing Concern. + description: The ID of the student related to the Safeguarding/Wellbeing Concern. - name: first_name type: string - description: The first name of the student related to the Wellbeing Concern. + description: The first name of the student related to the Safeguarding/Wellbeing Concern. - name: last_name type: string - description: The last name of the student related to the Wellbeing Concern. + description: The last name of the student related to the Safeguarding/Wellbeing Concern. - name: email type: string - description: The email address of the student related to the Wellbeing Concern. + description: The email address of the student related to the Safeguarding/Wellbeing Concern. - name: url type: string description: URL to the Student's object. - name: contractor type: object - description: The Tutor related to the Wellbeing Concern. + description: The Tutor related to the Safeguarding/Wellbeing Concern. children: - name: id type: integer - description: The ID of the tutor related to the Wellbeing Concern. + description: The ID of the tutor related to the Safeguarding/Wellbeing Concern. - name: first_name type: string - description: The first name of the tutor related to the Wellbeing Concern. + description: The first name of the tutor related to the Safeguarding/Wellbeing Concern. - name: last_name type: string - description: The last name of the tutor related to the Wellbeing Concern. + description: The last name of the tutor related to the Safeguarding/Wellbeing Concern. - name: email type: string - description: The email address of the tutor related to the Wellbeing Concern. + description: The email address of the tutor related to the Safeguarding/Wellbeing Concern. - name: url type: string description: URL to the Tutor's object. - name: service type: object - description: The Service the Wellbeing Concern is related to. + description: The Service the Safeguarding/Wellbeing Concern is related to. children: - name: id @@ -130,7 +130,7 @@ attributes: - name: appointment type: object - description: The Appointment related to the Wellbeing Concern. + description: The Appointment related to the Safeguarding/Wellbeing Concern. children: - name: id type: integer diff --git a/pages/wellbeing-concerns/wellbeing-concerns.yml b/pages/wellbeing-concerns/wellbeing-concerns.yml index 11795f6..a8c4165 100644 --- a/pages/wellbeing-concerns/wellbeing-concerns.yml +++ b/pages/wellbeing-concerns/wellbeing-concerns.yml @@ -1,13 +1,13 @@ sections: - - title: Wellbeing Concern Object + title: Safeguarding/Wellbeing Concern Object id: wellbeing-concern-object description: /wellbeing-concerns/wellbeing-concern-object.md attributes: /wellbeing-concerns/wellbeing-concern-object.yml response: /wellbeing-concerns/get-a-wellbeing-concern.json response_title: OBJECT - - title: List all Wellbeing Concerns + title: List all Safeguarding/Wellbeing Concerns id: list-all-wellbeing-concerns description: /wellbeing-concerns/list-all-wellbeing-concerns.md code: /wellbeing-concerns/list-all-wellbeing-concerns.py @@ -15,7 +15,7 @@ sections: code_url: /api/wellbeing_concerns/ response: /wellbeing-concerns/list-all-wellbeing-concerns.json - - title: Get a Wellbeing Concern + title: Get a Safeguarding/Wellbeing Concern id: get-a-wellbeing-concern description: /wellbeing-concerns/get-a-wellbeing-concern.md code: /wellbeing-concerns/get-a-wellbeing-concern.py From 6ff60060c6d2f27e48e89ea29b0b46ef95066d18 Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Mon, 23 Jun 2025 10:39:14 +0100 Subject: [PATCH 7/8] Actions script --- data/actions.json | 48 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/data/actions.json b/data/actions.json index 95a7a5e..4dde7e8 100644 --- a/data/actions.json +++ b/data/actions.json @@ -218,7 +218,7 @@ "value": "ACCOUNTING_ITEM_AUTOCHARGED", "msg": "Charged a client using Autocharge", "help_text": "Occurs once for each Credit Request or Invoice when they are charged via Autocharge.", - "extra_msg": "", + "extra_msg": "{extra_msg_content}", "subject_types": [ "Credit Request", "Invoice" @@ -914,6 +914,14 @@ "Application" ] }, + { + "key": "EXPORTED_TENDERS", + "value": "EXPORTED_TENDERS", + "msg": "Exported Job Applications", + "help_text": "When an admin exports Job Applications.", + "extra_msg": "", + "subject_types": [] + }, { "key": "CREATED_AN_APPOINTMENT", "value": "CREATED_AN_APPOINTMENT", @@ -1732,7 +1740,15 @@ "key": "DELETED_A_REVIEW", "value": "DELETED_A_REVIEW", "msg": "Deleted a Review", - "help_text": "When an Administrator deletes a Client's Reivew.", + "help_text": "When an Administrator deletes a Client's Review.", + "extra_msg": "", + "subject_types": [] + }, + { + "key": "EXPORTED_REVIEWS", + "value": "EXPORTED_REVIEWS", + "msg": "Exported Reviews", + "help_text": "When an Administrator exports Reviews", "extra_msg": "", "subject_types": [] }, @@ -2046,5 +2062,33 @@ "subject_types": [ "Client" ] + }, + { + "key": "RAISED_A_WELLBEING_CONCERN", + "value": "RAISED_A_WELLBEING_CONCERN", + "msg": "Created a Safeguarding/Wellbeing Concern", + "help_text": "When a Safeguarding/Wellbeing Concern is created.", + "extra_msg": "", + "subject_types": [ + "Safeguarding/Wellbeing Concern" + ] + }, + { + "key": "RESOLVED_A_WELLBEING_CONCERN", + "value": "RESOLVED_A_WELLBEING_CONCERN", + "msg": "Resolved a Safeguarding/Wellbeing Concern", + "help_text": "When a Safeguarding/Wellbeing Concern is resolved.", + "extra_msg": "", + "subject_types": [ + "Safeguarding/Wellbeing Concern" + ] + }, + { + "key": "EXPORTED_WELLBEING_CONCERNS", + "value": "EXPORTED_WELLBEING_CONCERNS", + "msg": "Exported Safeguarding/Wellbeing Concerns", + "help_text": "When someone exports a list of Safeguarding/Wellbeing Concerns.", + "extra_msg": "", + "subject_types": [] } ] \ No newline at end of file From 7a9bfce36f5c38072074de2999872eb44d9a408d Mon Sep 17 00:00:00 2001 From: DanJezeph15 Date: Mon, 23 Jun 2025 10:42:29 +0100 Subject: [PATCH 8/8] Add to subject type href --- extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions.py b/extensions.py index b98eb39..e51e42b 100644 --- a/extensions.py +++ b/extensions.py @@ -58,6 +58,7 @@ def json_line_list(ctx, file_name): 'Task': 'tasks', 'Note': 'notes', 'Package': 'package', + 'Safeguarding/Wellbeing Concern': 'wellbeing-concerns', }