screenshots.js 1.2 KB

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Screenshots = void 0;
  4. const base_collection_1 = require("./base_collection");
  5. const screenshot_1 = require("../models/screenshot");
  6. class Screenshots extends base_collection_1.BaseCollection {
  7. static rootElementName = "screenshots";
  8. static rootElementNameSingular = "screenshot";
  9. static prefixURI = "projects/{!:project_id}/screenshots/{:id}";
  10. static elementClass = screenshot_1.Screenshot;
  11. list(request_params) {
  12. return this.doList(request_params);
  13. }
  14. create(raw_body, request_params) {
  15. const body = { screenshots: this.objToArray(raw_body) };
  16. return this.doCreate(body, request_params, this.populateArrayFromJsonBulk);
  17. }
  18. get(screnshot_id, request_params) {
  19. return this.doGet(screnshot_id, request_params);
  20. }
  21. update(screenshot_id, screenshot_params, request_params) {
  22. return this.doUpdate(screenshot_id, screenshot_params, request_params);
  23. }
  24. delete(screenshot_id, request_params) {
  25. return this.doDelete(screenshot_id, request_params);
  26. }
  27. }
  28. exports.Screenshots = Screenshots;
  29. //# sourceMappingURL=screenshots.js.map