Module: lib/db/reads

Methods

(static) getApiKey(vendorId)

Gets the API key for the given vendor ID.

Gets the API key for the given vendor ID.

Parameters:
Name Type Description
vendorId string

The vendor ID to get the API key for.

Source:

(static) getApiKeys()

Gets a shallow version of all API keys.

Gets a shallow version of all API keys.

Source:
Returns:

{Promise<{ name: string, callbackUrl: string }[]>

(static) getApprovedCompletions()

Gets all approved completions.

Gets all approved completions.

Source:

(static) getCompletionsPendingReview()

Gets all completions pending review.

Gets all completions pending review.

Source:

(static) getRejectedCompletions()

Gets all rejected completions.

Gets all rejected completions.

Source: