Class

Aletheia

Aletheia(apiKey)

Represents the Aletheia class, which extends the FetchService class. This class provides methods to interact with the Aletheia API.
Constructor

# new Aletheia(apiKey)

Create an instance of the Aletheia service.
Parameters:
Name Type Description
apiKey string The API key for authentication.

View Source services/aletheia/index.js, line 11

Extends

  • FetchService

Methods

# getAletheiaById(id) → {Promise}

Retrieves a specific Aletheia by ID from the API.
Parameters:
Name Type Description
id string The ID of the Aletheia.

View Source services/aletheia/index.js, line 46

A promise that resolves to the fetched Aletheia data.
Promise

# getAletheias() → {Promise}

Retrieves all Aletheias from the API.

View Source services/aletheia/index.js, line 27

A promise that resolves to the fetched Aletheias data.
Promise

# getAletheiasCount() → {Promise}

Retrieves the count of Aletheias from the API.

View Source services/aletheia/index.js, line 36

A promise that resolves to the count of Aletheias.
Promise

# getAlexandriaById(id) → {Promise}

Retrieves a specific Alexandria by ID from the API.
Parameters:
Name Type Description
id string The ID of the Alexandria.

View Source services/aletheia/index.js, line 74

A promise that resolves to the fetched Alexandria data.
Promise

# getAlexandrias() → {Promise}

Retrieves all Alexandrias from the API.

View Source services/aletheia/index.js, line 55

A promise that resolves to the fetched Alexandrias data.
Promise

# getAlexandriasCount() → {Promise}

Retrieves the count of Alexandrias from the API.

View Source services/aletheia/index.js, line 64

A promise that resolves to the count of Alexandrias.
Promise

# getCategories() → {Promise}

Retrieves all Categories from the API.

View Source services/aletheia/index.js, line 83

A promise that resolves to the fetched Categories data.
Promise

# getCategoriesCount() → {Promise}

Retrieves the count of Categories from the API.

View Source services/aletheia/index.js, line 92

A promise that resolves to the count of Categories.
Promise

# getCategoryById(id) → {Promise}

Retrieves a specific Category by ID from the API.
Parameters:
Name Type Description
id string The ID of the Category.

View Source services/aletheia/index.js, line 102

A promise that resolves to the fetched Category data.
Promise

# getDepartmentById(id) → {Promise}

Retrieves a specific Department by ID from the API.
Parameters:
Name Type Description
id string The ID of the Department.

View Source services/aletheia/index.js, line 130

A promise that resolves to the fetched Department data.
Promise

# getDepartments() → {Promise}

Retrieves all Departments from the API.

View Source services/aletheia/index.js, line 111

A promise that resolves to the fetched Departments data.
Promise

# getDepartmentsCount() → {Promise}

Retrieves the count of Departments from the API.

View Source services/aletheia/index.js, line 120

A promise that resolves to the count of Departments.
Promise

# getImportById(id) → {Promise}

Retrieves a specific Import by ID from the API.
Parameters:
Name Type Description
id string The ID of the Import.

View Source services/aletheia/index.js, line 158

A promise that resolves to the fetched Import data.
Promise

# getImports() → {Promise}

Retrieves all Imports from the API.

View Source services/aletheia/index.js, line 139

A promise that resolves to the fetched Imports data.
Promise

# getImportsCount() → {Promise}

Retrieves the count of Imports from the API.

View Source services/aletheia/index.js, line 148

A promise that resolves to the count of Imports.
Promise

# getNftById(id) → {Promise}

Retrieves a specific NFT by ID from the API.
Parameters:
Name Type Description
id string The ID of the NFT.

View Source services/aletheia/index.js, line 186

A promise that resolves to the fetched NFT data.
Promise

# getNfts() → {Promise}

Retrieves all NFTs from the API.

View Source services/aletheia/index.js, line 167

A promise that resolves to the fetched NFTs data.
Promise

# getNftsCount() → {Promise}

Retrieves the count of NFTs from the API.

View Source services/aletheia/index.js, line 176

A promise that resolves to the count of NFTs.
Promise

# getSourceById(id) → {Promise}

Retrieves a specific Source by ID from the API.
Parameters:
Name Type Description
id string The ID of the Source.

View Source services/aletheia/index.js, line 214

A promise that resolves to the fetched Source data.
Promise

# getSources() → {Promise}

Retrieves all Sources from the API.

View Source services/aletheia/index.js, line 195

A promise that resolves to the fetched Sources data.
Promise

# getSourcesCount() → {Promise}

Retrieves the count of Sources from the API.

View Source services/aletheia/index.js, line 204

A promise that resolves to the count of Sources.
Promise

# getUploadById(id) → {Promise}

Retrieves a specific Upload by ID from the API.
Parameters:
Name Type Description
id string The ID of the Upload.

View Source services/aletheia/index.js, line 242

A promise that resolves to the fetched Upload data.
Promise

# getUploads() → {Promise}

Retrieves all Uploads from the API.

View Source services/aletheia/index.js, line 223

A promise that resolves to the fetched Uploads data.
Promise

# getUploadsCount() → {Promise}

Retrieves the count of Uploads from the API.

View Source services/aletheia/index.js, line 232

A promise that resolves to the count of Uploads.
Promise