ch-admin-api-client-typescript 5.91.14 → 5.91.28

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.
Files changed (165) hide show
  1. package/lib/api/accreditations-api.d.ts +10 -9
  2. package/lib/api/accreditations-api.d.ts.map +1 -1
  3. package/lib/api/accreditations-api.js +13 -13
  4. package/lib/api/hospitals-api.d.ts +65 -0
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +100 -0
  7. package/lib/api/patient-review-consent-documents-api.d.ts +440 -0
  8. package/lib/api/patient-review-consent-documents-api.d.ts.map +1 -0
  9. package/lib/api/patient-review-consent-documents-api.js +812 -0
  10. package/lib/api/patient-review-form-settings-api.d.ts +460 -0
  11. package/lib/api/patient-review-form-settings-api.d.ts.map +1 -0
  12. package/lib/api/patient-review-form-settings-api.js +824 -0
  13. package/lib/api/patient-reviews-api.d.ts +753 -0
  14. package/lib/api/patient-reviews-api.d.ts.map +1 -0
  15. package/lib/api/patient-reviews-api.js +1310 -0
  16. package/lib/api.d.ts +3 -0
  17. package/lib/api.d.ts.map +1 -1
  18. package/lib/api.js +3 -0
  19. package/lib/models/accreditation-item-model.d.ts +7 -0
  20. package/lib/models/accreditation-item-model.d.ts.map +1 -1
  21. package/lib/models/accreditation-model.d.ts +7 -0
  22. package/lib/models/accreditation-model.d.ts.map +1 -1
  23. package/lib/models/accreditation-type.d.ts +22 -0
  24. package/lib/models/accreditation-type.d.ts.map +1 -0
  25. package/lib/models/accreditation-type.js +25 -0
  26. package/lib/models/accreditation-verification-file-model.d.ts +49 -0
  27. package/lib/models/accreditation-verification-file-model.d.ts.map +1 -0
  28. package/lib/models/accreditation-verification-file-model.js +15 -0
  29. package/lib/models/create-accreditation-command.d.ts +7 -0
  30. package/lib/models/create-accreditation-command.d.ts.map +1 -1
  31. package/lib/models/create-hospital-accreditation-command.d.ts +32 -0
  32. package/lib/models/create-hospital-accreditation-command.d.ts.map +1 -1
  33. package/lib/models/create-patient-review-consent-document-command.d.ts +79 -0
  34. package/lib/models/create-patient-review-consent-document-command.d.ts.map +1 -0
  35. package/lib/models/create-patient-review-consent-document-command.js +15 -0
  36. package/lib/models/create-patient-review-form-setting-command.d.ts +81 -0
  37. package/lib/models/create-patient-review-form-setting-command.d.ts.map +1 -0
  38. package/lib/models/create-patient-review-form-setting-command.js +15 -0
  39. package/lib/models/form-result-item-model.d.ts +7 -0
  40. package/lib/models/form-result-item-model.d.ts.map +1 -1
  41. package/lib/models/form-result-model.d.ts +7 -0
  42. package/lib/models/form-result-model.d.ts.map +1 -1
  43. package/lib/models/hospital-accreditation-item-model.d.ts +32 -0
  44. package/lib/models/hospital-accreditation-item-model.d.ts.map +1 -1
  45. package/lib/models/hospital-accreditation-model.d.ts +32 -0
  46. package/lib/models/hospital-accreditation-model.d.ts.map +1 -1
  47. package/lib/models/hospital-item-model.d.ts +7 -0
  48. package/lib/models/hospital-item-model.d.ts.map +1 -1
  49. package/lib/models/hospital-model.d.ts +6 -6
  50. package/lib/models/hospital-model.d.ts.map +1 -1
  51. package/lib/models/index.d.ts +39 -0
  52. package/lib/models/index.d.ts.map +1 -1
  53. package/lib/models/index.js +39 -0
  54. package/lib/models/patch-patient-review-input-model.d.ts +50 -0
  55. package/lib/models/patch-patient-review-input-model.d.ts.map +1 -0
  56. package/lib/models/patch-patient-review-input-model.js +15 -0
  57. package/lib/models/patient-review-activity-action.d.ts +29 -0
  58. package/lib/models/patient-review-activity-action.d.ts.map +1 -0
  59. package/lib/models/patient-review-activity-action.js +32 -0
  60. package/lib/models/patient-review-activity-log-model.d.ts +69 -0
  61. package/lib/models/patient-review-activity-log-model.d.ts.map +1 -0
  62. package/lib/models/patient-review-activity-log-model.js +15 -0
  63. package/lib/models/patient-review-before-and-after-photo-model.d.ts +61 -0
  64. package/lib/models/patient-review-before-and-after-photo-model.d.ts.map +1 -0
  65. package/lib/models/patient-review-before-and-after-photo-model.js +15 -0
  66. package/lib/models/patient-review-before-and-after-public-photo-model.d.ts +73 -0
  67. package/lib/models/patient-review-before-and-after-public-photo-model.d.ts.map +1 -0
  68. package/lib/models/patient-review-before-and-after-public-photo-model.js +15 -0
  69. package/lib/models/patient-review-consent-document-item-model.d.ts +74 -0
  70. package/lib/models/patient-review-consent-document-item-model.d.ts.map +1 -0
  71. package/lib/models/patient-review-consent-document-item-model.js +15 -0
  72. package/lib/models/patient-review-consent-document-model.d.ts +92 -0
  73. package/lib/models/patient-review-consent-document-model.d.ts.map +1 -0
  74. package/lib/models/patient-review-consent-document-model.js +15 -0
  75. package/lib/models/patient-review-consent-documents-model.d.ts +33 -0
  76. package/lib/models/patient-review-consent-documents-model.d.ts.map +1 -0
  77. package/lib/models/patient-review-consent-documents-model.js +15 -0
  78. package/lib/models/patient-review-content-verification-input-model.d.ts +31 -0
  79. package/lib/models/patient-review-content-verification-input-model.d.ts.map +1 -0
  80. package/lib/models/patient-review-content-verification-input-model.js +15 -0
  81. package/lib/models/patient-review-detail-model.d.ts +44 -0
  82. package/lib/models/patient-review-detail-model.d.ts.map +1 -0
  83. package/lib/models/patient-review-detail-model.js +15 -0
  84. package/lib/models/patient-review-form-setting-detail-input-model.d.ts +67 -0
  85. package/lib/models/patient-review-form-setting-detail-input-model.d.ts.map +1 -0
  86. package/lib/models/patient-review-form-setting-detail-input-model.js +15 -0
  87. package/lib/models/patient-review-form-setting-detail-model.d.ts +79 -0
  88. package/lib/models/patient-review-form-setting-detail-model.d.ts.map +1 -0
  89. package/lib/models/patient-review-form-setting-detail-model.js +15 -0
  90. package/lib/models/patient-review-form-setting-item-model.d.ts +87 -0
  91. package/lib/models/patient-review-form-setting-item-model.d.ts.map +1 -0
  92. package/lib/models/patient-review-form-setting-item-model.js +15 -0
  93. package/lib/models/patient-review-form-setting-model.d.ts +94 -0
  94. package/lib/models/patient-review-form-setting-model.d.ts.map +1 -0
  95. package/lib/models/patient-review-form-setting-model.js +15 -0
  96. package/lib/models/patient-review-form-settings-model.d.ts +33 -0
  97. package/lib/models/patient-review-form-settings-model.d.ts.map +1 -0
  98. package/lib/models/patient-review-form-settings-model.js +15 -0
  99. package/lib/models/patient-review-general-photo-model.d.ts +49 -0
  100. package/lib/models/patient-review-general-photo-model.d.ts.map +1 -0
  101. package/lib/models/patient-review-general-photo-model.js +15 -0
  102. package/lib/models/patient-review-general-public-photo-model.d.ts +61 -0
  103. package/lib/models/patient-review-general-public-photo-model.d.ts.map +1 -0
  104. package/lib/models/patient-review-general-public-photo-model.js +15 -0
  105. package/lib/models/patient-review-item-model.d.ts +166 -0
  106. package/lib/models/patient-review-item-model.d.ts.map +1 -0
  107. package/lib/models/patient-review-item-model.js +15 -0
  108. package/lib/models/patient-review-model.d.ts +318 -0
  109. package/lib/models/patient-review-model.d.ts.map +1 -0
  110. package/lib/models/patient-review-model.js +15 -0
  111. package/lib/models/patient-review-platform.d.ts +23 -0
  112. package/lib/models/patient-review-platform.d.ts.map +1 -0
  113. package/lib/models/patient-review-platform.js +26 -0
  114. package/lib/models/patient-review-public-before-after-image-input-model.d.ts +61 -0
  115. package/lib/models/patient-review-public-before-after-image-input-model.d.ts.map +1 -0
  116. package/lib/models/patient-review-public-before-after-image-input-model.js +15 -0
  117. package/lib/models/patient-review-public-general-image-input-model.d.ts +49 -0
  118. package/lib/models/patient-review-public-general-image-input-model.d.ts.map +1 -0
  119. package/lib/models/patient-review-public-general-image-input-model.js +15 -0
  120. package/lib/models/patient-review-public-photo-patch-input-model.d.ts +33 -0
  121. package/lib/models/patient-review-public-photo-patch-input-model.d.ts.map +1 -0
  122. package/lib/models/patient-review-public-photo-patch-input-model.js +15 -0
  123. package/lib/models/patient-review-status.d.ts +23 -0
  124. package/lib/models/patient-review-status.d.ts.map +1 -0
  125. package/lib/models/patient-review-status.js +26 -0
  126. package/lib/models/patient-review-translation-model.d.ts +55 -0
  127. package/lib/models/patient-review-translation-model.d.ts.map +1 -0
  128. package/lib/models/patient-review-translation-model.js +15 -0
  129. package/lib/models/patient-review-verification-document-model.d.ts +37 -0
  130. package/lib/models/patient-review-verification-document-model.d.ts.map +1 -0
  131. package/lib/models/patient-review-verification-document-model.js +15 -0
  132. package/lib/models/patient-reviews-model.d.ts +33 -0
  133. package/lib/models/patient-reviews-model.d.ts.map +1 -0
  134. package/lib/models/patient-reviews-model.js +15 -0
  135. package/lib/models/survey-result-item-model.d.ts +13 -0
  136. package/lib/models/survey-result-item-model.d.ts.map +1 -1
  137. package/lib/models/survey-result-model.d.ts +13 -0
  138. package/lib/models/survey-result-model.d.ts.map +1 -1
  139. package/lib/models/translate-patient-review-consent-document-command.d.ts +55 -0
  140. package/lib/models/translate-patient-review-consent-document-command.d.ts.map +1 -0
  141. package/lib/models/translate-patient-review-consent-document-command.js +15 -0
  142. package/lib/models/translate-patient-review-form-setting-command.d.ts +44 -0
  143. package/lib/models/translate-patient-review-form-setting-command.d.ts.map +1 -0
  144. package/lib/models/translate-patient-review-form-setting-command.js +15 -0
  145. package/lib/models/translation-model.d.ts +103 -0
  146. package/lib/models/translation-model.d.ts.map +1 -0
  147. package/lib/models/translation-model.js +15 -0
  148. package/lib/models/update-accreditation-command.d.ts +7 -0
  149. package/lib/models/update-accreditation-command.d.ts.map +1 -1
  150. package/lib/models/update-hospital-accreditation-command.d.ts +51 -0
  151. package/lib/models/update-hospital-accreditation-command.d.ts.map +1 -0
  152. package/lib/models/update-hospital-accreditation-command.js +15 -0
  153. package/lib/models/update-patient-review-consent-document-command.d.ts +79 -0
  154. package/lib/models/update-patient-review-consent-document-command.d.ts.map +1 -0
  155. package/lib/models/update-patient-review-consent-document-command.js +15 -0
  156. package/lib/models/update-patient-review-form-setting-command.d.ts +81 -0
  157. package/lib/models/update-patient-review-form-setting-command.d.ts.map +1 -0
  158. package/lib/models/update-patient-review-form-setting-command.js +15 -0
  159. package/lib/models/update-patient-review-status-command.d.ts +38 -0
  160. package/lib/models/update-patient-review-status-command.d.ts.map +1 -0
  161. package/lib/models/update-patient-review-status-command.js +15 -0
  162. package/lib/models/verify-patient-review-content-command.d.ts +38 -0
  163. package/lib/models/verify-patient-review-content-command.d.ts.map +1 -0
  164. package/lib/models/verify-patient-review-content-command.js +15 -0
  165. package/package.json +1 -1
