@foru-ms/sdk 2.1.13 → 2.1.14
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/posts/client/Client.js +4 -2
- package/dist/cjs/api/resources/posts/client/requests/ListPostsPostsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/posts/client/requests/ListPostsRequest.d.ts +2 -0
- package/dist/cjs/api/types/PostList.d.ts +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/posts/client/Client.mjs +4 -2
- package/dist/esm/api/resources/posts/client/requests/ListPostsPostsRequest.d.mts +2 -0
- package/dist/esm/api/resources/posts/client/requests/ListPostsRequest.d.mts +2 -0
- package/dist/esm/api/types/PostList.d.mts +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.1.
|
|
47
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
46
|
+
"X-Fern-SDK-Version": "2.1.14",
|
|
47
|
+
"User-Agent": "@foru-ms/sdk/2.1.14",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -89,10 +89,11 @@ class PostsClient {
|
|
|
89
89
|
__list() {
|
|
90
90
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
91
91
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
92
|
-
const { limit, cursor, userId, sort, search, type: type_ } = request;
|
|
92
|
+
const { limit, cursor, threadId, userId, sort, search, type: type_ } = request;
|
|
93
93
|
const _queryParams = {
|
|
94
94
|
limit,
|
|
95
95
|
cursor,
|
|
96
|
+
threadId,
|
|
96
97
|
userId,
|
|
97
98
|
sort: sort != null ? sort : undefined,
|
|
98
99
|
search,
|
|
@@ -668,10 +669,11 @@ class PostsClient {
|
|
|
668
669
|
__listPosts(request, requestOptions) {
|
|
669
670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
670
671
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
671
|
-
const { id, limit, cursor, userId, sort, search, type: type_ } = request;
|
|
672
|
+
const { id, limit, cursor, threadId, userId, sort, search, type: type_ } = request;
|
|
672
673
|
const _queryParams = {
|
|
673
674
|
limit,
|
|
674
675
|
cursor,
|
|
676
|
+
threadId,
|
|
675
677
|
userId,
|
|
676
678
|
sort: sort != null ? sort : undefined,
|
|
677
679
|
search,
|
|
@@ -12,6 +12,8 @@ export interface ListPostsPostsRequest {
|
|
|
12
12
|
limit?: number;
|
|
13
13
|
/** Cursor for pagination */
|
|
14
14
|
cursor?: string;
|
|
15
|
+
/** Filter posts by thread ID */
|
|
16
|
+
threadId?: string;
|
|
15
17
|
/** Filter posts by author ID */
|
|
16
18
|
userId?: string;
|
|
17
19
|
/** Sort posts by creation time */
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.1.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.14";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "2.1.
|
|
10
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
9
|
+
"X-Fern-SDK-Version": "2.1.14",
|
|
10
|
+
"User-Agent": "@foru-ms/sdk/2.1.14",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -53,10 +53,11 @@ export class PostsClient {
|
|
|
53
53
|
__list() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
55
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
56
|
-
const { limit, cursor, userId, sort, search, type: type_ } = request;
|
|
56
|
+
const { limit, cursor, threadId, userId, sort, search, type: type_ } = request;
|
|
57
57
|
const _queryParams = {
|
|
58
58
|
limit,
|
|
59
59
|
cursor,
|
|
60
|
+
threadId,
|
|
60
61
|
userId,
|
|
61
62
|
sort: sort != null ? sort : undefined,
|
|
62
63
|
search,
|
|
@@ -632,10 +633,11 @@ export class PostsClient {
|
|
|
632
633
|
__listPosts(request, requestOptions) {
|
|
633
634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
634
635
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
635
|
-
const { id, limit, cursor, userId, sort, search, type: type_ } = request;
|
|
636
|
+
const { id, limit, cursor, threadId, userId, sort, search, type: type_ } = request;
|
|
636
637
|
const _queryParams = {
|
|
637
638
|
limit,
|
|
638
639
|
cursor,
|
|
640
|
+
threadId,
|
|
639
641
|
userId,
|
|
640
642
|
sort: sort != null ? sort : undefined,
|
|
641
643
|
search,
|
|
@@ -12,6 +12,8 @@ export interface ListPostsPostsRequest {
|
|
|
12
12
|
limit?: number;
|
|
13
13
|
/** Cursor for pagination */
|
|
14
14
|
cursor?: string;
|
|
15
|
+
/** Filter posts by thread ID */
|
|
16
|
+
threadId?: string;
|
|
15
17
|
/** Filter posts by author ID */
|
|
16
18
|
userId?: string;
|
|
17
19
|
/** Sort posts by creation time */
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.1.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.14";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.1.
|
|
1
|
+
export const SDK_VERSION = "2.1.14";
|