@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.
@@ -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()}`, {