UNPKG

@basetime/a2w-api-ts

Version:

Client library that communicates with the addtowallet API.

24 lines (23 loc) 627 B
import { Job } from '../../types/Job'; import Endpoint from '../Endpoint'; /** * Communicate with the `/campaigns/:campaignId/jobs` sub-endpoint. * * Accessed via `client.campaigns.jobs`. */ export default class CampaignJobsEndpoint extends Endpoint { /** * Constructor. * * @param parent The parent `CampaignsEndpoint` whose `req`, `do`, and `qb` are * reused. */ constructor(parent: Endpoint); /** * Returns the jobs for a campaign. * * @param campaignId The ID of the campaign. * @returns The jobs. */ getAll: (campaignId: string) => Promise<Job[]>; }