@stream-io/feeds-client 0.2.15 → 0.2.16
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/CHANGELOG.md +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{index-DRX66SIx.js → index-CaFrpjpl.js} +20 -2
- package/dist/index-CaFrpjpl.js.map +1 -0
- package/dist/{index-BSzSBlMh.mjs → index-J3MkoYPN.mjs} +20 -2
- package/dist/index-J3MkoYPN.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +4 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +7 -0
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +28 -0
- package/src/gen/models/index.ts +10 -0
- package/dist/index-BSzSBlMh.mjs.map +0 -1
- package/dist/index-DRX66SIx.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.16](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.15...@stream-io/feeds-client-0.2.16) (2025-10-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* New own_capabilities batch endpoint ([#134](https://github.com/GetStream/stream-feeds-js/issues/134)) ([973f297](https://github.com/GetStream/stream-feeds-js/commit/973f297d74e073ecde7f0acb64b14466b0fb4726))
|
|
11
|
+
|
|
5
12
|
## [0.2.15](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.14...@stream-io/feeds-client-0.2.15) (2025-10-02)
|
|
6
13
|
|
|
7
14
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const stateStore = require("@stream-io/state-store");
|
|
4
|
-
const index = require("../index-
|
|
4
|
+
const index = require("../index-CaFrpjpl.js");
|
|
5
5
|
const loggerInternal = require("@stream-io/logger");
|
|
6
6
|
class SearchController {
|
|
7
7
|
constructor({ config, sources } = {}) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require$$0 = require("react");
|
|
4
4
|
require("@stream-io/state-store");
|
|
5
|
-
const index = require("../index-
|
|
5
|
+
const index = require("../index-CaFrpjpl.js");
|
|
6
6
|
require("@stream-io/logger");
|
|
7
7
|
require("axios");
|
|
8
8
|
var shim = { exports: {} };
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StateStore } from "@stream-io/state-store";
|
|
2
2
|
export * from "@stream-io/state-store";
|
|
3
|
-
import { d as debounce } from "../index-
|
|
4
|
-
import { C, f, a, b, F, S, c, e, o, q, p, m, j, g, k, h, l, i, r, s, u, n } from "../index-
|
|
3
|
+
import { d as debounce } from "../index-J3MkoYPN.mjs";
|
|
4
|
+
import { C, f, a, b, F, S, c, e, o, q, p, m, j, g, k, h, l, i, r, s, u, n } from "../index-J3MkoYPN.mjs";
|
|
5
5
|
import { LogLevelEnum, restoreDefaults } from "@stream-io/logger";
|
|
6
6
|
class SearchController {
|
|
7
7
|
constructor({ config, sources } = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0, { useCallback, useMemo, useState, useEffect, createContext, useContext, useRef } from "react";
|
|
2
2
|
import "@stream-io/state-store";
|
|
3
|
-
import { F as FeedsClient, j as isCommentResponse, e as checkHasAnotherPage, b as FeedOwnCapability } from "../index-
|
|
3
|
+
import { F as FeedsClient, j as isCommentResponse, e as checkHasAnotherPage, b as FeedOwnCapability } from "../index-J3MkoYPN.mjs";
|
|
4
4
|
import "@stream-io/logger";
|
|
5
5
|
import "axios";
|
|
6
6
|
var shim = { exports: {} };
|
|
@@ -2402,6 +2402,24 @@ class FeedsApi {
|
|
|
2402
2402
|
decoders.CreateFeedsBatchResponse?.(response.body);
|
|
2403
2403
|
return { ...response.body, metadata: response.metadata };
|
|
2404
2404
|
}
|
|
2405
|
+
async ownCapabilitiesBatch(request) {
|
|
2406
|
+
const queryParams = {
|
|
2407
|
+
connection_id: request?.connection_id
|
|
2408
|
+
};
|
|
2409
|
+
const body = {
|
|
2410
|
+
feeds: request?.feeds
|
|
2411
|
+
};
|
|
2412
|
+
const response = await this.apiClient.sendRequest(
|
|
2413
|
+
"POST",
|
|
2414
|
+
"/api/v2/feeds/feeds/own_capabilities/batch",
|
|
2415
|
+
void 0,
|
|
2416
|
+
queryParams,
|
|
2417
|
+
body,
|
|
2418
|
+
"application/json"
|
|
2419
|
+
);
|
|
2420
|
+
decoders.OwnCapabilitiesBatchResponse?.(response.body);
|
|
2421
|
+
return { ...response.body, metadata: response.metadata };
|
|
2422
|
+
}
|
|
2405
2423
|
async _queryFeeds(request) {
|
|
2406
2424
|
const queryParams = {
|
|
2407
2425
|
connection_id: request?.connection_id
|
|
@@ -3722,7 +3740,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
3722
3740
|
};
|
|
3723
3741
|
return result;
|
|
3724
3742
|
};
|
|
3725
|
-
const version = "0.2.
|
|
3743
|
+
const version = "0.2.16";
|
|
3726
3744
|
class ApiClient {
|
|
3727
3745
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
3728
3746
|
this.apiKey = apiKey;
|
|
@@ -6862,4 +6880,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
|
|
|
6862
6880
|
exports.shouldUpdateState = shouldUpdateState;
|
|
6863
6881
|
exports.uniqueArrayMerge = uniqueArrayMerge;
|
|
6864
6882
|
exports.updateEntityInArray = updateEntityInArray;
|
|
6865
|
-
//# sourceMappingURL=index-
|
|
6883
|
+
//# sourceMappingURL=index-CaFrpjpl.js.map
|