@eso-status/service-alerts 2.0.0-dev.2 → 2.0.0-dev.4
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/lib/connector.d.ts +1 -1
- package/lib/formatter/date.formatter.d.ts +2 -3
- package/lib/formatter/date.formatter.js +2 -1
- package/lib/identifier/slug.identifier.js +2 -0
- package/lib/interface/esoStatusRawData.interface.d.ts +13 -14
- package/lib/raw.d.ts +2 -2
- package/lib/type/remoteServerPsEuRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerPsNaRawSlug.type.d.ts +1 -1
- package/package.json +8 -8
package/lib/connector.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
1
|
/**
|
|
3
2
|
* Class for identifying and formatting the date contained in an announcement
|
|
4
3
|
*/
|
|
@@ -9,9 +8,9 @@ export default class DateFormatter {
|
|
|
9
8
|
*/
|
|
10
9
|
rawDate: string;
|
|
11
10
|
/**
|
|
12
|
-
* List of dates formatted correctly contained in the announcement
|
|
11
|
+
* List of dates formatted correctly contained in the announcement (ISO 8601)
|
|
13
12
|
*/
|
|
14
|
-
dates:
|
|
13
|
+
dates: string[];
|
|
15
14
|
/**
|
|
16
15
|
* @param raw Raw data of the announcement
|
|
17
16
|
*/
|
|
@@ -41,6 +41,7 @@ class SlugIdentifier {
|
|
|
41
41
|
this.ServerPsEuMatchesList = [
|
|
42
42
|
'The European megaservers',
|
|
43
43
|
'The European PlayStation® megaserver',
|
|
44
|
+
'PlayStation™ Network',
|
|
44
45
|
];
|
|
45
46
|
/**
|
|
46
47
|
* List of indicators proving that the announcement pertains to the slug server_xbox_eu
|
|
@@ -67,6 +68,7 @@ class SlugIdentifier {
|
|
|
67
68
|
this.ServerPsNaMatchesList = [
|
|
68
69
|
'The North American megaservers',
|
|
69
70
|
'North American PlayStation® megaserver',
|
|
71
|
+
'PlayStation™ Network',
|
|
70
72
|
];
|
|
71
73
|
/**
|
|
72
74
|
* List of indicators proving that the announcement pertains to the slug server_xbox_na
|
|
@@ -1,54 +1,53 @@
|
|
|
1
|
-
import { Moment } from 'moment/moment';
|
|
2
1
|
import { Slug, Status, Support, Type, Zone } from '@eso-status/types';
|
|
3
2
|
import { RemoteRawSlug } from '../type/remoteRawSlug.type';
|
|
4
3
|
import { RemoteRawStatus } from '../type/remoteRawStatus.type';
|
|
5
4
|
import { SourceUrl } from '../type/sourceUrl.type';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* Raw data of an ESO server/service status
|
|
8
7
|
*/
|
|
9
8
|
export interface EsoStatusRawData {
|
|
10
9
|
/**
|
|
11
|
-
* URL
|
|
10
|
+
* URL of the data source
|
|
12
11
|
*/
|
|
13
12
|
source: SourceUrl;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* Raw data used to identify the server/service and its status
|
|
16
15
|
*/
|
|
17
16
|
raw: string;
|
|
18
17
|
/**
|
|
19
|
-
* Status
|
|
18
|
+
* Status of the server/service
|
|
20
19
|
*/
|
|
21
20
|
status: Status;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
22
|
+
* Raw data used to identify the status
|
|
24
23
|
*/
|
|
25
24
|
rawStatus: RemoteRawStatus;
|
|
26
25
|
/**
|
|
27
|
-
* Slug
|
|
26
|
+
* Slug of the server/service
|
|
28
27
|
*/
|
|
29
28
|
slug: Slug;
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
30
|
+
* Raw data used to identify the slug
|
|
32
31
|
*/
|
|
33
32
|
rawSlug: RemoteRawSlug;
|
|
34
33
|
/**
|
|
35
|
-
* Type
|
|
34
|
+
* Type of the server/service
|
|
36
35
|
*/
|
|
37
36
|
type: Type;
|
|
38
37
|
/**
|
|
39
|
-
* Support
|
|
38
|
+
* Support of the server/service
|
|
40
39
|
*/
|
|
41
40
|
support: Support;
|
|
42
41
|
/**
|
|
43
|
-
* Zone
|
|
42
|
+
* Zone of the server/service
|
|
44
43
|
*/
|
|
45
44
|
zone: Zone;
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
46
|
+
* List of dates contained in the announcement (ISO 8601)
|
|
48
47
|
*/
|
|
49
|
-
dates:
|
|
48
|
+
dates: string[];
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
50
|
+
* Raw data of the date contained in the announcement
|
|
52
51
|
*/
|
|
53
52
|
rawDate: string;
|
|
54
53
|
}
|
package/lib/raw.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EsoStatusRawData } from './interface/esoStatusRawData.interface';
|
|
|
3
3
|
* Class containing announcement information
|
|
4
4
|
*/
|
|
5
5
|
export default class Raw {
|
|
6
|
-
private raw;
|
|
6
|
+
private readonly raw;
|
|
7
7
|
/**
|
|
8
8
|
* Status identification class
|
|
9
9
|
* @private
|
|
@@ -18,7 +18,7 @@ export default class Raw {
|
|
|
18
18
|
* Class for identifying the list of slugs
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
21
|
-
private slugsIdentifier;
|
|
21
|
+
private readonly slugsIdentifier;
|
|
22
22
|
/**
|
|
23
23
|
* List of information about slugs found in the announcement
|
|
24
24
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Different slugs of announcements concerning the European PlayStation® Megaserver
|
|
3
3
|
*/
|
|
4
|
-
export type RemoteServerPsEuRawSlug = 'The European megaservers' | 'The European PlayStation® megaserver';
|
|
4
|
+
export type RemoteServerPsEuRawSlug = 'The European megaservers' | 'The European PlayStation® megaserver' | 'PlayStation™ Network';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Different slugs of announcements concerning the North American PlayStation® Megaserver
|
|
3
3
|
*/
|
|
4
|
-
export type RemoteServerPsNaRawSlug = 'The North American megaservers' | 'North American PlayStation® megaserver';
|
|
4
|
+
export type RemoteServerPsNaRawSlug = 'The North American megaservers' | 'North American PlayStation® megaserver' | 'PlayStation™ Network';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eso-status/service-alerts",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.4",
|
|
4
4
|
"description": "Library for retrieving and formatting data, available at https://help.elderscrollsonline.com/app/answers/detail/a_id/4320.",
|
|
5
5
|
"author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -84,23 +84,23 @@
|
|
|
84
84
|
"prepare": "husky"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@eso-status/types": "2.0.0-dev.
|
|
87
|
+
"@eso-status/types": "2.0.0-dev.13",
|
|
88
88
|
"axios": "1.7.7",
|
|
89
89
|
"moment": "2.30.1"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@types/jest": "29.5.
|
|
93
|
-
"eslint": "8.57.
|
|
92
|
+
"@types/jest": "29.5.13",
|
|
93
|
+
"eslint": "8.57.1",
|
|
94
94
|
"eslint-config-airbnb-base": "15.0.0",
|
|
95
95
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
96
96
|
"eslint-config-prettier": "9.1.0",
|
|
97
97
|
"eslint-plugin-jest": "28.8.3",
|
|
98
98
|
"eslint-plugin-prettier": "5.2.1",
|
|
99
|
-
"eslint-plugin-sonarjs": "2.0.
|
|
100
|
-
"eslint-plugin-unused-imports": "4.1.
|
|
101
|
-
"husky": "9.1.
|
|
99
|
+
"eslint-plugin-sonarjs": "2.0.3",
|
|
100
|
+
"eslint-plugin-unused-imports": "4.1.4",
|
|
101
|
+
"husky": "9.1.6",
|
|
102
102
|
"jest": "29.7.0",
|
|
103
|
-
"nodemon": "3.1.
|
|
103
|
+
"nodemon": "3.1.7",
|
|
104
104
|
"prettier": "3.3.3",
|
|
105
105
|
"ts-jest": "29.2.5",
|
|
106
106
|
"typescript": "5.5.4"
|