Class

DGCP

DGCP(apiKey)

DGCP Class Represents a client for interacting with the DGCP (Dirección General de Contrataciones Públicas) API. This class extends the FetchService class and provides methods for retrieving information about government releases, including details about suppliers, procuring entities, and releases related to Covid conditions.

Full API specs: https://api.dgcp.gob.do
Constructor

# new DGCP(apiKey)

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

View Source services/gob.do/dgcp.js, line 15

Extends

  • FetchService

Methods

# getReleaseByOcid(ocid) → {Promise}

Get release by ID.
Parameters:
Name Type Description
ocid string The OCID of the release.

View Source services/gob.do/dgcp.js, line 39

A promise that resolves to the release data.
Promise

# getReleases() → {Promise}

Get total pages by releases.

View Source services/gob.do/dgcp.js, line 29

A promise that resolves to the total pages of releases.
Promise

# getReleasesByCovid(condition, page) → {Promise}

Get releases by Covid.
Parameters:
Name Type Description
condition boolean The condition for Covid releases.
page string The page number.

View Source services/gob.do/dgcp.js, line 103

A promise that resolves to an array of releases based on the Covid condition and page.
Promise

# getReleasesByPage(page) → {Promise}

Get releases.
Parameters:
Name Type Description
page string The page number.

View Source services/gob.do/dgcp.js, line 49

A promise that resolves to an array of releases.
Promise

# getReleasesByProcuringEntity(procuringEntity, page) → {Promise}

Get releases by procuringEntity.
Parameters:
Name Type Description
procuringEntity string The name of the procuringEntity.
page string The page number.

View Source services/gob.do/dgcp.js, line 92

A promise that resolves to an array of releases for the specified procuringEntity and page.
Promise

# getReleasesBySupplier(supplier, page) → {Promise}

Get releases by supplier.
Parameters:
Name Type Description
supplier string The name of the supplier.
page string The page number.

View Source services/gob.do/dgcp.js, line 81

A promise that resolves to an array of releases for the specified supplier and page.
Promise

# getReleasesByYear(year, page) → {Promise}

Get releases by year.
Parameters:
Name Type Description
year string The year of release.
page string The page number.

View Source services/gob.do/dgcp.js, line 60

A promise that resolves to an array of releases for the specified year and page.
Promise

# getTotalPagesByCovid(condition) → {Promise}

Get total pages by Covid releases.
Parameters:
Name Type Description
condition boolean The condition for Covid releases.

View Source services/gob.do/dgcp.js, line 133

A promise that resolves to the total pages of releases based on the Covid condition.
Promise

# getTotalPagesByProcuringEntity(procuringEntity) → {Promise}

Get total pages releases per procuringEntity.
Parameters:
Name Type Description
procuringEntity string The name of the procuringEntity.

View Source services/gob.do/dgcp.js, line 123

A promise that resolves to the total pages of releases for the specified procuringEntity.
Promise

# getTotalPagesBySupplier(supplier) → {Promise}

Get total pages releases per supplier.
Parameters:
Name Type Description
supplier string The name of the supplier.

View Source services/gob.do/dgcp.js, line 113

A promise that resolves to the total pages of releases for the specified supplier.
Promise

# getTotalPagesByYear(year) → {Promise}

Get total pages releases per year.
Parameters:
Name Type Description
year string The year of release.

View Source services/gob.do/dgcp.js, line 70

A promise that resolves to the total pages of releases for the specified year.
Promise