1234567891011121314151617181920212223242526272829303132 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Languages = void 0;
- const language_1 = require("../models/language");
- const base_collection_1 = require("./base_collection");
- class Languages extends base_collection_1.BaseCollection {
- static rootElementName = "languages";
- static rootElementNameSingular = "language";
- static prefixURI = "projects/{!:project_id}/languages/{:id}";
- static elementClass = language_1.Language;
- system_languages(params = {}) {
- return this.createPromise("GET", params, this.populateArrayFromJson, this.handleReject, null, "system/languages");
- }
- list(request_params) {
- return this.doList(request_params);
- }
- create(raw_body, request_params) {
- const body = { languages: this.objToArray(raw_body) };
- return this.doCreate(body, request_params, this.populateArrayFromJsonBulk);
- }
- get(lang_id, request_params) {
- return this.doGet(lang_id, request_params);
- }
- update(lang_id, lang_params, request_params) {
- return this.doUpdate(lang_id, lang_params, request_params);
- }
- delete(lang_id, request_params) {
- return super.doDelete(lang_id, request_params);
- }
- }
- exports.Languages = Languages;
- //# sourceMappingURL=languages.js.map
|