@amityco/ts-sdk 7.4.1-b9f48528.0 → 7.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.4.1-b9f48528.0",
3
+ "version": "7.5.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,17 +1,10 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { Emitter } from 'mitt';
3
3
 
4
- export const enum MembershipAcceptanceTypeEnum {
5
- AUTOMATIC = 'automatic',
6
- INVITATION = 'invitation',
7
- }
8
-
9
4
  declare global {
10
5
  namespace Amity {
11
6
  type Logger = (topic: string, ...args: any[]) => void;
12
7
 
13
- type MembershipAcceptanceType = MembershipAcceptanceTypeEnum;
14
-
15
8
  const enum TokenTerminationReason {
16
9
  GLOBAL_BAN = 'globalBan',
17
10
  USER_DELETED = 'userDeleted',
@@ -131,12 +124,7 @@ declare global {
131
124
  showMyPost: boolean;
132
125
  showOnlyMyFeed: boolean;
133
126
  };
134
- story: {
135
- allowAllUserToCreateStory: boolean;
136
- expiryTimeMinutes: number;
137
- };
138
127
  userPrivacySetting: 'public' | 'private';
139
- membershipAcceptance: Amity.MembershipAcceptanceType;
140
128
  };
141
129
 
142
130
  type ConnectClientParams = {
@@ -95,9 +95,6 @@ declare global {
95
95
  hasFlaggedPost: boolean;
96
96
 
97
97
  allowCommentInStory?: boolean;
98
-
99
- isDiscoverable: boolean;
100
- requiresJoinApproval: boolean;
101
98
  } & Amity.Taggable &
102
99
  Amity.Metadata &
103
100
  Amity.Timestamps &
@@ -38,4 +38,3 @@ export * from './domains/post';
38
38
  export * from './domains/story';
39
39
  export * from './domains/ad';
40
40
  export * from './domains/notification';
41
- export * from './domains/client';
@@ -11,7 +11,7 @@ import { prepareCommunityPayload, prepareCommunityRequest } from '../utils';
11
11
  /**
12
12
  * ```js
13
13
  * import { createCommunity } from '@amityco/ts-sdk'
14
- * const created = await createCommunity({ communityId: 'foobar', displayName: 'foobar', isDiscoverable: true, requiresJoinApproval: false })
14
+ * const created = await createCommunity({ communityId: 'foobar', displayName: 'foobar' })
15
15
  * ```
16
16
  *
17
17
  * Creates an {@link Amity.Community}
@@ -33,8 +33,6 @@ export const createCommunity = async (
33
33
  | 'postSetting'
34
34
  | 'tags'
35
35
  | 'metadata'
36
- | 'isDiscoverable'
37
- | 'requiresJoinApproval'
38
36
  > &
39
37
  Amity.CommunityStorySettings & {
40
38
  userIds?: string[];