swoop-common 2.2.2 → 2.2.4
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.
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { OpenAPI } from "../../api/generated/core";
|
|
11
11
|
import { InternalServices } from "../../api/init";
|
|
12
|
-
const Regions = [
|
|
12
|
+
const Regions = ["patagonia", "arctic", "antarctica"];
|
|
13
13
|
export const getAllPartners = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
14
|
try {
|
|
15
15
|
const finalData = [];
|
|
@@ -32,7 +32,7 @@ export const getAllPartners = () => __awaiter(void 0, void 0, void 0, function*
|
|
|
32
32
|
export const fetchComponents = (filters) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
const idToken = OpenAPI.TOKEN;
|
|
34
34
|
const query = new URLSearchParams(filters || {}).toString() || "limit=2000";
|
|
35
|
-
const response = yield fetch(`${OpenAPI.BASE}/
|
|
35
|
+
const response = yield fetch(`${OpenAPI.BASE}/component?${query}`, {
|
|
36
36
|
headers: {
|
|
37
37
|
Authorization: `Bearer ${idToken}`,
|
|
38
38
|
},
|