@@ -0,0 +1,1310 @@
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.PatientReviewsApi = exports.PatientReviewsApiFactory = exports.PatientReviewsApiFp = exports.PatientReviewsApiAxiosParamCreator = 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
+ * PatientReviewsApi - axios parameter creator
99
+ * @export
100
+ */
101
+ var PatientReviewsApiAxiosParamCreator = function (configuration) {
102
+ var _this = this;
103
+ return {
104
+ /**
105
+ *
106
+ * @summary Retrieves a paged list of patient reviews. (Auth policies: RequireContentManagerRole)
107
+ * @param {string} [hospitalId]
108
+ * @param {string} [doctorAffiliationId]
109
+ * @param {string} [dealId]
110
+ * @param {PatientReviewStatus} [status]
111
+ * @param {string} [languageCode]
112
+ * @param {string} [sortBy]
113
+ * @param {string} [sortDirection]
114
+ * @param {boolean} [showHidden]
115
+ * @param {number} [page]
116
+ * @param {number} [limit]
117
+ * @param {Date} [lastRetrieved]
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ apiV1PatientreviewsGet: function (hospitalId_1, doctorAffiliationId_1, dealId_1, status_1, languageCode_1, sortBy_1, sortDirection_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
122
+ var args_1 = [];
123
+ for (var _i = 11; _i < arguments.length; _i++) {
124
+ args_1[_i - 11] = arguments[_i];
125
+ }
126
+ return __awaiter(_this, __spreadArray([hospitalId_1, doctorAffiliationId_1, dealId_1, status_1, languageCode_1, sortBy_1, sortDirection_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (hospitalId, doctorAffiliationId, dealId, status, languageCode, sortBy, sortDirection, showHidden, page, limit, lastRetrieved, options) {
127
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
128
+ if (options === void 0) { options = {}; }
129
+ return __generator(this, function (_a) {
130
+ switch (_a.label) {
131
+ case 0:
132
+ localVarPath = "/api/v1/patientreviews";
133
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
134
+ if (configuration) {
135
+ baseOptions = configuration.baseOptions;
136
+ }
137
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
138
+ localVarHeaderParameter = {};
139
+ localVarQueryParameter = {};
140
+ // authentication oauth2 required
141
+ // oauth required
142
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
143
+ case 1:
144
+ // authentication oauth2 required
145
+ // oauth required
146
+ _a.sent();
147
+ if (hospitalId !== undefined) {
148
+ localVarQueryParameter['hospitalId'] = hospitalId;
149
+ }
150
+ if (doctorAffiliationId !== undefined) {
151
+ localVarQueryParameter['doctorAffiliationId'] = doctorAffiliationId;
152
+ }
153
+ if (dealId !== undefined) {
154
+ localVarQueryParameter['dealId'] = dealId;
155
+ }
156
+ if (status !== undefined) {
157
+ localVarQueryParameter['status'] = status;
158
+ }
159
+ if (languageCode !== undefined) {
160
+ localVarQueryParameter['languageCode'] = languageCode;
161
+ }
162
+ if (sortBy !== undefined) {
163
+ localVarQueryParameter['sortBy'] = sortBy;
164
+ }
165
+ if (sortDirection !== undefined) {
166
+ localVarQueryParameter['sortDirection'] = sortDirection;
167
+ }
168
+ if (showHidden !== undefined) {
169
+ localVarQueryParameter['showHidden'] = showHidden;
170
+ }
171
+ if (page !== undefined) {
172
+ localVarQueryParameter['page'] = page;
173
+ }
174
+ if (limit !== undefined) {
175
+ localVarQueryParameter['limit'] = limit;
176
+ }
177
+ if (lastRetrieved !== undefined) {
178
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
179
+ lastRetrieved.toISOString() :
180
+ lastRetrieved;
181
+ }
182
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
183
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
+ return [2 /*return*/, {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ }];
189
+ }
190
+ });
191
+ });
192
+ },
193
+ /**
194
+ *
195
+ * @summary Retrieves activity logs for the specified patient review in descending order. (Auth policies: RequireContentManagerRole)
196
+ * @param {string} patientReviewId The patient review identifier.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ apiV1PatientreviewsPatientReviewIdActivitylogsGet: function (patientReviewId_1) {
201
+ var args_1 = [];
202
+ for (var _i = 1; _i < arguments.length; _i++) {
203
+ args_1[_i - 1] = arguments[_i];
204
+ }
205
+ return __awaiter(_this, __spreadArray([patientReviewId_1], args_1, true), void 0, function (patientReviewId, options) {
206
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
+ if (options === void 0) { options = {}; }
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'patientReviewId' is not null or undefined
212
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdActivitylogsGet', 'patientReviewId', patientReviewId);
213
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/activitylogs"
214
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
215
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication oauth2 required
223
+ // oauth required
224
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
225
+ case 1:
226
+ // authentication oauth2 required
227
+ // oauth required
228
+ _a.sent();
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
240
+ /**
241
+ *
242
+ * @summary Copies a private before-and-after photo set to a new public before-and-after photo record. (Auth policies: RequireContentManagerRole)
243
+ * @param {string} patientReviewId The patient review identifier.
244
+ * @param {string} patientReviewBeforeAndAfterPhotoId The source private before-and-after photo identifier.
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost: function (patientReviewId_1, patientReviewBeforeAndAfterPhotoId_1) {
249
+ var args_1 = [];
250
+ for (var _i = 2; _i < arguments.length; _i++) {
251
+ args_1[_i - 2] = arguments[_i];
252
+ }
253
+ return __awaiter(_this, __spreadArray([patientReviewId_1, patientReviewBeforeAndAfterPhotoId_1], args_1, true), void 0, function (patientReviewId, patientReviewBeforeAndAfterPhotoId, options) {
254
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
+ if (options === void 0) { options = {}; }
256
+ return __generator(this, function (_a) {
257
+ switch (_a.label) {
258
+ case 0:
259
+ // verify required parameter 'patientReviewId' is not null or undefined
260
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost', 'patientReviewId', patientReviewId);
261
+ // verify required parameter 'patientReviewBeforeAndAfterPhotoId' is not null or undefined
262
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost', 'patientReviewBeforeAndAfterPhotoId', patientReviewBeforeAndAfterPhotoId);
263
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/beforeandafterphotos/{patientReviewBeforeAndAfterPhotoId}/copytopublic"
264
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)))
265
+ .replace("{".concat("patientReviewBeforeAndAfterPhotoId", "}"), encodeURIComponent(String(patientReviewBeforeAndAfterPhotoId)));
266
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ }
270
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
271
+ localVarHeaderParameter = {};
272
+ localVarQueryParameter = {};
273
+ // authentication oauth2 required
274
+ // oauth required
275
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
276
+ case 1:
277
+ // authentication oauth2 required
278
+ // oauth required
279
+ _a.sent();
280
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
281
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
+ return [2 /*return*/, {
284
+ url: (0, common_1.toPathString)(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ }];
287
+ }
288
+ });
289
+ });
290
+ },
291
+ /**
292
+ *
293
+ * @summary Marks content verification (translations/language selection) as completed. (Auth policies: RequireContentManagerRole)
294
+ * @param {string} patientReviewId The patient review identifier.
295
+ * @param {VerifyPatientReviewContentCommand} [verifyPatientReviewContentCommand] Content verification command payload.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ apiV1PatientreviewsPatientReviewIdContentverificationPut: function (patientReviewId_1, verifyPatientReviewContentCommand_1) {
300
+ var args_1 = [];
301
+ for (var _i = 2; _i < arguments.length; _i++) {
302
+ args_1[_i - 2] = arguments[_i];
303
+ }
304
+ return __awaiter(_this, __spreadArray([patientReviewId_1, verifyPatientReviewContentCommand_1], args_1, true), void 0, function (patientReviewId, verifyPatientReviewContentCommand, options) {
305
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
306
+ if (options === void 0) { options = {}; }
307
+ return __generator(this, function (_a) {
308
+ switch (_a.label) {
309
+ case 0:
310
+ // verify required parameter 'patientReviewId' is not null or undefined
311
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdContentverificationPut', 'patientReviewId', patientReviewId);
312
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/contentverification"
313
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
314
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
315
+ if (configuration) {
316
+ baseOptions = configuration.baseOptions;
317
+ }
318
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
319
+ localVarHeaderParameter = {};
320
+ localVarQueryParameter = {};
321
+ // authentication oauth2 required
322
+ // oauth required
323
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
324
+ case 1:
325
+ // authentication oauth2 required
326
+ // oauth required
327
+ _a.sent();
328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
329
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
330
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
332
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyPatientReviewContentCommand, localVarRequestOptions, configuration);
333
+ return [2 /*return*/, {
334
+ url: (0, common_1.toPathString)(localVarUrlObj),
335
+ options: localVarRequestOptions,
336
+ }];
337
+ }
338
+ });
339
+ });
340
+ },
341
+ /**
342
+ *
343
+ * @summary Deletes the patient review. (Auth policies: RequireContentManagerRole)
344
+ * @param {string} patientReviewId The patient review identifier.
345
+ * @param {boolean} [isPermanent] Whether to perform a permanent delete.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ apiV1PatientreviewsPatientReviewIdDelete: function (patientReviewId_1, isPermanent_1) {
350
+ var args_1 = [];
351
+ for (var _i = 2; _i < arguments.length; _i++) {
352
+ args_1[_i - 2] = arguments[_i];
353
+ }
354
+ return __awaiter(_this, __spreadArray([patientReviewId_1, isPermanent_1], args_1, true), void 0, function (patientReviewId, isPermanent, options) {
355
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
356
+ if (options === void 0) { options = {}; }
357
+ return __generator(this, function (_a) {
358
+ switch (_a.label) {
359
+ case 0:
360
+ // verify required parameter 'patientReviewId' is not null or undefined
361
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdDelete', 'patientReviewId', patientReviewId);
362
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}"
363
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
364
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
365
+ if (configuration) {
366
+ baseOptions = configuration.baseOptions;
367
+ }
368
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
369
+ localVarHeaderParameter = {};
370
+ localVarQueryParameter = {};
371
+ // authentication oauth2 required
372
+ // oauth required
373
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
374
+ case 1:
375
+ // authentication oauth2 required
376
+ // oauth required
377
+ _a.sent();
378
+ if (isPermanent !== undefined) {
379
+ localVarQueryParameter['isPermanent'] = isPermanent;
380
+ }
381
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
383
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
384
+ return [2 /*return*/, {
385
+ url: (0, common_1.toPathString)(localVarUrlObj),
386
+ options: localVarRequestOptions,
387
+ }];
388
+ }
389
+ });
390
+ });
391
+ },
392
+ /**
393
+ *
394
+ * @summary Marks document verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
395
+ * @param {string} patientReviewId The patient review identifier.
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ apiV1PatientreviewsPatientReviewIdDocumentverificationPut: function (patientReviewId_1) {
400
+ var args_1 = [];
401
+ for (var _i = 1; _i < arguments.length; _i++) {
402
+ args_1[_i - 1] = arguments[_i];
403
+ }
404
+ return __awaiter(_this, __spreadArray([patientReviewId_1], args_1, true), void 0, function (patientReviewId, options) {
405
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
406
+ if (options === void 0) { options = {}; }
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0:
410
+ // verify required parameter 'patientReviewId' is not null or undefined
411
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdDocumentverificationPut', 'patientReviewId', patientReviewId);
412
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/documentverification"
413
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
414
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ }
418
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
419
+ localVarHeaderParameter = {};
420
+ localVarQueryParameter = {};
421
+ // authentication oauth2 required
422
+ // oauth required
423
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
424
+ case 1:
425
+ // authentication oauth2 required
426
+ // oauth required
427
+ _a.sent();
428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ return [2 /*return*/, {
432
+ url: (0, common_1.toPathString)(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ }];
435
+ }
436
+ });
437
+ });
438
+ },
439
+ /**
440
+ *
441
+ * @summary Copies a private general photo to a new public general photo record. (Auth policies: RequireContentManagerRole)
442
+ * @param {string} patientReviewId The patient review identifier.
443
+ * @param {string} patientReviewGeneralPhotoId The source private general photo identifier.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost: function (patientReviewId_1, patientReviewGeneralPhotoId_1) {
448
+ var args_1 = [];
449
+ for (var _i = 2; _i < arguments.length; _i++) {
450
+ args_1[_i - 2] = arguments[_i];
451
+ }
452
+ return __awaiter(_this, __spreadArray([patientReviewId_1, patientReviewGeneralPhotoId_1], args_1, true), void 0, function (patientReviewId, patientReviewGeneralPhotoId, options) {
453
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
454
+ if (options === void 0) { options = {}; }
455
+ return __generator(this, function (_a) {
456
+ switch (_a.label) {
457
+ case 0:
458
+ // verify required parameter 'patientReviewId' is not null or undefined
459
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost', 'patientReviewId', patientReviewId);
460
+ // verify required parameter 'patientReviewGeneralPhotoId' is not null or undefined
461
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost', 'patientReviewGeneralPhotoId', patientReviewGeneralPhotoId);
462
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/generalphotos/{patientReviewGeneralPhotoId}/copytopublic"
463
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)))
464
+ .replace("{".concat("patientReviewGeneralPhotoId", "}"), encodeURIComponent(String(patientReviewGeneralPhotoId)));
465
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
466
+ if (configuration) {
467
+ baseOptions = configuration.baseOptions;
468
+ }
469
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
470
+ localVarHeaderParameter = {};
471
+ localVarQueryParameter = {};
472
+ // authentication oauth2 required
473
+ // oauth required
474
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
475
+ case 1:
476
+ // authentication oauth2 required
477
+ // oauth required
478
+ _a.sent();
479
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
480
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
482
+ return [2 /*return*/, {
483
+ url: (0, common_1.toPathString)(localVarUrlObj),
484
+ options: localVarRequestOptions,
485
+ }];
486
+ }
487
+ });
488
+ });
489
+ },
490
+ /**
491
+ *
492
+ * @summary Retrieves the details of a single patient review. (Auth policies: RequireContentManagerRole)
493
+ * @param {string} patientReviewId The patient review identifier.
494
+ * @param {string} [languageCode] Preferred language code for localized fields.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ apiV1PatientreviewsPatientReviewIdGet: function (patientReviewId_1, languageCode_1) {
499
+ var args_1 = [];
500
+ for (var _i = 2; _i < arguments.length; _i++) {
501
+ args_1[_i - 2] = arguments[_i];
502
+ }
503
+ return __awaiter(_this, __spreadArray([patientReviewId_1, languageCode_1], args_1, true), void 0, function (patientReviewId, languageCode, options) {
504
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
505
+ if (options === void 0) { options = {}; }
506
+ return __generator(this, function (_a) {
507
+ switch (_a.label) {
508
+ case 0:
509
+ // verify required parameter 'patientReviewId' is not null or undefined
510
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdGet', 'patientReviewId', patientReviewId);
511
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}"
512
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
513
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
514
+ if (configuration) {
515
+ baseOptions = configuration.baseOptions;
516
+ }
517
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
518
+ localVarHeaderParameter = {};
519
+ localVarQueryParameter = {};
520
+ // authentication oauth2 required
521
+ // oauth required
522
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
523
+ case 1:
524
+ // authentication oauth2 required
525
+ // oauth required
526
+ _a.sent();
527
+ if (languageCode !== undefined) {
528
+ localVarQueryParameter['languageCode'] = languageCode;
529
+ }
530
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
531
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
532
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
533
+ return [2 /*return*/, {
534
+ url: (0, common_1.toPathString)(localVarUrlObj),
535
+ options: localVarRequestOptions,
536
+ }];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ *
543
+ * @summary Partially updates public photos and translation content for the patient review. (Auth policies: RequireContentManagerRole)
544
+ * @param {string} patientReviewId The patient review identifier.
545
+ * @param {PatchPatientReviewInputModel} [patchPatientReviewInputModel] Patch payload for review content.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ apiV1PatientreviewsPatientReviewIdPatch: function (patientReviewId_1, patchPatientReviewInputModel_1) {
550
+ var args_1 = [];
551
+ for (var _i = 2; _i < arguments.length; _i++) {
552
+ args_1[_i - 2] = arguments[_i];
553
+ }
554
+ return __awaiter(_this, __spreadArray([patientReviewId_1, patchPatientReviewInputModel_1], args_1, true), void 0, function (patientReviewId, patchPatientReviewInputModel, options) {
555
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
556
+ if (options === void 0) { options = {}; }
557
+ return __generator(this, function (_a) {
558
+ switch (_a.label) {
559
+ case 0:
560
+ // verify required parameter 'patientReviewId' is not null or undefined
561
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdPatch', 'patientReviewId', patientReviewId);
562
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}"
563
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
564
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
565
+ if (configuration) {
566
+ baseOptions = configuration.baseOptions;
567
+ }
568
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
569
+ localVarHeaderParameter = {};
570
+ localVarQueryParameter = {};
571
+ // authentication oauth2 required
572
+ // oauth required
573
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
574
+ case 1:
575
+ // authentication oauth2 required
576
+ // oauth required
577
+ _a.sent();
578
+ localVarHeaderParameter['Content-Type'] = 'application/merge-patch+json';
579
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
580
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
582
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchPatientReviewInputModel, localVarRequestOptions, configuration);
583
+ return [2 /*return*/, {
584
+ url: (0, common_1.toPathString)(localVarUrlObj),
585
+ options: localVarRequestOptions,
586
+ }];
587
+ }
588
+ });
589
+ });
590
+ },
591
+ /**
592
+ *
593
+ * @summary Marks photo verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
594
+ * @param {string} patientReviewId The patient review identifier.
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ apiV1PatientreviewsPatientReviewIdPhotoverificationPut: function (patientReviewId_1) {
599
+ var args_1 = [];
600
+ for (var _i = 1; _i < arguments.length; _i++) {
601
+ args_1[_i - 1] = arguments[_i];
602
+ }
603
+ return __awaiter(_this, __spreadArray([patientReviewId_1], args_1, true), void 0, function (patientReviewId, options) {
604
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
605
+ if (options === void 0) { options = {}; }
606
+ return __generator(this, function (_a) {
607
+ switch (_a.label) {
608
+ case 0:
609
+ // verify required parameter 'patientReviewId' is not null or undefined
610
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdPhotoverificationPut', 'patientReviewId', patientReviewId);
611
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/photoverification"
612
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
613
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
618
+ localVarHeaderParameter = {};
619
+ localVarQueryParameter = {};
620
+ // authentication oauth2 required
621
+ // oauth required
622
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
623
+ case 1:
624
+ // authentication oauth2 required
625
+ // oauth required
626
+ _a.sent();
627
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
628
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ return [2 /*return*/, {
631
+ url: (0, common_1.toPathString)(localVarUrlObj),
632
+ options: localVarRequestOptions,
633
+ }];
634
+ }
635
+ });
636
+ });
637
+ },
638
+ /**
639
+ *
640
+ * @summary Reactivates a soft-deleted patient review. (Auth policies: RequireContentManagerRole)
641
+ * @param {string} patientReviewId The patient review identifier.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ apiV1PatientreviewsPatientReviewIdReactivatePut: function (patientReviewId_1) {
646
+ var args_1 = [];
647
+ for (var _i = 1; _i < arguments.length; _i++) {
648
+ args_1[_i - 1] = arguments[_i];
649
+ }
650
+ return __awaiter(_this, __spreadArray([patientReviewId_1], args_1, true), void 0, function (patientReviewId, options) {
651
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
652
+ if (options === void 0) { options = {}; }
653
+ return __generator(this, function (_a) {
654
+ switch (_a.label) {
655
+ case 0:
656
+ // verify required parameter 'patientReviewId' is not null or undefined
657
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdReactivatePut', 'patientReviewId', patientReviewId);
658
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/reactivate"
659
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
660
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
661
+ if (configuration) {
662
+ baseOptions = configuration.baseOptions;
663
+ }
664
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
665
+ localVarHeaderParameter = {};
666
+ localVarQueryParameter = {};
667
+ // authentication oauth2 required
668
+ // oauth required
669
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
670
+ case 1:
671
+ // authentication oauth2 required
672
+ // oauth required
673
+ _a.sent();
674
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
675
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
676
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
677
+ return [2 /*return*/, {
678
+ url: (0, common_1.toPathString)(localVarUrlObj),
679
+ options: localVarRequestOptions,
680
+ }];
681
+ }
682
+ });
683
+ });
684
+ },
685
+ /**
686
+ *
687
+ * @summary Updates the patient review status to Verified or Rejected. (Auth policies: RequireContentManagerRole)
688
+ * @param {string} patientReviewId The patient review identifier.
689
+ * @param {UpdatePatientReviewStatusCommand} [updatePatientReviewStatusCommand] Status update command payload.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ apiV1PatientreviewsPatientReviewIdStatusPut: function (patientReviewId_1, updatePatientReviewStatusCommand_1) {
694
+ var args_1 = [];
695
+ for (var _i = 2; _i < arguments.length; _i++) {
696
+ args_1[_i - 2] = arguments[_i];
697
+ }
698
+ return __awaiter(_this, __spreadArray([patientReviewId_1, updatePatientReviewStatusCommand_1], args_1, true), void 0, function (patientReviewId, updatePatientReviewStatusCommand, options) {
699
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
700
+ if (options === void 0) { options = {}; }
701
+ return __generator(this, function (_a) {
702
+ switch (_a.label) {
703
+ case 0:
704
+ // verify required parameter 'patientReviewId' is not null or undefined
705
+ (0, common_1.assertParamExists)('apiV1PatientreviewsPatientReviewIdStatusPut', 'patientReviewId', patientReviewId);
706
+ localVarPath = "/api/v1/patientreviews/{patientReviewId}/status"
707
+ .replace("{".concat("patientReviewId", "}"), encodeURIComponent(String(patientReviewId)));
708
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
709
+ if (configuration) {
710
+ baseOptions = configuration.baseOptions;
711
+ }
712
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
713
+ localVarHeaderParameter = {};
714
+ localVarQueryParameter = {};
715
+ // authentication oauth2 required
716
+ // oauth required
717
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
718
+ case 1:
719
+ // authentication oauth2 required
720
+ // oauth required
721
+ _a.sent();
722
+ localVarHeaderParameter['Content-Type'] = 'application/json';
723
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
724
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
726
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePatientReviewStatusCommand, localVarRequestOptions, configuration);
727
+ return [2 /*return*/, {
728
+ url: (0, common_1.toPathString)(localVarUrlObj),
729
+ options: localVarRequestOptions,
730
+ }];
731
+ }
732
+ });
733
+ });
734
+ },
735
+ };
736
+ };
737
+ exports.PatientReviewsApiAxiosParamCreator = PatientReviewsApiAxiosParamCreator;
738
+ /**
739
+ * PatientReviewsApi - functional programming interface
740
+ * @export
741
+ */
742
+ var PatientReviewsApiFp = function (configuration) {
743
+ var localVarAxiosParamCreator = (0, exports.PatientReviewsApiAxiosParamCreator)(configuration);
744
+ return {
745
+ /**
746
+ *
747
+ * @summary Retrieves a paged list of patient reviews. (Auth policies: RequireContentManagerRole)
748
+ * @param {string} [hospitalId]
749
+ * @param {string} [doctorAffiliationId]
750
+ * @param {string} [dealId]
751
+ * @param {PatientReviewStatus} [status]
752
+ * @param {string} [languageCode]
753
+ * @param {string} [sortBy]
754
+ * @param {string} [sortDirection]
755
+ * @param {boolean} [showHidden]
756
+ * @param {number} [page]
757
+ * @param {number} [limit]
758
+ * @param {Date} [lastRetrieved]
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ apiV1PatientreviewsGet: function (hospitalId, doctorAffiliationId, dealId, status, languageCode, sortBy, sortDirection, showHidden, page, limit, lastRetrieved, options) {
763
+ return __awaiter(this, void 0, void 0, function () {
764
+ var localVarAxiosArgs;
765
+ return __generator(this, function (_a) {
766
+ switch (_a.label) {
767
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsGet(hospitalId, doctorAffiliationId, dealId, status, languageCode, sortBy, sortDirection, showHidden, page, limit, lastRetrieved, options)];
768
+ case 1:
769
+ localVarAxiosArgs = _a.sent();
770
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
771
+ }
772
+ });
773
+ });
774
+ },
775
+ /**
776
+ *
777
+ * @summary Retrieves activity logs for the specified patient review in descending order. (Auth policies: RequireContentManagerRole)
778
+ * @param {string} patientReviewId The patient review identifier.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ apiV1PatientreviewsPatientReviewIdActivitylogsGet: function (patientReviewId, options) {
783
+ return __awaiter(this, void 0, void 0, function () {
784
+ var localVarAxiosArgs;
785
+ return __generator(this, function (_a) {
786
+ switch (_a.label) {
787
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdActivitylogsGet(patientReviewId, options)];
788
+ case 1:
789
+ localVarAxiosArgs = _a.sent();
790
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
791
+ }
792
+ });
793
+ });
794
+ },
795
+ /**
796
+ *
797
+ * @summary Copies a private before-and-after photo set to a new public before-and-after photo record. (Auth policies: RequireContentManagerRole)
798
+ * @param {string} patientReviewId The patient review identifier.
799
+ * @param {string} patientReviewBeforeAndAfterPhotoId The source private before-and-after photo identifier.
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost: function (patientReviewId, patientReviewBeforeAndAfterPhotoId, options) {
804
+ return __awaiter(this, void 0, void 0, function () {
805
+ var localVarAxiosArgs;
806
+ return __generator(this, function (_a) {
807
+ switch (_a.label) {
808
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost(patientReviewId, patientReviewBeforeAndAfterPhotoId, options)];
809
+ case 1:
810
+ localVarAxiosArgs = _a.sent();
811
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
812
+ }
813
+ });
814
+ });
815
+ },
816
+ /**
817
+ *
818
+ * @summary Marks content verification (translations/language selection) as completed. (Auth policies: RequireContentManagerRole)
819
+ * @param {string} patientReviewId The patient review identifier.
820
+ * @param {VerifyPatientReviewContentCommand} [verifyPatientReviewContentCommand] Content verification command payload.
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ apiV1PatientreviewsPatientReviewIdContentverificationPut: function (patientReviewId, verifyPatientReviewContentCommand, options) {
825
+ return __awaiter(this, void 0, void 0, function () {
826
+ var localVarAxiosArgs;
827
+ return __generator(this, function (_a) {
828
+ switch (_a.label) {
829
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdContentverificationPut(patientReviewId, verifyPatientReviewContentCommand, options)];
830
+ case 1:
831
+ localVarAxiosArgs = _a.sent();
832
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
833
+ }
834
+ });
835
+ });
836
+ },
837
+ /**
838
+ *
839
+ * @summary Deletes the patient review. (Auth policies: RequireContentManagerRole)
840
+ * @param {string} patientReviewId The patient review identifier.
841
+ * @param {boolean} [isPermanent] Whether to perform a permanent delete.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ apiV1PatientreviewsPatientReviewIdDelete: function (patientReviewId, isPermanent, options) {
846
+ return __awaiter(this, void 0, void 0, function () {
847
+ var localVarAxiosArgs;
848
+ return __generator(this, function (_a) {
849
+ switch (_a.label) {
850
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdDelete(patientReviewId, isPermanent, options)];
851
+ case 1:
852
+ localVarAxiosArgs = _a.sent();
853
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
854
+ }
855
+ });
856
+ });
857
+ },
858
+ /**
859
+ *
860
+ * @summary Marks document verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
861
+ * @param {string} patientReviewId The patient review identifier.
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ apiV1PatientreviewsPatientReviewIdDocumentverificationPut: function (patientReviewId, options) {
866
+ return __awaiter(this, void 0, void 0, function () {
867
+ var localVarAxiosArgs;
868
+ return __generator(this, function (_a) {
869
+ switch (_a.label) {
870
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdDocumentverificationPut(patientReviewId, options)];
871
+ case 1:
872
+ localVarAxiosArgs = _a.sent();
873
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
874
+ }
875
+ });
876
+ });
877
+ },
878
+ /**
879
+ *
880
+ * @summary Copies a private general photo to a new public general photo record. (Auth policies: RequireContentManagerRole)
881
+ * @param {string} patientReviewId The patient review identifier.
882
+ * @param {string} patientReviewGeneralPhotoId The source private general photo identifier.
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost: function (patientReviewId, patientReviewGeneralPhotoId, options) {
887
+ return __awaiter(this, void 0, void 0, function () {
888
+ var localVarAxiosArgs;
889
+ return __generator(this, function (_a) {
890
+ switch (_a.label) {
891
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost(patientReviewId, patientReviewGeneralPhotoId, options)];
892
+ case 1:
893
+ localVarAxiosArgs = _a.sent();
894
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
895
+ }
896
+ });
897
+ });
898
+ },
899
+ /**
900
+ *
901
+ * @summary Retrieves the details of a single patient review. (Auth policies: RequireContentManagerRole)
902
+ * @param {string} patientReviewId The patient review identifier.
903
+ * @param {string} [languageCode] Preferred language code for localized fields.
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ */
907
+ apiV1PatientreviewsPatientReviewIdGet: function (patientReviewId, languageCode, options) {
908
+ return __awaiter(this, void 0, void 0, function () {
909
+ var localVarAxiosArgs;
910
+ return __generator(this, function (_a) {
911
+ switch (_a.label) {
912
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdGet(patientReviewId, languageCode, options)];
913
+ case 1:
914
+ localVarAxiosArgs = _a.sent();
915
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
916
+ }
917
+ });
918
+ });
919
+ },
920
+ /**
921
+ *
922
+ * @summary Partially updates public photos and translation content for the patient review. (Auth policies: RequireContentManagerRole)
923
+ * @param {string} patientReviewId The patient review identifier.
924
+ * @param {PatchPatientReviewInputModel} [patchPatientReviewInputModel] Patch payload for review content.
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ apiV1PatientreviewsPatientReviewIdPatch: function (patientReviewId, patchPatientReviewInputModel, options) {
929
+ return __awaiter(this, void 0, void 0, function () {
930
+ var localVarAxiosArgs;
931
+ return __generator(this, function (_a) {
932
+ switch (_a.label) {
933
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdPatch(patientReviewId, patchPatientReviewInputModel, options)];
934
+ case 1:
935
+ localVarAxiosArgs = _a.sent();
936
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
937
+ }
938
+ });
939
+ });
940
+ },
941
+ /**
942
+ *
943
+ * @summary Marks photo verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
944
+ * @param {string} patientReviewId The patient review identifier.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ apiV1PatientreviewsPatientReviewIdPhotoverificationPut: function (patientReviewId, options) {
949
+ return __awaiter(this, void 0, void 0, function () {
950
+ var localVarAxiosArgs;
951
+ return __generator(this, function (_a) {
952
+ switch (_a.label) {
953
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdPhotoverificationPut(patientReviewId, options)];
954
+ case 1:
955
+ localVarAxiosArgs = _a.sent();
956
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
957
+ }
958
+ });
959
+ });
960
+ },
961
+ /**
962
+ *
963
+ * @summary Reactivates a soft-deleted patient review. (Auth policies: RequireContentManagerRole)
964
+ * @param {string} patientReviewId The patient review identifier.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ apiV1PatientreviewsPatientReviewIdReactivatePut: function (patientReviewId, options) {
969
+ return __awaiter(this, void 0, void 0, function () {
970
+ var localVarAxiosArgs;
971
+ return __generator(this, function (_a) {
972
+ switch (_a.label) {
973
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdReactivatePut(patientReviewId, options)];
974
+ case 1:
975
+ localVarAxiosArgs = _a.sent();
976
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
977
+ }
978
+ });
979
+ });
980
+ },
981
+ /**
982
+ *
983
+ * @summary Updates the patient review status to Verified or Rejected. (Auth policies: RequireContentManagerRole)
984
+ * @param {string} patientReviewId The patient review identifier.
985
+ * @param {UpdatePatientReviewStatusCommand} [updatePatientReviewStatusCommand] Status update command payload.
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ apiV1PatientreviewsPatientReviewIdStatusPut: function (patientReviewId, updatePatientReviewStatusCommand, options) {
990
+ return __awaiter(this, void 0, void 0, function () {
991
+ var localVarAxiosArgs;
992
+ return __generator(this, function (_a) {
993
+ switch (_a.label) {
994
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewsPatientReviewIdStatusPut(patientReviewId, updatePatientReviewStatusCommand, options)];
995
+ case 1:
996
+ localVarAxiosArgs = _a.sent();
997
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
998
+ }
999
+ });
1000
+ });
1001
+ },
1002
+ };
1003
+ };
1004
+ exports.PatientReviewsApiFp = PatientReviewsApiFp;
1005
+ /**
1006
+ * PatientReviewsApi - factory interface
1007
+ * @export
1008
+ */
1009
+ var PatientReviewsApiFactory = function (configuration, basePath, axios) {
1010
+ var localVarFp = (0, exports.PatientReviewsApiFp)(configuration);
1011
+ return {
1012
+ /**
1013
+ *
1014
+ * @summary Retrieves a paged list of patient reviews. (Auth policies: RequireContentManagerRole)
1015
+ * @param {string} [hospitalId]
1016
+ * @param {string} [doctorAffiliationId]
1017
+ * @param {string} [dealId]
1018
+ * @param {PatientReviewStatus} [status]
1019
+ * @param {string} [languageCode]
1020
+ * @param {string} [sortBy]
1021
+ * @param {string} [sortDirection]
1022
+ * @param {boolean} [showHidden]
1023
+ * @param {number} [page]
1024
+ * @param {number} [limit]
1025
+ * @param {Date} [lastRetrieved]
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ apiV1PatientreviewsGet: function (hospitalId, doctorAffiliationId, dealId, status, languageCode, sortBy, sortDirection, showHidden, page, limit, lastRetrieved, options) {
1030
+ return localVarFp.apiV1PatientreviewsGet(hospitalId, doctorAffiliationId, dealId, status, languageCode, sortBy, sortDirection, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
1031
+ },
1032
+ /**
1033
+ *
1034
+ * @summary Retrieves activity logs for the specified patient review in descending order. (Auth policies: RequireContentManagerRole)
1035
+ * @param {string} patientReviewId The patient review identifier.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ apiV1PatientreviewsPatientReviewIdActivitylogsGet: function (patientReviewId, options) {
1040
+ return localVarFp.apiV1PatientreviewsPatientReviewIdActivitylogsGet(patientReviewId, options).then(function (request) { return request(axios, basePath); });
1041
+ },
1042
+ /**
1043
+ *
1044
+ * @summary Copies a private before-and-after photo set to a new public before-and-after photo record. (Auth policies: RequireContentManagerRole)
1045
+ * @param {string} patientReviewId The patient review identifier.
1046
+ * @param {string} patientReviewBeforeAndAfterPhotoId The source private before-and-after photo identifier.
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ */
1050
+ apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost: function (patientReviewId, patientReviewBeforeAndAfterPhotoId, options) {
1051
+ return localVarFp.apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost(patientReviewId, patientReviewBeforeAndAfterPhotoId, options).then(function (request) { return request(axios, basePath); });
1052
+ },
1053
+ /**
1054
+ *
1055
+ * @summary Marks content verification (translations/language selection) as completed. (Auth policies: RequireContentManagerRole)
1056
+ * @param {string} patientReviewId The patient review identifier.
1057
+ * @param {VerifyPatientReviewContentCommand} [verifyPatientReviewContentCommand] Content verification command payload.
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ */
1061
+ apiV1PatientreviewsPatientReviewIdContentverificationPut: function (patientReviewId, verifyPatientReviewContentCommand, options) {
1062
+ return localVarFp.apiV1PatientreviewsPatientReviewIdContentverificationPut(patientReviewId, verifyPatientReviewContentCommand, options).then(function (request) { return request(axios, basePath); });
1063
+ },
1064
+ /**
1065
+ *
1066
+ * @summary Deletes the patient review. (Auth policies: RequireContentManagerRole)
1067
+ * @param {string} patientReviewId The patient review identifier.
1068
+ * @param {boolean} [isPermanent] Whether to perform a permanent delete.
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ apiV1PatientreviewsPatientReviewIdDelete: function (patientReviewId, isPermanent, options) {
1073
+ return localVarFp.apiV1PatientreviewsPatientReviewIdDelete(patientReviewId, isPermanent, options).then(function (request) { return request(axios, basePath); });
1074
+ },
1075
+ /**
1076
+ *
1077
+ * @summary Marks document verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
1078
+ * @param {string} patientReviewId The patient review identifier.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ apiV1PatientreviewsPatientReviewIdDocumentverificationPut: function (patientReviewId, options) {
1083
+ return localVarFp.apiV1PatientreviewsPatientReviewIdDocumentverificationPut(patientReviewId, options).then(function (request) { return request(axios, basePath); });
1084
+ },
1085
+ /**
1086
+ *
1087
+ * @summary Copies a private general photo to a new public general photo record. (Auth policies: RequireContentManagerRole)
1088
+ * @param {string} patientReviewId The patient review identifier.
1089
+ * @param {string} patientReviewGeneralPhotoId The source private general photo identifier.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost: function (patientReviewId, patientReviewGeneralPhotoId, options) {
1094
+ return localVarFp.apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost(patientReviewId, patientReviewGeneralPhotoId, options).then(function (request) { return request(axios, basePath); });
1095
+ },
1096
+ /**
1097
+ *
1098
+ * @summary Retrieves the details of a single patient review. (Auth policies: RequireContentManagerRole)
1099
+ * @param {string} patientReviewId The patient review identifier.
1100
+ * @param {string} [languageCode] Preferred language code for localized fields.
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ apiV1PatientreviewsPatientReviewIdGet: function (patientReviewId, languageCode, options) {
1105
+ return localVarFp.apiV1PatientreviewsPatientReviewIdGet(patientReviewId, languageCode, options).then(function (request) { return request(axios, basePath); });
1106
+ },
1107
+ /**
1108
+ *
1109
+ * @summary Partially updates public photos and translation content for the patient review. (Auth policies: RequireContentManagerRole)
1110
+ * @param {string} patientReviewId The patient review identifier.
1111
+ * @param {PatchPatientReviewInputModel} [patchPatientReviewInputModel] Patch payload for review content.
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ apiV1PatientreviewsPatientReviewIdPatch: function (patientReviewId, patchPatientReviewInputModel, options) {
1116
+ return localVarFp.apiV1PatientreviewsPatientReviewIdPatch(patientReviewId, patchPatientReviewInputModel, options).then(function (request) { return request(axios, basePath); });
1117
+ },
1118
+ /**
1119
+ *
1120
+ * @summary Marks photo verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
1121
+ * @param {string} patientReviewId The patient review identifier.
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ apiV1PatientreviewsPatientReviewIdPhotoverificationPut: function (patientReviewId, options) {
1126
+ return localVarFp.apiV1PatientreviewsPatientReviewIdPhotoverificationPut(patientReviewId, options).then(function (request) { return request(axios, basePath); });
1127
+ },
1128
+ /**
1129
+ *
1130
+ * @summary Reactivates a soft-deleted patient review. (Auth policies: RequireContentManagerRole)
1131
+ * @param {string} patientReviewId The patient review identifier.
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ */
1135
+ apiV1PatientreviewsPatientReviewIdReactivatePut: function (patientReviewId, options) {
1136
+ return localVarFp.apiV1PatientreviewsPatientReviewIdReactivatePut(patientReviewId, options).then(function (request) { return request(axios, basePath); });
1137
+ },
1138
+ /**
1139
+ *
1140
+ * @summary Updates the patient review status to Verified or Rejected. (Auth policies: RequireContentManagerRole)
1141
+ * @param {string} patientReviewId The patient review identifier.
1142
+ * @param {UpdatePatientReviewStatusCommand} [updatePatientReviewStatusCommand] Status update command payload.
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ */
1146
+ apiV1PatientreviewsPatientReviewIdStatusPut: function (patientReviewId, updatePatientReviewStatusCommand, options) {
1147
+ return localVarFp.apiV1PatientreviewsPatientReviewIdStatusPut(patientReviewId, updatePatientReviewStatusCommand, options).then(function (request) { return request(axios, basePath); });
1148
+ },
1149
+ };
1150
+ };
1151
+ exports.PatientReviewsApiFactory = PatientReviewsApiFactory;
1152
+ /**
1153
+ * PatientReviewsApi - object-oriented interface
1154
+ * @export
1155
+ * @class PatientReviewsApi
1156
+ * @extends {BaseAPI}
1157
+ */
1158
+ var PatientReviewsApi = /** @class */ (function (_super) {
1159
+ __extends(PatientReviewsApi, _super);
1160
+ function PatientReviewsApi() {
1161
+ return _super !== null && _super.apply(this, arguments) || this;
1162
+ }
1163
+ /**
1164
+ *
1165
+ * @summary Retrieves a paged list of patient reviews. (Auth policies: RequireContentManagerRole)
1166
+ * @param {PatientReviewsApiApiV1PatientreviewsGetRequest} requestParameters Request parameters.
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ * @memberof PatientReviewsApi
1170
+ */
1171
+ PatientReviewsApi.prototype.apiV1PatientreviewsGet = function (requestParameters, options) {
1172
+ var _this = this;
1173
+ if (requestParameters === void 0) { requestParameters = {}; }
1174
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsGet(requestParameters.hospitalId, requestParameters.doctorAffiliationId, requestParameters.dealId, requestParameters.status, requestParameters.languageCode, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
1175
+ };
1176
+ /**
1177
+ *
1178
+ * @summary Retrieves activity logs for the specified patient review in descending order. (Auth policies: RequireContentManagerRole)
1179
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdActivitylogsGetRequest} requestParameters Request parameters.
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ * @memberof PatientReviewsApi
1183
+ */
1184
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdActivitylogsGet = function (requestParameters, options) {
1185
+ var _this = this;
1186
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdActivitylogsGet(requestParameters.patientReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1187
+ };
1188
+ /**
1189
+ *
1190
+ * @summary Copies a private before-and-after photo set to a new public before-and-after photo record. (Auth policies: RequireContentManagerRole)
1191
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPostRequest} requestParameters Request parameters.
1192
+ * @param {*} [options] Override http request option.
1193
+ * @throws {RequiredError}
1194
+ * @memberof PatientReviewsApi
1195
+ */
1196
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost = function (requestParameters, options) {
1197
+ var _this = this;
1198
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdBeforeandafterphotosPatientReviewBeforeAndAfterPhotoIdCopytopublicPost(requestParameters.patientReviewId, requestParameters.patientReviewBeforeAndAfterPhotoId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1199
+ };
1200
+ /**
1201
+ *
1202
+ * @summary Marks content verification (translations/language selection) as completed. (Auth policies: RequireContentManagerRole)
1203
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdContentverificationPutRequest} requestParameters Request parameters.
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ * @memberof PatientReviewsApi
1207
+ */
1208
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdContentverificationPut = function (requestParameters, options) {
1209
+ var _this = this;
1210
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdContentverificationPut(requestParameters.patientReviewId, requestParameters.verifyPatientReviewContentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1211
+ };
1212
+ /**
1213
+ *
1214
+ * @summary Deletes the patient review. (Auth policies: RequireContentManagerRole)
1215
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdDeleteRequest} requestParameters Request parameters.
1216
+ * @param {*} [options] Override http request option.
1217
+ * @throws {RequiredError}
1218
+ * @memberof PatientReviewsApi
1219
+ */
1220
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdDelete = function (requestParameters, options) {
1221
+ var _this = this;
1222
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdDelete(requestParameters.patientReviewId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
1223
+ };
1224
+ /**
1225
+ *
1226
+ * @summary Marks document verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
1227
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdDocumentverificationPutRequest} requestParameters Request parameters.
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ * @memberof PatientReviewsApi
1231
+ */
1232
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdDocumentverificationPut = function (requestParameters, options) {
1233
+ var _this = this;
1234
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdDocumentverificationPut(requestParameters.patientReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1235
+ };
1236
+ /**
1237
+ *
1238
+ * @summary Copies a private general photo to a new public general photo record. (Auth policies: RequireContentManagerRole)
1239
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPostRequest} requestParameters Request parameters.
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ * @memberof PatientReviewsApi
1243
+ */
1244
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost = function (requestParameters, options) {
1245
+ var _this = this;
1246
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdGeneralphotosPatientReviewGeneralPhotoIdCopytopublicPost(requestParameters.patientReviewId, requestParameters.patientReviewGeneralPhotoId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1247
+ };
1248
+ /**
1249
+ *
1250
+ * @summary Retrieves the details of a single patient review. (Auth policies: RequireContentManagerRole)
1251
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdGetRequest} requestParameters Request parameters.
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ * @memberof PatientReviewsApi
1255
+ */
1256
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdGet = function (requestParameters, options) {
1257
+ var _this = this;
1258
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdGet(requestParameters.patientReviewId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
1259
+ };
1260
+ /**
1261
+ *
1262
+ * @summary Partially updates public photos and translation content for the patient review. (Auth policies: RequireContentManagerRole)
1263
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdPatchRequest} requestParameters Request parameters.
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ * @memberof PatientReviewsApi
1267
+ */
1268
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdPatch = function (requestParameters, options) {
1269
+ var _this = this;
1270
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdPatch(requestParameters.patientReviewId, requestParameters.patchPatientReviewInputModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
1271
+ };
1272
+ /**
1273
+ *
1274
+ * @summary Marks photo verification as completed for the patient review. (Auth policies: RequireContentManagerRole)
1275
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdPhotoverificationPutRequest} requestParameters Request parameters.
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ * @memberof PatientReviewsApi
1279
+ */
1280
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdPhotoverificationPut = function (requestParameters, options) {
1281
+ var _this = this;
1282
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdPhotoverificationPut(requestParameters.patientReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1283
+ };
1284
+ /**
1285
+ *
1286
+ * @summary Reactivates a soft-deleted patient review. (Auth policies: RequireContentManagerRole)
1287
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdReactivatePutRequest} requestParameters Request parameters.
1288
+ * @param {*} [options] Override http request option.
1289
+ * @throws {RequiredError}
1290
+ * @memberof PatientReviewsApi
1291
+ */
1292
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdReactivatePut = function (requestParameters, options) {
1293
+ var _this = this;
1294
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdReactivatePut(requestParameters.patientReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1295
+ };
1296
+ /**
1297
+ *
1298
+ * @summary Updates the patient review status to Verified or Rejected. (Auth policies: RequireContentManagerRole)
1299
+ * @param {PatientReviewsApiApiV1PatientreviewsPatientReviewIdStatusPutRequest} requestParameters Request parameters.
1300
+ * @param {*} [options] Override http request option.
1301
+ * @throws {RequiredError}
1302
+ * @memberof PatientReviewsApi
1303
+ */
1304
+ PatientReviewsApi.prototype.apiV1PatientreviewsPatientReviewIdStatusPut = function (requestParameters, options) {
1305
+ var _this = this;
1306
+ return (0, exports.PatientReviewsApiFp)(this.configuration).apiV1PatientreviewsPatientReviewIdStatusPut(requestParameters.patientReviewId, requestParameters.updatePatientReviewStatusCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1307
+ };
1308
+ return PatientReviewsApi;
1309
+ }(base_1.BaseAPI));
1310
+ exports.PatientReviewsApi = PatientReviewsApi;