@singi-labs/sifa-sdk 0.10.7 → 0.10.9
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 +69 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +65 -10
- 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
|
@@ -1257,7 +1257,7 @@ function useHiddenApps(options) {
|
|
|
1257
1257
|
|
|
1258
1258
|
// src/query/fetchers/search.ts
|
|
1259
1259
|
var EMPTY_SEARCH = { profiles: [], total: 0, limit: 20, offset: 0 };
|
|
1260
|
-
var EMPTY_FILTERS = { countries: [], industries: [], apps: [] };
|
|
1260
|
+
var EMPTY_FILTERS = { countries: [], industries: [], apps: [], openTo: [] };
|
|
1261
1261
|
async function fetchSearchProfiles(config, filters, options = {}) {
|
|
1262
1262
|
const params = new URLSearchParams();
|
|
1263
1263
|
if (filters.q) params.set("q", filters.q);
|
|
@@ -1267,6 +1267,11 @@ async function fetchSearchProfiles(config, filters, options = {}) {
|
|
|
1267
1267
|
if (filters.domain) params.set("domain", filters.domain);
|
|
1268
1268
|
if (filters.workplace) params.set("workplace", filters.workplace);
|
|
1269
1269
|
if (filters.app) params.set("app", filters.app);
|
|
1270
|
+
if (filters.openTo && filters.openTo.length > 0) {
|
|
1271
|
+
for (const token of filters.openTo) {
|
|
1272
|
+
if (token) params.append("openTo", token);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1270
1275
|
if (filters.limit !== void 0) params.set("limit", String(filters.limit));
|
|
1271
1276
|
if (params.size === 0) return EMPTY_SEARCH;
|
|
1272
1277
|
return apiFetch(config, `/api/search/profiles?${params.toString()}`, {
|