ch-admin-api-client-typescript 5.88.21 → 5.88.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/about-us-api.d.ts +56 -0
- package/lib/api/about-us-api.d.ts.map +1 -1
- package/lib/api/about-us-api.js +94 -0
- package/lib/api/article-categories-api.d.ts +56 -0
- package/lib/api/article-categories-api.d.ts.map +1 -1
- package/lib/api/article-categories-api.js +94 -0
- package/lib/api/articles-api.d.ts +56 -0
- package/lib/api/articles-api.d.ts.map +1 -1
- package/lib/api/articles-api.js +94 -0
- package/lib/api/badge-categories-api.d.ts +384 -0
- package/lib/api/badge-categories-api.d.ts.map +1 -0
- package/lib/api/badge-categories-api.js +718 -0
- package/lib/api/badges-api.d.ts +557 -0
- package/lib/api/badges-api.d.ts.map +1 -0
- package/lib/api/badges-api.js +950 -0
- package/lib/api/contributors-api.d.ts +60 -4
- package/lib/api/contributors-api.d.ts.map +1 -1
- package/lib/api/contributors-api.js +98 -4
- package/lib/api/countries-api.d.ts +68 -12
- package/lib/api/countries-api.d.ts.map +1 -1
- package/lib/api/countries-api.js +106 -12
- package/lib/api/deals-api.d.ts +56 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +94 -0
- package/lib/api/doctor-affiliations-api.d.ts +56 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +94 -0
- package/lib/api/faq-categories-api.d.ts +56 -0
- package/lib/api/faq-categories-api.d.ts.map +1 -1
- package/lib/api/faq-categories-api.js +94 -0
- package/lib/api/faqs-api.d.ts +56 -0
- package/lib/api/faqs-api.d.ts.map +1 -1
- package/lib/api/faqs-api.js +94 -0
- package/lib/api/general-articles-api.d.ts +56 -0
- package/lib/api/general-articles-api.d.ts.map +1 -1
- package/lib/api/general-articles-api.js +94 -0
- package/lib/api/hospital-branches-api.d.ts +56 -0
- package/lib/api/hospital-branches-api.d.ts.map +1 -1
- package/lib/api/hospital-branches-api.js +94 -0
- package/lib/api/hospital-groups-api.d.ts +56 -0
- package/lib/api/hospital-groups-api.d.ts.map +1 -1
- package/lib/api/hospital-groups-api.js +94 -0
- package/lib/api/hospitals-api.d.ts +325 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +500 -0
- package/lib/api/platform-interpretation-languages-api.d.ts +375 -0
- package/lib/api/platform-interpretation-languages-api.d.ts.map +1 -0
- package/lib/api/platform-interpretation-languages-api.js +712 -0
- package/lib/api/service-reviews-api.d.ts +56 -0
- package/lib/api/service-reviews-api.d.ts.map +1 -1
- package/lib/api/service-reviews-api.js +94 -0
- package/lib/api/specialties-api.d.ts +56 -0
- package/lib/api/specialties-api.d.ts.map +1 -1
- package/lib/api/specialties-api.js +94 -0
- package/lib/api/specialty-types-api.d.ts +60 -4
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +98 -4
- package/lib/api.d.ts +3 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +3 -0
- package/lib/models/about-us-page-item-model.d.ts +6 -0
- package/lib/models/about-us-page-item-model.d.ts.map +1 -1
- package/lib/models/about-us-page-model.d.ts +6 -6
- package/lib/models/about-us-page-model.d.ts.map +1 -1
- package/lib/models/badge-categories-model.d.ts +33 -0
- package/lib/models/badge-categories-model.d.ts.map +1 -0
- package/lib/models/badge-categories-model.js +15 -0
- package/lib/models/badge-category-item-model.d.ts +44 -0
- package/lib/models/badge-category-item-model.d.ts.map +1 -0
- package/lib/models/badge-category-item-model.js +15 -0
- package/lib/models/badge-category-model.d.ts +44 -0
- package/lib/models/badge-category-model.d.ts.map +1 -0
- package/lib/models/badge-category-model.js +15 -0
- package/lib/models/badge-item-model.d.ts +110 -0
- package/lib/models/badge-item-model.d.ts.map +1 -0
- package/lib/models/badge-item-model.js +15 -0
- package/lib/models/badge-model.d.ts +123 -0
- package/lib/models/badge-model.d.ts.map +1 -0
- package/lib/models/badge-model.js +15 -0
- package/lib/models/badges-model.d.ts +33 -0
- package/lib/models/badges-model.d.ts.map +1 -0
- package/lib/models/badges-model.js +15 -0
- package/lib/models/country-simple-item-model.d.ts +6 -0
- package/lib/models/country-simple-item-model.d.ts.map +1 -1
- package/lib/models/create-badge-category-command.d.ts +31 -0
- package/lib/models/create-badge-category-command.d.ts.map +1 -0
- package/lib/models/create-badge-category-command.js +15 -0
- package/lib/models/create-badge-command.d.ts +115 -0
- package/lib/models/create-badge-command.d.ts.map +1 -0
- package/lib/models/create-badge-command.js +15 -0
- package/lib/models/create-platform-interpretation-language-command.d.ts +37 -0
- package/lib/models/create-platform-interpretation-language-command.d.ts.map +1 -0
- package/lib/models/create-platform-interpretation-language-command.js +15 -0
- package/lib/models/index.d.ts +35 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +35 -0
- package/lib/models/patch-article-command.d.ts +0 -6
- package/lib/models/patch-article-command.d.ts.map +1 -1
- package/lib/models/patch-deal-command.d.ts +0 -6
- package/lib/models/patch-deal-command.d.ts.map +1 -1
- package/lib/models/patch-doctor-affiliation-command.d.ts +0 -6
- package/lib/models/patch-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/patch-general-article-command.d.ts +0 -6
- package/lib/models/patch-general-article-command.d.ts.map +1 -1
- package/lib/models/patch-hospital-command.d.ts +0 -6
- package/lib/models/patch-hospital-command.d.ts.map +1 -1
- package/lib/models/patch-hospital-specialty-command.d.ts +0 -6
- package/lib/models/patch-hospital-specialty-command.d.ts.map +1 -1
- package/lib/models/patch-specialty-command.d.ts +0 -6
- package/lib/models/patch-specialty-command.d.ts.map +1 -1
- package/lib/models/patch-specialty-type-command.d.ts +0 -6
- package/lib/models/patch-specialty-type-command.d.ts.map +1 -1
- package/lib/models/platform-interpretation-language-item-model.d.ts +56 -0
- package/lib/models/platform-interpretation-language-item-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-language-item-model.js +15 -0
- package/lib/models/platform-interpretation-language-model.d.ts +56 -0
- package/lib/models/platform-interpretation-language-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-language-model.js +15 -0
- package/lib/models/platform-interpretation-languages-model.d.ts +33 -0
- package/lib/models/platform-interpretation-languages-model.d.ts.map +1 -0
- package/lib/models/platform-interpretation-languages-model.js +15 -0
- package/lib/models/survey-form-element-input-model.d.ts +6 -0
- package/lib/models/survey-form-element-input-model.d.ts.map +1 -1
- package/lib/models/survey-form-element-model.d.ts +6 -0
- package/lib/models/survey-form-element-model.d.ts.map +1 -1
- package/lib/models/survey-result-element-model.d.ts +6 -0
- package/lib/models/survey-result-element-model.d.ts.map +1 -1
- package/lib/models/update-about-us-page-command.d.ts +0 -6
- package/lib/models/update-about-us-page-command.d.ts.map +1 -1
- package/lib/models/update-about-us-page-slug-command.d.ts +31 -0
- package/lib/models/update-about-us-page-slug-command.d.ts.map +1 -0
- package/lib/models/update-about-us-page-slug-command.js +15 -0
- package/lib/models/update-article-category-command.d.ts +0 -6
- package/lib/models/update-article-category-command.d.ts.map +1 -1
- package/lib/models/update-article-category-slug-command.d.ts +31 -0
- package/lib/models/update-article-category-slug-command.d.ts.map +1 -0
- package/lib/models/update-article-category-slug-command.js +15 -0
- package/lib/models/update-article-command.d.ts +0 -6
- package/lib/models/update-article-command.d.ts.map +1 -1
- package/lib/models/update-article-slug-command.d.ts +31 -0
- package/lib/models/update-article-slug-command.d.ts.map +1 -0
- package/lib/models/update-article-slug-command.js +15 -0
- package/lib/models/update-badge-category-command.d.ts +31 -0
- package/lib/models/update-badge-category-command.d.ts.map +1 -0
- package/lib/models/update-badge-category-command.js +15 -0
- package/lib/models/update-badge-command.d.ts +121 -0
- package/lib/models/update-badge-command.d.ts.map +1 -0
- package/lib/models/update-badge-command.js +15 -0
- package/lib/models/update-contributor-command.d.ts +0 -6
- package/lib/models/update-contributor-command.d.ts.map +1 -1
- package/lib/models/update-contributor-slug-command.d.ts +31 -0
- package/lib/models/update-contributor-slug-command.d.ts.map +1 -0
- package/lib/models/update-contributor-slug-command.js +15 -0
- package/lib/models/update-country-command.d.ts +0 -6
- package/lib/models/update-country-command.d.ts.map +1 -1
- package/lib/models/update-country-slug-command.d.ts +31 -0
- package/lib/models/update-country-slug-command.d.ts.map +1 -0
- package/lib/models/update-country-slug-command.js +15 -0
- package/lib/models/update-deal-command.d.ts +0 -6
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-deal-slug-command.d.ts +31 -0
- package/lib/models/update-deal-slug-command.d.ts.map +1 -0
- package/lib/models/update-deal-slug-command.js +15 -0
- package/lib/models/update-doctor-affiliation-command.d.ts +0 -6
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-slug-command.d.ts +31 -0
- package/lib/models/update-doctor-affiliation-slug-command.d.ts.map +1 -0
- package/lib/models/update-doctor-affiliation-slug-command.js +15 -0
- package/lib/models/update-faq-category-command.d.ts +0 -6
- package/lib/models/update-faq-category-command.d.ts.map +1 -1
- package/lib/models/update-faq-category-slug-command.d.ts +31 -0
- package/lib/models/update-faq-category-slug-command.d.ts.map +1 -0
- package/lib/models/update-faq-category-slug-command.js +15 -0
- package/lib/models/update-faq-command.d.ts +0 -6
- package/lib/models/update-faq-command.d.ts.map +1 -1
- package/lib/models/update-faq-slug-command.d.ts +31 -0
- package/lib/models/update-faq-slug-command.d.ts.map +1 -0
- package/lib/models/update-faq-slug-command.js +15 -0
- package/lib/models/update-general-article-command.d.ts +0 -6
- package/lib/models/update-general-article-command.d.ts.map +1 -1
- package/lib/models/update-general-article-slug-command.d.ts +31 -0
- package/lib/models/update-general-article-slug-command.d.ts.map +1 -0
- package/lib/models/update-general-article-slug-command.js +15 -0
- package/lib/models/update-hospital-branch-slug-command.d.ts +31 -0
- package/lib/models/update-hospital-branch-slug-command.d.ts.map +1 -0
- package/lib/models/update-hospital-branch-slug-command.js +15 -0
- package/lib/models/update-hospital-command.d.ts +0 -6
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-hospital-group-slug-command.d.ts +31 -0
- package/lib/models/update-hospital-group-slug-command.d.ts.map +1 -0
- package/lib/models/update-hospital-group-slug-command.js +15 -0
- package/lib/models/update-hospital-service-command.d.ts +0 -6
- package/lib/models/update-hospital-service-command.d.ts.map +1 -1
- package/lib/models/update-hospital-service-slug-command.d.ts +31 -0
- package/lib/models/update-hospital-service-slug-command.d.ts.map +1 -0
- package/lib/models/update-hospital-service-slug-command.js +15 -0
- package/lib/models/update-hospital-slug-command.d.ts +31 -0
- package/lib/models/update-hospital-slug-command.d.ts.map +1 -0
- package/lib/models/update-hospital-slug-command.js +15 -0
- package/lib/models/update-hospital-specialty-command.d.ts +0 -6
- package/lib/models/update-hospital-specialty-command.d.ts.map +1 -1
- package/lib/models/update-hospital-specialty-slug-command.d.ts +31 -0
- package/lib/models/update-hospital-specialty-slug-command.d.ts.map +1 -0
- package/lib/models/update-hospital-specialty-slug-command.js +15 -0
- package/lib/models/update-landing-command.d.ts +0 -6
- package/lib/models/update-landing-command.d.ts.map +1 -1
- package/lib/models/update-landing-slug-command.d.ts +37 -0
- package/lib/models/update-landing-slug-command.d.ts.map +1 -0
- package/lib/models/update-landing-slug-command.js +15 -0
- package/lib/models/update-platform-interpretation-language-command.d.ts +31 -0
- package/lib/models/update-platform-interpretation-language-command.d.ts.map +1 -0
- package/lib/models/update-platform-interpretation-language-command.js +15 -0
- package/lib/models/update-policy-command.d.ts +0 -6
- package/lib/models/update-policy-command.d.ts.map +1 -1
- package/lib/models/update-policy-slug-command.d.ts +37 -0
- package/lib/models/update-policy-slug-command.d.ts.map +1 -0
- package/lib/models/update-policy-slug-command.js +15 -0
- package/lib/models/update-service-review-command.d.ts +0 -6
- package/lib/models/update-service-review-command.d.ts.map +1 -1
- package/lib/models/update-service-review-slug-command.d.ts +31 -0
- package/lib/models/update-service-review-slug-command.d.ts.map +1 -0
- package/lib/models/update-service-review-slug-command.js +15 -0
- package/lib/models/update-specialty-command.d.ts +0 -6
- package/lib/models/update-specialty-command.d.ts.map +1 -1
- package/lib/models/update-specialty-slug-command.d.ts +31 -0
- package/lib/models/update-specialty-slug-command.d.ts.map +1 -0
- package/lib/models/update-specialty-slug-command.js +15 -0
- package/lib/models/update-specialty-type-command.d.ts +0 -6
- package/lib/models/update-specialty-type-command.d.ts.map +1 -1
- package/lib/models/update-specialty-type-slug-command.d.ts +31 -0
- package/lib/models/update-specialty-type-slug-command.d.ts.map +1 -0
- package/lib/models/update-specialty-type-slug-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Admin Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: developer@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
exports.BadgeCategoriesApi = exports.BadgeCategoriesApiFactory = exports.BadgeCategoriesApiFp = exports.BadgeCategoriesApiAxiosParamCreator = void 0;
|
|
91
|
+
var axios_1 = __importDefault(require("axios"));
|
|
92
|
+
// Some imports not used depending on template conditions
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
var common_1 = require("../common");
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
var base_1 = require("../base");
|
|
97
|
+
/**
|
|
98
|
+
* BadgeCategoriesApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var BadgeCategoriesApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Delete badge category (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} badgeCategoryId
|
|
108
|
+
* @param {boolean} [isPermanent]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1BadgecategoriesBadgeCategoryIdDelete: function (badgeCategoryId_1, isPermanent_1) {
|
|
113
|
+
var args_1 = [];
|
|
114
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
115
|
+
args_1[_i - 2] = arguments[_i];
|
|
116
|
+
}
|
|
117
|
+
return __awaiter(_this, __spreadArray([badgeCategoryId_1, isPermanent_1], args_1, true), void 0, function (badgeCategoryId, isPermanent, options) {
|
|
118
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
+
if (options === void 0) { options = {}; }
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
// verify required parameter 'badgeCategoryId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV1BadgecategoriesBadgeCategoryIdDelete', 'badgeCategoryId', badgeCategoryId);
|
|
125
|
+
localVarPath = "/api/v1/badgecategories/{badgeCategoryId}"
|
|
126
|
+
.replace("{".concat("badgeCategoryId", "}"), encodeURIComponent(String(badgeCategoryId)));
|
|
127
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
localVarHeaderParameter = {};
|
|
133
|
+
localVarQueryParameter = {};
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
137
|
+
case 1:
|
|
138
|
+
// authentication oauth2 required
|
|
139
|
+
// oauth required
|
|
140
|
+
_a.sent();
|
|
141
|
+
if (isPermanent !== undefined) {
|
|
142
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
143
|
+
}
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Get badge category (Auth policies: RequireContentManagerRole)
|
|
158
|
+
* @param {string} badgeCategoryId
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
apiV1BadgecategoriesBadgeCategoryIdGet: function (badgeCategoryId_1) {
|
|
163
|
+
var args_1 = [];
|
|
164
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
165
|
+
args_1[_i - 1] = arguments[_i];
|
|
166
|
+
}
|
|
167
|
+
return __awaiter(_this, __spreadArray([badgeCategoryId_1], args_1, true), void 0, function (badgeCategoryId, options) {
|
|
168
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
169
|
+
if (options === void 0) { options = {}; }
|
|
170
|
+
return __generator(this, function (_a) {
|
|
171
|
+
switch (_a.label) {
|
|
172
|
+
case 0:
|
|
173
|
+
// verify required parameter 'badgeCategoryId' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('apiV1BadgecategoriesBadgeCategoryIdGet', 'badgeCategoryId', badgeCategoryId);
|
|
175
|
+
localVarPath = "/api/v1/badgecategories/{badgeCategoryId}"
|
|
176
|
+
.replace("{".concat("badgeCategoryId", "}"), encodeURIComponent(String(badgeCategoryId)));
|
|
177
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
}
|
|
181
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
182
|
+
localVarHeaderParameter = {};
|
|
183
|
+
localVarQueryParameter = {};
|
|
184
|
+
// authentication oauth2 required
|
|
185
|
+
// oauth required
|
|
186
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
187
|
+
case 1:
|
|
188
|
+
// authentication oauth2 required
|
|
189
|
+
// oauth required
|
|
190
|
+
_a.sent();
|
|
191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
194
|
+
return [2 /*return*/, {
|
|
195
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
}];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @summary Update badge category (Auth policies: RequireContentManagerRole)
|
|
205
|
+
* @param {string} badgeCategoryId
|
|
206
|
+
* @param {UpdateBadgeCategoryCommand} [updateBadgeCategoryCommand]
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
apiV1BadgecategoriesBadgeCategoryIdPut: function (badgeCategoryId_1, updateBadgeCategoryCommand_1) {
|
|
211
|
+
var args_1 = [];
|
|
212
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
213
|
+
args_1[_i - 2] = arguments[_i];
|
|
214
|
+
}
|
|
215
|
+
return __awaiter(_this, __spreadArray([badgeCategoryId_1, updateBadgeCategoryCommand_1], args_1, true), void 0, function (badgeCategoryId, updateBadgeCategoryCommand, options) {
|
|
216
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
|
+
if (options === void 0) { options = {}; }
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0:
|
|
221
|
+
// verify required parameter 'badgeCategoryId' is not null or undefined
|
|
222
|
+
(0, common_1.assertParamExists)('apiV1BadgecategoriesBadgeCategoryIdPut', 'badgeCategoryId', badgeCategoryId);
|
|
223
|
+
localVarPath = "/api/v1/badgecategories/{badgeCategoryId}"
|
|
224
|
+
.replace("{".concat("badgeCategoryId", "}"), encodeURIComponent(String(badgeCategoryId)));
|
|
225
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
226
|
+
if (configuration) {
|
|
227
|
+
baseOptions = configuration.baseOptions;
|
|
228
|
+
}
|
|
229
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
230
|
+
localVarHeaderParameter = {};
|
|
231
|
+
localVarQueryParameter = {};
|
|
232
|
+
// authentication oauth2 required
|
|
233
|
+
// oauth required
|
|
234
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
235
|
+
case 1:
|
|
236
|
+
// authentication oauth2 required
|
|
237
|
+
// oauth required
|
|
238
|
+
_a.sent();
|
|
239
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
240
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
243
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBadgeCategoryCommand, localVarRequestOptions, configuration);
|
|
244
|
+
return [2 /*return*/, {
|
|
245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
}];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @summary Reactivate badge category (Auth policies: RequireContentManagerRole)
|
|
255
|
+
* @param {string} badgeCategoryId
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
apiV1BadgecategoriesBadgeCategoryIdReactivatePut: function (badgeCategoryId_1) {
|
|
260
|
+
var args_1 = [];
|
|
261
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
262
|
+
args_1[_i - 1] = arguments[_i];
|
|
263
|
+
}
|
|
264
|
+
return __awaiter(_this, __spreadArray([badgeCategoryId_1], args_1, true), void 0, function (badgeCategoryId, options) {
|
|
265
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
266
|
+
if (options === void 0) { options = {}; }
|
|
267
|
+
return __generator(this, function (_a) {
|
|
268
|
+
switch (_a.label) {
|
|
269
|
+
case 0:
|
|
270
|
+
// verify required parameter 'badgeCategoryId' is not null or undefined
|
|
271
|
+
(0, common_1.assertParamExists)('apiV1BadgecategoriesBadgeCategoryIdReactivatePut', 'badgeCategoryId', badgeCategoryId);
|
|
272
|
+
localVarPath = "/api/v1/badgecategories/{badgeCategoryId}/reactivate"
|
|
273
|
+
.replace("{".concat("badgeCategoryId", "}"), encodeURIComponent(String(badgeCategoryId)));
|
|
274
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
275
|
+
if (configuration) {
|
|
276
|
+
baseOptions = configuration.baseOptions;
|
|
277
|
+
}
|
|
278
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
279
|
+
localVarHeaderParameter = {};
|
|
280
|
+
localVarQueryParameter = {};
|
|
281
|
+
// authentication oauth2 required
|
|
282
|
+
// oauth required
|
|
283
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
284
|
+
case 1:
|
|
285
|
+
// authentication oauth2 required
|
|
286
|
+
// oauth required
|
|
287
|
+
_a.sent();
|
|
288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
289
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
290
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
291
|
+
return [2 /*return*/, {
|
|
292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
293
|
+
options: localVarRequestOptions,
|
|
294
|
+
}];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @summary Get badge categories (Auth policies: RequireContentManagerRole)
|
|
302
|
+
* @param {boolean} [showHidden]
|
|
303
|
+
* @param {string} [id]
|
|
304
|
+
* @param {string} [name]
|
|
305
|
+
* @param {number} [page]
|
|
306
|
+
* @param {number} [limit]
|
|
307
|
+
* @param {Date} [lastRetrieved]
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
apiV1BadgecategoriesGet: function (showHidden_1, id_1, name_1, page_1, limit_1, lastRetrieved_1) {
|
|
312
|
+
var args_1 = [];
|
|
313
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
314
|
+
args_1[_i - 6] = arguments[_i];
|
|
315
|
+
}
|
|
316
|
+
return __awaiter(_this, __spreadArray([showHidden_1, id_1, name_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (showHidden, id, name, page, limit, lastRetrieved, options) {
|
|
317
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
|
+
if (options === void 0) { options = {}; }
|
|
319
|
+
return __generator(this, function (_a) {
|
|
320
|
+
switch (_a.label) {
|
|
321
|
+
case 0:
|
|
322
|
+
localVarPath = "/api/v1/badgecategories";
|
|
323
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
324
|
+
if (configuration) {
|
|
325
|
+
baseOptions = configuration.baseOptions;
|
|
326
|
+
}
|
|
327
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
328
|
+
localVarHeaderParameter = {};
|
|
329
|
+
localVarQueryParameter = {};
|
|
330
|
+
// authentication oauth2 required
|
|
331
|
+
// oauth required
|
|
332
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
333
|
+
case 1:
|
|
334
|
+
// authentication oauth2 required
|
|
335
|
+
// oauth required
|
|
336
|
+
_a.sent();
|
|
337
|
+
if (showHidden !== undefined) {
|
|
338
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
339
|
+
}
|
|
340
|
+
if (id !== undefined) {
|
|
341
|
+
localVarQueryParameter['id'] = id;
|
|
342
|
+
}
|
|
343
|
+
if (name !== undefined) {
|
|
344
|
+
localVarQueryParameter['name'] = name;
|
|
345
|
+
}
|
|
346
|
+
if (page !== undefined) {
|
|
347
|
+
localVarQueryParameter['page'] = page;
|
|
348
|
+
}
|
|
349
|
+
if (limit !== undefined) {
|
|
350
|
+
localVarQueryParameter['limit'] = limit;
|
|
351
|
+
}
|
|
352
|
+
if (lastRetrieved !== undefined) {
|
|
353
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
354
|
+
lastRetrieved.toISOString() :
|
|
355
|
+
lastRetrieved;
|
|
356
|
+
}
|
|
357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
+
return [2 /*return*/, {
|
|
361
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
362
|
+
options: localVarRequestOptions,
|
|
363
|
+
}];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @summary Create badge category (Auth policies: RequireContentManagerRole)
|
|
371
|
+
* @param {CreateBadgeCategoryCommand} [createBadgeCategoryCommand]
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
apiV1BadgecategoriesPost: function (createBadgeCategoryCommand_1) {
|
|
376
|
+
var args_1 = [];
|
|
377
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
378
|
+
args_1[_i - 1] = arguments[_i];
|
|
379
|
+
}
|
|
380
|
+
return __awaiter(_this, __spreadArray([createBadgeCategoryCommand_1], args_1, true), void 0, function (createBadgeCategoryCommand, options) {
|
|
381
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
382
|
+
if (options === void 0) { options = {}; }
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0:
|
|
386
|
+
localVarPath = "/api/v1/badgecategories";
|
|
387
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
388
|
+
if (configuration) {
|
|
389
|
+
baseOptions = configuration.baseOptions;
|
|
390
|
+
}
|
|
391
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
392
|
+
localVarHeaderParameter = {};
|
|
393
|
+
localVarQueryParameter = {};
|
|
394
|
+
// authentication oauth2 required
|
|
395
|
+
// oauth required
|
|
396
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
397
|
+
case 1:
|
|
398
|
+
// authentication oauth2 required
|
|
399
|
+
// oauth required
|
|
400
|
+
_a.sent();
|
|
401
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
402
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
405
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBadgeCategoryCommand, localVarRequestOptions, configuration);
|
|
406
|
+
return [2 /*return*/, {
|
|
407
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
408
|
+
options: localVarRequestOptions,
|
|
409
|
+
}];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
},
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
exports.BadgeCategoriesApiAxiosParamCreator = BadgeCategoriesApiAxiosParamCreator;
|
|
417
|
+
/**
|
|
418
|
+
* BadgeCategoriesApi - functional programming interface
|
|
419
|
+
* @export
|
|
420
|
+
*/
|
|
421
|
+
var BadgeCategoriesApiFp = function (configuration) {
|
|
422
|
+
var localVarAxiosParamCreator = (0, exports.BadgeCategoriesApiAxiosParamCreator)(configuration);
|
|
423
|
+
return {
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Delete badge category (Auth policies: RequireContentManagerRole)
|
|
427
|
+
* @param {string} badgeCategoryId
|
|
428
|
+
* @param {boolean} [isPermanent]
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
apiV1BadgecategoriesBadgeCategoryIdDelete: function (badgeCategoryId, isPermanent, options) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
434
|
+
var localVarAxiosArgs;
|
|
435
|
+
return __generator(this, function (_a) {
|
|
436
|
+
switch (_a.label) {
|
|
437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesBadgeCategoryIdDelete(badgeCategoryId, isPermanent, options)];
|
|
438
|
+
case 1:
|
|
439
|
+
localVarAxiosArgs = _a.sent();
|
|
440
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @summary Get badge category (Auth policies: RequireContentManagerRole)
|
|
448
|
+
* @param {string} badgeCategoryId
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
apiV1BadgecategoriesBadgeCategoryIdGet: function (badgeCategoryId, options) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
454
|
+
var localVarAxiosArgs;
|
|
455
|
+
return __generator(this, function (_a) {
|
|
456
|
+
switch (_a.label) {
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesBadgeCategoryIdGet(badgeCategoryId, options)];
|
|
458
|
+
case 1:
|
|
459
|
+
localVarAxiosArgs = _a.sent();
|
|
460
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary Update badge category (Auth policies: RequireContentManagerRole)
|
|
468
|
+
* @param {string} badgeCategoryId
|
|
469
|
+
* @param {UpdateBadgeCategoryCommand} [updateBadgeCategoryCommand]
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
*/
|
|
473
|
+
apiV1BadgecategoriesBadgeCategoryIdPut: function (badgeCategoryId, updateBadgeCategoryCommand, options) {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
475
|
+
var localVarAxiosArgs;
|
|
476
|
+
return __generator(this, function (_a) {
|
|
477
|
+
switch (_a.label) {
|
|
478
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesBadgeCategoryIdPut(badgeCategoryId, updateBadgeCategoryCommand, options)];
|
|
479
|
+
case 1:
|
|
480
|
+
localVarAxiosArgs = _a.sent();
|
|
481
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
});
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @summary Reactivate badge category (Auth policies: RequireContentManagerRole)
|
|
489
|
+
* @param {string} badgeCategoryId
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
apiV1BadgecategoriesBadgeCategoryIdReactivatePut: function (badgeCategoryId, options) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
495
|
+
var localVarAxiosArgs;
|
|
496
|
+
return __generator(this, function (_a) {
|
|
497
|
+
switch (_a.label) {
|
|
498
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesBadgeCategoryIdReactivatePut(badgeCategoryId, options)];
|
|
499
|
+
case 1:
|
|
500
|
+
localVarAxiosArgs = _a.sent();
|
|
501
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @summary Get badge categories (Auth policies: RequireContentManagerRole)
|
|
509
|
+
* @param {boolean} [showHidden]
|
|
510
|
+
* @param {string} [id]
|
|
511
|
+
* @param {string} [name]
|
|
512
|
+
* @param {number} [page]
|
|
513
|
+
* @param {number} [limit]
|
|
514
|
+
* @param {Date} [lastRetrieved]
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
apiV1BadgecategoriesGet: function (showHidden, id, name, page, limit, lastRetrieved, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
+
var localVarAxiosArgs;
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
switch (_a.label) {
|
|
523
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesGet(showHidden, id, name, page, limit, lastRetrieved, options)];
|
|
524
|
+
case 1:
|
|
525
|
+
localVarAxiosArgs = _a.sent();
|
|
526
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @summary Create badge category (Auth policies: RequireContentManagerRole)
|
|
534
|
+
* @param {CreateBadgeCategoryCommand} [createBadgeCategoryCommand]
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
apiV1BadgecategoriesPost: function (createBadgeCategoryCommand, options) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
540
|
+
var localVarAxiosArgs;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BadgecategoriesPost(createBadgeCategoryCommand, options)];
|
|
544
|
+
case 1:
|
|
545
|
+
localVarAxiosArgs = _a.sent();
|
|
546
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
exports.BadgeCategoriesApiFp = BadgeCategoriesApiFp;
|
|
554
|
+
/**
|
|
555
|
+
* BadgeCategoriesApi - factory interface
|
|
556
|
+
* @export
|
|
557
|
+
*/
|
|
558
|
+
var BadgeCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
559
|
+
var localVarFp = (0, exports.BadgeCategoriesApiFp)(configuration);
|
|
560
|
+
return {
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @summary Delete badge category (Auth policies: RequireContentManagerRole)
|
|
564
|
+
* @param {string} badgeCategoryId
|
|
565
|
+
* @param {boolean} [isPermanent]
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
apiV1BadgecategoriesBadgeCategoryIdDelete: function (badgeCategoryId, isPermanent, options) {
|
|
570
|
+
return localVarFp.apiV1BadgecategoriesBadgeCategoryIdDelete(badgeCategoryId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @summary Get badge category (Auth policies: RequireContentManagerRole)
|
|
575
|
+
* @param {string} badgeCategoryId
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
apiV1BadgecategoriesBadgeCategoryIdGet: function (badgeCategoryId, options) {
|
|
580
|
+
return localVarFp.apiV1BadgecategoriesBadgeCategoryIdGet(badgeCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Update badge category (Auth policies: RequireContentManagerRole)
|
|
585
|
+
* @param {string} badgeCategoryId
|
|
586
|
+
* @param {UpdateBadgeCategoryCommand} [updateBadgeCategoryCommand]
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
apiV1BadgecategoriesBadgeCategoryIdPut: function (badgeCategoryId, updateBadgeCategoryCommand, options) {
|
|
591
|
+
return localVarFp.apiV1BadgecategoriesBadgeCategoryIdPut(badgeCategoryId, updateBadgeCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
592
|
+
},
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @summary Reactivate badge category (Auth policies: RequireContentManagerRole)
|
|
596
|
+
* @param {string} badgeCategoryId
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
*/
|
|
600
|
+
apiV1BadgecategoriesBadgeCategoryIdReactivatePut: function (badgeCategoryId, options) {
|
|
601
|
+
return localVarFp.apiV1BadgecategoriesBadgeCategoryIdReactivatePut(badgeCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @summary Get badge categories (Auth policies: RequireContentManagerRole)
|
|
606
|
+
* @param {boolean} [showHidden]
|
|
607
|
+
* @param {string} [id]
|
|
608
|
+
* @param {string} [name]
|
|
609
|
+
* @param {number} [page]
|
|
610
|
+
* @param {number} [limit]
|
|
611
|
+
* @param {Date} [lastRetrieved]
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
apiV1BadgecategoriesGet: function (showHidden, id, name, page, limit, lastRetrieved, options) {
|
|
616
|
+
return localVarFp.apiV1BadgecategoriesGet(showHidden, id, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @summary Create badge category (Auth policies: RequireContentManagerRole)
|
|
621
|
+
* @param {CreateBadgeCategoryCommand} [createBadgeCategoryCommand]
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
apiV1BadgecategoriesPost: function (createBadgeCategoryCommand, options) {
|
|
626
|
+
return localVarFp.apiV1BadgecategoriesPost(createBadgeCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
627
|
+
},
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
exports.BadgeCategoriesApiFactory = BadgeCategoriesApiFactory;
|
|
631
|
+
/**
|
|
632
|
+
* BadgeCategoriesApi - object-oriented interface
|
|
633
|
+
* @export
|
|
634
|
+
* @class BadgeCategoriesApi
|
|
635
|
+
* @extends {BaseAPI}
|
|
636
|
+
*/
|
|
637
|
+
var BadgeCategoriesApi = /** @class */ (function (_super) {
|
|
638
|
+
__extends(BadgeCategoriesApi, _super);
|
|
639
|
+
function BadgeCategoriesApi() {
|
|
640
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @summary Delete badge category (Auth policies: RequireContentManagerRole)
|
|
645
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesBadgeCategoryIdDeleteRequest} requestParameters Request parameters.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof BadgeCategoriesApi
|
|
649
|
+
*/
|
|
650
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesBadgeCategoryIdDelete = function (requestParameters, options) {
|
|
651
|
+
var _this = this;
|
|
652
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesBadgeCategoryIdDelete(requestParameters.badgeCategoryId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @summary Get badge category (Auth policies: RequireContentManagerRole)
|
|
657
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesBadgeCategoryIdGetRequest} requestParameters Request parameters.
|
|
658
|
+
* @param {*} [options] Override http request option.
|
|
659
|
+
* @throws {RequiredError}
|
|
660
|
+
* @memberof BadgeCategoriesApi
|
|
661
|
+
*/
|
|
662
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesBadgeCategoryIdGet = function (requestParameters, options) {
|
|
663
|
+
var _this = this;
|
|
664
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesBadgeCategoryIdGet(requestParameters.badgeCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
*
|
|
668
|
+
* @summary Update badge category (Auth policies: RequireContentManagerRole)
|
|
669
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesBadgeCategoryIdPutRequest} requestParameters Request parameters.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
* @memberof BadgeCategoriesApi
|
|
673
|
+
*/
|
|
674
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesBadgeCategoryIdPut = function (requestParameters, options) {
|
|
675
|
+
var _this = this;
|
|
676
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesBadgeCategoryIdPut(requestParameters.badgeCategoryId, requestParameters.updateBadgeCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @summary Reactivate badge category (Auth policies: RequireContentManagerRole)
|
|
681
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesBadgeCategoryIdReactivatePutRequest} requestParameters Request parameters.
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
* @memberof BadgeCategoriesApi
|
|
685
|
+
*/
|
|
686
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesBadgeCategoryIdReactivatePut = function (requestParameters, options) {
|
|
687
|
+
var _this = this;
|
|
688
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesBadgeCategoryIdReactivatePut(requestParameters.badgeCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @summary Get badge categories (Auth policies: RequireContentManagerRole)
|
|
693
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesGetRequest} requestParameters Request parameters.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof BadgeCategoriesApi
|
|
697
|
+
*/
|
|
698
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesGet = function (requestParameters, options) {
|
|
699
|
+
var _this = this;
|
|
700
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
701
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesGet(requestParameters.showHidden, requestParameters.id, requestParameters.name, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary Create badge category (Auth policies: RequireContentManagerRole)
|
|
706
|
+
* @param {BadgeCategoriesApiApiV1BadgecategoriesPostRequest} requestParameters Request parameters.
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
* @memberof BadgeCategoriesApi
|
|
710
|
+
*/
|
|
711
|
+
BadgeCategoriesApi.prototype.apiV1BadgecategoriesPost = function (requestParameters, options) {
|
|
712
|
+
var _this = this;
|
|
713
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
714
|
+
return (0, exports.BadgeCategoriesApiFp)(this.configuration).apiV1BadgecategoriesPost(requestParameters.createBadgeCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
715
|
+
};
|
|
716
|
+
return BadgeCategoriesApi;
|
|
717
|
+
}(base_1.BaseAPI));
|
|
718
|
+
exports.BadgeCategoriesApi = BadgeCategoriesApi;
|