@amityco/ts-sdk 0.0.1-c5818f3.0 → 0.0.1-c58e50d.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.
@@ -14,5 +14,6 @@
14
14
  */
15
15
  export declare const createChannel: <T extends Amity.ChannelType>(bundle: {
16
16
  type: T;
17
+ userIds?: string | undefined;
17
18
  } & Pick<Amity.Channel<T>, "displayName" | "avatarFileId" | "tags" | "metadata">) => Promise<Amity.Channel<any>>;
18
19
  //# sourceMappingURL=createChannel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channel/api/createChannel.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;gHAgBzB,CAAA"}
1
+ {"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channel/api/createChannel.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;;gHAiBzB,CAAA"}
@@ -21,6 +21,8 @@ export declare const queryPosts: {
21
21
  isDeleted?: Amity.Post['isDeleted'];
22
22
  hasFlag?: boolean;
23
23
  feedType?: 'reviewing' | 'published';
24
+ tags?: Amity.Taggable['tags'];
25
+ matchingOnlyParentPost?: boolean;
24
26
  page?: Amity.Page;
25
27
  }): Promise<{
26
28
  data: Record<string, Amity.Post<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"queryPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/queryPosts.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU;YACd;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC;QACrC,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,CAAA;QACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,CAAA;QACnC,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,CAAA;QACpC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;KAClB;;;;;IAkCH;;;;;;;;;;;;OAYG;mBAEM,WAAW,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAhBxC,CAAA"}
1
+ {"version":3,"file":"queryPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/queryPosts.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU;YACd;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC;QACrC,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,CAAA;QACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,CAAA;QACnC,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,CAAA;QACpC,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAA;QAChC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;KAClB;;;;;IAkCH;;;;;;;;;;;;OAYG;mBAEM,WAAW,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAhBxC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "0.0.1-c5818f3.0",
3
+ "version": "0.0.1-c58e50d.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",
@@ -18,7 +18,8 @@ import { ingestInCache } from '~/core/cache'
18
18
  * @async
19
19
  */
20
20
  export const createChannel = async <T extends Amity.ChannelType>(
21
- bundle: { type: T } & Pick<Amity.Channel<T>, 'displayName' | 'avatarFileId' | 'tags' | 'metadata'>
21
+ bundle: { type: T, userIds?: Amity.User['userId'] }
22
+ & Pick<Amity.Channel<T>, 'displayName' | 'avatarFileId' | 'tags' | 'metadata'>
22
23
  ) => {
23
24
  const client = getActiveClient()
24
25
  client.log('user/createChannel', bundle)
@@ -28,6 +28,8 @@ export const queryPosts = async (
28
28
  isDeleted?: Amity.Post['isDeleted']
29
29
  hasFlag?: boolean
30
30
  feedType?: 'reviewing' | 'published'
31
+ tags?: Amity.Taggable['tags'],
32
+ matchingOnlyParentPost?: boolean
31
33
  page?: Amity.Page
32
34
  }
33
35
  ) => {