@ministryofjustice/hmpps-digital-prison-reporting-frontend 8.2.1 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,24 @@ export declare const reportingApiFailures: {
101
101
  fixedDelayMilliseconds: number;
102
102
  };
103
103
  };
104
- readonly requestAsyncReportFailure: {
104
+ readonly requestAsyncReportFailure500: {
105
+ priority: number;
106
+ request: {
107
+ method: "GET" | "POST" | "DELETE" | "PUT" | "OPTIONS";
108
+ queryParameters?: object | undefined;
109
+ bodyPatterns?: Array<object> | undefined;
110
+ urlPathPattern: string;
111
+ };
112
+ response: {
113
+ status: number;
114
+ headers: {
115
+ "Content-Type": "application/json;charset=UTF-8";
116
+ };
117
+ jsonBody: object;
118
+ fixedDelayMilliseconds: number;
119
+ };
120
+ };
121
+ readonly requestAsyncReportFailure403: {
105
122
  priority: number;
106
123
  request: {
107
124
  method: "GET" | "POST" | "DELETE" | "PUT" | "OPTIONS";
@@ -4,7 +4,8 @@ export declare const stubs: {
4
4
  readonly getDefinitionSummariesUnauthorizedFailure: () => import("superagent/lib/node").Request;
5
5
  readonly getSingleDefinitionFailure: () => import("superagent/lib/node").Request;
6
6
  readonly getSingleDefinitionVariantFailure: () => import("superagent/lib/node").Request;
7
- readonly requestAsyncReportFailure: () => import("superagent/lib/node").Request;
7
+ readonly requestAsyncReportFailure500: () => import("superagent/lib/node").Request;
8
+ readonly requestAsyncReportFailure403: () => import("superagent/lib/node").Request;
8
9
  readonly getAsyncReportStatusFailure: () => import("superagent/lib/node").Request;
9
10
  readonly getAsyncReportStatusFailure404: () => import("superagent/lib/node").Request;
10
11
  readonly cancelAsyncRequestFailure: () => import("superagent/lib/node").Request;
@@ -7,6 +7,7 @@
7
7
  {% set id = meta.variantId %}
8
8
  {% set executionId = meta.executionId %}
9
9
  {% set tableId = meta.tableId %}
10
+ {% set mainErrorMessage = 'Please take note of the following meta data and use in any correspondence with the support team to help speed up your request:' %}
10
11
 
11
12
  {% set errorList = [] %}
12
13
  {%
@@ -29,13 +30,14 @@
29
30
  %}
30
31
  {% endif %}
31
32
 
33
+ {% if error.status === 403 %}
34
+ {% set mainErrorMessage = 'Ensure you have the correct user role to access this report. If you need assistance, please contact the service desk, providing them with the following meta data to help speed up your request:' %}
35
+ {% endif %}
36
+
32
37
 
33
38
  {% set metaHtml %}
34
39
  <div id="request-error_request-details" class="govuk-!-margin-top-3">
35
- <p class="govuk-body-s">
36
- Please take note of the following meta data and use in any correspondence with the support team to help speed up
37
- your request:
38
- </p>
40
+ <p class="govuk-body-s">{{ mainErrorMessage }}</p>
39
41
  <ul class="govuk-list govuk-body-s">
40
42
  {% if reportId %}<li><strong>Report ID: </strong> {{ reportId }}</li>{% endif %}
41
43
  {% if id %}<li><strong>ID: </strong> {{ id }}</li>{% endif %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",