notifications-node-client 8.2.0 → 8.2.1
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.
package/CHANGELOG.md
CHANGED
package/client/notification.js
CHANGED
|
@@ -352,6 +352,14 @@ Object.assign(NotifyClient.prototype, {
|
|
|
352
352
|
this.apiClient.setProxy(proxyConfig);
|
|
353
353
|
},
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @param {object} an axios instance
|
|
358
|
+
*/
|
|
359
|
+
setClient: function(client) {
|
|
360
|
+
this.apiClient.setClient(client);
|
|
361
|
+
},
|
|
362
|
+
|
|
355
363
|
/**
|
|
356
364
|
*
|
|
357
365
|
* @param {Buffer} fileData
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notifications-node-client",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"homepage": "https://docs.notifications.service.gov.uk/node.html",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"author": "GDS developers",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"axios": "^1.
|
|
24
|
-
"jsonwebtoken": "^9.0.
|
|
23
|
+
"axios": "^1.7.2",
|
|
24
|
+
"jsonwebtoken": "^9.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"chai": "4.
|
|
27
|
+
"chai": "4.3.4",
|
|
28
28
|
"chai-as-promised": "7.1.1",
|
|
29
29
|
"chai-bytes": "0.1.2",
|
|
30
|
-
"chai-json-schema": "1.5.
|
|
31
|
-
"jsonschema": "1.
|
|
32
|
-
"mocha": "10.
|
|
33
|
-
"mockdate": "
|
|
30
|
+
"chai-json-schema": "1.5.1",
|
|
31
|
+
"jsonschema": "1.4.1",
|
|
32
|
+
"mocha": "10.6.0",
|
|
33
|
+
"mockdate": "3.0.5",
|
|
34
34
|
"nock": "9.2.6",
|
|
35
35
|
"optimist": "0.6.1",
|
|
36
36
|
"sinon": "^18.0.0",
|
|
37
|
-
"standard-markdown": "
|
|
37
|
+
"standard-markdown": "7.1.0"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -28,7 +28,19 @@
|
|
|
28
28
|
"scheduled_for": {"oneOf":[
|
|
29
29
|
{"$ref": "definitions.json#/datetime"},
|
|
30
30
|
{"type": "null"}
|
|
31
|
-
]}
|
|
31
|
+
]},
|
|
32
|
+
"cost_in_pounds": {"type": ["number", "null"]},
|
|
33
|
+
"is_cost_data_ready": {"type": "boolean"},
|
|
34
|
+
"cost_details": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"billable_sms_fragments": {"type": ["integer", "null"]},
|
|
38
|
+
"international_rate_multiplier": {"type": ["number", "null"]},
|
|
39
|
+
"sms_rate": {"type": ["number", "null"]},
|
|
40
|
+
"billable_sheets_of_paper": {"type": ["integer", "null"]},
|
|
41
|
+
"postage": {"type": ["string", "null"]}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
32
44
|
},
|
|
33
45
|
"required": [
|
|
34
46
|
"id", "reference", "email_address", "phone_number",
|