@lasuillard/raindrop-client 0.8.2 → 0.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/README.md +1 -1
- package/dist/index.d.mts +79 -3169
- package/dist/index.d.ts +79 -3169
- package/dist/index.js +106 -135
- package/dist/index.mjs +106 -135
- package/package.json +11 -10
package/dist/index.mjs
CHANGED
|
@@ -103,7 +103,7 @@ var setBearerAuthToObject = async function(object, configuration) {
|
|
|
103
103
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
104
104
|
if (parameter == null) return;
|
|
105
105
|
if (typeof parameter === "object") {
|
|
106
|
-
if (Array.isArray(parameter)) {
|
|
106
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
107
107
|
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
108
108
|
} else {
|
|
109
109
|
Object.keys(parameter).forEach(
|
|
@@ -123,41 +123,18 @@ var setSearchParams = function(url, ...objects) {
|
|
|
123
123
|
setFlattenedQueryParams(searchParams, objects);
|
|
124
124
|
url.search = searchParams.toString();
|
|
125
125
|
};
|
|
126
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
127
|
+
if (value instanceof Set) {
|
|
128
|
+
return Array.from(value);
|
|
129
|
+
} else {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
};
|
|
126
133
|
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
127
134
|
const nonString = typeof value !== "string";
|
|
128
135
|
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
129
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ?
|
|
136
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
130
137
|
};
|
|
131
|
-
function convertMapsAndSetsToPlain(value) {
|
|
132
|
-
if (typeof Set === "undefined") return value;
|
|
133
|
-
if (typeof Map === "undefined") return value;
|
|
134
|
-
if (typeof value !== "object" || !value) {
|
|
135
|
-
return value;
|
|
136
|
-
}
|
|
137
|
-
if (value instanceof Set) {
|
|
138
|
-
return Array.from(value).map((item) => convertMapsAndSetsToPlain(item));
|
|
139
|
-
}
|
|
140
|
-
if (value instanceof Map) {
|
|
141
|
-
const entries = [];
|
|
142
|
-
value.forEach((value2, key) => {
|
|
143
|
-
entries.push([key, convertMapsAndSetsToPlain(value2)]);
|
|
144
|
-
});
|
|
145
|
-
return objectFromEntries(entries);
|
|
146
|
-
}
|
|
147
|
-
if (Array.isArray(value)) {
|
|
148
|
-
return value.map((it) => convertMapsAndSetsToPlain(it));
|
|
149
|
-
}
|
|
150
|
-
return objectFromEntries(objectEntries(value).map(([k, v]) => [k, convertMapsAndSetsToPlain(v)]));
|
|
151
|
-
}
|
|
152
|
-
function objectEntries(object) {
|
|
153
|
-
return Object.keys(object).map((key) => [key, object[key]]);
|
|
154
|
-
}
|
|
155
|
-
function objectFromEntries(entries) {
|
|
156
|
-
return [...entries].reduce((object, [key, val]) => {
|
|
157
|
-
object[key] = val;
|
|
158
|
-
return object;
|
|
159
|
-
}, {});
|
|
160
|
-
}
|
|
161
138
|
var toPathString = function(url) {
|
|
162
139
|
return url.pathname + url.search + url.hash;
|
|
163
140
|
};
|
|
@@ -237,6 +214,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
237
214
|
const localVarHeaderParameter = {};
|
|
238
215
|
const localVarQueryParameter = {};
|
|
239
216
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
217
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
240
218
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
219
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
220
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -309,7 +287,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
309
287
|
* @param {string} clientId
|
|
310
288
|
* @param {*} [options] Override http request option.
|
|
311
289
|
* @throws {RequiredError}
|
|
312
|
-
* @memberof AuthenticationApi
|
|
313
290
|
*/
|
|
314
291
|
authorize(redirectUri, clientId, options) {
|
|
315
292
|
return AuthenticationApiFp(this.configuration).authorize(redirectUri, clientId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -319,7 +296,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
319
296
|
* @param {GetOrRefreshTokenRequest} [getOrRefreshTokenRequest]
|
|
320
297
|
* @param {*} [options] Override http request option.
|
|
321
298
|
* @throws {RequiredError}
|
|
322
|
-
* @memberof AuthenticationApi
|
|
323
299
|
*/
|
|
324
300
|
getOrRefreshToken(getOrRefreshTokenRequest, options) {
|
|
325
301
|
return AuthenticationApiFp(this.configuration).getOrRefreshToken(getOrRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -335,7 +311,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
335
311
|
*/
|
|
336
312
|
acceptInvitation: async (id, options = {}) => {
|
|
337
313
|
assertParamExists("acceptInvitation", "id", id);
|
|
338
|
-
const localVarPath = `/rest/v1/collection/{id}/join`.replace(
|
|
314
|
+
const localVarPath = `/rest/v1/collection/{id}/join`.replace("{id}", encodeURIComponent(String(id)));
|
|
339
315
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
340
316
|
let baseOptions;
|
|
341
317
|
if (configuration) {
|
|
@@ -345,6 +321,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
345
321
|
const localVarHeaderParameter = {};
|
|
346
322
|
const localVarQueryParameter = {};
|
|
347
323
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
324
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
348
325
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
349
326
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
327
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -364,7 +341,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
364
341
|
changeCollaboratorAccessLevel: async (userId, id, changeCollaboratorAccessLevelRequest, options = {}) => {
|
|
365
342
|
assertParamExists("changeCollaboratorAccessLevel", "userId", userId);
|
|
366
343
|
assertParamExists("changeCollaboratorAccessLevel", "id", id);
|
|
367
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace(
|
|
344
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace("{userId}", encodeURIComponent(String(userId))).replace("{id}", encodeURIComponent(String(id)));
|
|
368
345
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
369
346
|
let baseOptions;
|
|
370
347
|
if (configuration) {
|
|
@@ -402,6 +379,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
402
379
|
const localVarQueryParameter = {};
|
|
403
380
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
404
381
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
382
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
405
383
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
384
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
385
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -421,7 +399,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
421
399
|
deleteCollaborator: async (userId, id, options = {}) => {
|
|
422
400
|
assertParamExists("deleteCollaborator", "userId", userId);
|
|
423
401
|
assertParamExists("deleteCollaborator", "id", id);
|
|
424
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace(
|
|
402
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace("{userId}", encodeURIComponent(String(userId))).replace("{id}", encodeURIComponent(String(id)));
|
|
425
403
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
426
404
|
let baseOptions;
|
|
427
405
|
if (configuration) {
|
|
@@ -431,6 +409,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
431
409
|
const localVarHeaderParameter = {};
|
|
432
410
|
const localVarQueryParameter = {};
|
|
433
411
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
412
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
434
413
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
435
414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
436
415
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -455,6 +434,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
455
434
|
const localVarHeaderParameter = {};
|
|
456
435
|
const localVarQueryParameter = {};
|
|
457
436
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
437
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
458
438
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
459
439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
460
440
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -479,6 +459,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
479
459
|
const localVarHeaderParameter = {};
|
|
480
460
|
const localVarQueryParameter = {};
|
|
481
461
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
462
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
482
463
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
483
464
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
484
465
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -495,7 +476,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
495
476
|
*/
|
|
496
477
|
getCollaborators: async (id, options = {}) => {
|
|
497
478
|
assertParamExists("getCollaborators", "id", id);
|
|
498
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
479
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
499
480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
500
481
|
let baseOptions;
|
|
501
482
|
if (configuration) {
|
|
@@ -521,7 +502,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
521
502
|
*/
|
|
522
503
|
getCollection: async (id, options = {}) => {
|
|
523
504
|
assertParamExists("getCollection", "id", id);
|
|
524
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
505
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
525
506
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
526
507
|
let baseOptions;
|
|
527
508
|
if (configuration) {
|
|
@@ -531,6 +512,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
531
512
|
const localVarHeaderParameter = {};
|
|
532
513
|
const localVarQueryParameter = {};
|
|
533
514
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
515
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
534
516
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
535
517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
518
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -555,6 +537,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
555
537
|
const localVarHeaderParameter = {};
|
|
556
538
|
const localVarQueryParameter = {};
|
|
557
539
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
540
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
558
541
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
559
542
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
543
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -579,6 +562,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
579
562
|
const localVarHeaderParameter = {};
|
|
580
563
|
const localVarQueryParameter = {};
|
|
581
564
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
565
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
582
566
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
567
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
568
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -603,6 +587,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
603
587
|
const localVarHeaderParameter = {};
|
|
604
588
|
const localVarQueryParameter = {};
|
|
605
589
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
590
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
606
591
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
607
592
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
608
593
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -629,6 +614,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
629
614
|
const localVarQueryParameter = {};
|
|
630
615
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
631
616
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
617
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
632
618
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
633
619
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
634
620
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -654,6 +640,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
654
640
|
const localVarHeaderParameter = {};
|
|
655
641
|
const localVarQueryParameter = {};
|
|
656
642
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
643
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
657
644
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
658
645
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
659
646
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -670,7 +657,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
670
657
|
*/
|
|
671
658
|
removeCollection: async (id, options = {}) => {
|
|
672
659
|
assertParamExists("removeCollection", "id", id);
|
|
673
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
660
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
674
661
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
675
662
|
let baseOptions;
|
|
676
663
|
if (configuration) {
|
|
@@ -680,6 +667,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
680
667
|
const localVarHeaderParameter = {};
|
|
681
668
|
const localVarQueryParameter = {};
|
|
682
669
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
670
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
683
671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
684
672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
685
673
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -706,6 +694,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
706
694
|
const localVarQueryParameter = {};
|
|
707
695
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
708
696
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
697
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
709
698
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
710
699
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
711
700
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -733,6 +722,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
733
722
|
const localVarQueryParameter = {};
|
|
734
723
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
735
724
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
725
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
736
726
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
737
727
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
738
728
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -750,7 +740,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
750
740
|
*/
|
|
751
741
|
searchCovers: async (text, options = {}) => {
|
|
752
742
|
assertParamExists("searchCovers", "text", text);
|
|
753
|
-
const localVarPath = `/rest/v1/collections/covers/{text}`.replace(
|
|
743
|
+
const localVarPath = `/rest/v1/collections/covers/{text}`.replace("{text}", encodeURIComponent(String(text)));
|
|
754
744
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
755
745
|
let baseOptions;
|
|
756
746
|
if (configuration) {
|
|
@@ -760,6 +750,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
760
750
|
const localVarHeaderParameter = {};
|
|
761
751
|
const localVarQueryParameter = {};
|
|
762
752
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
753
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
763
754
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
764
755
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
765
756
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -777,7 +768,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
777
768
|
*/
|
|
778
769
|
shareCollection: async (id, shareCollectionRequest, options = {}) => {
|
|
779
770
|
assertParamExists("shareCollection", "id", id);
|
|
780
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
771
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
781
772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
782
773
|
let baseOptions;
|
|
783
774
|
if (configuration) {
|
|
@@ -788,6 +779,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
788
779
|
const localVarQueryParameter = {};
|
|
789
780
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
790
781
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
782
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
791
783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
792
784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
793
785
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -805,7 +797,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
805
797
|
*/
|
|
806
798
|
unshareOrLeaveCollection: async (id, options = {}) => {
|
|
807
799
|
assertParamExists("unshareOrLeaveCollection", "id", id);
|
|
808
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
800
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
809
801
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
810
802
|
let baseOptions;
|
|
811
803
|
if (configuration) {
|
|
@@ -815,6 +807,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
815
807
|
const localVarHeaderParameter = {};
|
|
816
808
|
const localVarQueryParameter = {};
|
|
817
809
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
810
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
818
811
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
819
812
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
820
813
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -832,7 +825,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
832
825
|
*/
|
|
833
826
|
updateCollection: async (id, updateCollectionRequest, options = {}) => {
|
|
834
827
|
assertParamExists("updateCollection", "id", id);
|
|
835
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
828
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
836
829
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
837
830
|
let baseOptions;
|
|
838
831
|
if (configuration) {
|
|
@@ -843,6 +836,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
843
836
|
const localVarQueryParameter = {};
|
|
844
837
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
845
838
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
839
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
846
840
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
847
841
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
848
842
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -861,7 +855,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
861
855
|
*/
|
|
862
856
|
uploadCollectionCover: async (id, cover, options = {}) => {
|
|
863
857
|
assertParamExists("uploadCollectionCover", "id", id);
|
|
864
|
-
const localVarPath = `/rest/v1/collection/{id}/cover`.replace(
|
|
858
|
+
const localVarPath = `/rest/v1/collection/{id}/cover`.replace("{id}", encodeURIComponent(String(id)));
|
|
865
859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
866
860
|
let baseOptions;
|
|
867
861
|
if (configuration) {
|
|
@@ -876,6 +870,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
876
870
|
localVarFormParams.append("cover", cover);
|
|
877
871
|
}
|
|
878
872
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
873
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
879
874
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
880
875
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
881
876
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1344,7 +1339,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1344
1339
|
* @param {number} id
|
|
1345
1340
|
* @param {*} [options] Override http request option.
|
|
1346
1341
|
* @throws {RequiredError}
|
|
1347
|
-
* @memberof CollectionApi
|
|
1348
1342
|
*/
|
|
1349
1343
|
acceptInvitation(id, options) {
|
|
1350
1344
|
return CollectionApiFp(this.configuration).acceptInvitation(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1356,7 +1350,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1356
1350
|
* @param {ChangeCollaboratorAccessLevelRequest} [changeCollaboratorAccessLevelRequest]
|
|
1357
1351
|
* @param {*} [options] Override http request option.
|
|
1358
1352
|
* @throws {RequiredError}
|
|
1359
|
-
* @memberof CollectionApi
|
|
1360
1353
|
*/
|
|
1361
1354
|
changeCollaboratorAccessLevel(userId, id, changeCollaboratorAccessLevelRequest, options) {
|
|
1362
1355
|
return CollectionApiFp(this.configuration).changeCollaboratorAccessLevel(userId, id, changeCollaboratorAccessLevelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1366,7 +1359,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1366
1359
|
* @param {CreateCollectionRequest} [createCollectionRequest]
|
|
1367
1360
|
* @param {*} [options] Override http request option.
|
|
1368
1361
|
* @throws {RequiredError}
|
|
1369
|
-
* @memberof CollectionApi
|
|
1370
1362
|
*/
|
|
1371
1363
|
createCollection(createCollectionRequest, options) {
|
|
1372
1364
|
return CollectionApiFp(this.configuration).createCollection(createCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1377,7 +1369,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1377
1369
|
* @param {number} id
|
|
1378
1370
|
* @param {*} [options] Override http request option.
|
|
1379
1371
|
* @throws {RequiredError}
|
|
1380
|
-
* @memberof CollectionApi
|
|
1381
1372
|
*/
|
|
1382
1373
|
deleteCollaborator(userId, id, options) {
|
|
1383
1374
|
return CollectionApiFp(this.configuration).deleteCollaborator(userId, id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1386,7 +1377,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1386
1377
|
*
|
|
1387
1378
|
* @param {*} [options] Override http request option.
|
|
1388
1379
|
* @throws {RequiredError}
|
|
1389
|
-
* @memberof CollectionApi
|
|
1390
1380
|
*/
|
|
1391
1381
|
emptyTrash(options) {
|
|
1392
1382
|
return CollectionApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1395,7 +1385,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1395
1385
|
*
|
|
1396
1386
|
* @param {*} [options] Override http request option.
|
|
1397
1387
|
* @throws {RequiredError}
|
|
1398
|
-
* @memberof CollectionApi
|
|
1399
1388
|
*/
|
|
1400
1389
|
getChildCollections(options) {
|
|
1401
1390
|
return CollectionApiFp(this.configuration).getChildCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1405,7 +1394,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1405
1394
|
* @param {number} id
|
|
1406
1395
|
* @param {*} [options] Override http request option.
|
|
1407
1396
|
* @throws {RequiredError}
|
|
1408
|
-
* @memberof CollectionApi
|
|
1409
1397
|
*/
|
|
1410
1398
|
getCollaborators(id, options) {
|
|
1411
1399
|
return CollectionApiFp(this.configuration).getCollaborators(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1415,7 +1403,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1415
1403
|
* @param {number} id
|
|
1416
1404
|
* @param {*} [options] Override http request option.
|
|
1417
1405
|
* @throws {RequiredError}
|
|
1418
|
-
* @memberof CollectionApi
|
|
1419
1406
|
*/
|
|
1420
1407
|
getCollection(id, options) {
|
|
1421
1408
|
return CollectionApiFp(this.configuration).getCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1424,7 +1411,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1424
1411
|
*
|
|
1425
1412
|
* @param {*} [options] Override http request option.
|
|
1426
1413
|
* @throws {RequiredError}
|
|
1427
|
-
* @memberof CollectionApi
|
|
1428
1414
|
*/
|
|
1429
1415
|
getFeaturedCovers(options) {
|
|
1430
1416
|
return CollectionApiFp(this.configuration).getFeaturedCovers(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1433,7 +1419,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1433
1419
|
*
|
|
1434
1420
|
* @param {*} [options] Override http request option.
|
|
1435
1421
|
* @throws {RequiredError}
|
|
1436
|
-
* @memberof CollectionApi
|
|
1437
1422
|
*/
|
|
1438
1423
|
getRootCollections(options) {
|
|
1439
1424
|
return CollectionApiFp(this.configuration).getRootCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1442,7 +1427,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1442
1427
|
*
|
|
1443
1428
|
* @param {*} [options] Override http request option.
|
|
1444
1429
|
* @throws {RequiredError}
|
|
1445
|
-
* @memberof CollectionApi
|
|
1446
1430
|
*/
|
|
1447
1431
|
getSystemCollectionStats(options) {
|
|
1448
1432
|
return CollectionApiFp(this.configuration).getSystemCollectionStats(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1452,7 +1436,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1452
1436
|
* @param {MergeCollectionsRequest} [mergeCollectionsRequest]
|
|
1453
1437
|
* @param {*} [options] Override http request option.
|
|
1454
1438
|
* @throws {RequiredError}
|
|
1455
|
-
* @memberof CollectionApi
|
|
1456
1439
|
*/
|
|
1457
1440
|
mergeCollections(mergeCollectionsRequest, options) {
|
|
1458
1441
|
return CollectionApiFp(this.configuration).mergeCollections(mergeCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1461,7 +1444,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1461
1444
|
*
|
|
1462
1445
|
* @param {*} [options] Override http request option.
|
|
1463
1446
|
* @throws {RequiredError}
|
|
1464
|
-
* @memberof CollectionApi
|
|
1465
1447
|
*/
|
|
1466
1448
|
removeAllEmptyCollections(options) {
|
|
1467
1449
|
return CollectionApiFp(this.configuration).removeAllEmptyCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1471,7 +1453,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1471
1453
|
* @param {number} id
|
|
1472
1454
|
* @param {*} [options] Override http request option.
|
|
1473
1455
|
* @throws {RequiredError}
|
|
1474
|
-
* @memberof CollectionApi
|
|
1475
1456
|
*/
|
|
1476
1457
|
removeCollection(id, options) {
|
|
1477
1458
|
return CollectionApiFp(this.configuration).removeCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1481,7 +1462,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1481
1462
|
* @param {RemoveCollectionsRequest} [removeCollectionsRequest]
|
|
1482
1463
|
* @param {*} [options] Override http request option.
|
|
1483
1464
|
* @throws {RequiredError}
|
|
1484
|
-
* @memberof CollectionApi
|
|
1485
1465
|
*/
|
|
1486
1466
|
removeCollections(removeCollectionsRequest, options) {
|
|
1487
1467
|
return CollectionApiFp(this.configuration).removeCollections(removeCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1491,7 +1471,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1491
1471
|
* @param {ReorderAllCollectionsRequest} [reorderAllCollectionsRequest]
|
|
1492
1472
|
* @param {*} [options] Override http request option.
|
|
1493
1473
|
* @throws {RequiredError}
|
|
1494
|
-
* @memberof CollectionApi
|
|
1495
1474
|
*/
|
|
1496
1475
|
reorderAllCollections(reorderAllCollectionsRequest, options) {
|
|
1497
1476
|
return CollectionApiFp(this.configuration).reorderAllCollections(reorderAllCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1501,7 +1480,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1501
1480
|
* @param {string} text
|
|
1502
1481
|
* @param {*} [options] Override http request option.
|
|
1503
1482
|
* @throws {RequiredError}
|
|
1504
|
-
* @memberof CollectionApi
|
|
1505
1483
|
*/
|
|
1506
1484
|
searchCovers(text, options) {
|
|
1507
1485
|
return CollectionApiFp(this.configuration).searchCovers(text, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1512,7 +1490,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1512
1490
|
* @param {ShareCollectionRequest} [shareCollectionRequest]
|
|
1513
1491
|
* @param {*} [options] Override http request option.
|
|
1514
1492
|
* @throws {RequiredError}
|
|
1515
|
-
* @memberof CollectionApi
|
|
1516
1493
|
*/
|
|
1517
1494
|
shareCollection(id, shareCollectionRequest, options) {
|
|
1518
1495
|
return CollectionApiFp(this.configuration).shareCollection(id, shareCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1522,7 +1499,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1522
1499
|
* @param {number} id
|
|
1523
1500
|
* @param {*} [options] Override http request option.
|
|
1524
1501
|
* @throws {RequiredError}
|
|
1525
|
-
* @memberof CollectionApi
|
|
1526
1502
|
*/
|
|
1527
1503
|
unshareOrLeaveCollection(id, options) {
|
|
1528
1504
|
return CollectionApiFp(this.configuration).unshareOrLeaveCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1533,7 +1509,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1533
1509
|
* @param {UpdateCollectionRequest} [updateCollectionRequest]
|
|
1534
1510
|
* @param {*} [options] Override http request option.
|
|
1535
1511
|
* @throws {RequiredError}
|
|
1536
|
-
* @memberof CollectionApi
|
|
1537
1512
|
*/
|
|
1538
1513
|
updateCollection(id, updateCollectionRequest, options) {
|
|
1539
1514
|
return CollectionApiFp(this.configuration).updateCollection(id, updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1544,7 +1519,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1544
1519
|
* @param {File} [cover]
|
|
1545
1520
|
* @param {*} [options] Override http request option.
|
|
1546
1521
|
* @throws {RequiredError}
|
|
1547
|
-
* @memberof CollectionApi
|
|
1548
1522
|
*/
|
|
1549
1523
|
uploadCollectionCover(id, cover, options) {
|
|
1550
1524
|
return CollectionApiFp(this.configuration).uploadCollectionCover(id, cover, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1562,7 +1536,7 @@ var FilterApiAxiosParamCreator = function(configuration) {
|
|
|
1562
1536
|
*/
|
|
1563
1537
|
getFilters: async (collectionId, tagsSort, search, options = {}) => {
|
|
1564
1538
|
assertParamExists("getFilters", "collectionId", collectionId);
|
|
1565
|
-
const localVarPath = `/rest/v1/filters/{collectionId}`.replace(
|
|
1539
|
+
const localVarPath = `/rest/v1/filters/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
1566
1540
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1567
1541
|
let baseOptions;
|
|
1568
1542
|
if (configuration) {
|
|
@@ -1578,6 +1552,7 @@ var FilterApiAxiosParamCreator = function(configuration) {
|
|
|
1578
1552
|
if (search !== void 0) {
|
|
1579
1553
|
localVarQueryParameter["search"] = search;
|
|
1580
1554
|
}
|
|
1555
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1581
1556
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1582
1557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1583
1558
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1631,7 +1606,6 @@ var FilterApi = class extends BaseAPI {
|
|
|
1631
1606
|
* @param {string} [search]
|
|
1632
1607
|
* @param {*} [options] Override http request option.
|
|
1633
1608
|
* @throws {RequiredError}
|
|
1634
|
-
* @memberof FilterApi
|
|
1635
1609
|
*/
|
|
1636
1610
|
getFilters(collectionId, tagsSort, search, options) {
|
|
1637
1611
|
return FilterApiFp(this.configuration).getFilters(collectionId, tagsSort, search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1667,6 +1641,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1667
1641
|
if (perpage !== void 0) {
|
|
1668
1642
|
localVarQueryParameter["perpage"] = perpage;
|
|
1669
1643
|
}
|
|
1644
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1670
1645
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1671
1646
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1672
1647
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1685,7 +1660,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1685
1660
|
*/
|
|
1686
1661
|
getHighlightsInCollection: async (collectionId, page, perpage, options = {}) => {
|
|
1687
1662
|
assertParamExists("getHighlightsInCollection", "collectionId", collectionId);
|
|
1688
|
-
const localVarPath = `/rest/v1/highlights/{collectionId}`.replace(
|
|
1663
|
+
const localVarPath = `/rest/v1/highlights/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
1689
1664
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1690
1665
|
let baseOptions;
|
|
1691
1666
|
if (configuration) {
|
|
@@ -1701,6 +1676,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1701
1676
|
if (perpage !== void 0) {
|
|
1702
1677
|
localVarQueryParameter["perpage"] = perpage;
|
|
1703
1678
|
}
|
|
1679
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1704
1680
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1705
1681
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1706
1682
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1717,7 +1693,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1717
1693
|
*/
|
|
1718
1694
|
getRaindrop: async (id, options = {}) => {
|
|
1719
1695
|
assertParamExists("getRaindrop", "id", id);
|
|
1720
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
1696
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1721
1697
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1722
1698
|
let baseOptions;
|
|
1723
1699
|
if (configuration) {
|
|
@@ -1727,6 +1703,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1727
1703
|
const localVarHeaderParameter = {};
|
|
1728
1704
|
const localVarQueryParameter = {};
|
|
1729
1705
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1706
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1730
1707
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1731
1708
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
1709
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1744,7 +1721,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1744
1721
|
*/
|
|
1745
1722
|
updateRaindrop: async (id, body, options = {}) => {
|
|
1746
1723
|
assertParamExists("updateRaindrop", "id", id);
|
|
1747
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
1724
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1748
1725
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1749
1726
|
let baseOptions;
|
|
1750
1727
|
if (configuration) {
|
|
@@ -1755,6 +1732,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1755
1732
|
const localVarQueryParameter = {};
|
|
1756
1733
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1757
1734
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1735
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1758
1736
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1759
1737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1760
1738
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1875,7 +1853,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1875
1853
|
* @param {number} [perpage]
|
|
1876
1854
|
* @param {*} [options] Override http request option.
|
|
1877
1855
|
* @throws {RequiredError}
|
|
1878
|
-
* @memberof HighlightApi
|
|
1879
1856
|
*/
|
|
1880
1857
|
getAllHighlights(page, perpage, options) {
|
|
1881
1858
|
return HighlightApiFp(this.configuration).getAllHighlights(page, perpage, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1887,7 +1864,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1887
1864
|
* @param {number} [perpage]
|
|
1888
1865
|
* @param {*} [options] Override http request option.
|
|
1889
1866
|
* @throws {RequiredError}
|
|
1890
|
-
* @memberof HighlightApi
|
|
1891
1867
|
*/
|
|
1892
1868
|
getHighlightsInCollection(collectionId, page, perpage, options) {
|
|
1893
1869
|
return HighlightApiFp(this.configuration).getHighlightsInCollection(collectionId, page, perpage, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1897,7 +1873,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1897
1873
|
* @param {number} id
|
|
1898
1874
|
* @param {*} [options] Override http request option.
|
|
1899
1875
|
* @throws {RequiredError}
|
|
1900
|
-
* @memberof HighlightApi
|
|
1901
1876
|
*/
|
|
1902
1877
|
getRaindrop(id, options) {
|
|
1903
1878
|
return HighlightApiFp(this.configuration).getRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1908,7 +1883,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1908
1883
|
* @param {object} [body]
|
|
1909
1884
|
* @param {*} [options] Override http request option.
|
|
1910
1885
|
* @throws {RequiredError}
|
|
1911
|
-
* @memberof HighlightApi
|
|
1912
1886
|
*/
|
|
1913
1887
|
updateRaindrop(id, body, options) {
|
|
1914
1888
|
return HighlightApiFp(this.configuration).updateRaindrop(id, body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1934,6 +1908,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
1934
1908
|
const localVarQueryParameter = {};
|
|
1935
1909
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1936
1910
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1911
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1937
1912
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1938
1913
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1939
1914
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1965,6 +1940,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
1965
1940
|
localVarFormParams.append("import", _import);
|
|
1966
1941
|
}
|
|
1967
1942
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
1943
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1968
1944
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1969
1945
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1970
1946
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1994,6 +1970,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
1994
1970
|
if (url !== void 0) {
|
|
1995
1971
|
localVarQueryParameter["url"] = url;
|
|
1996
1972
|
}
|
|
1973
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1997
1974
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1998
1975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1999
1976
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2083,7 +2060,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2083
2060
|
* @param {CheckURLsExistRequest} [checkURLsExistRequest]
|
|
2084
2061
|
* @param {*} [options] Override http request option.
|
|
2085
2062
|
* @throws {RequiredError}
|
|
2086
|
-
* @memberof ImportApi
|
|
2087
2063
|
*/
|
|
2088
2064
|
checkURLsExist(checkURLsExistRequest, options) {
|
|
2089
2065
|
return ImportApiFp(this.configuration).checkURLsExist(checkURLsExistRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2093,7 +2069,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2093
2069
|
* @param {File} [_import]
|
|
2094
2070
|
* @param {*} [options] Override http request option.
|
|
2095
2071
|
* @throws {RequiredError}
|
|
2096
|
-
* @memberof ImportApi
|
|
2097
2072
|
*/
|
|
2098
2073
|
importHTMLBookmarkFile(_import, options) {
|
|
2099
2074
|
return ImportApiFp(this.configuration).importHTMLBookmarkFile(_import, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2103,7 +2078,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2103
2078
|
* @param {string} [url]
|
|
2104
2079
|
* @param {*} [options] Override http request option.
|
|
2105
2080
|
* @throws {RequiredError}
|
|
2106
|
-
* @memberof ImportApi
|
|
2107
2081
|
*/
|
|
2108
2082
|
parseURL(url, options) {
|
|
2109
2083
|
return ImportApiFp(this.configuration).parseURL(url, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2129,6 +2103,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2129
2103
|
const localVarQueryParameter = {};
|
|
2130
2104
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2131
2105
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2106
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2132
2107
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2133
2108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2134
2109
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2156,6 +2131,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2156
2131
|
const localVarQueryParameter = {};
|
|
2157
2132
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2158
2133
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2134
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2159
2135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2160
2136
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2161
2137
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2173,7 +2149,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2173
2149
|
*/
|
|
2174
2150
|
getPermanentCopy: async (id, options = {}) => {
|
|
2175
2151
|
assertParamExists("getPermanentCopy", "id", id);
|
|
2176
|
-
const localVarPath = `/rest/v1/raindrop/{id}/cache`.replace(
|
|
2152
|
+
const localVarPath = `/rest/v1/raindrop/{id}/cache`.replace("{id}", encodeURIComponent(String(id)));
|
|
2177
2153
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2178
2154
|
let baseOptions;
|
|
2179
2155
|
if (configuration) {
|
|
@@ -2199,7 +2175,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2199
2175
|
*/
|
|
2200
2176
|
getRaindrop: async (id, options = {}) => {
|
|
2201
2177
|
assertParamExists("getRaindrop", "id", id);
|
|
2202
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2178
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2203
2179
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2204
2180
|
let baseOptions;
|
|
2205
2181
|
if (configuration) {
|
|
@@ -2209,6 +2185,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2209
2185
|
const localVarHeaderParameter = {};
|
|
2210
2186
|
const localVarQueryParameter = {};
|
|
2211
2187
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2188
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2212
2189
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2213
2190
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2214
2191
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2229,7 +2206,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2229
2206
|
*/
|
|
2230
2207
|
getRaindrops: async (collectionId, sort, perpage, page, search, options = {}) => {
|
|
2231
2208
|
assertParamExists("getRaindrops", "collectionId", collectionId);
|
|
2232
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2209
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2233
2210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2234
2211
|
let baseOptions;
|
|
2235
2212
|
if (configuration) {
|
|
@@ -2251,6 +2228,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2251
2228
|
if (search !== void 0) {
|
|
2252
2229
|
localVarQueryParameter["search"] = search;
|
|
2253
2230
|
}
|
|
2231
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2254
2232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2255
2233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2256
2234
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2267,7 +2245,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2267
2245
|
*/
|
|
2268
2246
|
removeRaindrop: async (id, options = {}) => {
|
|
2269
2247
|
assertParamExists("removeRaindrop", "id", id);
|
|
2270
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2248
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2271
2249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2272
2250
|
let baseOptions;
|
|
2273
2251
|
if (configuration) {
|
|
@@ -2277,6 +2255,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2277
2255
|
const localVarHeaderParameter = {};
|
|
2278
2256
|
const localVarQueryParameter = {};
|
|
2279
2257
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2258
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2280
2259
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2281
2260
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2282
2261
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2295,7 +2274,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2295
2274
|
*/
|
|
2296
2275
|
removeRaindrops: async (collectionId, search, removeRaindropsRequest, options = {}) => {
|
|
2297
2276
|
assertParamExists("removeRaindrops", "collectionId", collectionId);
|
|
2298
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2277
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2299
2278
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2300
2279
|
let baseOptions;
|
|
2301
2280
|
if (configuration) {
|
|
@@ -2309,6 +2288,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2309
2288
|
localVarQueryParameter["search"] = search;
|
|
2310
2289
|
}
|
|
2311
2290
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2291
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2312
2292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2313
2293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2314
2294
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2326,7 +2306,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2326
2306
|
*/
|
|
2327
2307
|
suggestForExistingBookmark: async (id, options = {}) => {
|
|
2328
2308
|
assertParamExists("suggestForExistingBookmark", "id", id);
|
|
2329
|
-
const localVarPath = `/rest/v1/raindrop/{id}/suggest`.replace(
|
|
2309
|
+
const localVarPath = `/rest/v1/raindrop/{id}/suggest`.replace("{id}", encodeURIComponent(String(id)));
|
|
2330
2310
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2331
2311
|
let baseOptions;
|
|
2332
2312
|
if (configuration) {
|
|
@@ -2336,6 +2316,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2336
2316
|
const localVarHeaderParameter = {};
|
|
2337
2317
|
const localVarQueryParameter = {};
|
|
2338
2318
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2319
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2339
2320
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2340
2321
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2341
2322
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2362,6 +2343,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2362
2343
|
const localVarQueryParameter = {};
|
|
2363
2344
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2364
2345
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2346
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2365
2347
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2366
2348
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2367
2349
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2380,7 +2362,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2380
2362
|
*/
|
|
2381
2363
|
updateRaindrop: async (id, body, options = {}) => {
|
|
2382
2364
|
assertParamExists("updateRaindrop", "id", id);
|
|
2383
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2365
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2384
2366
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2385
2367
|
let baseOptions;
|
|
2386
2368
|
if (configuration) {
|
|
@@ -2391,6 +2373,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2391
2373
|
const localVarQueryParameter = {};
|
|
2392
2374
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2393
2375
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2376
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2394
2377
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2395
2378
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2396
2379
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2409,7 +2392,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2409
2392
|
*/
|
|
2410
2393
|
updateRaindrops: async (collectionId, updateRaindropsRequest, options = {}) => {
|
|
2411
2394
|
assertParamExists("updateRaindrops", "collectionId", collectionId);
|
|
2412
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2395
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2413
2396
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2414
2397
|
let baseOptions;
|
|
2415
2398
|
if (configuration) {
|
|
@@ -2420,6 +2403,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2420
2403
|
const localVarQueryParameter = {};
|
|
2421
2404
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2422
2405
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2406
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2423
2407
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2424
2408
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2425
2409
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2455,6 +2439,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2455
2439
|
localVarFormParams.append("collectionId", collectionId);
|
|
2456
2440
|
}
|
|
2457
2441
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
2442
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2458
2443
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2459
2444
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2460
2445
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2473,7 +2458,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2473
2458
|
*/
|
|
2474
2459
|
uploadRaindropCover: async (id, cover, options = {}) => {
|
|
2475
2460
|
assertParamExists("uploadRaindropCover", "id", id);
|
|
2476
|
-
const localVarPath = `/rest/v1/raindrop/{id}/cover`.replace(
|
|
2461
|
+
const localVarPath = `/rest/v1/raindrop/{id}/cover`.replace("{id}", encodeURIComponent(String(id)));
|
|
2477
2462
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2478
2463
|
let baseOptions;
|
|
2479
2464
|
if (configuration) {
|
|
@@ -2488,6 +2473,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2488
2473
|
localVarFormParams.append("cover", cover);
|
|
2489
2474
|
}
|
|
2490
2475
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
2476
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2491
2477
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2492
2478
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2493
2479
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2808,7 +2794,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2808
2794
|
* @param {CreateRaindropRequest} [createRaindropRequest]
|
|
2809
2795
|
* @param {*} [options] Override http request option.
|
|
2810
2796
|
* @throws {RequiredError}
|
|
2811
|
-
* @memberof RaindropApi
|
|
2812
2797
|
*/
|
|
2813
2798
|
createRaindrop(createRaindropRequest, options) {
|
|
2814
2799
|
return RaindropApiFp(this.configuration).createRaindrop(createRaindropRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2818,7 +2803,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2818
2803
|
* @param {object} [body]
|
|
2819
2804
|
* @param {*} [options] Override http request option.
|
|
2820
2805
|
* @throws {RequiredError}
|
|
2821
|
-
* @memberof RaindropApi
|
|
2822
2806
|
*/
|
|
2823
2807
|
createRaindrops(body, options) {
|
|
2824
2808
|
return RaindropApiFp(this.configuration).createRaindrops(body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2828,7 +2812,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2828
2812
|
* @param {number} id
|
|
2829
2813
|
* @param {*} [options] Override http request option.
|
|
2830
2814
|
* @throws {RequiredError}
|
|
2831
|
-
* @memberof RaindropApi
|
|
2832
2815
|
*/
|
|
2833
2816
|
getPermanentCopy(id, options) {
|
|
2834
2817
|
return RaindropApiFp(this.configuration).getPermanentCopy(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2838,7 +2821,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2838
2821
|
* @param {number} id
|
|
2839
2822
|
* @param {*} [options] Override http request option.
|
|
2840
2823
|
* @throws {RequiredError}
|
|
2841
|
-
* @memberof RaindropApi
|
|
2842
2824
|
*/
|
|
2843
2825
|
getRaindrop(id, options) {
|
|
2844
2826
|
return RaindropApiFp(this.configuration).getRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2852,7 +2834,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2852
2834
|
* @param {string} [search]
|
|
2853
2835
|
* @param {*} [options] Override http request option.
|
|
2854
2836
|
* @throws {RequiredError}
|
|
2855
|
-
* @memberof RaindropApi
|
|
2856
2837
|
*/
|
|
2857
2838
|
getRaindrops(collectionId, sort, perpage, page, search, options) {
|
|
2858
2839
|
return RaindropApiFp(this.configuration).getRaindrops(collectionId, sort, perpage, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2862,7 +2843,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2862
2843
|
* @param {number} id
|
|
2863
2844
|
* @param {*} [options] Override http request option.
|
|
2864
2845
|
* @throws {RequiredError}
|
|
2865
|
-
* @memberof RaindropApi
|
|
2866
2846
|
*/
|
|
2867
2847
|
removeRaindrop(id, options) {
|
|
2868
2848
|
return RaindropApiFp(this.configuration).removeRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2874,7 +2854,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2874
2854
|
* @param {RemoveRaindropsRequest} [removeRaindropsRequest]
|
|
2875
2855
|
* @param {*} [options] Override http request option.
|
|
2876
2856
|
* @throws {RequiredError}
|
|
2877
|
-
* @memberof RaindropApi
|
|
2878
2857
|
*/
|
|
2879
2858
|
removeRaindrops(collectionId, search, removeRaindropsRequest, options) {
|
|
2880
2859
|
return RaindropApiFp(this.configuration).removeRaindrops(collectionId, search, removeRaindropsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2884,7 +2863,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2884
2863
|
* @param {number} id
|
|
2885
2864
|
* @param {*} [options] Override http request option.
|
|
2886
2865
|
* @throws {RequiredError}
|
|
2887
|
-
* @memberof RaindropApi
|
|
2888
2866
|
*/
|
|
2889
2867
|
suggestForExistingBookmark(id, options) {
|
|
2890
2868
|
return RaindropApiFp(this.configuration).suggestForExistingBookmark(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2894,7 +2872,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2894
2872
|
* @param {SuggestForNewBookmarkRequest} [suggestForNewBookmarkRequest]
|
|
2895
2873
|
* @param {*} [options] Override http request option.
|
|
2896
2874
|
* @throws {RequiredError}
|
|
2897
|
-
* @memberof RaindropApi
|
|
2898
2875
|
*/
|
|
2899
2876
|
suggestForNewBookmark(suggestForNewBookmarkRequest, options) {
|
|
2900
2877
|
return RaindropApiFp(this.configuration).suggestForNewBookmark(suggestForNewBookmarkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2905,7 +2882,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2905
2882
|
* @param {object} [body]
|
|
2906
2883
|
* @param {*} [options] Override http request option.
|
|
2907
2884
|
* @throws {RequiredError}
|
|
2908
|
-
* @memberof RaindropApi
|
|
2909
2885
|
*/
|
|
2910
2886
|
updateRaindrop(id, body, options) {
|
|
2911
2887
|
return RaindropApiFp(this.configuration).updateRaindrop(id, body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2916,7 +2892,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2916
2892
|
* @param {UpdateRaindropsRequest} [updateRaindropsRequest]
|
|
2917
2893
|
* @param {*} [options] Override http request option.
|
|
2918
2894
|
* @throws {RequiredError}
|
|
2919
|
-
* @memberof RaindropApi
|
|
2920
2895
|
*/
|
|
2921
2896
|
updateRaindrops(collectionId, updateRaindropsRequest, options) {
|
|
2922
2897
|
return RaindropApiFp(this.configuration).updateRaindrops(collectionId, updateRaindropsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2927,7 +2902,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2927
2902
|
* @param {number} [collectionId]
|
|
2928
2903
|
* @param {*} [options] Override http request option.
|
|
2929
2904
|
* @throws {RequiredError}
|
|
2930
|
-
* @memberof RaindropApi
|
|
2931
2905
|
*/
|
|
2932
2906
|
uploadFile(file, collectionId, options) {
|
|
2933
2907
|
return RaindropApiFp(this.configuration).uploadFile(file, collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2938,7 +2912,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2938
2912
|
* @param {File} [cover]
|
|
2939
2913
|
* @param {*} [options] Override http request option.
|
|
2940
2914
|
* @throws {RequiredError}
|
|
2941
|
-
* @memberof RaindropApi
|
|
2942
2915
|
*/
|
|
2943
2916
|
uploadRaindropCover(id, cover, options) {
|
|
2944
2917
|
return RaindropApiFp(this.configuration).uploadRaindropCover(id, cover, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2953,7 +2926,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2953
2926
|
* @throws {RequiredError}
|
|
2954
2927
|
*/
|
|
2955
2928
|
getTagsInCollection: async (collectionId, options = {}) => {
|
|
2956
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
2929
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2957
2930
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2958
2931
|
let baseOptions;
|
|
2959
2932
|
if (configuration) {
|
|
@@ -2963,6 +2936,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2963
2936
|
const localVarHeaderParameter = {};
|
|
2964
2937
|
const localVarQueryParameter = {};
|
|
2965
2938
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2939
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2966
2940
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2967
2941
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2968
2942
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2979,7 +2953,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2979
2953
|
* @throws {RequiredError}
|
|
2980
2954
|
*/
|
|
2981
2955
|
removeTagsFromCollection: async (collectionId, removeTagsFromCollectionRequest, options = {}) => {
|
|
2982
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
2956
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2983
2957
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2984
2958
|
let baseOptions;
|
|
2985
2959
|
if (configuration) {
|
|
@@ -2990,6 +2964,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2990
2964
|
const localVarQueryParameter = {};
|
|
2991
2965
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2992
2966
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2967
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2993
2968
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2994
2969
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2995
2970
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3007,7 +2982,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3007
2982
|
* @throws {RequiredError}
|
|
3008
2983
|
*/
|
|
3009
2984
|
renameOrMergeTags: async (collectionId, renameOrMergeTagsRequest, options = {}) => {
|
|
3010
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
2985
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
3011
2986
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3012
2987
|
let baseOptions;
|
|
3013
2988
|
if (configuration) {
|
|
@@ -3018,6 +2993,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3018
2993
|
const localVarQueryParameter = {};
|
|
3019
2994
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3020
2995
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2996
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3021
2997
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3022
2998
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3023
2999
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3112,7 +3088,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3112
3088
|
* @param {number} [collectionId]
|
|
3113
3089
|
* @param {*} [options] Override http request option.
|
|
3114
3090
|
* @throws {RequiredError}
|
|
3115
|
-
* @memberof TagApi
|
|
3116
3091
|
*/
|
|
3117
3092
|
getTagsInCollection(collectionId, options) {
|
|
3118
3093
|
return TagApiFp(this.configuration).getTagsInCollection(collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3123,7 +3098,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3123
3098
|
* @param {RemoveTagsFromCollectionRequest} [removeTagsFromCollectionRequest]
|
|
3124
3099
|
* @param {*} [options] Override http request option.
|
|
3125
3100
|
* @throws {RequiredError}
|
|
3126
|
-
* @memberof TagApi
|
|
3127
3101
|
*/
|
|
3128
3102
|
removeTagsFromCollection(collectionId, removeTagsFromCollectionRequest, options) {
|
|
3129
3103
|
return TagApiFp(this.configuration).removeTagsFromCollection(collectionId, removeTagsFromCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3134,7 +3108,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3134
3108
|
* @param {RenameOrMergeTagsRequest} [renameOrMergeTagsRequest]
|
|
3135
3109
|
* @param {*} [options] Override http request option.
|
|
3136
3110
|
* @throws {RequiredError}
|
|
3137
|
-
* @memberof TagApi
|
|
3138
3111
|
*/
|
|
3139
3112
|
renameOrMergeTags(collectionId, renameOrMergeTagsRequest, options) {
|
|
3140
3113
|
return TagApiFp(this.configuration).renameOrMergeTags(collectionId, renameOrMergeTagsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3150,7 +3123,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3150
3123
|
*/
|
|
3151
3124
|
connectSocialNetworkProvider: async (provider, options = {}) => {
|
|
3152
3125
|
assertParamExists("connectSocialNetworkProvider", "provider", provider);
|
|
3153
|
-
const localVarPath = `/rest/v1/user/connect/{provider}`.replace(
|
|
3126
|
+
const localVarPath = `/rest/v1/user/connect/{provider}`.replace("{provider}", encodeURIComponent(String(provider)));
|
|
3154
3127
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3155
3128
|
let baseOptions;
|
|
3156
3129
|
if (configuration) {
|
|
@@ -3176,7 +3149,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3176
3149
|
*/
|
|
3177
3150
|
disconnectSocialNetworkProvider: async (provider, options = {}) => {
|
|
3178
3151
|
assertParamExists("disconnectSocialNetworkProvider", "provider", provider);
|
|
3179
|
-
const localVarPath = `/rest/v1/user/connect/{provider}/revoke`.replace(
|
|
3152
|
+
const localVarPath = `/rest/v1/user/connect/{provider}/revoke`.replace("{provider}", encodeURIComponent(String(provider)));
|
|
3180
3153
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3181
3154
|
let baseOptions;
|
|
3182
3155
|
if (configuration) {
|
|
@@ -3210,6 +3183,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3210
3183
|
const localVarHeaderParameter = {};
|
|
3211
3184
|
const localVarQueryParameter = {};
|
|
3212
3185
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3186
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3213
3187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3214
3188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3215
3189
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3226,7 +3200,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3226
3200
|
*/
|
|
3227
3201
|
getPublicUserByName: async (name, options = {}) => {
|
|
3228
3202
|
assertParamExists("getPublicUserByName", "name", name);
|
|
3229
|
-
const localVarPath = `/rest/v1/user/{name}`.replace(
|
|
3203
|
+
const localVarPath = `/rest/v1/user/{name}`.replace("{name}", encodeURIComponent(String(name)));
|
|
3230
3204
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3231
3205
|
let baseOptions;
|
|
3232
3206
|
if (configuration) {
|
|
@@ -3236,6 +3210,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3236
3210
|
const localVarHeaderParameter = {};
|
|
3237
3211
|
const localVarQueryParameter = {};
|
|
3238
3212
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3213
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3239
3214
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3240
3215
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3241
3216
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3260,6 +3235,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3260
3235
|
const localVarHeaderParameter = {};
|
|
3261
3236
|
const localVarQueryParameter = {};
|
|
3262
3237
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3238
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3263
3239
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3264
3240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3265
3241
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3286,6 +3262,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3286
3262
|
const localVarQueryParameter = {};
|
|
3287
3263
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3288
3264
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3265
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3289
3266
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3290
3267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3291
3268
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3435,7 +3412,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3435
3412
|
* @param {ConnectSocialNetworkProviderProviderEnum} provider
|
|
3436
3413
|
* @param {*} [options] Override http request option.
|
|
3437
3414
|
* @throws {RequiredError}
|
|
3438
|
-
* @memberof UserApi
|
|
3439
3415
|
*/
|
|
3440
3416
|
connectSocialNetworkProvider(provider, options) {
|
|
3441
3417
|
return UserApiFp(this.configuration).connectSocialNetworkProvider(provider, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3445,7 +3421,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3445
3421
|
* @param {DisconnectSocialNetworkProviderProviderEnum} provider
|
|
3446
3422
|
* @param {*} [options] Override http request option.
|
|
3447
3423
|
* @throws {RequiredError}
|
|
3448
|
-
* @memberof UserApi
|
|
3449
3424
|
*/
|
|
3450
3425
|
disconnectSocialNetworkProvider(provider, options) {
|
|
3451
3426
|
return UserApiFp(this.configuration).disconnectSocialNetworkProvider(provider, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3454,7 +3429,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3454
3429
|
*
|
|
3455
3430
|
* @param {*} [options] Override http request option.
|
|
3456
3431
|
* @throws {RequiredError}
|
|
3457
|
-
* @memberof UserApi
|
|
3458
3432
|
*/
|
|
3459
3433
|
getCurrentUser(options) {
|
|
3460
3434
|
return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3464,7 +3438,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3464
3438
|
* @param {number} name
|
|
3465
3439
|
* @param {*} [options] Override http request option.
|
|
3466
3440
|
* @throws {RequiredError}
|
|
3467
|
-
* @memberof UserApi
|
|
3468
3441
|
*/
|
|
3469
3442
|
getPublicUserByName(name, options) {
|
|
3470
3443
|
return UserApiFp(this.configuration).getPublicUserByName(name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3473,7 +3446,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3473
3446
|
*
|
|
3474
3447
|
* @param {*} [options] Override http request option.
|
|
3475
3448
|
* @throws {RequiredError}
|
|
3476
|
-
* @memberof UserApi
|
|
3477
3449
|
*/
|
|
3478
3450
|
getSystemCollectionStats(options) {
|
|
3479
3451
|
return UserApiFp(this.configuration).getSystemCollectionStats(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3483,7 +3455,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3483
3455
|
* @param {UpdateCurrentUserRequest} [updateCurrentUserRequest]
|
|
3484
3456
|
* @param {*} [options] Override http request option.
|
|
3485
3457
|
* @throws {RequiredError}
|
|
3486
|
-
* @memberof UserApi
|
|
3487
3458
|
*/
|
|
3488
3459
|
updateCurrentUser(updateCurrentUserRequest, options) {
|
|
3489
3460
|
return UserApiFp(this.configuration).updateCurrentUser(updateCurrentUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3512,49 +3483,43 @@ var Configuration = class {
|
|
|
3512
3483
|
/**
|
|
3513
3484
|
* parameter for apiKey security
|
|
3514
3485
|
* @param name security name
|
|
3515
|
-
* @memberof Configuration
|
|
3516
3486
|
*/
|
|
3517
3487
|
__publicField(this, "apiKey");
|
|
3518
3488
|
/**
|
|
3519
3489
|
* parameter for basic security
|
|
3520
|
-
*
|
|
3521
|
-
* @type {string}
|
|
3522
|
-
* @memberof Configuration
|
|
3523
3490
|
*/
|
|
3524
3491
|
__publicField(this, "username");
|
|
3525
3492
|
/**
|
|
3526
3493
|
* parameter for basic security
|
|
3527
|
-
*
|
|
3528
|
-
* @type {string}
|
|
3529
|
-
* @memberof Configuration
|
|
3530
3494
|
*/
|
|
3531
3495
|
__publicField(this, "password");
|
|
3532
3496
|
/**
|
|
3533
3497
|
* parameter for oauth2 security
|
|
3534
3498
|
* @param name security name
|
|
3535
3499
|
* @param scopes oauth2 scope
|
|
3536
|
-
* @memberof Configuration
|
|
3537
3500
|
*/
|
|
3538
3501
|
__publicField(this, "accessToken");
|
|
3539
3502
|
/**
|
|
3540
|
-
*
|
|
3541
|
-
*
|
|
3542
|
-
* @
|
|
3503
|
+
* parameter for aws4 signature security
|
|
3504
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
3505
|
+
* @param {string} options.region - aws region
|
|
3506
|
+
* @param {string} options.service - name of the service.
|
|
3507
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
3508
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
3509
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
3543
3510
|
* @memberof Configuration
|
|
3544
3511
|
*/
|
|
3512
|
+
__publicField(this, "awsv4");
|
|
3513
|
+
/**
|
|
3514
|
+
* override base path
|
|
3515
|
+
*/
|
|
3545
3516
|
__publicField(this, "basePath");
|
|
3546
3517
|
/**
|
|
3547
3518
|
* override server index
|
|
3548
|
-
*
|
|
3549
|
-
* @type {number}
|
|
3550
|
-
* @memberof Configuration
|
|
3551
3519
|
*/
|
|
3552
3520
|
__publicField(this, "serverIndex");
|
|
3553
3521
|
/**
|
|
3554
3522
|
* base options for axios calls
|
|
3555
|
-
*
|
|
3556
|
-
* @type {any}
|
|
3557
|
-
* @memberof Configuration
|
|
3558
3523
|
*/
|
|
3559
3524
|
__publicField(this, "baseOptions");
|
|
3560
3525
|
/**
|
|
@@ -3569,9 +3534,15 @@ var Configuration = class {
|
|
|
3569
3534
|
this.username = param.username;
|
|
3570
3535
|
this.password = param.password;
|
|
3571
3536
|
this.accessToken = param.accessToken;
|
|
3537
|
+
this.awsv4 = param.awsv4;
|
|
3572
3538
|
this.basePath = param.basePath;
|
|
3573
3539
|
this.serverIndex = param.serverIndex;
|
|
3574
|
-
this.baseOptions =
|
|
3540
|
+
this.baseOptions = {
|
|
3541
|
+
...param.baseOptions,
|
|
3542
|
+
headers: {
|
|
3543
|
+
...param.baseOptions?.headers
|
|
3544
|
+
}
|
|
3545
|
+
};
|
|
3575
3546
|
this.formDataCtor = param.formDataCtor;
|
|
3576
3547
|
}
|
|
3577
3548
|
/**
|
|
@@ -3585,8 +3556,8 @@ var Configuration = class {
|
|
|
3585
3556
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3586
3557
|
*/
|
|
3587
3558
|
isJsonMime(mime) {
|
|
3588
|
-
const jsonMime =
|
|
3589
|
-
return mime !== null &&
|
|
3559
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
3560
|
+
return mime !== null && jsonMime.test(mime);
|
|
3590
3561
|
}
|
|
3591
3562
|
};
|
|
3592
3563
|
|