@lasuillard/raindrop-client 0.8.3 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +9 -9
package/dist/index.js
CHANGED
|
@@ -136,7 +136,7 @@ var setBearerAuthToObject = async function(object, configuration) {
|
|
|
136
136
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
137
137
|
if (parameter == null) return;
|
|
138
138
|
if (typeof parameter === "object") {
|
|
139
|
-
if (Array.isArray(parameter)) {
|
|
139
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
140
140
|
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
141
141
|
} else {
|
|
142
142
|
Object.keys(parameter).forEach(
|
|
@@ -156,41 +156,18 @@ var setSearchParams = function(url, ...objects) {
|
|
|
156
156
|
setFlattenedQueryParams(searchParams, objects);
|
|
157
157
|
url.search = searchParams.toString();
|
|
158
158
|
};
|
|
159
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
160
|
+
if (value instanceof Set) {
|
|
161
|
+
return Array.from(value);
|
|
162
|
+
} else {
|
|
163
|
+
return value;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
159
166
|
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
160
167
|
const nonString = typeof value !== "string";
|
|
161
168
|
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
162
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ?
|
|
169
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
163
170
|
};
|
|
164
|
-
function convertMapsAndSetsToPlain(value) {
|
|
165
|
-
if (typeof Set === "undefined") return value;
|
|
166
|
-
if (typeof Map === "undefined") return value;
|
|
167
|
-
if (typeof value !== "object" || !value) {
|
|
168
|
-
return value;
|
|
169
|
-
}
|
|
170
|
-
if (value instanceof Set) {
|
|
171
|
-
return Array.from(value).map((item) => convertMapsAndSetsToPlain(item));
|
|
172
|
-
}
|
|
173
|
-
if (value instanceof Map) {
|
|
174
|
-
const entries = [];
|
|
175
|
-
value.forEach((value2, key) => {
|
|
176
|
-
entries.push([key, convertMapsAndSetsToPlain(value2)]);
|
|
177
|
-
});
|
|
178
|
-
return objectFromEntries(entries);
|
|
179
|
-
}
|
|
180
|
-
if (Array.isArray(value)) {
|
|
181
|
-
return value.map((it) => convertMapsAndSetsToPlain(it));
|
|
182
|
-
}
|
|
183
|
-
return objectFromEntries(objectEntries(value).map(([k, v]) => [k, convertMapsAndSetsToPlain(v)]));
|
|
184
|
-
}
|
|
185
|
-
function objectEntries(object) {
|
|
186
|
-
return Object.keys(object).map((key) => [key, object[key]]);
|
|
187
|
-
}
|
|
188
|
-
function objectFromEntries(entries) {
|
|
189
|
-
return [...entries].reduce((object, [key, val]) => {
|
|
190
|
-
object[key] = val;
|
|
191
|
-
return object;
|
|
192
|
-
}, {});
|
|
193
|
-
}
|
|
194
171
|
var toPathString = function(url) {
|
|
195
172
|
return url.pathname + url.search + url.hash;
|
|
196
173
|
};
|
|
@@ -270,6 +247,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
270
247
|
const localVarHeaderParameter = {};
|
|
271
248
|
const localVarQueryParameter = {};
|
|
272
249
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
250
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
273
251
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
274
252
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
253
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -342,7 +320,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
342
320
|
* @param {string} clientId
|
|
343
321
|
* @param {*} [options] Override http request option.
|
|
344
322
|
* @throws {RequiredError}
|
|
345
|
-
* @memberof AuthenticationApi
|
|
346
323
|
*/
|
|
347
324
|
authorize(redirectUri, clientId, options) {
|
|
348
325
|
return AuthenticationApiFp(this.configuration).authorize(redirectUri, clientId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -352,7 +329,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
352
329
|
* @param {GetOrRefreshTokenRequest} [getOrRefreshTokenRequest]
|
|
353
330
|
* @param {*} [options] Override http request option.
|
|
354
331
|
* @throws {RequiredError}
|
|
355
|
-
* @memberof AuthenticationApi
|
|
356
332
|
*/
|
|
357
333
|
getOrRefreshToken(getOrRefreshTokenRequest, options) {
|
|
358
334
|
return AuthenticationApiFp(this.configuration).getOrRefreshToken(getOrRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -368,7 +344,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
368
344
|
*/
|
|
369
345
|
acceptInvitation: async (id, options = {}) => {
|
|
370
346
|
assertParamExists("acceptInvitation", "id", id);
|
|
371
|
-
const localVarPath = `/rest/v1/collection/{id}/join`.replace(
|
|
347
|
+
const localVarPath = `/rest/v1/collection/{id}/join`.replace("{id}", encodeURIComponent(String(id)));
|
|
372
348
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
373
349
|
let baseOptions;
|
|
374
350
|
if (configuration) {
|
|
@@ -378,6 +354,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
378
354
|
const localVarHeaderParameter = {};
|
|
379
355
|
const localVarQueryParameter = {};
|
|
380
356
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
357
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
381
358
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
382
359
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
360
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -397,7 +374,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
397
374
|
changeCollaboratorAccessLevel: async (userId, id, changeCollaboratorAccessLevelRequest, options = {}) => {
|
|
398
375
|
assertParamExists("changeCollaboratorAccessLevel", "userId", userId);
|
|
399
376
|
assertParamExists("changeCollaboratorAccessLevel", "id", id);
|
|
400
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace(
|
|
377
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace("{userId}", encodeURIComponent(String(userId))).replace("{id}", encodeURIComponent(String(id)));
|
|
401
378
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
402
379
|
let baseOptions;
|
|
403
380
|
if (configuration) {
|
|
@@ -435,6 +412,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
435
412
|
const localVarQueryParameter = {};
|
|
436
413
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
437
414
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
415
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
438
416
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
439
417
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
440
418
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -454,7 +432,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
454
432
|
deleteCollaborator: async (userId, id, options = {}) => {
|
|
455
433
|
assertParamExists("deleteCollaborator", "userId", userId);
|
|
456
434
|
assertParamExists("deleteCollaborator", "id", id);
|
|
457
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace(
|
|
435
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing/{userId}`.replace("{userId}", encodeURIComponent(String(userId))).replace("{id}", encodeURIComponent(String(id)));
|
|
458
436
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
459
437
|
let baseOptions;
|
|
460
438
|
if (configuration) {
|
|
@@ -464,6 +442,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
464
442
|
const localVarHeaderParameter = {};
|
|
465
443
|
const localVarQueryParameter = {};
|
|
466
444
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
445
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
467
446
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
468
447
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
469
448
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -488,6 +467,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
488
467
|
const localVarHeaderParameter = {};
|
|
489
468
|
const localVarQueryParameter = {};
|
|
490
469
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
470
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
491
471
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
492
472
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
473
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -512,6 +492,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
512
492
|
const localVarHeaderParameter = {};
|
|
513
493
|
const localVarQueryParameter = {};
|
|
514
494
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
495
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
515
496
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
516
497
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
517
498
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -528,7 +509,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
528
509
|
*/
|
|
529
510
|
getCollaborators: async (id, options = {}) => {
|
|
530
511
|
assertParamExists("getCollaborators", "id", id);
|
|
531
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
512
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
532
513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
533
514
|
let baseOptions;
|
|
534
515
|
if (configuration) {
|
|
@@ -554,7 +535,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
554
535
|
*/
|
|
555
536
|
getCollection: async (id, options = {}) => {
|
|
556
537
|
assertParamExists("getCollection", "id", id);
|
|
557
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
538
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
558
539
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
559
540
|
let baseOptions;
|
|
560
541
|
if (configuration) {
|
|
@@ -564,6 +545,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
564
545
|
const localVarHeaderParameter = {};
|
|
565
546
|
const localVarQueryParameter = {};
|
|
566
547
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
548
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
567
549
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
568
550
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
569
551
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -588,6 +570,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
588
570
|
const localVarHeaderParameter = {};
|
|
589
571
|
const localVarQueryParameter = {};
|
|
590
572
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
573
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
591
574
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
592
575
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
576
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -612,6 +595,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
612
595
|
const localVarHeaderParameter = {};
|
|
613
596
|
const localVarQueryParameter = {};
|
|
614
597
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
598
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
615
599
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
616
600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
617
601
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -636,6 +620,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
636
620
|
const localVarHeaderParameter = {};
|
|
637
621
|
const localVarQueryParameter = {};
|
|
638
622
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
623
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
639
624
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
640
625
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
641
626
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -662,6 +647,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
662
647
|
const localVarQueryParameter = {};
|
|
663
648
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
664
649
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
650
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
665
651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
652
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
653
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -687,6 +673,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
687
673
|
const localVarHeaderParameter = {};
|
|
688
674
|
const localVarQueryParameter = {};
|
|
689
675
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
676
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
690
677
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
691
678
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
692
679
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -703,7 +690,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
703
690
|
*/
|
|
704
691
|
removeCollection: async (id, options = {}) => {
|
|
705
692
|
assertParamExists("removeCollection", "id", id);
|
|
706
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
693
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
707
694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
708
695
|
let baseOptions;
|
|
709
696
|
if (configuration) {
|
|
@@ -713,6 +700,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
713
700
|
const localVarHeaderParameter = {};
|
|
714
701
|
const localVarQueryParameter = {};
|
|
715
702
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
703
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
716
704
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
717
705
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
718
706
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -739,6 +727,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
739
727
|
const localVarQueryParameter = {};
|
|
740
728
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
741
729
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
730
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
742
731
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
743
732
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
744
733
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -766,6 +755,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
766
755
|
const localVarQueryParameter = {};
|
|
767
756
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
768
757
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
758
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
769
759
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
770
760
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
771
761
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -783,7 +773,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
783
773
|
*/
|
|
784
774
|
searchCovers: async (text, options = {}) => {
|
|
785
775
|
assertParamExists("searchCovers", "text", text);
|
|
786
|
-
const localVarPath = `/rest/v1/collections/covers/{text}`.replace(
|
|
776
|
+
const localVarPath = `/rest/v1/collections/covers/{text}`.replace("{text}", encodeURIComponent(String(text)));
|
|
787
777
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
788
778
|
let baseOptions;
|
|
789
779
|
if (configuration) {
|
|
@@ -793,6 +783,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
793
783
|
const localVarHeaderParameter = {};
|
|
794
784
|
const localVarQueryParameter = {};
|
|
795
785
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
786
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
796
787
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
797
788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
789
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -810,7 +801,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
810
801
|
*/
|
|
811
802
|
shareCollection: async (id, shareCollectionRequest, options = {}) => {
|
|
812
803
|
assertParamExists("shareCollection", "id", id);
|
|
813
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
804
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
814
805
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
815
806
|
let baseOptions;
|
|
816
807
|
if (configuration) {
|
|
@@ -821,6 +812,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
821
812
|
const localVarQueryParameter = {};
|
|
822
813
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
823
814
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
815
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
824
816
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
825
817
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
826
818
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -838,7 +830,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
838
830
|
*/
|
|
839
831
|
unshareOrLeaveCollection: async (id, options = {}) => {
|
|
840
832
|
assertParamExists("unshareOrLeaveCollection", "id", id);
|
|
841
|
-
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace(
|
|
833
|
+
const localVarPath = `/rest/v1/collection/{id}/sharing`.replace("{id}", encodeURIComponent(String(id)));
|
|
842
834
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
843
835
|
let baseOptions;
|
|
844
836
|
if (configuration) {
|
|
@@ -848,6 +840,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
848
840
|
const localVarHeaderParameter = {};
|
|
849
841
|
const localVarQueryParameter = {};
|
|
850
842
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
843
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
851
844
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
852
845
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
853
846
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -865,7 +858,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
865
858
|
*/
|
|
866
859
|
updateCollection: async (id, updateCollectionRequest, options = {}) => {
|
|
867
860
|
assertParamExists("updateCollection", "id", id);
|
|
868
|
-
const localVarPath = `/rest/v1/collection/{id}`.replace(
|
|
861
|
+
const localVarPath = `/rest/v1/collection/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
869
862
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
870
863
|
let baseOptions;
|
|
871
864
|
if (configuration) {
|
|
@@ -876,6 +869,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
876
869
|
const localVarQueryParameter = {};
|
|
877
870
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
878
871
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
872
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
879
873
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
880
874
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
881
875
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -894,7 +888,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
894
888
|
*/
|
|
895
889
|
uploadCollectionCover: async (id, cover, options = {}) => {
|
|
896
890
|
assertParamExists("uploadCollectionCover", "id", id);
|
|
897
|
-
const localVarPath = `/rest/v1/collection/{id}/cover`.replace(
|
|
891
|
+
const localVarPath = `/rest/v1/collection/{id}/cover`.replace("{id}", encodeURIComponent(String(id)));
|
|
898
892
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
899
893
|
let baseOptions;
|
|
900
894
|
if (configuration) {
|
|
@@ -909,6 +903,7 @@ var CollectionApiAxiosParamCreator = function(configuration) {
|
|
|
909
903
|
localVarFormParams.append("cover", cover);
|
|
910
904
|
}
|
|
911
905
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
906
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
912
907
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
913
908
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
914
909
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1377,7 +1372,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1377
1372
|
* @param {number} id
|
|
1378
1373
|
* @param {*} [options] Override http request option.
|
|
1379
1374
|
* @throws {RequiredError}
|
|
1380
|
-
* @memberof CollectionApi
|
|
1381
1375
|
*/
|
|
1382
1376
|
acceptInvitation(id, options) {
|
|
1383
1377
|
return CollectionApiFp(this.configuration).acceptInvitation(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1389,7 +1383,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1389
1383
|
* @param {ChangeCollaboratorAccessLevelRequest} [changeCollaboratorAccessLevelRequest]
|
|
1390
1384
|
* @param {*} [options] Override http request option.
|
|
1391
1385
|
* @throws {RequiredError}
|
|
1392
|
-
* @memberof CollectionApi
|
|
1393
1386
|
*/
|
|
1394
1387
|
changeCollaboratorAccessLevel(userId, id, changeCollaboratorAccessLevelRequest, options) {
|
|
1395
1388
|
return CollectionApiFp(this.configuration).changeCollaboratorAccessLevel(userId, id, changeCollaboratorAccessLevelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1399,7 +1392,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1399
1392
|
* @param {CreateCollectionRequest} [createCollectionRequest]
|
|
1400
1393
|
* @param {*} [options] Override http request option.
|
|
1401
1394
|
* @throws {RequiredError}
|
|
1402
|
-
* @memberof CollectionApi
|
|
1403
1395
|
*/
|
|
1404
1396
|
createCollection(createCollectionRequest, options) {
|
|
1405
1397
|
return CollectionApiFp(this.configuration).createCollection(createCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1410,7 +1402,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1410
1402
|
* @param {number} id
|
|
1411
1403
|
* @param {*} [options] Override http request option.
|
|
1412
1404
|
* @throws {RequiredError}
|
|
1413
|
-
* @memberof CollectionApi
|
|
1414
1405
|
*/
|
|
1415
1406
|
deleteCollaborator(userId, id, options) {
|
|
1416
1407
|
return CollectionApiFp(this.configuration).deleteCollaborator(userId, id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1419,7 +1410,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1419
1410
|
*
|
|
1420
1411
|
* @param {*} [options] Override http request option.
|
|
1421
1412
|
* @throws {RequiredError}
|
|
1422
|
-
* @memberof CollectionApi
|
|
1423
1413
|
*/
|
|
1424
1414
|
emptyTrash(options) {
|
|
1425
1415
|
return CollectionApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1428,7 +1418,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1428
1418
|
*
|
|
1429
1419
|
* @param {*} [options] Override http request option.
|
|
1430
1420
|
* @throws {RequiredError}
|
|
1431
|
-
* @memberof CollectionApi
|
|
1432
1421
|
*/
|
|
1433
1422
|
getChildCollections(options) {
|
|
1434
1423
|
return CollectionApiFp(this.configuration).getChildCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1438,7 +1427,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1438
1427
|
* @param {number} id
|
|
1439
1428
|
* @param {*} [options] Override http request option.
|
|
1440
1429
|
* @throws {RequiredError}
|
|
1441
|
-
* @memberof CollectionApi
|
|
1442
1430
|
*/
|
|
1443
1431
|
getCollaborators(id, options) {
|
|
1444
1432
|
return CollectionApiFp(this.configuration).getCollaborators(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1448,7 +1436,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1448
1436
|
* @param {number} id
|
|
1449
1437
|
* @param {*} [options] Override http request option.
|
|
1450
1438
|
* @throws {RequiredError}
|
|
1451
|
-
* @memberof CollectionApi
|
|
1452
1439
|
*/
|
|
1453
1440
|
getCollection(id, options) {
|
|
1454
1441
|
return CollectionApiFp(this.configuration).getCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1457,7 +1444,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1457
1444
|
*
|
|
1458
1445
|
* @param {*} [options] Override http request option.
|
|
1459
1446
|
* @throws {RequiredError}
|
|
1460
|
-
* @memberof CollectionApi
|
|
1461
1447
|
*/
|
|
1462
1448
|
getFeaturedCovers(options) {
|
|
1463
1449
|
return CollectionApiFp(this.configuration).getFeaturedCovers(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1466,7 +1452,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1466
1452
|
*
|
|
1467
1453
|
* @param {*} [options] Override http request option.
|
|
1468
1454
|
* @throws {RequiredError}
|
|
1469
|
-
* @memberof CollectionApi
|
|
1470
1455
|
*/
|
|
1471
1456
|
getRootCollections(options) {
|
|
1472
1457
|
return CollectionApiFp(this.configuration).getRootCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1475,7 +1460,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1475
1460
|
*
|
|
1476
1461
|
* @param {*} [options] Override http request option.
|
|
1477
1462
|
* @throws {RequiredError}
|
|
1478
|
-
* @memberof CollectionApi
|
|
1479
1463
|
*/
|
|
1480
1464
|
getSystemCollectionStats(options) {
|
|
1481
1465
|
return CollectionApiFp(this.configuration).getSystemCollectionStats(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1485,7 +1469,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1485
1469
|
* @param {MergeCollectionsRequest} [mergeCollectionsRequest]
|
|
1486
1470
|
* @param {*} [options] Override http request option.
|
|
1487
1471
|
* @throws {RequiredError}
|
|
1488
|
-
* @memberof CollectionApi
|
|
1489
1472
|
*/
|
|
1490
1473
|
mergeCollections(mergeCollectionsRequest, options) {
|
|
1491
1474
|
return CollectionApiFp(this.configuration).mergeCollections(mergeCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1494,7 +1477,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1494
1477
|
*
|
|
1495
1478
|
* @param {*} [options] Override http request option.
|
|
1496
1479
|
* @throws {RequiredError}
|
|
1497
|
-
* @memberof CollectionApi
|
|
1498
1480
|
*/
|
|
1499
1481
|
removeAllEmptyCollections(options) {
|
|
1500
1482
|
return CollectionApiFp(this.configuration).removeAllEmptyCollections(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1504,7 +1486,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1504
1486
|
* @param {number} id
|
|
1505
1487
|
* @param {*} [options] Override http request option.
|
|
1506
1488
|
* @throws {RequiredError}
|
|
1507
|
-
* @memberof CollectionApi
|
|
1508
1489
|
*/
|
|
1509
1490
|
removeCollection(id, options) {
|
|
1510
1491
|
return CollectionApiFp(this.configuration).removeCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1514,7 +1495,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1514
1495
|
* @param {RemoveCollectionsRequest} [removeCollectionsRequest]
|
|
1515
1496
|
* @param {*} [options] Override http request option.
|
|
1516
1497
|
* @throws {RequiredError}
|
|
1517
|
-
* @memberof CollectionApi
|
|
1518
1498
|
*/
|
|
1519
1499
|
removeCollections(removeCollectionsRequest, options) {
|
|
1520
1500
|
return CollectionApiFp(this.configuration).removeCollections(removeCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1524,7 +1504,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1524
1504
|
* @param {ReorderAllCollectionsRequest} [reorderAllCollectionsRequest]
|
|
1525
1505
|
* @param {*} [options] Override http request option.
|
|
1526
1506
|
* @throws {RequiredError}
|
|
1527
|
-
* @memberof CollectionApi
|
|
1528
1507
|
*/
|
|
1529
1508
|
reorderAllCollections(reorderAllCollectionsRequest, options) {
|
|
1530
1509
|
return CollectionApiFp(this.configuration).reorderAllCollections(reorderAllCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1534,7 +1513,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1534
1513
|
* @param {string} text
|
|
1535
1514
|
* @param {*} [options] Override http request option.
|
|
1536
1515
|
* @throws {RequiredError}
|
|
1537
|
-
* @memberof CollectionApi
|
|
1538
1516
|
*/
|
|
1539
1517
|
searchCovers(text, options) {
|
|
1540
1518
|
return CollectionApiFp(this.configuration).searchCovers(text, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1545,7 +1523,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1545
1523
|
* @param {ShareCollectionRequest} [shareCollectionRequest]
|
|
1546
1524
|
* @param {*} [options] Override http request option.
|
|
1547
1525
|
* @throws {RequiredError}
|
|
1548
|
-
* @memberof CollectionApi
|
|
1549
1526
|
*/
|
|
1550
1527
|
shareCollection(id, shareCollectionRequest, options) {
|
|
1551
1528
|
return CollectionApiFp(this.configuration).shareCollection(id, shareCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1555,7 +1532,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1555
1532
|
* @param {number} id
|
|
1556
1533
|
* @param {*} [options] Override http request option.
|
|
1557
1534
|
* @throws {RequiredError}
|
|
1558
|
-
* @memberof CollectionApi
|
|
1559
1535
|
*/
|
|
1560
1536
|
unshareOrLeaveCollection(id, options) {
|
|
1561
1537
|
return CollectionApiFp(this.configuration).unshareOrLeaveCollection(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1566,7 +1542,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1566
1542
|
* @param {UpdateCollectionRequest} [updateCollectionRequest]
|
|
1567
1543
|
* @param {*} [options] Override http request option.
|
|
1568
1544
|
* @throws {RequiredError}
|
|
1569
|
-
* @memberof CollectionApi
|
|
1570
1545
|
*/
|
|
1571
1546
|
updateCollection(id, updateCollectionRequest, options) {
|
|
1572
1547
|
return CollectionApiFp(this.configuration).updateCollection(id, updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1577,7 +1552,6 @@ var CollectionApi = class extends BaseAPI {
|
|
|
1577
1552
|
* @param {File} [cover]
|
|
1578
1553
|
* @param {*} [options] Override http request option.
|
|
1579
1554
|
* @throws {RequiredError}
|
|
1580
|
-
* @memberof CollectionApi
|
|
1581
1555
|
*/
|
|
1582
1556
|
uploadCollectionCover(id, cover, options) {
|
|
1583
1557
|
return CollectionApiFp(this.configuration).uploadCollectionCover(id, cover, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1595,7 +1569,7 @@ var FilterApiAxiosParamCreator = function(configuration) {
|
|
|
1595
1569
|
*/
|
|
1596
1570
|
getFilters: async (collectionId, tagsSort, search, options = {}) => {
|
|
1597
1571
|
assertParamExists("getFilters", "collectionId", collectionId);
|
|
1598
|
-
const localVarPath = `/rest/v1/filters/{collectionId}`.replace(
|
|
1572
|
+
const localVarPath = `/rest/v1/filters/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
1599
1573
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1600
1574
|
let baseOptions;
|
|
1601
1575
|
if (configuration) {
|
|
@@ -1611,6 +1585,7 @@ var FilterApiAxiosParamCreator = function(configuration) {
|
|
|
1611
1585
|
if (search !== void 0) {
|
|
1612
1586
|
localVarQueryParameter["search"] = search;
|
|
1613
1587
|
}
|
|
1588
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1614
1589
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1615
1590
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1616
1591
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1664,7 +1639,6 @@ var FilterApi = class extends BaseAPI {
|
|
|
1664
1639
|
* @param {string} [search]
|
|
1665
1640
|
* @param {*} [options] Override http request option.
|
|
1666
1641
|
* @throws {RequiredError}
|
|
1667
|
-
* @memberof FilterApi
|
|
1668
1642
|
*/
|
|
1669
1643
|
getFilters(collectionId, tagsSort, search, options) {
|
|
1670
1644
|
return FilterApiFp(this.configuration).getFilters(collectionId, tagsSort, search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1700,6 +1674,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1700
1674
|
if (perpage !== void 0) {
|
|
1701
1675
|
localVarQueryParameter["perpage"] = perpage;
|
|
1702
1676
|
}
|
|
1677
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1703
1678
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1704
1679
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1705
1680
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1718,7 +1693,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1718
1693
|
*/
|
|
1719
1694
|
getHighlightsInCollection: async (collectionId, page, perpage, options = {}) => {
|
|
1720
1695
|
assertParamExists("getHighlightsInCollection", "collectionId", collectionId);
|
|
1721
|
-
const localVarPath = `/rest/v1/highlights/{collectionId}`.replace(
|
|
1696
|
+
const localVarPath = `/rest/v1/highlights/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
1722
1697
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1723
1698
|
let baseOptions;
|
|
1724
1699
|
if (configuration) {
|
|
@@ -1734,6 +1709,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1734
1709
|
if (perpage !== void 0) {
|
|
1735
1710
|
localVarQueryParameter["perpage"] = perpage;
|
|
1736
1711
|
}
|
|
1712
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1737
1713
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1738
1714
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1739
1715
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1750,7 +1726,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1750
1726
|
*/
|
|
1751
1727
|
getRaindrop: async (id, options = {}) => {
|
|
1752
1728
|
assertParamExists("getRaindrop", "id", id);
|
|
1753
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
1729
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1754
1730
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1755
1731
|
let baseOptions;
|
|
1756
1732
|
if (configuration) {
|
|
@@ -1760,6 +1736,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1760
1736
|
const localVarHeaderParameter = {};
|
|
1761
1737
|
const localVarQueryParameter = {};
|
|
1762
1738
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1739
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1763
1740
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1764
1741
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1765
1742
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1777,7 +1754,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1777
1754
|
*/
|
|
1778
1755
|
updateRaindrop: async (id, body, options = {}) => {
|
|
1779
1756
|
assertParamExists("updateRaindrop", "id", id);
|
|
1780
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
1757
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1781
1758
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1782
1759
|
let baseOptions;
|
|
1783
1760
|
if (configuration) {
|
|
@@ -1788,6 +1765,7 @@ var HighlightApiAxiosParamCreator = function(configuration) {
|
|
|
1788
1765
|
const localVarQueryParameter = {};
|
|
1789
1766
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1790
1767
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1768
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1791
1769
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1792
1770
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1793
1771
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1908,7 +1886,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1908
1886
|
* @param {number} [perpage]
|
|
1909
1887
|
* @param {*} [options] Override http request option.
|
|
1910
1888
|
* @throws {RequiredError}
|
|
1911
|
-
* @memberof HighlightApi
|
|
1912
1889
|
*/
|
|
1913
1890
|
getAllHighlights(page, perpage, options) {
|
|
1914
1891
|
return HighlightApiFp(this.configuration).getAllHighlights(page, perpage, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1920,7 +1897,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1920
1897
|
* @param {number} [perpage]
|
|
1921
1898
|
* @param {*} [options] Override http request option.
|
|
1922
1899
|
* @throws {RequiredError}
|
|
1923
|
-
* @memberof HighlightApi
|
|
1924
1900
|
*/
|
|
1925
1901
|
getHighlightsInCollection(collectionId, page, perpage, options) {
|
|
1926
1902
|
return HighlightApiFp(this.configuration).getHighlightsInCollection(collectionId, page, perpage, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1930,7 +1906,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1930
1906
|
* @param {number} id
|
|
1931
1907
|
* @param {*} [options] Override http request option.
|
|
1932
1908
|
* @throws {RequiredError}
|
|
1933
|
-
* @memberof HighlightApi
|
|
1934
1909
|
*/
|
|
1935
1910
|
getRaindrop(id, options) {
|
|
1936
1911
|
return HighlightApiFp(this.configuration).getRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1941,7 +1916,6 @@ var HighlightApi = class extends BaseAPI {
|
|
|
1941
1916
|
* @param {object} [body]
|
|
1942
1917
|
* @param {*} [options] Override http request option.
|
|
1943
1918
|
* @throws {RequiredError}
|
|
1944
|
-
* @memberof HighlightApi
|
|
1945
1919
|
*/
|
|
1946
1920
|
updateRaindrop(id, body, options) {
|
|
1947
1921
|
return HighlightApiFp(this.configuration).updateRaindrop(id, body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1967,6 +1941,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
1967
1941
|
const localVarQueryParameter = {};
|
|
1968
1942
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1969
1943
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1944
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1970
1945
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1971
1946
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1972
1947
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1998,6 +1973,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
1998
1973
|
localVarFormParams.append("import", _import);
|
|
1999
1974
|
}
|
|
2000
1975
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
1976
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2001
1977
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2002
1978
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2003
1979
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2027,6 +2003,7 @@ var ImportApiAxiosParamCreator = function(configuration) {
|
|
|
2027
2003
|
if (url !== void 0) {
|
|
2028
2004
|
localVarQueryParameter["url"] = url;
|
|
2029
2005
|
}
|
|
2006
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2030
2007
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2031
2008
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2032
2009
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2116,7 +2093,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2116
2093
|
* @param {CheckURLsExistRequest} [checkURLsExistRequest]
|
|
2117
2094
|
* @param {*} [options] Override http request option.
|
|
2118
2095
|
* @throws {RequiredError}
|
|
2119
|
-
* @memberof ImportApi
|
|
2120
2096
|
*/
|
|
2121
2097
|
checkURLsExist(checkURLsExistRequest, options) {
|
|
2122
2098
|
return ImportApiFp(this.configuration).checkURLsExist(checkURLsExistRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2126,7 +2102,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2126
2102
|
* @param {File} [_import]
|
|
2127
2103
|
* @param {*} [options] Override http request option.
|
|
2128
2104
|
* @throws {RequiredError}
|
|
2129
|
-
* @memberof ImportApi
|
|
2130
2105
|
*/
|
|
2131
2106
|
importHTMLBookmarkFile(_import, options) {
|
|
2132
2107
|
return ImportApiFp(this.configuration).importHTMLBookmarkFile(_import, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2136,7 +2111,6 @@ var ImportApi = class extends BaseAPI {
|
|
|
2136
2111
|
* @param {string} [url]
|
|
2137
2112
|
* @param {*} [options] Override http request option.
|
|
2138
2113
|
* @throws {RequiredError}
|
|
2139
|
-
* @memberof ImportApi
|
|
2140
2114
|
*/
|
|
2141
2115
|
parseURL(url, options) {
|
|
2142
2116
|
return ImportApiFp(this.configuration).parseURL(url, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2162,6 +2136,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2162
2136
|
const localVarQueryParameter = {};
|
|
2163
2137
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2164
2138
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2139
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2165
2140
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2166
2141
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2167
2142
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2189,6 +2164,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2189
2164
|
const localVarQueryParameter = {};
|
|
2190
2165
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2191
2166
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2167
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2192
2168
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2193
2169
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2194
2170
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2206,7 +2182,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2206
2182
|
*/
|
|
2207
2183
|
getPermanentCopy: async (id, options = {}) => {
|
|
2208
2184
|
assertParamExists("getPermanentCopy", "id", id);
|
|
2209
|
-
const localVarPath = `/rest/v1/raindrop/{id}/cache`.replace(
|
|
2185
|
+
const localVarPath = `/rest/v1/raindrop/{id}/cache`.replace("{id}", encodeURIComponent(String(id)));
|
|
2210
2186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2211
2187
|
let baseOptions;
|
|
2212
2188
|
if (configuration) {
|
|
@@ -2232,7 +2208,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2232
2208
|
*/
|
|
2233
2209
|
getRaindrop: async (id, options = {}) => {
|
|
2234
2210
|
assertParamExists("getRaindrop", "id", id);
|
|
2235
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2211
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2236
2212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2237
2213
|
let baseOptions;
|
|
2238
2214
|
if (configuration) {
|
|
@@ -2242,6 +2218,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2242
2218
|
const localVarHeaderParameter = {};
|
|
2243
2219
|
const localVarQueryParameter = {};
|
|
2244
2220
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2221
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2245
2222
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2246
2223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2247
2224
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2262,7 +2239,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2262
2239
|
*/
|
|
2263
2240
|
getRaindrops: async (collectionId, sort, perpage, page, search, options = {}) => {
|
|
2264
2241
|
assertParamExists("getRaindrops", "collectionId", collectionId);
|
|
2265
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2242
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2266
2243
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2267
2244
|
let baseOptions;
|
|
2268
2245
|
if (configuration) {
|
|
@@ -2284,6 +2261,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2284
2261
|
if (search !== void 0) {
|
|
2285
2262
|
localVarQueryParameter["search"] = search;
|
|
2286
2263
|
}
|
|
2264
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2287
2265
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2288
2266
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2289
2267
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2300,7 +2278,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2300
2278
|
*/
|
|
2301
2279
|
removeRaindrop: async (id, options = {}) => {
|
|
2302
2280
|
assertParamExists("removeRaindrop", "id", id);
|
|
2303
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2281
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2304
2282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2305
2283
|
let baseOptions;
|
|
2306
2284
|
if (configuration) {
|
|
@@ -2310,6 +2288,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2310
2288
|
const localVarHeaderParameter = {};
|
|
2311
2289
|
const localVarQueryParameter = {};
|
|
2312
2290
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2291
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2313
2292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2314
2293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2315
2294
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2328,7 +2307,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2328
2307
|
*/
|
|
2329
2308
|
removeRaindrops: async (collectionId, search, removeRaindropsRequest, options = {}) => {
|
|
2330
2309
|
assertParamExists("removeRaindrops", "collectionId", collectionId);
|
|
2331
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2310
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2332
2311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2333
2312
|
let baseOptions;
|
|
2334
2313
|
if (configuration) {
|
|
@@ -2342,6 +2321,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2342
2321
|
localVarQueryParameter["search"] = search;
|
|
2343
2322
|
}
|
|
2344
2323
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2324
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2345
2325
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2346
2326
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2347
2327
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2359,7 +2339,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2359
2339
|
*/
|
|
2360
2340
|
suggestForExistingBookmark: async (id, options = {}) => {
|
|
2361
2341
|
assertParamExists("suggestForExistingBookmark", "id", id);
|
|
2362
|
-
const localVarPath = `/rest/v1/raindrop/{id}/suggest`.replace(
|
|
2342
|
+
const localVarPath = `/rest/v1/raindrop/{id}/suggest`.replace("{id}", encodeURIComponent(String(id)));
|
|
2363
2343
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2364
2344
|
let baseOptions;
|
|
2365
2345
|
if (configuration) {
|
|
@@ -2369,6 +2349,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2369
2349
|
const localVarHeaderParameter = {};
|
|
2370
2350
|
const localVarQueryParameter = {};
|
|
2371
2351
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2352
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2372
2353
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2373
2354
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2374
2355
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2395,6 +2376,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2395
2376
|
const localVarQueryParameter = {};
|
|
2396
2377
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2397
2378
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2379
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2398
2380
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2399
2381
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2400
2382
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2413,7 +2395,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2413
2395
|
*/
|
|
2414
2396
|
updateRaindrop: async (id, body, options = {}) => {
|
|
2415
2397
|
assertParamExists("updateRaindrop", "id", id);
|
|
2416
|
-
const localVarPath = `/rest/v1/raindrop/{id}`.replace(
|
|
2398
|
+
const localVarPath = `/rest/v1/raindrop/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2417
2399
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2418
2400
|
let baseOptions;
|
|
2419
2401
|
if (configuration) {
|
|
@@ -2424,6 +2406,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2424
2406
|
const localVarQueryParameter = {};
|
|
2425
2407
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2426
2408
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2409
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2427
2410
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2428
2411
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2429
2412
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2442,7 +2425,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2442
2425
|
*/
|
|
2443
2426
|
updateRaindrops: async (collectionId, updateRaindropsRequest, options = {}) => {
|
|
2444
2427
|
assertParamExists("updateRaindrops", "collectionId", collectionId);
|
|
2445
|
-
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace(
|
|
2428
|
+
const localVarPath = `/rest/v1/raindrops/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2446
2429
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2447
2430
|
let baseOptions;
|
|
2448
2431
|
if (configuration) {
|
|
@@ -2453,6 +2436,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2453
2436
|
const localVarQueryParameter = {};
|
|
2454
2437
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2455
2438
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2439
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2456
2440
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2457
2441
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2458
2442
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2488,6 +2472,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2488
2472
|
localVarFormParams.append("collectionId", collectionId);
|
|
2489
2473
|
}
|
|
2490
2474
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
2475
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2491
2476
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2492
2477
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2493
2478
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2506,7 +2491,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2506
2491
|
*/
|
|
2507
2492
|
uploadRaindropCover: async (id, cover, options = {}) => {
|
|
2508
2493
|
assertParamExists("uploadRaindropCover", "id", id);
|
|
2509
|
-
const localVarPath = `/rest/v1/raindrop/{id}/cover`.replace(
|
|
2494
|
+
const localVarPath = `/rest/v1/raindrop/{id}/cover`.replace("{id}", encodeURIComponent(String(id)));
|
|
2510
2495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2511
2496
|
let baseOptions;
|
|
2512
2497
|
if (configuration) {
|
|
@@ -2521,6 +2506,7 @@ var RaindropApiAxiosParamCreator = function(configuration) {
|
|
|
2521
2506
|
localVarFormParams.append("cover", cover);
|
|
2522
2507
|
}
|
|
2523
2508
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
2509
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2524
2510
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2525
2511
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2526
2512
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2841,7 +2827,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2841
2827
|
* @param {CreateRaindropRequest} [createRaindropRequest]
|
|
2842
2828
|
* @param {*} [options] Override http request option.
|
|
2843
2829
|
* @throws {RequiredError}
|
|
2844
|
-
* @memberof RaindropApi
|
|
2845
2830
|
*/
|
|
2846
2831
|
createRaindrop(createRaindropRequest, options) {
|
|
2847
2832
|
return RaindropApiFp(this.configuration).createRaindrop(createRaindropRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2851,7 +2836,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2851
2836
|
* @param {object} [body]
|
|
2852
2837
|
* @param {*} [options] Override http request option.
|
|
2853
2838
|
* @throws {RequiredError}
|
|
2854
|
-
* @memberof RaindropApi
|
|
2855
2839
|
*/
|
|
2856
2840
|
createRaindrops(body, options) {
|
|
2857
2841
|
return RaindropApiFp(this.configuration).createRaindrops(body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2861,7 +2845,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2861
2845
|
* @param {number} id
|
|
2862
2846
|
* @param {*} [options] Override http request option.
|
|
2863
2847
|
* @throws {RequiredError}
|
|
2864
|
-
* @memberof RaindropApi
|
|
2865
2848
|
*/
|
|
2866
2849
|
getPermanentCopy(id, options) {
|
|
2867
2850
|
return RaindropApiFp(this.configuration).getPermanentCopy(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2871,7 +2854,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2871
2854
|
* @param {number} id
|
|
2872
2855
|
* @param {*} [options] Override http request option.
|
|
2873
2856
|
* @throws {RequiredError}
|
|
2874
|
-
* @memberof RaindropApi
|
|
2875
2857
|
*/
|
|
2876
2858
|
getRaindrop(id, options) {
|
|
2877
2859
|
return RaindropApiFp(this.configuration).getRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2885,7 +2867,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2885
2867
|
* @param {string} [search]
|
|
2886
2868
|
* @param {*} [options] Override http request option.
|
|
2887
2869
|
* @throws {RequiredError}
|
|
2888
|
-
* @memberof RaindropApi
|
|
2889
2870
|
*/
|
|
2890
2871
|
getRaindrops(collectionId, sort, perpage, page, search, options) {
|
|
2891
2872
|
return RaindropApiFp(this.configuration).getRaindrops(collectionId, sort, perpage, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2895,7 +2876,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2895
2876
|
* @param {number} id
|
|
2896
2877
|
* @param {*} [options] Override http request option.
|
|
2897
2878
|
* @throws {RequiredError}
|
|
2898
|
-
* @memberof RaindropApi
|
|
2899
2879
|
*/
|
|
2900
2880
|
removeRaindrop(id, options) {
|
|
2901
2881
|
return RaindropApiFp(this.configuration).removeRaindrop(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2907,7 +2887,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2907
2887
|
* @param {RemoveRaindropsRequest} [removeRaindropsRequest]
|
|
2908
2888
|
* @param {*} [options] Override http request option.
|
|
2909
2889
|
* @throws {RequiredError}
|
|
2910
|
-
* @memberof RaindropApi
|
|
2911
2890
|
*/
|
|
2912
2891
|
removeRaindrops(collectionId, search, removeRaindropsRequest, options) {
|
|
2913
2892
|
return RaindropApiFp(this.configuration).removeRaindrops(collectionId, search, removeRaindropsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2917,7 +2896,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2917
2896
|
* @param {number} id
|
|
2918
2897
|
* @param {*} [options] Override http request option.
|
|
2919
2898
|
* @throws {RequiredError}
|
|
2920
|
-
* @memberof RaindropApi
|
|
2921
2899
|
*/
|
|
2922
2900
|
suggestForExistingBookmark(id, options) {
|
|
2923
2901
|
return RaindropApiFp(this.configuration).suggestForExistingBookmark(id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2927,7 +2905,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2927
2905
|
* @param {SuggestForNewBookmarkRequest} [suggestForNewBookmarkRequest]
|
|
2928
2906
|
* @param {*} [options] Override http request option.
|
|
2929
2907
|
* @throws {RequiredError}
|
|
2930
|
-
* @memberof RaindropApi
|
|
2931
2908
|
*/
|
|
2932
2909
|
suggestForNewBookmark(suggestForNewBookmarkRequest, options) {
|
|
2933
2910
|
return RaindropApiFp(this.configuration).suggestForNewBookmark(suggestForNewBookmarkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2938,7 +2915,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2938
2915
|
* @param {object} [body]
|
|
2939
2916
|
* @param {*} [options] Override http request option.
|
|
2940
2917
|
* @throws {RequiredError}
|
|
2941
|
-
* @memberof RaindropApi
|
|
2942
2918
|
*/
|
|
2943
2919
|
updateRaindrop(id, body, options) {
|
|
2944
2920
|
return RaindropApiFp(this.configuration).updateRaindrop(id, body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2949,7 +2925,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2949
2925
|
* @param {UpdateRaindropsRequest} [updateRaindropsRequest]
|
|
2950
2926
|
* @param {*} [options] Override http request option.
|
|
2951
2927
|
* @throws {RequiredError}
|
|
2952
|
-
* @memberof RaindropApi
|
|
2953
2928
|
*/
|
|
2954
2929
|
updateRaindrops(collectionId, updateRaindropsRequest, options) {
|
|
2955
2930
|
return RaindropApiFp(this.configuration).updateRaindrops(collectionId, updateRaindropsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2960,7 +2935,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2960
2935
|
* @param {number} [collectionId]
|
|
2961
2936
|
* @param {*} [options] Override http request option.
|
|
2962
2937
|
* @throws {RequiredError}
|
|
2963
|
-
* @memberof RaindropApi
|
|
2964
2938
|
*/
|
|
2965
2939
|
uploadFile(file, collectionId, options) {
|
|
2966
2940
|
return RaindropApiFp(this.configuration).uploadFile(file, collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2971,7 +2945,6 @@ var RaindropApi = class extends BaseAPI {
|
|
|
2971
2945
|
* @param {File} [cover]
|
|
2972
2946
|
* @param {*} [options] Override http request option.
|
|
2973
2947
|
* @throws {RequiredError}
|
|
2974
|
-
* @memberof RaindropApi
|
|
2975
2948
|
*/
|
|
2976
2949
|
uploadRaindropCover(id, cover, options) {
|
|
2977
2950
|
return RaindropApiFp(this.configuration).uploadRaindropCover(id, cover, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2986,7 +2959,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2986
2959
|
* @throws {RequiredError}
|
|
2987
2960
|
*/
|
|
2988
2961
|
getTagsInCollection: async (collectionId, options = {}) => {
|
|
2989
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
2962
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
2990
2963
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2991
2964
|
let baseOptions;
|
|
2992
2965
|
if (configuration) {
|
|
@@ -2996,6 +2969,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
2996
2969
|
const localVarHeaderParameter = {};
|
|
2997
2970
|
const localVarQueryParameter = {};
|
|
2998
2971
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2972
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2999
2973
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3000
2974
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3001
2975
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3012,7 +2986,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3012
2986
|
* @throws {RequiredError}
|
|
3013
2987
|
*/
|
|
3014
2988
|
removeTagsFromCollection: async (collectionId, removeTagsFromCollectionRequest, options = {}) => {
|
|
3015
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
2989
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
3016
2990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3017
2991
|
let baseOptions;
|
|
3018
2992
|
if (configuration) {
|
|
@@ -3023,6 +2997,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3023
2997
|
const localVarQueryParameter = {};
|
|
3024
2998
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3025
2999
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3000
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3026
3001
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3027
3002
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3028
3003
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3040,7 +3015,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3040
3015
|
* @throws {RequiredError}
|
|
3041
3016
|
*/
|
|
3042
3017
|
renameOrMergeTags: async (collectionId, renameOrMergeTagsRequest, options = {}) => {
|
|
3043
|
-
const localVarPath = `/rest/v1/tags/{collectionId}`.replace(
|
|
3018
|
+
const localVarPath = `/rest/v1/tags/{collectionId}`.replace("{collectionId}", encodeURIComponent(String(collectionId)));
|
|
3044
3019
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3045
3020
|
let baseOptions;
|
|
3046
3021
|
if (configuration) {
|
|
@@ -3051,6 +3026,7 @@ var TagApiAxiosParamCreator = function(configuration) {
|
|
|
3051
3026
|
const localVarQueryParameter = {};
|
|
3052
3027
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3053
3028
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3029
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3054
3030
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3055
3031
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3056
3032
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3145,7 +3121,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3145
3121
|
* @param {number} [collectionId]
|
|
3146
3122
|
* @param {*} [options] Override http request option.
|
|
3147
3123
|
* @throws {RequiredError}
|
|
3148
|
-
* @memberof TagApi
|
|
3149
3124
|
*/
|
|
3150
3125
|
getTagsInCollection(collectionId, options) {
|
|
3151
3126
|
return TagApiFp(this.configuration).getTagsInCollection(collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3156,7 +3131,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3156
3131
|
* @param {RemoveTagsFromCollectionRequest} [removeTagsFromCollectionRequest]
|
|
3157
3132
|
* @param {*} [options] Override http request option.
|
|
3158
3133
|
* @throws {RequiredError}
|
|
3159
|
-
* @memberof TagApi
|
|
3160
3134
|
*/
|
|
3161
3135
|
removeTagsFromCollection(collectionId, removeTagsFromCollectionRequest, options) {
|
|
3162
3136
|
return TagApiFp(this.configuration).removeTagsFromCollection(collectionId, removeTagsFromCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3167,7 +3141,6 @@ var TagApi = class extends BaseAPI {
|
|
|
3167
3141
|
* @param {RenameOrMergeTagsRequest} [renameOrMergeTagsRequest]
|
|
3168
3142
|
* @param {*} [options] Override http request option.
|
|
3169
3143
|
* @throws {RequiredError}
|
|
3170
|
-
* @memberof TagApi
|
|
3171
3144
|
*/
|
|
3172
3145
|
renameOrMergeTags(collectionId, renameOrMergeTagsRequest, options) {
|
|
3173
3146
|
return TagApiFp(this.configuration).renameOrMergeTags(collectionId, renameOrMergeTagsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3183,7 +3156,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3183
3156
|
*/
|
|
3184
3157
|
connectSocialNetworkProvider: async (provider, options = {}) => {
|
|
3185
3158
|
assertParamExists("connectSocialNetworkProvider", "provider", provider);
|
|
3186
|
-
const localVarPath = `/rest/v1/user/connect/{provider}`.replace(
|
|
3159
|
+
const localVarPath = `/rest/v1/user/connect/{provider}`.replace("{provider}", encodeURIComponent(String(provider)));
|
|
3187
3160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3188
3161
|
let baseOptions;
|
|
3189
3162
|
if (configuration) {
|
|
@@ -3209,7 +3182,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3209
3182
|
*/
|
|
3210
3183
|
disconnectSocialNetworkProvider: async (provider, options = {}) => {
|
|
3211
3184
|
assertParamExists("disconnectSocialNetworkProvider", "provider", provider);
|
|
3212
|
-
const localVarPath = `/rest/v1/user/connect/{provider}/revoke`.replace(
|
|
3185
|
+
const localVarPath = `/rest/v1/user/connect/{provider}/revoke`.replace("{provider}", encodeURIComponent(String(provider)));
|
|
3213
3186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3214
3187
|
let baseOptions;
|
|
3215
3188
|
if (configuration) {
|
|
@@ -3243,6 +3216,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3243
3216
|
const localVarHeaderParameter = {};
|
|
3244
3217
|
const localVarQueryParameter = {};
|
|
3245
3218
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3219
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3246
3220
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3247
3221
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3248
3222
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3259,7 +3233,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3259
3233
|
*/
|
|
3260
3234
|
getPublicUserByName: async (name, options = {}) => {
|
|
3261
3235
|
assertParamExists("getPublicUserByName", "name", name);
|
|
3262
|
-
const localVarPath = `/rest/v1/user/{name}`.replace(
|
|
3236
|
+
const localVarPath = `/rest/v1/user/{name}`.replace("{name}", encodeURIComponent(String(name)));
|
|
3263
3237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3264
3238
|
let baseOptions;
|
|
3265
3239
|
if (configuration) {
|
|
@@ -3269,6 +3243,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3269
3243
|
const localVarHeaderParameter = {};
|
|
3270
3244
|
const localVarQueryParameter = {};
|
|
3271
3245
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3246
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3272
3247
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3273
3248
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3274
3249
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3293,6 +3268,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3293
3268
|
const localVarHeaderParameter = {};
|
|
3294
3269
|
const localVarQueryParameter = {};
|
|
3295
3270
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3271
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3296
3272
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3297
3273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3298
3274
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3319,6 +3295,7 @@ var UserApiAxiosParamCreator = function(configuration) {
|
|
|
3319
3295
|
const localVarQueryParameter = {};
|
|
3320
3296
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3321
3297
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3298
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3322
3299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3323
3300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3324
3301
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3468,7 +3445,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3468
3445
|
* @param {ConnectSocialNetworkProviderProviderEnum} provider
|
|
3469
3446
|
* @param {*} [options] Override http request option.
|
|
3470
3447
|
* @throws {RequiredError}
|
|
3471
|
-
* @memberof UserApi
|
|
3472
3448
|
*/
|
|
3473
3449
|
connectSocialNetworkProvider(provider, options) {
|
|
3474
3450
|
return UserApiFp(this.configuration).connectSocialNetworkProvider(provider, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3478,7 +3454,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3478
3454
|
* @param {DisconnectSocialNetworkProviderProviderEnum} provider
|
|
3479
3455
|
* @param {*} [options] Override http request option.
|
|
3480
3456
|
* @throws {RequiredError}
|
|
3481
|
-
* @memberof UserApi
|
|
3482
3457
|
*/
|
|
3483
3458
|
disconnectSocialNetworkProvider(provider, options) {
|
|
3484
3459
|
return UserApiFp(this.configuration).disconnectSocialNetworkProvider(provider, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3487,7 +3462,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3487
3462
|
*
|
|
3488
3463
|
* @param {*} [options] Override http request option.
|
|
3489
3464
|
* @throws {RequiredError}
|
|
3490
|
-
* @memberof UserApi
|
|
3491
3465
|
*/
|
|
3492
3466
|
getCurrentUser(options) {
|
|
3493
3467
|
return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3497,7 +3471,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3497
3471
|
* @param {number} name
|
|
3498
3472
|
* @param {*} [options] Override http request option.
|
|
3499
3473
|
* @throws {RequiredError}
|
|
3500
|
-
* @memberof UserApi
|
|
3501
3474
|
*/
|
|
3502
3475
|
getPublicUserByName(name, options) {
|
|
3503
3476
|
return UserApiFp(this.configuration).getPublicUserByName(name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3506,7 +3479,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3506
3479
|
*
|
|
3507
3480
|
* @param {*} [options] Override http request option.
|
|
3508
3481
|
* @throws {RequiredError}
|
|
3509
|
-
* @memberof UserApi
|
|
3510
3482
|
*/
|
|
3511
3483
|
getSystemCollectionStats(options) {
|
|
3512
3484
|
return UserApiFp(this.configuration).getSystemCollectionStats(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3516,7 +3488,6 @@ var UserApi = class extends BaseAPI {
|
|
|
3516
3488
|
* @param {UpdateCurrentUserRequest} [updateCurrentUserRequest]
|
|
3517
3489
|
* @param {*} [options] Override http request option.
|
|
3518
3490
|
* @throws {RequiredError}
|
|
3519
|
-
* @memberof UserApi
|
|
3520
3491
|
*/
|
|
3521
3492
|
updateCurrentUser(updateCurrentUserRequest, options) {
|
|
3522
3493
|
return UserApiFp(this.configuration).updateCurrentUser(updateCurrentUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3545,49 +3516,43 @@ var Configuration = class {
|
|
|
3545
3516
|
/**
|
|
3546
3517
|
* parameter for apiKey security
|
|
3547
3518
|
* @param name security name
|
|
3548
|
-
* @memberof Configuration
|
|
3549
3519
|
*/
|
|
3550
3520
|
__publicField(this, "apiKey");
|
|
3551
3521
|
/**
|
|
3552
3522
|
* parameter for basic security
|
|
3553
|
-
*
|
|
3554
|
-
* @type {string}
|
|
3555
|
-
* @memberof Configuration
|
|
3556
3523
|
*/
|
|
3557
3524
|
__publicField(this, "username");
|
|
3558
3525
|
/**
|
|
3559
3526
|
* parameter for basic security
|
|
3560
|
-
*
|
|
3561
|
-
* @type {string}
|
|
3562
|
-
* @memberof Configuration
|
|
3563
3527
|
*/
|
|
3564
3528
|
__publicField(this, "password");
|
|
3565
3529
|
/**
|
|
3566
3530
|
* parameter for oauth2 security
|
|
3567
3531
|
* @param name security name
|
|
3568
3532
|
* @param scopes oauth2 scope
|
|
3569
|
-
* @memberof Configuration
|
|
3570
3533
|
*/
|
|
3571
3534
|
__publicField(this, "accessToken");
|
|
3572
3535
|
/**
|
|
3573
|
-
*
|
|
3574
|
-
*
|
|
3575
|
-
* @
|
|
3536
|
+
* parameter for aws4 signature security
|
|
3537
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
3538
|
+
* @param {string} options.region - aws region
|
|
3539
|
+
* @param {string} options.service - name of the service.
|
|
3540
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
3541
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
3542
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
3576
3543
|
* @memberof Configuration
|
|
3577
3544
|
*/
|
|
3545
|
+
__publicField(this, "awsv4");
|
|
3546
|
+
/**
|
|
3547
|
+
* override base path
|
|
3548
|
+
*/
|
|
3578
3549
|
__publicField(this, "basePath");
|
|
3579
3550
|
/**
|
|
3580
3551
|
* override server index
|
|
3581
|
-
*
|
|
3582
|
-
* @type {number}
|
|
3583
|
-
* @memberof Configuration
|
|
3584
3552
|
*/
|
|
3585
3553
|
__publicField(this, "serverIndex");
|
|
3586
3554
|
/**
|
|
3587
3555
|
* base options for axios calls
|
|
3588
|
-
*
|
|
3589
|
-
* @type {any}
|
|
3590
|
-
* @memberof Configuration
|
|
3591
3556
|
*/
|
|
3592
3557
|
__publicField(this, "baseOptions");
|
|
3593
3558
|
/**
|
|
@@ -3602,9 +3567,15 @@ var Configuration = class {
|
|
|
3602
3567
|
this.username = param.username;
|
|
3603
3568
|
this.password = param.password;
|
|
3604
3569
|
this.accessToken = param.accessToken;
|
|
3570
|
+
this.awsv4 = param.awsv4;
|
|
3605
3571
|
this.basePath = param.basePath;
|
|
3606
3572
|
this.serverIndex = param.serverIndex;
|
|
3607
|
-
this.baseOptions =
|
|
3573
|
+
this.baseOptions = {
|
|
3574
|
+
...param.baseOptions,
|
|
3575
|
+
headers: {
|
|
3576
|
+
...param.baseOptions?.headers
|
|
3577
|
+
}
|
|
3578
|
+
};
|
|
3608
3579
|
this.formDataCtor = param.formDataCtor;
|
|
3609
3580
|
}
|
|
3610
3581
|
/**
|
|
@@ -3618,8 +3589,8 @@ var Configuration = class {
|
|
|
3618
3589
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3619
3590
|
*/
|
|
3620
3591
|
isJsonMime(mime) {
|
|
3621
|
-
const jsonMime =
|
|
3622
|
-
return mime !== null &&
|
|
3592
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
3593
|
+
return mime !== null && jsonMime.test(mime);
|
|
3623
3594
|
}
|
|
3624
3595
|
};
|
|
3625
3596
|
|