@sublay/js 7.0.0 → 7.0.1
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.d.mts
CHANGED
|
@@ -975,13 +975,7 @@ interface FetchEntityReactionsProps {
|
|
|
975
975
|
}
|
|
976
976
|
interface FetchEntityReactionsResponse {
|
|
977
977
|
data: Reaction[];
|
|
978
|
-
pagination:
|
|
979
|
-
page: number;
|
|
980
|
-
limit: number;
|
|
981
|
-
total: number;
|
|
982
|
-
totalPages: number;
|
|
983
|
-
hasMore: boolean;
|
|
984
|
-
};
|
|
978
|
+
pagination: PaginationMetadata;
|
|
985
979
|
}
|
|
986
980
|
declare function fetchReactions$1(client: SublayHttpClient, data: FetchEntityReactionsProps): Promise<FetchEntityReactionsResponse>;
|
|
987
981
|
|
|
@@ -1127,13 +1121,7 @@ interface FetchCommentReactionsProps {
|
|
|
1127
1121
|
}
|
|
1128
1122
|
interface FetchCommentReactionsResponse {
|
|
1129
1123
|
data: Reaction[];
|
|
1130
|
-
pagination:
|
|
1131
|
-
page: number;
|
|
1132
|
-
limit: number;
|
|
1133
|
-
total: number;
|
|
1134
|
-
totalPages: number;
|
|
1135
|
-
hasMore: boolean;
|
|
1136
|
-
};
|
|
1124
|
+
pagination: PaginationMetadata;
|
|
1137
1125
|
}
|
|
1138
1126
|
declare function fetchReactions(client: SublayHttpClient, data: FetchCommentReactionsProps): Promise<FetchCommentReactionsResponse>;
|
|
1139
1127
|
|
|
@@ -2587,12 +2575,7 @@ interface MessageReaction {
|
|
|
2587
2575
|
}
|
|
2588
2576
|
interface ListReactionsResponse {
|
|
2589
2577
|
data: MessageReaction[];
|
|
2590
|
-
pagination:
|
|
2591
|
-
page: number;
|
|
2592
|
-
limit: number;
|
|
2593
|
-
total: number;
|
|
2594
|
-
hasMore: boolean;
|
|
2595
|
-
};
|
|
2578
|
+
pagination: PaginationMetadata;
|
|
2596
2579
|
}
|
|
2597
2580
|
declare function listReactions(client: SublayHttpClient, data: ListReactionsProps): Promise<ListReactionsResponse>;
|
|
2598
2581
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SublayHttpClient } from "../../core/client";
|
|
2
2
|
import { User } from "../../interfaces/User";
|
|
3
|
+
import { PaginationMetadata } from "../../interfaces/IPaginatedResponse";
|
|
3
4
|
export interface ListReactionsProps {
|
|
4
5
|
conversationId: string;
|
|
5
6
|
messageId: string;
|
|
@@ -17,11 +18,6 @@ export interface MessageReaction {
|
|
|
17
18
|
}
|
|
18
19
|
export interface ListReactionsResponse {
|
|
19
20
|
data: MessageReaction[];
|
|
20
|
-
pagination:
|
|
21
|
-
page: number;
|
|
22
|
-
limit: number;
|
|
23
|
-
total: number;
|
|
24
|
-
hasMore: boolean;
|
|
25
|
-
};
|
|
21
|
+
pagination: PaginationMetadata;
|
|
26
22
|
}
|
|
27
23
|
export declare function listReactions(client: SublayHttpClient, data: ListReactionsProps): Promise<ListReactionsResponse>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SublayHttpClient } from "../../core/client";
|
|
2
2
|
import { Reaction, ReactionType } from "../../interfaces/Reaction";
|
|
3
|
+
import { PaginationMetadata } from "../../interfaces/IPaginatedResponse";
|
|
3
4
|
export interface FetchCommentReactionsProps {
|
|
4
5
|
commentId: string;
|
|
5
6
|
reactionType?: ReactionType;
|
|
@@ -9,12 +10,6 @@ export interface FetchCommentReactionsProps {
|
|
|
9
10
|
}
|
|
10
11
|
export interface FetchCommentReactionsResponse {
|
|
11
12
|
data: Reaction[];
|
|
12
|
-
pagination:
|
|
13
|
-
page: number;
|
|
14
|
-
limit: number;
|
|
15
|
-
total: number;
|
|
16
|
-
totalPages: number;
|
|
17
|
-
hasMore: boolean;
|
|
18
|
-
};
|
|
13
|
+
pagination: PaginationMetadata;
|
|
19
14
|
}
|
|
20
15
|
export declare function fetchReactions(client: SublayHttpClient, data: FetchCommentReactionsProps): Promise<FetchCommentReactionsResponse>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SublayHttpClient } from "../../core/client";
|
|
2
2
|
import { Reaction, ReactionType } from "../../interfaces/Reaction";
|
|
3
|
+
import { PaginationMetadata } from "../../interfaces/IPaginatedResponse";
|
|
3
4
|
export interface FetchEntityReactionsProps {
|
|
4
5
|
entityId: string;
|
|
5
6
|
reactionType?: ReactionType;
|
|
@@ -9,12 +10,6 @@ export interface FetchEntityReactionsProps {
|
|
|
9
10
|
}
|
|
10
11
|
export interface FetchEntityReactionsResponse {
|
|
11
12
|
data: Reaction[];
|
|
12
|
-
pagination:
|
|
13
|
-
page: number;
|
|
14
|
-
limit: number;
|
|
15
|
-
total: number;
|
|
16
|
-
totalPages: number;
|
|
17
|
-
hasMore: boolean;
|
|
18
|
-
};
|
|
13
|
+
pagination: PaginationMetadata;
|
|
19
14
|
}
|
|
20
15
|
export declare function fetchReactions(client: SublayHttpClient, data: FetchEntityReactionsProps): Promise<FetchEntityReactionsResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sublay/js",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"axios": "^1.
|
|
23
|
+
"axios": "^1.15.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"tsup": "^8.
|
|
28
|
-
"typescript": "^
|
|
26
|
+
"@types/node": "^25.9.2",
|
|
27
|
+
"tsup": "^8.5.1",
|
|
28
|
+
"typescript": "^6.0.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsup src/index.ts --dts --format cjs,esm",
|