@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/.env +26 -26
- package/dist/@types/domains/client.d.ts +0 -10
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +0 -2
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/communityRepository/api/createCommunity.d.ts +2 -2
- package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
- package/dist/index.cjs.js +4 -10
- package/dist/index.esm.js +5 -11
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/src/@types/domains/client.ts +0 -12
- package/src/@types/domains/community.ts +0 -3
- package/src/@types/index.ts +0 -1
- package/src/communityRepository/api/createCommunity.ts +1 -3
package/package.json
CHANGED
|
@@ -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 = {
|
package/src/@types/index.ts
CHANGED
|
@@ -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'
|
|
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[];
|