@amityco/ts-sdk 7.5.4-734bd35a.0 → 7.5.4-91188fd.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/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/utils/tests/dummy/comment.d.ts +1 -1
- package/package.json +1 -1
- package/src/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.ts +2 -1
|
@@ -18,7 +18,7 @@ export declare const generateComment: (params?: Partial<Amity.InternalComment>)
|
|
|
18
18
|
editedAt: string;
|
|
19
19
|
attachments?: Amity.Attachment[] | undefined;
|
|
20
20
|
targetId: string;
|
|
21
|
-
targetType: "
|
|
21
|
+
targetType: "user" | "community" | "content";
|
|
22
22
|
referenceId: string;
|
|
23
23
|
referenceType: Amity.CommentReferenceType;
|
|
24
24
|
dataType?: any;
|
package/package.json
CHANGED
package/src/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaginationController } from '~/core/liveCollection/PaginationController';
|
|
2
|
+
import { COLLECTION_DEFAULT_PAGINATION_LIMIT } from '~/utils/constants';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* TODO: handle cache receive cache option, and cache policy
|
|
@@ -9,7 +10,7 @@ export class JoinRequestsPaginationController extends PaginationController<
|
|
|
9
10
|
Amity.JoinRequestLiveCollection
|
|
10
11
|
> {
|
|
11
12
|
async getRequest(queryParams: Amity.JoinRequestLiveCollection, token: string | undefined) {
|
|
12
|
-
const { limit =
|
|
13
|
+
const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, communityId, ...params } = queryParams;
|
|
13
14
|
const options = token ? { token } : { limit };
|
|
14
15
|
|
|
15
16
|
const { data: queryResponse } = await this.http.get<
|