apify-client
Version:
Apify API client for JavaScript
30 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookDispatchCollectionClient = void 0;
const tslib_1 = require("tslib");
const ow_1 = tslib_1.__importDefault(require("ow"));
const resource_collection_client_1 = require("../base/resource_collection_client");
class WebhookDispatchCollectionClient extends resource_collection_client_1.ResourceCollectionClient {
/**
* @hidden
*/
constructor(options) {
super({
resourcePath: 'webhook-dispatches',
...options,
});
}
/**
* https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatches-collection/get-list-of-webhook-dispatches
*/
async list(options = {}) {
(0, ow_1.default)(options, ow_1.default.object.exactShape({
limit: ow_1.default.optional.number,
offset: ow_1.default.optional.number,
desc: ow_1.default.optional.boolean,
}));
return this._list(options);
}
}
exports.WebhookDispatchCollectionClient = WebhookDispatchCollectionClient;
//# sourceMappingURL=webhook_dispatch_collection.js.map