@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.
@@ -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: "community" | "user" | "content";
21
+ targetType: "user" | "community" | "content";
22
22
  referenceId: string;
23
23
  referenceType: Amity.CommentReferenceType;
24
24
  dataType?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.5.4-734bd35a.0",
3
+ "version": "7.5.4-91188fd.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -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 = 20, communityId, ...params } = queryParams;
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<