@sfxcode/nuxt-mongocamp-server 1.1.2 → 1.2.1
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.mjs +99 -63
- package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
- package/dist/runtime/api/apis/AuthApi.mjs +19 -13
- package/dist/runtime/api/apis/BucketApi.mjs +22 -13
- package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
- package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
- package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
- package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
- package/dist/runtime/api/apis/FileApi.mjs +119 -74
- package/dist/runtime/api/apis/IndexApi.mjs +117 -69
- package/dist/runtime/api/apis/JobsApi.mjs +51 -27
- package/dist/runtime/api/models/BucketInformation.mjs +16 -16
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
- package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
- package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
- package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.mjs +22 -20
- package/dist/runtime/api/models/Grant.mjs +19 -18
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
- package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
- package/dist/runtime/api/models/InsertResponse.mjs +9 -13
- package/dist/runtime/api/models/JobConfig.mjs +22 -20
- package/dist/runtime/api/models/JobInformation.mjs +28 -27
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.mjs +14 -20
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
- package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
- package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
- package/dist/runtime/api/models/JsonValueString.mjs +7 -10
- package/dist/runtime/api/models/Login.mjs +10 -12
- package/dist/runtime/api/models/LoginResult.mjs +13 -14
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
- package/dist/runtime/api/models/MongoIndex.mjs +39 -33
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
- package/dist/runtime/api/models/PipelineStage.mjs +10 -12
- package/dist/runtime/api/models/Role.mjs +12 -15
- package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
- package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
- package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
- package/dist/runtime/api/models/UserInformation.mjs +14 -17
- package/dist/runtime/api/models/UserProfile.mjs +16 -19
- package/dist/runtime/api/models/Version.mjs +13 -14
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/runtime.mjs +0 -4
- package/dist/runtime/composables/mongocampAuth.mjs +2 -0
- package/package.json +29 -18
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -15,8 +15,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
15
15
|
* Add Role
|
|
16
16
|
*/
|
|
17
17
|
async addRoleRaw(requestParameters, initOverrides) {
|
|
18
|
-
if (requestParameters
|
|
19
|
-
throw new runtime.RequiredError(
|
|
18
|
+
if (requestParameters["role"] == null) {
|
|
19
|
+
throw new runtime.RequiredError(
|
|
20
|
+
"role",
|
|
21
|
+
'Required parameter "role" was null or undefined when calling addRole().'
|
|
22
|
+
);
|
|
20
23
|
}
|
|
21
24
|
const queryParameters = {};
|
|
22
25
|
const headerParameters = {};
|
|
@@ -32,14 +35,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
if (this.configuration && this.configuration.apiKey) {
|
|
35
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
38
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
36
39
|
}
|
|
37
40
|
const response = await this.request({
|
|
38
41
|
path: `/admin/roles`,
|
|
39
42
|
method: "PUT",
|
|
40
43
|
headers: headerParameters,
|
|
41
44
|
query: queryParameters,
|
|
42
|
-
body: RoleToJSON(requestParameters
|
|
45
|
+
body: RoleToJSON(requestParameters["role"])
|
|
43
46
|
}, initOverrides);
|
|
44
47
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleFromJSON(jsonValue));
|
|
45
48
|
}
|
|
@@ -56,8 +59,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
56
59
|
* Add User
|
|
57
60
|
*/
|
|
58
61
|
async addUserRaw(requestParameters, initOverrides) {
|
|
59
|
-
if (requestParameters
|
|
60
|
-
throw new runtime.RequiredError(
|
|
62
|
+
if (requestParameters["userInformation"] == null) {
|
|
63
|
+
throw new runtime.RequiredError(
|
|
64
|
+
"userInformation",
|
|
65
|
+
'Required parameter "userInformation" was null or undefined when calling addUser().'
|
|
66
|
+
);
|
|
61
67
|
}
|
|
62
68
|
const queryParameters = {};
|
|
63
69
|
const headerParameters = {};
|
|
@@ -73,14 +79,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
82
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
77
83
|
}
|
|
78
84
|
const response = await this.request({
|
|
79
85
|
path: `/admin/users`,
|
|
80
86
|
method: "PUT",
|
|
81
87
|
headers: headerParameters,
|
|
82
88
|
query: queryParameters,
|
|
83
|
-
body: UserInformationToJSON(requestParameters
|
|
89
|
+
body: UserInformationToJSON(requestParameters["userInformation"])
|
|
84
90
|
}, initOverrides);
|
|
85
91
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
|
|
86
92
|
}
|
|
@@ -97,8 +103,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
97
103
|
* Delete Role
|
|
98
104
|
*/
|
|
99
105
|
async deleteRoleRaw(requestParameters, initOverrides) {
|
|
100
|
-
if (requestParameters
|
|
101
|
-
throw new runtime.RequiredError(
|
|
106
|
+
if (requestParameters["roleName"] == null) {
|
|
107
|
+
throw new runtime.RequiredError(
|
|
108
|
+
"roleName",
|
|
109
|
+
'Required parameter "roleName" was null or undefined when calling deleteRole().'
|
|
110
|
+
);
|
|
102
111
|
}
|
|
103
112
|
const queryParameters = {};
|
|
104
113
|
const headerParameters = {};
|
|
@@ -113,10 +122,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
113
122
|
}
|
|
114
123
|
}
|
|
115
124
|
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
125
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
117
126
|
}
|
|
118
127
|
const response = await this.request({
|
|
119
|
-
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters
|
|
128
|
+
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"]))),
|
|
120
129
|
method: "DELETE",
|
|
121
130
|
headers: headerParameters,
|
|
122
131
|
query: queryParameters
|
|
@@ -136,8 +145,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
136
145
|
* Delete User
|
|
137
146
|
*/
|
|
138
147
|
async deleteUserRaw(requestParameters, initOverrides) {
|
|
139
|
-
if (requestParameters
|
|
140
|
-
throw new runtime.RequiredError(
|
|
148
|
+
if (requestParameters["userId"] == null) {
|
|
149
|
+
throw new runtime.RequiredError(
|
|
150
|
+
"userId",
|
|
151
|
+
'Required parameter "userId" was null or undefined when calling deleteUser().'
|
|
152
|
+
);
|
|
141
153
|
}
|
|
142
154
|
const queryParameters = {};
|
|
143
155
|
const headerParameters = {};
|
|
@@ -152,10 +164,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
152
164
|
}
|
|
153
165
|
}
|
|
154
166
|
if (this.configuration && this.configuration.apiKey) {
|
|
155
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
167
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
156
168
|
}
|
|
157
169
|
const response = await this.request({
|
|
158
|
-
path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters
|
|
170
|
+
path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
159
171
|
method: "DELETE",
|
|
160
172
|
headers: headerParameters,
|
|
161
173
|
query: queryParameters
|
|
@@ -175,8 +187,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
175
187
|
* Get Role
|
|
176
188
|
*/
|
|
177
189
|
async getRoleRaw(requestParameters, initOverrides) {
|
|
178
|
-
if (requestParameters
|
|
179
|
-
throw new runtime.RequiredError(
|
|
190
|
+
if (requestParameters["roleName"] == null) {
|
|
191
|
+
throw new runtime.RequiredError(
|
|
192
|
+
"roleName",
|
|
193
|
+
'Required parameter "roleName" was null or undefined when calling getRole().'
|
|
194
|
+
);
|
|
180
195
|
}
|
|
181
196
|
const queryParameters = {};
|
|
182
197
|
const headerParameters = {};
|
|
@@ -191,10 +206,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
191
206
|
}
|
|
192
207
|
}
|
|
193
208
|
if (this.configuration && this.configuration.apiKey) {
|
|
194
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
209
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
195
210
|
}
|
|
196
211
|
const response = await this.request({
|
|
197
|
-
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters
|
|
212
|
+
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"]))),
|
|
198
213
|
method: "GET",
|
|
199
214
|
headers: headerParameters,
|
|
200
215
|
query: queryParameters
|
|
@@ -214,8 +229,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
214
229
|
* UserProfile for userId
|
|
215
230
|
*/
|
|
216
231
|
async getUserRaw(requestParameters, initOverrides) {
|
|
217
|
-
if (requestParameters
|
|
218
|
-
throw new runtime.RequiredError(
|
|
232
|
+
if (requestParameters["userId"] == null) {
|
|
233
|
+
throw new runtime.RequiredError(
|
|
234
|
+
"userId",
|
|
235
|
+
'Required parameter "userId" was null or undefined when calling getUser().'
|
|
236
|
+
);
|
|
219
237
|
}
|
|
220
238
|
const queryParameters = {};
|
|
221
239
|
const headerParameters = {};
|
|
@@ -230,10 +248,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
230
248
|
}
|
|
231
249
|
}
|
|
232
250
|
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
251
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
234
252
|
}
|
|
235
253
|
const response = await this.request({
|
|
236
|
-
path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters
|
|
254
|
+
path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
237
255
|
method: "GET",
|
|
238
256
|
headers: headerParameters,
|
|
239
257
|
query: queryParameters
|
|
@@ -253,8 +271,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
253
271
|
* Update ApiKey
|
|
254
272
|
*/
|
|
255
273
|
async gnerateNewApiKeyForUserRaw(requestParameters, initOverrides) {
|
|
256
|
-
if (requestParameters
|
|
257
|
-
throw new runtime.RequiredError(
|
|
274
|
+
if (requestParameters["userId"] == null) {
|
|
275
|
+
throw new runtime.RequiredError(
|
|
276
|
+
"userId",
|
|
277
|
+
'Required parameter "userId" was null or undefined when calling gnerateNewApiKeyForUser().'
|
|
278
|
+
);
|
|
258
279
|
}
|
|
259
280
|
const queryParameters = {};
|
|
260
281
|
const headerParameters = {};
|
|
@@ -269,10 +290,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
269
290
|
}
|
|
270
291
|
}
|
|
271
292
|
if (this.configuration && this.configuration.apiKey) {
|
|
272
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
293
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
273
294
|
}
|
|
274
295
|
const response = await this.request({
|
|
275
|
-
path: `/admin/users/{userId}/apikey`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters
|
|
296
|
+
path: `/admin/users/{userId}/apikey`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
276
297
|
method: "PATCH",
|
|
277
298
|
headers: headerParameters,
|
|
278
299
|
query: queryParameters
|
|
@@ -293,14 +314,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
293
314
|
*/
|
|
294
315
|
async listRolesRaw(requestParameters, initOverrides) {
|
|
295
316
|
const queryParameters = {};
|
|
296
|
-
if (requestParameters
|
|
297
|
-
queryParameters["filter"] = requestParameters
|
|
317
|
+
if (requestParameters["filter"] != null) {
|
|
318
|
+
queryParameters["filter"] = requestParameters["filter"];
|
|
298
319
|
}
|
|
299
|
-
if (requestParameters
|
|
300
|
-
queryParameters["rowsPerPage"] = requestParameters
|
|
320
|
+
if (requestParameters["rowsPerPage"] != null) {
|
|
321
|
+
queryParameters["rowsPerPage"] = requestParameters["rowsPerPage"];
|
|
301
322
|
}
|
|
302
|
-
if (requestParameters
|
|
303
|
-
queryParameters["page"] = requestParameters
|
|
323
|
+
if (requestParameters["page"] != null) {
|
|
324
|
+
queryParameters["page"] = requestParameters["page"];
|
|
304
325
|
}
|
|
305
326
|
const headerParameters = {};
|
|
306
327
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -314,7 +335,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
314
335
|
}
|
|
315
336
|
}
|
|
316
337
|
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
338
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
318
339
|
}
|
|
319
340
|
const response = await this.request({
|
|
320
341
|
path: `/admin/roles`,
|
|
@@ -338,14 +359,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
338
359
|
*/
|
|
339
360
|
async listUsersRaw(requestParameters, initOverrides) {
|
|
340
361
|
const queryParameters = {};
|
|
341
|
-
if (requestParameters
|
|
342
|
-
queryParameters["filter"] = requestParameters
|
|
362
|
+
if (requestParameters["filter"] != null) {
|
|
363
|
+
queryParameters["filter"] = requestParameters["filter"];
|
|
343
364
|
}
|
|
344
|
-
if (requestParameters
|
|
345
|
-
queryParameters["rowsPerPage"] = requestParameters
|
|
365
|
+
if (requestParameters["rowsPerPage"] != null) {
|
|
366
|
+
queryParameters["rowsPerPage"] = requestParameters["rowsPerPage"];
|
|
346
367
|
}
|
|
347
|
-
if (requestParameters
|
|
348
|
-
queryParameters["page"] = requestParameters
|
|
368
|
+
if (requestParameters["page"] != null) {
|
|
369
|
+
queryParameters["page"] = requestParameters["page"];
|
|
349
370
|
}
|
|
350
371
|
const headerParameters = {};
|
|
351
372
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -359,7 +380,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
359
380
|
}
|
|
360
381
|
}
|
|
361
382
|
if (this.configuration && this.configuration.apiKey) {
|
|
362
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
383
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
363
384
|
}
|
|
364
385
|
const response = await this.request({
|
|
365
386
|
path: `/admin/users`,
|
|
@@ -382,11 +403,17 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
382
403
|
* Update Password
|
|
383
404
|
*/
|
|
384
405
|
async updatePasswordForUserRaw(requestParameters, initOverrides) {
|
|
385
|
-
if (requestParameters
|
|
386
|
-
throw new runtime.RequiredError(
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
406
|
+
if (requestParameters["userId"] == null) {
|
|
407
|
+
throw new runtime.RequiredError(
|
|
408
|
+
"userId",
|
|
409
|
+
'Required parameter "userId" was null or undefined when calling updatePasswordForUser().'
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
if (requestParameters["passwordUpdateRequest"] == null) {
|
|
413
|
+
throw new runtime.RequiredError(
|
|
414
|
+
"passwordUpdateRequest",
|
|
415
|
+
'Required parameter "passwordUpdateRequest" was null or undefined when calling updatePasswordForUser().'
|
|
416
|
+
);
|
|
390
417
|
}
|
|
391
418
|
const queryParameters = {};
|
|
392
419
|
const headerParameters = {};
|
|
@@ -402,14 +429,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
402
429
|
}
|
|
403
430
|
}
|
|
404
431
|
if (this.configuration && this.configuration.apiKey) {
|
|
405
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
432
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
406
433
|
}
|
|
407
434
|
const response = await this.request({
|
|
408
|
-
path: `/admin/users/{userId}/password`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters
|
|
435
|
+
path: `/admin/users/{userId}/password`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
409
436
|
method: "PATCH",
|
|
410
437
|
headers: headerParameters,
|
|
411
438
|
query: queryParameters,
|
|
412
|
-
body: PasswordUpdateRequestToJSON(requestParameters
|
|
439
|
+
body: PasswordUpdateRequestToJSON(requestParameters["passwordUpdateRequest"])
|
|
413
440
|
}, initOverrides);
|
|
414
441
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
415
442
|
}
|
|
@@ -426,11 +453,17 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
426
453
|
* Update Role
|
|
427
454
|
*/
|
|
428
455
|
async updateRoleRaw(requestParameters, initOverrides) {
|
|
429
|
-
if (requestParameters
|
|
430
|
-
throw new runtime.RequiredError(
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
456
|
+
if (requestParameters["roleName"] == null) {
|
|
457
|
+
throw new runtime.RequiredError(
|
|
458
|
+
"roleName",
|
|
459
|
+
'Required parameter "roleName" was null or undefined when calling updateRole().'
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
if (requestParameters["updateRoleRequest"] == null) {
|
|
463
|
+
throw new runtime.RequiredError(
|
|
464
|
+
"updateRoleRequest",
|
|
465
|
+
'Required parameter "updateRoleRequest" was null or undefined when calling updateRole().'
|
|
466
|
+
);
|
|
434
467
|
}
|
|
435
468
|
const queryParameters = {};
|
|
436
469
|
const headerParameters = {};
|
|
@@ -446,14 +479,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
446
479
|
}
|
|
447
480
|
}
|
|
448
481
|
if (this.configuration && this.configuration.apiKey) {
|
|
449
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
482
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
450
483
|
}
|
|
451
484
|
const response = await this.request({
|
|
452
|
-
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters
|
|
485
|
+
path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"]))),
|
|
453
486
|
method: "PATCH",
|
|
454
487
|
headers: headerParameters,
|
|
455
488
|
query: queryParameters,
|
|
456
|
-
body: UpdateRoleRequestToJSON(requestParameters
|
|
489
|
+
body: UpdateRoleRequestToJSON(requestParameters["updateRoleRequest"])
|
|
457
490
|
}, initOverrides);
|
|
458
491
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleFromJSON(jsonValue));
|
|
459
492
|
}
|
|
@@ -470,8 +503,11 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
470
503
|
* Update User Roles
|
|
471
504
|
*/
|
|
472
505
|
async updateRolesForUserRaw(requestParameters, initOverrides) {
|
|
473
|
-
if (requestParameters
|
|
474
|
-
throw new runtime.RequiredError(
|
|
506
|
+
if (requestParameters["userId"] == null) {
|
|
507
|
+
throw new runtime.RequiredError(
|
|
508
|
+
"userId",
|
|
509
|
+
'Required parameter "userId" was null or undefined when calling updateRolesForUser().'
|
|
510
|
+
);
|
|
475
511
|
}
|
|
476
512
|
const queryParameters = {};
|
|
477
513
|
const headerParameters = {};
|
|
@@ -487,14 +523,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
487
523
|
}
|
|
488
524
|
}
|
|
489
525
|
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
526
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
491
527
|
}
|
|
492
528
|
const response = await this.request({
|
|
493
|
-
path: `/admin/users/{userId}/roles`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters
|
|
529
|
+
path: `/admin/users/{userId}/roles`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
494
530
|
method: "PATCH",
|
|
495
531
|
headers: headerParameters,
|
|
496
532
|
query: queryParameters,
|
|
497
|
-
body: requestParameters
|
|
533
|
+
body: requestParameters["requestBody"]
|
|
498
534
|
}, initOverrides);
|
|
499
535
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
|
|
500
536
|
}
|
|
@@ -11,8 +11,11 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
11
11
|
* Configuration for configurationKey
|
|
12
12
|
*/
|
|
13
13
|
async getConfigRaw(requestParameters, initOverrides) {
|
|
14
|
-
if (requestParameters
|
|
15
|
-
throw new runtime.RequiredError(
|
|
14
|
+
if (requestParameters["configurationKey"] == null) {
|
|
15
|
+
throw new runtime.RequiredError(
|
|
16
|
+
"configurationKey",
|
|
17
|
+
'Required parameter "configurationKey" was null or undefined when calling getConfig().'
|
|
18
|
+
);
|
|
16
19
|
}
|
|
17
20
|
const queryParameters = {};
|
|
18
21
|
const headerParameters = {};
|
|
@@ -27,10 +30,10 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
if (this.configuration && this.configuration.apiKey) {
|
|
30
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
33
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
31
34
|
}
|
|
32
35
|
const response = await this.request({
|
|
33
|
-
path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters
|
|
36
|
+
path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"]))),
|
|
34
37
|
method: "GET",
|
|
35
38
|
headers: headerParameters,
|
|
36
39
|
query: queryParameters
|
|
@@ -63,7 +66,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
69
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
67
70
|
}
|
|
68
71
|
const response = await this.request({
|
|
69
72
|
path: `/system/configurations`,
|
|
@@ -99,7 +102,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
105
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
103
106
|
}
|
|
104
107
|
const response = await this.request({
|
|
105
108
|
path: `/system/settings`,
|
|
@@ -122,11 +125,17 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
122
125
|
* Update Configuration
|
|
123
126
|
*/
|
|
124
127
|
async updateConfigurationRaw(requestParameters, initOverrides) {
|
|
125
|
-
if (requestParameters
|
|
126
|
-
throw new runtime.RequiredError(
|
|
128
|
+
if (requestParameters["configurationKey"] == null) {
|
|
129
|
+
throw new runtime.RequiredError(
|
|
130
|
+
"configurationKey",
|
|
131
|
+
'Required parameter "configurationKey" was null or undefined when calling updateConfiguration().'
|
|
132
|
+
);
|
|
127
133
|
}
|
|
128
|
-
if (requestParameters
|
|
129
|
-
throw new runtime.RequiredError(
|
|
134
|
+
if (requestParameters["jsonValueAny"] == null) {
|
|
135
|
+
throw new runtime.RequiredError(
|
|
136
|
+
"jsonValueAny",
|
|
137
|
+
'Required parameter "jsonValueAny" was null or undefined when calling updateConfiguration().'
|
|
138
|
+
);
|
|
130
139
|
}
|
|
131
140
|
const queryParameters = {};
|
|
132
141
|
const headerParameters = {};
|
|
@@ -142,14 +151,14 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
142
151
|
}
|
|
143
152
|
}
|
|
144
153
|
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
154
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
146
155
|
}
|
|
147
156
|
const response = await this.request({
|
|
148
|
-
path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters
|
|
157
|
+
path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"]))),
|
|
149
158
|
method: "PATCH",
|
|
150
159
|
headers: headerParameters,
|
|
151
160
|
query: queryParameters,
|
|
152
|
-
body: JsonValueAnyToJSON(requestParameters
|
|
161
|
+
body: JsonValueAnyToJSON(requestParameters["jsonValueAny"])
|
|
153
162
|
}, initOverrides);
|
|
154
163
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
155
164
|
}
|
|
@@ -26,7 +26,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
29
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
30
30
|
}
|
|
31
31
|
const response = await this.request({
|
|
32
32
|
path: `/auth/profile/apikey`,
|
|
@@ -62,7 +62,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
65
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
66
66
|
}
|
|
67
67
|
const response = await this.request({
|
|
68
68
|
path: `/auth/authenticated`,
|
|
@@ -85,8 +85,11 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
85
85
|
* Login User
|
|
86
86
|
*/
|
|
87
87
|
async loginRaw(requestParameters, initOverrides) {
|
|
88
|
-
if (requestParameters
|
|
89
|
-
throw new runtime.RequiredError(
|
|
88
|
+
if (requestParameters["login"] == null) {
|
|
89
|
+
throw new runtime.RequiredError(
|
|
90
|
+
"login",
|
|
91
|
+
'Required parameter "login" was null or undefined when calling login().'
|
|
92
|
+
);
|
|
90
93
|
}
|
|
91
94
|
const queryParameters = {};
|
|
92
95
|
const headerParameters = {};
|
|
@@ -96,7 +99,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
96
99
|
method: "POST",
|
|
97
100
|
headers: headerParameters,
|
|
98
101
|
query: queryParameters,
|
|
99
|
-
body: LoginToJSON(requestParameters
|
|
102
|
+
body: LoginToJSON(requestParameters["login"])
|
|
100
103
|
}, initOverrides);
|
|
101
104
|
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResultFromJSON(jsonValue));
|
|
102
105
|
}
|
|
@@ -126,7 +129,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
if (this.configuration && this.configuration.apiKey) {
|
|
129
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
132
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
130
133
|
}
|
|
131
134
|
const response = await this.request({
|
|
132
135
|
path: `/auth/logout`,
|
|
@@ -162,7 +165,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
if (this.configuration && this.configuration.apiKey) {
|
|
165
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
168
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
166
169
|
}
|
|
167
170
|
const response = await this.request({
|
|
168
171
|
path: `/auth/logout`,
|
|
@@ -198,7 +201,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
198
201
|
}
|
|
199
202
|
}
|
|
200
203
|
if (this.configuration && this.configuration.apiKey) {
|
|
201
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
204
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
202
205
|
}
|
|
203
206
|
const response = await this.request({
|
|
204
207
|
path: `/auth/token/refresh`,
|
|
@@ -221,8 +224,11 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
221
224
|
* Update Password
|
|
222
225
|
*/
|
|
223
226
|
async updatePasswordRaw(requestParameters, initOverrides) {
|
|
224
|
-
if (requestParameters
|
|
225
|
-
throw new runtime.RequiredError(
|
|
227
|
+
if (requestParameters["passwordUpdateRequest"] == null) {
|
|
228
|
+
throw new runtime.RequiredError(
|
|
229
|
+
"passwordUpdateRequest",
|
|
230
|
+
'Required parameter "passwordUpdateRequest" was null or undefined when calling updatePassword().'
|
|
231
|
+
);
|
|
226
232
|
}
|
|
227
233
|
const queryParameters = {};
|
|
228
234
|
const headerParameters = {};
|
|
@@ -238,14 +244,14 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
238
244
|
}
|
|
239
245
|
}
|
|
240
246
|
if (this.configuration && this.configuration.apiKey) {
|
|
241
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
247
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
242
248
|
}
|
|
243
249
|
const response = await this.request({
|
|
244
250
|
path: `/auth/profile/password`,
|
|
245
251
|
method: "PATCH",
|
|
246
252
|
headers: headerParameters,
|
|
247
253
|
query: queryParameters,
|
|
248
|
-
body: PasswordUpdateRequestToJSON(requestParameters
|
|
254
|
+
body: PasswordUpdateRequestToJSON(requestParameters["passwordUpdateRequest"])
|
|
249
255
|
}, initOverrides);
|
|
250
256
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
251
257
|
}
|
|
@@ -275,7 +281,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
275
281
|
}
|
|
276
282
|
}
|
|
277
283
|
if (this.configuration && this.configuration.apiKey) {
|
|
278
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
284
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
279
285
|
}
|
|
280
286
|
const response = await this.request({
|
|
281
287
|
path: `/auth/profile`,
|