@eso-status/forum-message
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-dev.17 • Public • Published

eso-status/forum-message

Quality Gate Status Bugs Code Smells Vulnerabilities Security Rating Coverage Duplicated Lines (%)

npm license Downloads Node version

Build Status Build Status

eso-status/forum-message is a library for retrieving and formatting data, which can be found at https://forums.elderscrollsonline.com or https://forums.elderscrollsonline.com/en/categories/pts.

Table of Contents

Install

npm i @eso-status/forum-message

Usage

import ForumMessage from '@eso-status/forum-message';
import { EsoStatusRawData } from '@eso-status/types';
import { ForumMessagePTSURL } from '@eso-status/forum-message/const';

// Homepage data
const esoStatusRawDataList: EsoStatusRawData[] = await ForumMessage.getData();

// PTS category homepage data
const esoStatusRawDataList: EsoStatusRawData[] = await ForumMessage.getData(ForumMessagePTSURL);

Return exemple

[
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• PC/Mac: NA and EU megaservers for patch maintenance – September 3, 4:00AM EDT (8:00 UTC) – 9:00AM EDT (13:00 UTC)',
        slug: 'server_pc_eu',
        type: 'server',
        support: 'pc',
        zone: 'eu',
        status: 'planned',
        rawSlug: 'PC/Mac: NA and EU megaservers for',
        rawDate: 'September 3, 4:00AM EDT (8:00 UTC) – 9:00AM EDT (13:00 UTC)',
        dates: [ '2024-09-03T08:00:00Z', '2024-09-03T13:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• PC/Mac: NA and EU megaservers for patch maintenance – September 3, 4:00AM EDT (8:00 UTC) – 9:00AM EDT (13:00 UTC)',
        slug: 'server_pc_na',
        type: 'server',
        support: 'pc',
        zone: 'na',
        status: 'planned',
        rawSlug: 'PC/Mac: NA and EU megaservers for',
        rawDate: 'September 3, 4:00AM EDT (8:00 UTC) – 9:00AM EDT (13:00 UTC)',
        dates: [ '2024-09-03T08:00:00Z', '2024-09-03T13:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• Xbox: NA and EU megaservers for patch maintenance – September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'server_xbox_eu',
        type: 'server',
        support: 'xbox',
        zone: 'eu',
        status: 'planned',
        rawSlug: 'Xbox: NA and EU megaservers for',
        rawDate: 'September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T10:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• Xbox: NA and EU megaservers for patch maintenance – September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'server_xbox_na',
        type: 'server',
        support: 'xbox',
        zone: 'na',
        status: 'planned',
        rawSlug: 'Xbox: NA and EU megaservers for',
        rawDate: 'September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T10:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• PlayStation®: NA and EU megaservers for patch maintenance – September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'server_ps_eu',
        type: 'server',
        support: 'ps',
        zone: 'eu',
        status: 'planned',
        rawSlug: 'PlayStation®: NA and EU megaservers for',
        rawDate: 'September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T10:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• PlayStation®: NA and EU megaservers for patch maintenance – September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'server_ps_na',
        type: 'server',
        support: 'ps',
        zone: 'na',
        status: 'planned',
        rawSlug: 'PlayStation®: NA and EU megaservers for',
        rawDate: 'September 4, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T10:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• ESO Store and Account System for maintenance – September 4, 10:00AM EDT (14:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'service_store_eso',
        type: 'service',
        support: 'store',
        zone: 'eso',
        status: 'planned',
        rawSlug: 'ESO Store and Account System for',
        rawDate: 'September 4, 10:00AM EDT (14:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T14:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com',
        raw: '• ESO Store and Account System for maintenance – September 4, 10:00AM EDT (14:00 UTC) - 12:00PM EDT (16:00 UTC)',
        slug: 'service_system_account',
        type: 'service',
        support: 'system',
        zone: 'account',
        status: 'planned',
        rawSlug: 'ESO Store and Account System for',
        rawDate: 'September 4, 10:00AM EDT (14:00 UTC) - 12:00PM EDT (16:00 UTC)',
        dates: [ '2024-09-04T14:00:00Z', '2024-09-04T16:00:00Z' ]
    },
    {
        source: 'https://forums.elderscrollsonline.com/en/categories/pts',
        raw: 'We will be performing maintenance on the PTS on Thursday at 9:00AM EDT (13:00 UTC).',
        slug: 'server_pc_pts',
        type: 'server',
        support: 'pc',
        zone: 'pts',
        status: 'planned',
        rawSlug: 'PTS',
        rawDate: 'Thursday at 9:00AM EDT (13:00 UTC)',
        rawStatus: 'We will be performing maintenance',
        dates: [ '2024-09-05T13:00:00Z' ]
    }
]

Readme

Keywords

none

Package Sidebar

Install

npm i @eso-status/forum-message

Weekly Downloads

3

Version

2.0.0-dev.17

License

MIT

Unpacked Size

56.1 kB

Total Files

55

Last publish

Collaborators

  • dov118