@singi-labs/sifa-sdk 0.10.7 → 0.10.8
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.cjs +56 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +56 -9
- package/dist/index.js.map +1 -1
- package/dist/{keys-GSG0egRE.d.cts → keys-0h1sHtHX.d.cts} +17 -0
- package/dist/{keys-G_SErFOu.d.ts → keys-Bnvbkxoc.d.ts} +17 -0
- package/dist/query/fetchers/index.cjs +6 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +6 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +6 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +6 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +6 -6
package/dist/query/index.cjs
CHANGED
|
@@ -504,7 +504,7 @@ async function fetchHiddenApps(config, options = {}) {
|
|
|
504
504
|
|
|
505
505
|
// src/query/fetchers/search.ts
|
|
506
506
|
var EMPTY_SEARCH = { profiles: [], total: 0, limit: 20, offset: 0 };
|
|
507
|
-
var EMPTY_FILTERS = { countries: [], industries: [], apps: [] };
|
|
507
|
+
var EMPTY_FILTERS = { countries: [], industries: [], apps: [], openTo: [] };
|
|
508
508
|
async function fetchSearchProfiles(config, filters, options = {}) {
|
|
509
509
|
const params = new URLSearchParams();
|
|
510
510
|
if (filters.q) params.set("q", filters.q);
|
|
@@ -514,6 +514,11 @@ async function fetchSearchProfiles(config, filters, options = {}) {
|
|
|
514
514
|
if (filters.domain) params.set("domain", filters.domain);
|
|
515
515
|
if (filters.workplace) params.set("workplace", filters.workplace);
|
|
516
516
|
if (filters.app) params.set("app", filters.app);
|
|
517
|
+
if (filters.openTo && filters.openTo.length > 0) {
|
|
518
|
+
for (const token of filters.openTo) {
|
|
519
|
+
if (token) params.append("openTo", token);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
517
522
|
if (filters.limit !== void 0) params.set("limit", String(filters.limit));
|
|
518
523
|
if (params.size === 0) return EMPTY_SEARCH;
|
|
519
524
|
return apiFetch(config, `/api/search/profiles?${params.toString()}`, {
|