@amityco/ts-sdk 7.5.1-a2dab79.0 → 7.5.1-d432304.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":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,SAiDhF,CAAC"}
1
+ {"version":3,"file":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,SAgDhF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.5.1-a2dab79.0",
3
+ "version": "7.5.1-d432304.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",
@@ -274,7 +274,7 @@ declare global {
274
274
  callback: Amity.LiveCollectionCallback<Amity.Invitation>,
275
275
  ) => Amity.Unsubscriber;
276
276
  getInvitation: () => Promise<Amity.Invitation | undefined>;
277
- join: () => Promise<void>;
277
+ join: () => Promise<Amity.JoinResult>;
278
278
  getJoinRequests: (
279
279
  params: QueryJoinRequest,
280
280
  callback: Amity.LiveCollectionCallback<Amity.JoinRequest>,
@@ -35,9 +35,8 @@ export const communityLinkedObject = (community: Amity.InternalCommunity): Amity
35
35
  const { data } = await getInvitation('community', community.communityId);
36
36
  return data;
37
37
  },
38
- join: async () => {
39
- await joinRequest(community.communityId);
40
- },
38
+ join: async () => joinRequest(community.communityId),
39
+
41
40
  getJoinRequests: (
42
41
  params: Omit<Amity.QueryJoinRequest, 'communityId'>,
43
42
  callback: Amity.LiveCollectionCallback<Amity.JoinRequest>,