@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.0
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 +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
- package/dist/runtime/api/apis/AdminApi.js +39 -27
- package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
- package/dist/runtime/api/apis/ApplicationApi.js +17 -11
- package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
- package/dist/runtime/api/apis/AuthApi.js +27 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
- package/dist/runtime/api/apis/BucketApi.js +11 -9
- package/dist/runtime/api/apis/CollectionApi.d.ts +107 -4
- package/dist/runtime/api/apis/CollectionApi.js +58 -38
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
- package/dist/runtime/api/apis/DatabaseApi.js +12 -10
- package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
- package/dist/runtime/api/apis/DocumentApi.js +54 -40
- package/dist/runtime/api/apis/FileApi.d.ts +78 -4
- package/dist/runtime/api/apis/FileApi.js +34 -24
- package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
- package/dist/runtime/api/apis/IndexApi.js +46 -34
- package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
- package/dist/runtime/api/apis/JobsApi.js +19 -15
- package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +2 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +19 -19
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexInfo.md +3 -3
- package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
- package/dist/runtime/api/docs/IndexUsage.md +1 -1
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
- package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
- package/dist/runtime/api/docs/MongoIndex.md +3 -3
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
- package/dist/runtime/api/docs/UpdateRequest.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
- package/dist/runtime/api/models/CollectionStatus.js +3 -2
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
- package/dist/runtime/api/models/DatabaseInfo.js +3 -2
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
- package/dist/runtime/api/models/FileInformation.d.ts +2 -14
- package/dist/runtime/api/models/FileInformation.js +4 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -11
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
- package/dist/runtime/api/models/IndexKey.d.ts +1 -5
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
- package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
- package/dist/runtime/api/models/IndexUsage.js +3 -2
- package/dist/runtime/api/models/InsertError.d.ts +1 -7
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
- package/dist/runtime/api/models/JobConfig.d.ts +1 -13
- package/dist/runtime/api/models/JobInformation.d.ts +1 -19
- package/dist/runtime/api/models/JobInformation.js +5 -4
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
- package/dist/runtime/api/models/Login.d.ts +1 -5
- package/dist/runtime/api/models/LoginResult.d.ts +1 -7
- package/dist/runtime/api/models/LoginResult.js +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
- package/dist/runtime/api/models/MongoIndex.js +3 -2
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
- package/dist/runtime/api/models/Role.d.ts +1 -7
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
- package/dist/runtime/api/models/UserInformation.d.ts +1 -9
- package/dist/runtime/api/models/UserProfile.d.ts +1 -11
- package/dist/runtime/api/models/Version.d.ts +1 -7
- package/dist/runtime/api/models/Version.js +3 -2
- package/dist/runtime/api/runtime.d.ts +35 -2
- package/dist/runtime/api/runtime.js +84 -4
- package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
CountResponseFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
CountResponseFromJSON
|
|
4
|
+
} from "../models/CountResponse.js";
|
|
5
|
+
import {
|
|
6
|
+
DeleteResponseFromJSON
|
|
7
|
+
} from "../models/DeleteResponse.js";
|
|
8
|
+
import {
|
|
9
|
+
ImportResponseFromJSON
|
|
10
|
+
} from "../models/ImportResponse.js";
|
|
11
|
+
import {
|
|
12
|
+
InsertResponseFromJSON
|
|
13
|
+
} from "../models/InsertResponse.js";
|
|
14
|
+
import {
|
|
15
|
+
MongoFindRequestToJSON
|
|
16
|
+
} from "../models/MongoFindRequest.js";
|
|
17
|
+
import {
|
|
18
|
+
SearchRequestToJSON
|
|
19
|
+
} from "../models/SearchRequest.js";
|
|
20
|
+
import {
|
|
21
|
+
UpdateRequestToJSON
|
|
22
|
+
} from "../models/UpdateRequest.js";
|
|
23
|
+
import {
|
|
10
24
|
UpdateResponseFromJSON
|
|
11
|
-
} from "../models/
|
|
25
|
+
} from "../models/UpdateResponse.js";
|
|
12
26
|
export class DocumentApi extends runtime.BaseAPI {
|
|
13
27
|
/**
|
|
14
28
|
* Creates request options for _delete without sending the request
|
|
@@ -29,7 +43,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
29
43
|
const queryParameters = {};
|
|
30
44
|
const headerParameters = {};
|
|
31
45
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
32
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
46
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
33
47
|
}
|
|
34
48
|
if (this.configuration && this.configuration.accessToken) {
|
|
35
49
|
const token = this.configuration.accessToken;
|
|
@@ -42,8 +56,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
42
56
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
43
57
|
}
|
|
44
58
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
45
|
-
urlPath = urlPath.replace(
|
|
46
|
-
urlPath = urlPath.replace(
|
|
59
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
60
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
47
61
|
return {
|
|
48
62
|
path: urlPath,
|
|
49
63
|
method: "DELETE",
|
|
@@ -84,7 +98,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
84
98
|
}
|
|
85
99
|
const headerParameters = {};
|
|
86
100
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
87
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
101
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
88
102
|
}
|
|
89
103
|
if (this.configuration && this.configuration.accessToken) {
|
|
90
104
|
const token = this.configuration.accessToken;
|
|
@@ -97,7 +111,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
97
111
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
98
112
|
}
|
|
99
113
|
let urlPath = `/mongodb/collections/{collectionName}/documents/count`;
|
|
100
|
-
urlPath = urlPath.replace(
|
|
114
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
101
115
|
return {
|
|
102
116
|
path: urlPath,
|
|
103
117
|
method: "GET",
|
|
@@ -148,7 +162,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
148
162
|
const headerParameters = {};
|
|
149
163
|
headerParameters["Content-Type"] = "application/json";
|
|
150
164
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
151
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
165
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
152
166
|
}
|
|
153
167
|
if (this.configuration && this.configuration.accessToken) {
|
|
154
168
|
const token = this.configuration.accessToken;
|
|
@@ -161,7 +175,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
161
175
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
162
176
|
}
|
|
163
177
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/delete`;
|
|
164
|
-
urlPath = urlPath.replace(
|
|
178
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
165
179
|
return {
|
|
166
180
|
path: urlPath,
|
|
167
181
|
method: "DELETE",
|
|
@@ -218,7 +232,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
218
232
|
}
|
|
219
233
|
const headerParameters = {};
|
|
220
234
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
221
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
235
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
222
236
|
}
|
|
223
237
|
if (this.configuration && this.configuration.accessToken) {
|
|
224
238
|
const token = this.configuration.accessToken;
|
|
@@ -231,7 +245,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
231
245
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
232
246
|
}
|
|
233
247
|
let urlPath = `/mongodb/collections/{collectionName}/documents/export`;
|
|
234
|
-
urlPath = urlPath.replace(
|
|
248
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
235
249
|
return {
|
|
236
250
|
path: urlPath,
|
|
237
251
|
method: "GET",
|
|
@@ -289,7 +303,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
289
303
|
const headerParameters = {};
|
|
290
304
|
headerParameters["Content-Type"] = "application/json";
|
|
291
305
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
292
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
306
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
293
307
|
}
|
|
294
308
|
if (this.configuration && this.configuration.accessToken) {
|
|
295
309
|
const token = this.configuration.accessToken;
|
|
@@ -302,7 +316,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
302
316
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
303
317
|
}
|
|
304
318
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
305
|
-
urlPath = urlPath.replace(
|
|
319
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
306
320
|
return {
|
|
307
321
|
path: urlPath,
|
|
308
322
|
method: "POST",
|
|
@@ -350,7 +364,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
350
364
|
}
|
|
351
365
|
const headerParameters = {};
|
|
352
366
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
353
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
367
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
354
368
|
}
|
|
355
369
|
if (this.configuration && this.configuration.accessToken) {
|
|
356
370
|
const token = this.configuration.accessToken;
|
|
@@ -363,8 +377,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
363
377
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
364
378
|
}
|
|
365
379
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
367
|
-
urlPath = urlPath.replace(
|
|
380
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
381
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
368
382
|
return {
|
|
369
383
|
path: urlPath,
|
|
370
384
|
method: "GET",
|
|
@@ -409,7 +423,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
409
423
|
const headerParameters = {};
|
|
410
424
|
headerParameters["Content-Type"] = "text/plain";
|
|
411
425
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
412
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
426
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
413
427
|
}
|
|
414
428
|
if (this.configuration && this.configuration.accessToken) {
|
|
415
429
|
const token = this.configuration.accessToken;
|
|
@@ -422,7 +436,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
422
436
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
423
437
|
}
|
|
424
438
|
let urlPath = `/mongodb/collections/{collectionName}/documents/import`;
|
|
425
|
-
urlPath = urlPath.replace(
|
|
439
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
426
440
|
return {
|
|
427
441
|
path: urlPath,
|
|
428
442
|
method: "POST",
|
|
@@ -468,7 +482,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
468
482
|
const headerParameters = {};
|
|
469
483
|
headerParameters["Content-Type"] = "application/json";
|
|
470
484
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
471
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
485
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
472
486
|
}
|
|
473
487
|
if (this.configuration && this.configuration.accessToken) {
|
|
474
488
|
const token = this.configuration.accessToken;
|
|
@@ -481,7 +495,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
481
495
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
482
496
|
}
|
|
483
497
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
484
|
-
urlPath = urlPath.replace(
|
|
498
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
485
499
|
return {
|
|
486
500
|
path: urlPath,
|
|
487
501
|
method: "PUT",
|
|
@@ -524,7 +538,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
524
538
|
const headerParameters = {};
|
|
525
539
|
headerParameters["Content-Type"] = "application/json";
|
|
526
540
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
527
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
541
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
528
542
|
}
|
|
529
543
|
if (this.configuration && this.configuration.accessToken) {
|
|
530
544
|
const token = this.configuration.accessToken;
|
|
@@ -537,7 +551,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
537
551
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
538
552
|
}
|
|
539
553
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/insert`;
|
|
540
|
-
urlPath = urlPath.replace(
|
|
554
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
541
555
|
return {
|
|
542
556
|
path: urlPath,
|
|
543
557
|
method: "PUT",
|
|
@@ -594,7 +608,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
594
608
|
}
|
|
595
609
|
const headerParameters = {};
|
|
596
610
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
597
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
611
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
598
612
|
}
|
|
599
613
|
if (this.configuration && this.configuration.accessToken) {
|
|
600
614
|
const token = this.configuration.accessToken;
|
|
@@ -607,7 +621,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
607
621
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
608
622
|
}
|
|
609
623
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
610
|
-
urlPath = urlPath.replace(
|
|
624
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
611
625
|
return {
|
|
612
626
|
path: urlPath,
|
|
613
627
|
method: "GET",
|
|
@@ -661,7 +675,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
661
675
|
const headerParameters = {};
|
|
662
676
|
headerParameters["Content-Type"] = "application/json";
|
|
663
677
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
664
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
678
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
665
679
|
}
|
|
666
680
|
if (this.configuration && this.configuration.accessToken) {
|
|
667
681
|
const token = this.configuration.accessToken;
|
|
@@ -674,7 +688,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
674
688
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
675
689
|
}
|
|
676
690
|
let urlPath = `/mongodb/collections/{collectionName}/documents/search`;
|
|
677
|
-
urlPath = urlPath.replace(
|
|
691
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
678
692
|
return {
|
|
679
693
|
path: urlPath,
|
|
680
694
|
method: "POST",
|
|
@@ -726,7 +740,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
726
740
|
const headerParameters = {};
|
|
727
741
|
headerParameters["Content-Type"] = "application/json";
|
|
728
742
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
729
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
743
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
730
744
|
}
|
|
731
745
|
if (this.configuration && this.configuration.accessToken) {
|
|
732
746
|
const token = this.configuration.accessToken;
|
|
@@ -739,8 +753,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
739
753
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
740
754
|
}
|
|
741
755
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
742
|
-
urlPath = urlPath.replace(
|
|
743
|
-
urlPath = urlPath.replace(
|
|
756
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
757
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
744
758
|
return {
|
|
745
759
|
path: urlPath,
|
|
746
760
|
method: "PATCH",
|
|
@@ -792,7 +806,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
792
806
|
const headerParameters = {};
|
|
793
807
|
headerParameters["Content-Type"] = "application/json";
|
|
794
808
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
795
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
809
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
796
810
|
}
|
|
797
811
|
if (this.configuration && this.configuration.accessToken) {
|
|
798
812
|
const token = this.configuration.accessToken;
|
|
@@ -805,8 +819,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
805
819
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
806
820
|
}
|
|
807
821
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}/partial`;
|
|
808
|
-
urlPath = urlPath.replace(
|
|
809
|
-
urlPath = urlPath.replace(
|
|
822
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
823
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
810
824
|
return {
|
|
811
825
|
path: urlPath,
|
|
812
826
|
method: "PATCH",
|
|
@@ -858,7 +872,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
858
872
|
const headerParameters = {};
|
|
859
873
|
headerParameters["Content-Type"] = "application/json";
|
|
860
874
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
861
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
875
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
862
876
|
}
|
|
863
877
|
if (this.configuration && this.configuration.accessToken) {
|
|
864
878
|
const token = this.configuration.accessToken;
|
|
@@ -871,7 +885,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
871
885
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
872
886
|
}
|
|
873
887
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/update`;
|
|
874
|
-
urlPath = urlPath.replace(
|
|
888
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
875
889
|
return {
|
|
876
890
|
path: urlPath,
|
|
877
891
|
method: "PATCH",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
5
|
+
* The version of the OpenAPI document: 1.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,42 +10,116 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type DeleteResponse } from '../models/DeleteResponse.js';
|
|
14
|
+
import { type FileInformation } from '../models/FileInformation.js';
|
|
15
|
+
import { type InsertResponse } from '../models/InsertResponse.js';
|
|
16
|
+
import { type MongoFindRequest } from '../models/MongoFindRequest.js';
|
|
17
|
+
import { type UpdateFileInformationRequest } from '../models/UpdateFileInformationRequest.js';
|
|
18
|
+
import { type UpdateResponse } from '../models/UpdateResponse.js';
|
|
14
19
|
export interface DeleteFileRequest {
|
|
20
|
+
/**
|
|
21
|
+
* The name of your MongoDb Collection
|
|
22
|
+
*/
|
|
15
23
|
bucketName: string;
|
|
24
|
+
/**
|
|
25
|
+
* fileId to delete
|
|
26
|
+
*/
|
|
16
27
|
fileId: string;
|
|
17
28
|
}
|
|
18
29
|
export interface FindFilesRequest {
|
|
30
|
+
/**
|
|
31
|
+
* The name of your MongoDb Collection
|
|
32
|
+
*/
|
|
19
33
|
bucketName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
20
37
|
mongoFindRequest: MongoFindRequest;
|
|
38
|
+
/**
|
|
39
|
+
* Count elements per page
|
|
40
|
+
*/
|
|
21
41
|
rowsPerPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Requested page of the ResultSets
|
|
44
|
+
*/
|
|
22
45
|
page?: number;
|
|
23
46
|
}
|
|
24
47
|
export interface GetFileRequest {
|
|
48
|
+
/**
|
|
49
|
+
* The name of your MongoDb Collection
|
|
50
|
+
*/
|
|
25
51
|
bucketName: string;
|
|
52
|
+
/**
|
|
53
|
+
* FileId to read
|
|
54
|
+
*/
|
|
26
55
|
fileId: string;
|
|
27
56
|
}
|
|
28
57
|
export interface GetFileInformationRequest {
|
|
58
|
+
/**
|
|
59
|
+
* The name of your MongoDb Collection
|
|
60
|
+
*/
|
|
29
61
|
bucketName: string;
|
|
62
|
+
/**
|
|
63
|
+
* fileId to read
|
|
64
|
+
*/
|
|
30
65
|
fileId: string;
|
|
31
66
|
}
|
|
32
67
|
export interface InsertFileRequest {
|
|
68
|
+
/**
|
|
69
|
+
* The name of your MongoDb Collection
|
|
70
|
+
*/
|
|
33
71
|
bucketName: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
34
75
|
file: Blob;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
35
79
|
metaData: string;
|
|
80
|
+
/**
|
|
81
|
+
* override filename of uploaded file
|
|
82
|
+
*/
|
|
36
83
|
fileName?: string;
|
|
37
84
|
}
|
|
38
85
|
export interface ListFilesRequest {
|
|
86
|
+
/**
|
|
87
|
+
* The name of your MongoDb Collection
|
|
88
|
+
*/
|
|
39
89
|
bucketName: string;
|
|
90
|
+
/**
|
|
91
|
+
* MongoDB Filter Query by Default all filter
|
|
92
|
+
*/
|
|
40
93
|
filter?: string;
|
|
94
|
+
/**
|
|
95
|
+
* MongoDB sorting
|
|
96
|
+
*/
|
|
41
97
|
sort?: string;
|
|
98
|
+
/**
|
|
99
|
+
* MongoDB projection
|
|
100
|
+
*/
|
|
42
101
|
projection?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Count elements per page
|
|
104
|
+
*/
|
|
43
105
|
rowsPerPage?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Requested page of the ResultSets
|
|
108
|
+
*/
|
|
44
109
|
page?: number;
|
|
45
110
|
}
|
|
46
111
|
export interface UpdateFileInformationOperationRequest {
|
|
112
|
+
/**
|
|
113
|
+
* The name of your MongoDb Collection
|
|
114
|
+
*/
|
|
47
115
|
bucketName: string;
|
|
116
|
+
/**
|
|
117
|
+
* fileId to update
|
|
118
|
+
*/
|
|
48
119
|
fileId: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
49
123
|
updateFileInformationRequest: UpdateFileInformationRequest;
|
|
50
124
|
}
|
|
51
125
|
/**
|
|
@@ -88,12 +162,12 @@ export declare class FileApi extends runtime.BaseAPI {
|
|
|
88
162
|
* Get File from given Bucket
|
|
89
163
|
* File from Bucket
|
|
90
164
|
*/
|
|
91
|
-
getFileRaw(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
getFileRaw(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
92
166
|
/**
|
|
93
167
|
* Get File from given Bucket
|
|
94
168
|
* File from Bucket
|
|
95
169
|
*/
|
|
96
|
-
getFile(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
170
|
+
getFile(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
97
171
|
/**
|
|
98
172
|
* Creates request options for getFileInformation without sending the request
|
|
99
173
|
*/
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
DeleteResponseFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
DeleteResponseFromJSON
|
|
4
|
+
} from "../models/DeleteResponse.js";
|
|
5
|
+
import {
|
|
6
|
+
FileInformationFromJSON
|
|
7
|
+
} from "../models/FileInformation.js";
|
|
8
|
+
import {
|
|
9
|
+
InsertResponseFromJSON
|
|
10
|
+
} from "../models/InsertResponse.js";
|
|
11
|
+
import {
|
|
12
|
+
MongoFindRequestToJSON
|
|
13
|
+
} from "../models/MongoFindRequest.js";
|
|
14
|
+
import {
|
|
15
|
+
UpdateFileInformationRequestToJSON
|
|
16
|
+
} from "../models/UpdateFileInformationRequest.js";
|
|
17
|
+
import {
|
|
8
18
|
UpdateResponseFromJSON
|
|
9
|
-
} from "../models/
|
|
19
|
+
} from "../models/UpdateResponse.js";
|
|
10
20
|
export class FileApi extends runtime.BaseAPI {
|
|
11
21
|
/**
|
|
12
22
|
* Creates request options for deleteFile without sending the request
|
|
@@ -27,7 +37,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
27
37
|
const queryParameters = {};
|
|
28
38
|
const headerParameters = {};
|
|
29
39
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
30
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
31
41
|
}
|
|
32
42
|
if (this.configuration && this.configuration.accessToken) {
|
|
33
43
|
const token = this.configuration.accessToken;
|
|
@@ -40,8 +50,8 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
40
50
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
41
51
|
}
|
|
42
52
|
let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
44
|
-
urlPath = urlPath.replace(
|
|
53
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
54
|
+
urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
|
|
45
55
|
return {
|
|
46
56
|
path: urlPath,
|
|
47
57
|
method: "DELETE",
|
|
@@ -92,7 +102,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
92
102
|
const headerParameters = {};
|
|
93
103
|
headerParameters["Content-Type"] = "application/json";
|
|
94
104
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
95
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
105
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
96
106
|
}
|
|
97
107
|
if (this.configuration && this.configuration.accessToken) {
|
|
98
108
|
const token = this.configuration.accessToken;
|
|
@@ -105,7 +115,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
105
115
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
106
116
|
}
|
|
107
117
|
let urlPath = `/mongodb/buckets/{bucketName}/files`;
|
|
108
|
-
urlPath = urlPath.replace(
|
|
118
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
109
119
|
return {
|
|
110
120
|
path: urlPath,
|
|
111
121
|
method: "POST",
|
|
@@ -150,7 +160,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
150
160
|
const queryParameters = {};
|
|
151
161
|
const headerParameters = {};
|
|
152
162
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
153
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
163
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
154
164
|
}
|
|
155
165
|
if (this.configuration && this.configuration.accessToken) {
|
|
156
166
|
const token = this.configuration.accessToken;
|
|
@@ -163,8 +173,8 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
163
173
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
164
174
|
}
|
|
165
175
|
let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}/file`;
|
|
166
|
-
urlPath = urlPath.replace(
|
|
167
|
-
urlPath = urlPath.replace(
|
|
176
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
177
|
+
urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
|
|
168
178
|
return {
|
|
169
179
|
path: urlPath,
|
|
170
180
|
method: "GET",
|
|
@@ -208,7 +218,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
208
218
|
const queryParameters = {};
|
|
209
219
|
const headerParameters = {};
|
|
210
220
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
211
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
212
222
|
}
|
|
213
223
|
if (this.configuration && this.configuration.accessToken) {
|
|
214
224
|
const token = this.configuration.accessToken;
|
|
@@ -221,8 +231,8 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
221
231
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
222
232
|
}
|
|
223
233
|
let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
|
|
224
|
-
urlPath = urlPath.replace(
|
|
225
|
-
urlPath = urlPath.replace(
|
|
234
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
235
|
+
urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
|
|
226
236
|
return {
|
|
227
237
|
path: urlPath,
|
|
228
238
|
method: "GET",
|
|
@@ -275,7 +285,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
275
285
|
}
|
|
276
286
|
const headerParameters = {};
|
|
277
287
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
278
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
288
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
279
289
|
}
|
|
280
290
|
if (this.configuration && this.configuration.accessToken) {
|
|
281
291
|
const token = this.configuration.accessToken;
|
|
@@ -306,7 +316,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
306
316
|
formParams.append("metaData", requestParameters["metaData"]);
|
|
307
317
|
}
|
|
308
318
|
let urlPath = `/mongodb/buckets/{bucketName}/files`;
|
|
309
|
-
urlPath = urlPath.replace(
|
|
319
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
310
320
|
return {
|
|
311
321
|
path: urlPath,
|
|
312
322
|
method: "PUT",
|
|
@@ -360,7 +370,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
360
370
|
}
|
|
361
371
|
const headerParameters = {};
|
|
362
372
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
363
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
373
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
364
374
|
}
|
|
365
375
|
if (this.configuration && this.configuration.accessToken) {
|
|
366
376
|
const token = this.configuration.accessToken;
|
|
@@ -373,7 +383,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
373
383
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
374
384
|
}
|
|
375
385
|
let urlPath = `/mongodb/buckets/{bucketName}/files`;
|
|
376
|
-
urlPath = urlPath.replace(
|
|
386
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
377
387
|
return {
|
|
378
388
|
path: urlPath,
|
|
379
389
|
method: "GET",
|
|
@@ -424,7 +434,7 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
424
434
|
const headerParameters = {};
|
|
425
435
|
headerParameters["Content-Type"] = "application/json";
|
|
426
436
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
427
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
437
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
428
438
|
}
|
|
429
439
|
if (this.configuration && this.configuration.accessToken) {
|
|
430
440
|
const token = this.configuration.accessToken;
|
|
@@ -437,8 +447,8 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
437
447
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
438
448
|
}
|
|
439
449
|
let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
|
|
440
|
-
urlPath = urlPath.replace(
|
|
441
|
-
urlPath = urlPath.replace(
|
|
450
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
451
|
+
urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
|
|
442
452
|
return {
|
|
443
453
|
path: urlPath,
|
|
444
454
|
method: "PATCH",
|