@singi-labs/sifa-sdk 0.12.92 → 0.14.0
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 +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/{network-map-C3KyOHRU.d.ts → network-map-Cip8KjJA.d.ts} +104 -2
- package/dist/{network-map-BcugllI5.d.cts → network-map-Ckl4k6v4.d.cts} +104 -2
- package/dist/query/fetchers/index.cjs +39 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/index.js +38 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +39 -0
- 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 +38 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
package/dist/query/index.cjs
CHANGED
|
@@ -824,6 +824,43 @@ async function searchSkills(config, query, limit = 10, options = {}) {
|
|
|
824
824
|
return [];
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
+
|
|
828
|
+
// src/query/fetchers/speakers.ts
|
|
829
|
+
var EMPTY_SPEAKERS = { speakers: [] };
|
|
830
|
+
var EMPTY_TALKS = { talks: [] };
|
|
831
|
+
function buildParams(filters) {
|
|
832
|
+
const params = new URLSearchParams();
|
|
833
|
+
const topic = filters.topic?.trim();
|
|
834
|
+
if (topic) params.set("topic", topic);
|
|
835
|
+
if (filters.limit !== void 0) params.set("limit", String(filters.limit));
|
|
836
|
+
return params;
|
|
837
|
+
}
|
|
838
|
+
async function fetchSpeakers(config, filters = {}, options = {}) {
|
|
839
|
+
const params = buildParams(filters);
|
|
840
|
+
const query = params.toString();
|
|
841
|
+
const path = query ? `/api/speakers?${query}` : "/api/speakers";
|
|
842
|
+
try {
|
|
843
|
+
return await apiFetch(config, path, {
|
|
844
|
+
cache: "no-store",
|
|
845
|
+
...options
|
|
846
|
+
});
|
|
847
|
+
} catch {
|
|
848
|
+
return EMPTY_SPEAKERS;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
async function fetchTalks(config, filters = {}, options = {}) {
|
|
852
|
+
const params = buildParams(filters);
|
|
853
|
+
const query = params.toString();
|
|
854
|
+
const path = query ? `/api/talks?${query}` : "/api/talks";
|
|
855
|
+
try {
|
|
856
|
+
return await apiFetch(config, path, {
|
|
857
|
+
cache: "no-store",
|
|
858
|
+
...options
|
|
859
|
+
});
|
|
860
|
+
} catch {
|
|
861
|
+
return EMPTY_TALKS;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
827
864
|
var httpUrlNullable = zod.z.string().refine((s) => /^https?:\/\//i.test(s), { message: "must be an http(s) URL" }).nullable();
|
|
828
865
|
var searchResultCommon = {
|
|
829
866
|
kind: zod.z.string(),
|
|
@@ -3452,9 +3489,11 @@ exports.fetchSearchFilters = fetchSearchFilters;
|
|
|
3452
3489
|
exports.fetchSearchProfiles = fetchSearchProfiles;
|
|
3453
3490
|
exports.fetchSimilarProfiles = fetchSimilarProfiles;
|
|
3454
3491
|
exports.fetchSkillSuggestions = fetchSkillSuggestions;
|
|
3492
|
+
exports.fetchSpeakers = fetchSpeakers;
|
|
3455
3493
|
exports.fetchStats = fetchStats;
|
|
3456
3494
|
exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
3457
3495
|
exports.fetchSuggestions = fetchSuggestions;
|
|
3496
|
+
exports.fetchTalks = fetchTalks;
|
|
3458
3497
|
exports.fetchTypeaheadActors = fetchTypeaheadActors;
|
|
3459
3498
|
exports.fetchWipePreview = fetchWipePreview;
|
|
3460
3499
|
exports.followUser = followUser;
|