@amityco/ts-sdk 7.7.1-9aecf0d2.0 → 7.7.1-9bf1d358.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.
@@ -1 +1 @@
1
- {"version":3,"file":"PostPaginationController.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/observers/getPosts/PostPaginationController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAIlF,qBAAa,wBAAyB,SAAQ,oBAAoB,CAChE,MAAM,EACN,KAAK,CAAC,kBAAkB,CACzB;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,kBAAkB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAoClF"}
1
+ {"version":3,"file":"PostPaginationController.d.ts","sourceRoot":"","sources":["../../../../src/postRepository/observers/getPosts/PostPaginationController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAIlF,qBAAa,wBAAyB,SAAQ,oBAAoB,CAChE,MAAM,EACN,KAAK,CAAC,kBAAkB,CACzB;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,kBAAkB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAwClF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.7.1-9aecf0d2.0",
3
+ "version": "7.7.1-9bf1d358.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",
@@ -11,7 +11,7 @@ export const PostContentType = Object.freeze({
11
11
  declare global {
12
12
  namespace Amity {
13
13
  // bad hack until we get proper feed objects in backend
14
- type PostTargetType = Amity.Feed['targetType'] | 'content';
14
+ type PostTargetType = Amity.Feed['targetType'] | 'content' | 'all';
15
15
 
16
16
  type PostContentType = ValueOf<typeof PostContentType> | string;
17
17
 
@@ -106,6 +106,7 @@ declare global {
106
106
  matchingOnlyParentPost?: boolean;
107
107
  page?: string;
108
108
  limit?: number;
109
+ hashtags?: string[];
109
110
  };
110
111
 
111
112
  // Omit sortBy explained in asc-3398
@@ -11,6 +11,8 @@ export class PostPaginationController extends PaginationController<
11
11
  limit = COLLECTION_DEFAULT_PAGINATION_LIMIT,
12
12
  includeDeleted,
13
13
  matchingOnlyParentPost,
14
+ targetType,
15
+ hashtags,
14
16
  ...params
15
17
  } = queryParams;
16
18
 
@@ -36,6 +38,8 @@ export class PostPaginationController extends PaginationController<
36
38
  * By default, BE queries only parent post
37
39
  */
38
40
  matchingOnlyParentPost: matchingOnlyParentPost ?? !dataTypes?.length,
41
+ targetType,
42
+ ...(targetType === 'all' && hashtags && { hashtags }),
39
43
  options,
40
44
  },
41
45
  },