@patra-cid/akaim-sdk-rn 0.4.16-denymsg.3
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/AkaimSdkRn.podspec +96 -0
- package/LICENSE +20 -0
- package/README.md +109 -0
- package/android/build.gradle +86 -0
- package/android/gradle.properties +8 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/akaimsdkrn/AkaimSdkRnModule.kt +1327 -0
- package/android/src/main/java/com/akaimsdkrn/AkaimSdkRnPackage.kt +33 -0
- package/android/src/main/java/com/akaimsdkrn/CallbackPromise.kt +27 -0
- package/android/src/main/java/com/akaimsdkrn/SendMsgCallBack.kt +32 -0
- package/android/src/main/java/com/akaimsdkrn/listener/AdvancedMsgListener.kt +36 -0
- package/android/src/main/java/com/akaimsdkrn/listener/BatchMsgListener.kt +16 -0
- package/android/src/main/java/com/akaimsdkrn/listener/InitSDKListener.kt +39 -0
- package/android/src/main/java/com/akaimsdkrn/listener/OnConversationListener.kt +40 -0
- package/android/src/main/java/com/akaimsdkrn/listener/OnFriendshipListener.kt +53 -0
- package/android/src/main/java/com/akaimsdkrn/listener/OnGroupListener.kt +52 -0
- package/android/src/main/java/com/akaimsdkrn/listener/SetCustomBusinessListener.kt +12 -0
- package/android/src/main/java/com/akaimsdkrn/listener/UploadFileCallbackListener.kt +52 -0
- package/android/src/main/java/com/akaimsdkrn/listener/UploadLogProgressListener.kt +20 -0
- package/android/src/main/java/com/akaimsdkrn/listener/UserListener.kt +28 -0
- package/android/src/main/java/com/akaimsdkrn/utils/Emitter.kt +78 -0
- package/ios/AkaimSdkRn.h +17 -0
- package/ios/AkaimSdkRn.mm +1622 -0
- package/ios/CallbackPromise.h +19 -0
- package/ios/CallbackPromise.mm +58 -0
- package/ios/CodeGenStructHelper.h +17 -0
- package/ios/ReactLazyVectorConverter.h +22 -0
- package/ios/SendMessageCallback.h +22 -0
- package/ios/SendMessageCallback.mm +67 -0
- package/ios/UploadFileCallback.h +21 -0
- package/ios/UploadFileCallback.mm +80 -0
- package/ios/UploadLogCallback.h +22 -0
- package/ios/UploadLogCallback.mm +44 -0
- package/lib/module/NativeAkaimSdkRn.js +153 -0
- package/lib/module/NativeAkaimSdkRn.js.map +1 -0
- package/lib/module/index.js +361 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeAkaimSdkRn.d.ts +947 -0
- package/lib/typescript/src/NativeAkaimSdkRn.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +118 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +171 -0
- package/src/NativeAkaimSdkRn.ts +1177 -0
- package/src/index.tsx +758 -0
package/src/index.tsx
ADDED
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import AkaimSdkRn from './NativeAkaimSdkRn';
|
|
2
|
+
import * as T from './NativeAkaimSdkRn';
|
|
3
|
+
|
|
4
|
+
export function multiply(a: number, b: number): number {
|
|
5
|
+
return AkaimSdkRn.multiply(a, b);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// ==================== SDK Initialization & Authentication ====================
|
|
9
|
+
// logLevel: Debug = 5, Info = 4, Warn = 3, Error = 2, Fatal = 1, Panic = 0
|
|
10
|
+
|
|
11
|
+
export function initSDK(
|
|
12
|
+
config: T.InitOptions,
|
|
13
|
+
operationID: string
|
|
14
|
+
): Promise<any> {
|
|
15
|
+
return AkaimSdkRn.initSDK(config, operationID);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function unInitSDK(operationID?: string): Promise<any> {
|
|
19
|
+
return AkaimSdkRn.unInitSDK(operationID);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function login(
|
|
23
|
+
options: T.LoginParams,
|
|
24
|
+
operationID: string
|
|
25
|
+
): Promise<any> {
|
|
26
|
+
return AkaimSdkRn.login(options, operationID);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function logout(operationID: string): Promise<any> {
|
|
30
|
+
return AkaimSdkRn.logout(operationID);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function getLoginStatus(operationID: string): Promise<number> {
|
|
34
|
+
return AkaimSdkRn.getLoginStatus(operationID);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function getLoginUserID(): Promise<string> {
|
|
38
|
+
return AkaimSdkRn.getLoginUserID();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function setAppBackgroundStatus(
|
|
42
|
+
isBackground: boolean,
|
|
43
|
+
operationID: string
|
|
44
|
+
): Promise<any> {
|
|
45
|
+
return AkaimSdkRn.setAppBackgroundStatus(isBackground, operationID);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function networkStatusChange(operationID: string): Promise<any> {
|
|
49
|
+
return AkaimSdkRn.networkStatusChange(operationID);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ==================== User Information ====================
|
|
53
|
+
export function getUsersInfo(
|
|
54
|
+
uidList: string[],
|
|
55
|
+
operationID: string
|
|
56
|
+
): Promise<T.PublicUserItem[]> {
|
|
57
|
+
return AkaimSdkRn.getUsersInfo(uidList, operationID);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function setSelfInfo(
|
|
61
|
+
info: T.SelfUserInfo,
|
|
62
|
+
operationID: string
|
|
63
|
+
): Promise<any> {
|
|
64
|
+
return AkaimSdkRn.setSelfInfo(info, operationID);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function getSelfUserInfo(operationID: string): Promise<any> {
|
|
68
|
+
return AkaimSdkRn.getSelfUserInfo(operationID);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function subscribeUsersStatus(
|
|
72
|
+
uidList: string[],
|
|
73
|
+
operationID: string
|
|
74
|
+
): Promise<T.UserOnlineState> {
|
|
75
|
+
return AkaimSdkRn.subscribeUsersStatus(uidList, operationID);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function unsubscribeUsersStatus(
|
|
79
|
+
uidList: string[],
|
|
80
|
+
operationID: string
|
|
81
|
+
): Promise<T.UserOnlineState> {
|
|
82
|
+
return AkaimSdkRn.unsubscribeUsersStatus(uidList, operationID);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function getSubscribeUsersStatus(
|
|
86
|
+
operationID: string
|
|
87
|
+
): Promise<T.UserOnlineState[]> {
|
|
88
|
+
return AkaimSdkRn.getSubscribeUsersStatus(operationID);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ==================== Conversation Management ====================
|
|
92
|
+
export function getAllConversationList(operationID: string): Promise<any> {
|
|
93
|
+
return AkaimSdkRn.getAllConversationList(operationID);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function getConversationListSplit(
|
|
97
|
+
options: T.SplitConversationParams,
|
|
98
|
+
operationID: string
|
|
99
|
+
): Promise<any> {
|
|
100
|
+
return AkaimSdkRn.getConversationListSplit(options, operationID);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function getOneConversation(
|
|
104
|
+
options: T.GetOneConversationParams,
|
|
105
|
+
operationID: string
|
|
106
|
+
): Promise<any> {
|
|
107
|
+
return AkaimSdkRn.getOneConversation(options, operationID);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function getMultipleConversation(
|
|
111
|
+
conversationIDList: string[],
|
|
112
|
+
operationID: string
|
|
113
|
+
): Promise<any> {
|
|
114
|
+
return AkaimSdkRn.getMultipleConversation(conversationIDList, operationID);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function getConversationIDBySessionType(
|
|
118
|
+
options: T.GetOneConversationParams,
|
|
119
|
+
operationID: string
|
|
120
|
+
): Promise<T.ConversationItem> {
|
|
121
|
+
return AkaimSdkRn.getConversationIDBySessionType(options, operationID);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function setGlobalRecvMessageOpt(
|
|
125
|
+
opt: T.MessageReceiveOptType,
|
|
126
|
+
operationID: string
|
|
127
|
+
): Promise<any> {
|
|
128
|
+
return AkaimSdkRn.setGlobalRecvMessageOpt(opt, operationID);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function hideConversation(
|
|
132
|
+
conversationID: string,
|
|
133
|
+
operationID: string
|
|
134
|
+
): Promise<any> {
|
|
135
|
+
return AkaimSdkRn.hideConversation(conversationID, operationID);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function setConversation(
|
|
139
|
+
options: T.SetConversationParams,
|
|
140
|
+
operationID: string
|
|
141
|
+
): Promise<any> {
|
|
142
|
+
return AkaimSdkRn.setConversation(options, operationID);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function setConversationDraft(
|
|
146
|
+
options: T.SetConversationDraftParams,
|
|
147
|
+
operationID: string
|
|
148
|
+
): Promise<any> {
|
|
149
|
+
return AkaimSdkRn.setConversationDraft(options, operationID);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function resetConversationGroupAtType(
|
|
153
|
+
conversationID: string,
|
|
154
|
+
operationID: string
|
|
155
|
+
): Promise<any> {
|
|
156
|
+
return AkaimSdkRn.resetConversationGroupAtType(conversationID, operationID);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function pinConversation(
|
|
160
|
+
options: T.PinConversationParams,
|
|
161
|
+
operationID: string
|
|
162
|
+
): Promise<any> {
|
|
163
|
+
return AkaimSdkRn.pinConversation(options, operationID);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function setConversationPrivateChat(
|
|
167
|
+
options: T.SetConversationPrivateParams,
|
|
168
|
+
operationID: string
|
|
169
|
+
): Promise<any> {
|
|
170
|
+
return AkaimSdkRn.setConversationPrivateChat(options, operationID);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function setConversationBurnDuration(
|
|
174
|
+
options: T.SetBurnDurationParams,
|
|
175
|
+
operationID: string
|
|
176
|
+
): Promise<any> {
|
|
177
|
+
return AkaimSdkRn.setConversationBurnDuration(options, operationID);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function setConversationRecvMessageOpt(
|
|
181
|
+
options: T.SetConversationRecvOptParams,
|
|
182
|
+
operationID: string
|
|
183
|
+
): Promise<any> {
|
|
184
|
+
return AkaimSdkRn.setConversationRecvMessageOpt(options, operationID);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function getTotalUnreadMsgCount(operationID: string): Promise<any> {
|
|
188
|
+
return AkaimSdkRn.getTotalUnreadMsgCount(operationID);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// ==================== Message Creation ====================
|
|
192
|
+
export function createTextMessage(
|
|
193
|
+
text: string,
|
|
194
|
+
operationID: string
|
|
195
|
+
): Promise<T.MessageItem> {
|
|
196
|
+
return AkaimSdkRn.createTextMessage(text, operationID);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function createTextAtMessage(
|
|
200
|
+
options: T.AtMsgParams,
|
|
201
|
+
operationID: string
|
|
202
|
+
): Promise<T.MessageItem> {
|
|
203
|
+
return AkaimSdkRn.createTextAtMessage(options, operationID);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function createLocationMessage(
|
|
207
|
+
options: T.LocationMsgParams,
|
|
208
|
+
operationID: string
|
|
209
|
+
): Promise<T.MessageItem> {
|
|
210
|
+
return AkaimSdkRn.createLocationMessage(options, operationID);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function createCustomMessage(
|
|
214
|
+
options: T.CustomMsgParams,
|
|
215
|
+
operationID: string
|
|
216
|
+
): Promise<T.MessageItem> {
|
|
217
|
+
return AkaimSdkRn.createCustomMessage(options, operationID);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function createQuoteMessage(
|
|
221
|
+
options: T.QuoteMsgParams,
|
|
222
|
+
operationID: string
|
|
223
|
+
): Promise<T.MessageItem> {
|
|
224
|
+
return AkaimSdkRn.createQuoteMessage(options, operationID);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function createCardMessage(
|
|
228
|
+
options: T.CardElem,
|
|
229
|
+
operationID: string
|
|
230
|
+
): Promise<T.MessageItem> {
|
|
231
|
+
return AkaimSdkRn.createCardMessage(options, operationID);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function createImageMessageFromFullPath(
|
|
235
|
+
imagePath: string,
|
|
236
|
+
operationID: string
|
|
237
|
+
): Promise<T.MessageItem> {
|
|
238
|
+
return AkaimSdkRn.createImageMessageFromFullPath(imagePath, operationID);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function createImageMessageByURL(
|
|
242
|
+
options: T.ImageMsgParams,
|
|
243
|
+
operationID: string
|
|
244
|
+
): Promise<T.MessageItem> {
|
|
245
|
+
return AkaimSdkRn.createImageMessageByURL(options, operationID);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export function createSoundMessageFromFullPath(
|
|
249
|
+
options: T.SoundMsgByPathParams,
|
|
250
|
+
operationID: string
|
|
251
|
+
): Promise<T.MessageItem> {
|
|
252
|
+
return AkaimSdkRn.createSoundMessageFromFullPath(options, operationID);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function createSoundMessageByURL(
|
|
256
|
+
options: T.SoundMsgParams,
|
|
257
|
+
operationID: string
|
|
258
|
+
): Promise<T.MessageItem> {
|
|
259
|
+
return AkaimSdkRn.createSoundMessageByURL(options, operationID);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function createVideoMessageFromFullPath(
|
|
263
|
+
options: T.VideoMsgByPathParams,
|
|
264
|
+
operationID: string
|
|
265
|
+
): Promise<T.MessageItem> {
|
|
266
|
+
return AkaimSdkRn.createVideoMessageFromFullPath(options, operationID);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export function createVideoMessageByURL(
|
|
270
|
+
options: T.VideoMsgParams,
|
|
271
|
+
operationID: string
|
|
272
|
+
): Promise<T.MessageItem> {
|
|
273
|
+
return AkaimSdkRn.createVideoMessageByURL(options, operationID);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function createFileMessage(
|
|
277
|
+
options: T.FileMsgByPathParams,
|
|
278
|
+
operationID: string
|
|
279
|
+
): Promise<T.MessageItem> {
|
|
280
|
+
return AkaimSdkRn.createFileMessage(options, operationID);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export function createFileMessageByURL(
|
|
284
|
+
options: T.FileMsgParams,
|
|
285
|
+
operationID: string
|
|
286
|
+
): Promise<T.MessageItem> {
|
|
287
|
+
return AkaimSdkRn.createFileMessageByURL(options, operationID);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export function createFileMessageFromFullPath(
|
|
291
|
+
params: T.FileMsgByPathParams,
|
|
292
|
+
operationID: string
|
|
293
|
+
): Promise<T.MessageItem> {
|
|
294
|
+
return AkaimSdkRn.createFileMessageFromFullPath(params, operationID);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export function createMergerMessage(
|
|
298
|
+
options: T.MergerMsgParams,
|
|
299
|
+
operationID: string
|
|
300
|
+
): Promise<T.MessageItem> {
|
|
301
|
+
return AkaimSdkRn.createMergerMessage(options, operationID);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export function createFaceMessage(
|
|
305
|
+
options: T.FaceMessageParams,
|
|
306
|
+
operationID: string
|
|
307
|
+
): Promise<T.MessageItem> {
|
|
308
|
+
return AkaimSdkRn.createFaceMessage(options, operationID);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export function createForwardMessage(
|
|
312
|
+
message: T.MessageItem,
|
|
313
|
+
operationID: string
|
|
314
|
+
): Promise<T.MessageItem> {
|
|
315
|
+
return AkaimSdkRn.createForwardMessage(message, operationID);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// ==================== Message Operations ====================
|
|
319
|
+
export function sendMessage(
|
|
320
|
+
options: T.SendMsgParams,
|
|
321
|
+
operationID: string
|
|
322
|
+
): Promise<T.MessageItem> {
|
|
323
|
+
return AkaimSdkRn.sendMessage(options, operationID);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export function sendMessageNotOss(
|
|
327
|
+
options: T.SendMsgParams,
|
|
328
|
+
operationID: string
|
|
329
|
+
): Promise<T.MessageItem> {
|
|
330
|
+
return AkaimSdkRn.sendMessageNotOss(options, operationID);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export function findMessageList(
|
|
334
|
+
findOptions: T.FindMessageParams[],
|
|
335
|
+
operationID: string
|
|
336
|
+
): Promise<T.MessageItem[]> {
|
|
337
|
+
return AkaimSdkRn.findMessageList(findOptions, operationID);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export function getAdvancedHistoryMessageList(
|
|
341
|
+
options: T.GetAdvancedHistoryMsgParams,
|
|
342
|
+
operationID: string
|
|
343
|
+
): Promise<T.AdvancedGetMessageResult> {
|
|
344
|
+
return AkaimSdkRn.getAdvancedHistoryMessageList(options, operationID);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export function getAdvancedHistoryMessageListReverse(
|
|
348
|
+
options: T.GetAdvancedHistoryMsgParams,
|
|
349
|
+
operationID: string
|
|
350
|
+
): Promise<T.AdvancedGetMessageResult> {
|
|
351
|
+
return AkaimSdkRn.getAdvancedHistoryMessageListReverse(options, operationID);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export function revokeMessage(
|
|
355
|
+
options: T.OpreateMessageParams,
|
|
356
|
+
operationID: string
|
|
357
|
+
): Promise<any> {
|
|
358
|
+
return AkaimSdkRn.revokeMessage(options, operationID);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export function typingStatusUpdate(
|
|
362
|
+
options: T.TypingUpdateParams,
|
|
363
|
+
operationID: string
|
|
364
|
+
): Promise<any> {
|
|
365
|
+
return AkaimSdkRn.typingStatusUpdate(options, operationID);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export function changeInputStates(
|
|
369
|
+
options: T.ChangeInputStatesParams,
|
|
370
|
+
operationID: string
|
|
371
|
+
): Promise<any> {
|
|
372
|
+
return AkaimSdkRn.changeInputStates(options, operationID);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export function getInputStates(
|
|
376
|
+
options: T.GetInputStatesParams,
|
|
377
|
+
operationID: string
|
|
378
|
+
): Promise<number[]> {
|
|
379
|
+
return AkaimSdkRn.getInputStates(options, operationID);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export function markConversationMessageAsRead(
|
|
383
|
+
conversationID: string,
|
|
384
|
+
operationID: string
|
|
385
|
+
): Promise<any> {
|
|
386
|
+
return AkaimSdkRn.markConversationMessageAsRead(conversationID, operationID);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export function deleteMessageFromLocalStorage(
|
|
390
|
+
options: T.OpreateMessageParams,
|
|
391
|
+
operationID: string
|
|
392
|
+
): Promise<any> {
|
|
393
|
+
return AkaimSdkRn.deleteMessageFromLocalStorage(options, operationID);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export function deleteMessage(
|
|
397
|
+
options: T.OpreateMessageParams,
|
|
398
|
+
operationID: string
|
|
399
|
+
): Promise<any> {
|
|
400
|
+
return AkaimSdkRn.deleteMessage(options, operationID);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export function deleteAllMsgFromLocalAndSvr(operationID: string): Promise<any> {
|
|
404
|
+
return AkaimSdkRn.deleteAllMsgFromLocalAndSvr(operationID);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export function deleteAllMsgFromLocal(operationID: string): Promise<any> {
|
|
408
|
+
return AkaimSdkRn.deleteAllMsgFromLocal(operationID);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export function clearConversationAndDeleteAllMsg(
|
|
412
|
+
conversationID: string,
|
|
413
|
+
operationID: string
|
|
414
|
+
): Promise<any> {
|
|
415
|
+
return AkaimSdkRn.clearConversationAndDeleteAllMsg(
|
|
416
|
+
conversationID,
|
|
417
|
+
operationID
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export function deleteConversationAndDeleteAllMsg(
|
|
422
|
+
conversationID: string,
|
|
423
|
+
operationID: string
|
|
424
|
+
): Promise<any> {
|
|
425
|
+
return AkaimSdkRn.deleteConversationAndDeleteAllMsg(
|
|
426
|
+
conversationID,
|
|
427
|
+
operationID
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export function insertSingleMessageToLocalStorage(
|
|
432
|
+
options: T.InsertSingleMsgParams,
|
|
433
|
+
operationID: string
|
|
434
|
+
): Promise<any> {
|
|
435
|
+
return AkaimSdkRn.insertSingleMessageToLocalStorage(options, operationID);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export function insertGroupMessageToLocalStorage(
|
|
439
|
+
options: T.InsertGroupMsgParams,
|
|
440
|
+
operationID: string
|
|
441
|
+
): Promise<any> {
|
|
442
|
+
return AkaimSdkRn.insertGroupMessageToLocalStorage(options, operationID);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export function setMessageLocalEx(
|
|
446
|
+
options: T.SetMessageLocalExParams,
|
|
447
|
+
operationID: string
|
|
448
|
+
): Promise<any> {
|
|
449
|
+
return AkaimSdkRn.setMessageLocalEx(options, operationID);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export function searchLocalMessages(
|
|
453
|
+
options: T.SearchLocalParams,
|
|
454
|
+
operationID: string
|
|
455
|
+
): Promise<T.SearchMessageResult> {
|
|
456
|
+
return AkaimSdkRn.searchLocalMessages(options, operationID);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// ==================== Friend Management ====================
|
|
460
|
+
export function getSpecifiedFriendsInfo(
|
|
461
|
+
options: T.GetSpecifiedFriendsParams,
|
|
462
|
+
operationID: string
|
|
463
|
+
): Promise<T.FriendUserItem[]> {
|
|
464
|
+
return AkaimSdkRn.getSpecifiedFriendsInfo(options, operationID);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export function getFriendList(
|
|
468
|
+
filterBlack: boolean,
|
|
469
|
+
operationID: string
|
|
470
|
+
): Promise<T.FriendUserItem[]> {
|
|
471
|
+
return AkaimSdkRn.getFriendList(filterBlack, operationID);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export function getFriendListPage(
|
|
475
|
+
options: T.OffsetParams,
|
|
476
|
+
operationID: string
|
|
477
|
+
): Promise<T.FriendUserItem[]> {
|
|
478
|
+
return AkaimSdkRn.getFriendListPage(options, operationID);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export function searchFriends(
|
|
482
|
+
options: T.SearchFriendParams,
|
|
483
|
+
operationID: string
|
|
484
|
+
): Promise<T.SearchedFriendsInfo[]> {
|
|
485
|
+
return AkaimSdkRn.searchFriends(options, operationID);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export function checkFriend(
|
|
489
|
+
userIDList: string[],
|
|
490
|
+
operationID: string
|
|
491
|
+
): Promise<T.FriendshipInfo[]> {
|
|
492
|
+
return AkaimSdkRn.checkFriend(userIDList, operationID);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export function addFriend(
|
|
496
|
+
options: T.AddFriendParams,
|
|
497
|
+
operationID: string
|
|
498
|
+
): Promise<any> {
|
|
499
|
+
return AkaimSdkRn.addFriend(options, operationID);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export function setFriendRemark(
|
|
503
|
+
options: T.RemarkFriendParams,
|
|
504
|
+
operationID: string
|
|
505
|
+
): Promise<any> {
|
|
506
|
+
return AkaimSdkRn.setFriendRemark(options, operationID);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export function deleteFriend(
|
|
510
|
+
friendUserID: string,
|
|
511
|
+
operationID: string
|
|
512
|
+
): Promise<any> {
|
|
513
|
+
return AkaimSdkRn.deleteFriend(friendUserID, operationID);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export function getFriendApplicationListAsRecipient(
|
|
517
|
+
operationID: string
|
|
518
|
+
): Promise<T.FriendApplicationItem[]> {
|
|
519
|
+
return AkaimSdkRn.getFriendApplicationListAsRecipient(operationID);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export function getFriendApplicationListAsApplicant(
|
|
523
|
+
operationID: string
|
|
524
|
+
): Promise<T.FriendApplicationItem[]> {
|
|
525
|
+
return AkaimSdkRn.getFriendApplicationListAsApplicant(operationID);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export function acceptFriendApplication(
|
|
529
|
+
options: T.AccessFriendParams,
|
|
530
|
+
operationID: string
|
|
531
|
+
): Promise<any> {
|
|
532
|
+
return AkaimSdkRn.acceptFriendApplication(options, operationID);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export function refuseFriendApplication(
|
|
536
|
+
options: T.AccessFriendParams,
|
|
537
|
+
operationID: string
|
|
538
|
+
): Promise<any> {
|
|
539
|
+
return AkaimSdkRn.refuseFriendApplication(options, operationID);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export function addBlack(
|
|
543
|
+
options: T.AddBlackParams,
|
|
544
|
+
operationID: string
|
|
545
|
+
): Promise<any> {
|
|
546
|
+
return AkaimSdkRn.addBlack(options, operationID);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export function getBlackList(operationID: string): Promise<T.BlackUserItem[]> {
|
|
550
|
+
return AkaimSdkRn.getBlackList(operationID);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export function removeBlack(
|
|
554
|
+
removeUserID: string,
|
|
555
|
+
operationID: string
|
|
556
|
+
): Promise<any> {
|
|
557
|
+
return AkaimSdkRn.removeBlack(removeUserID, operationID);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// ==================== Group Management ====================
|
|
561
|
+
export function createGroup(
|
|
562
|
+
options: T.CreateGroupParams,
|
|
563
|
+
operationID: string
|
|
564
|
+
): Promise<any> {
|
|
565
|
+
return AkaimSdkRn.createGroup(options, operationID);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export function isJoinGroup(
|
|
569
|
+
groupId: string,
|
|
570
|
+
operationID: string
|
|
571
|
+
): Promise<boolean> {
|
|
572
|
+
return AkaimSdkRn.isJoinGroup(groupId, operationID);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export function joinGroup(
|
|
576
|
+
options: T.JoinGroupParams,
|
|
577
|
+
operationID: string
|
|
578
|
+
): Promise<any> {
|
|
579
|
+
return AkaimSdkRn.joinGroup(options, operationID);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export function quitGroup(groupId: string, operationID: string): Promise<any> {
|
|
583
|
+
return AkaimSdkRn.quitGroup(groupId, operationID);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export function dismissGroup(
|
|
587
|
+
groupId: string,
|
|
588
|
+
operationID: string
|
|
589
|
+
): Promise<any> {
|
|
590
|
+
return AkaimSdkRn.dismissGroup(groupId, operationID);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export function changeGroupMute(
|
|
594
|
+
options: T.ChangeGroupMuteParams,
|
|
595
|
+
operationID: string
|
|
596
|
+
): Promise<any> {
|
|
597
|
+
return AkaimSdkRn.changeGroupMute(options, operationID);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export function changeGroupMemberMute(
|
|
601
|
+
options: T.ChangeGroupMemberMuteParams,
|
|
602
|
+
operationID: string
|
|
603
|
+
): Promise<any> {
|
|
604
|
+
return AkaimSdkRn.changeGroupMemberMute(options, operationID);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export function setGroupMemberInfo(
|
|
608
|
+
params: T.UpdateMemberInfoParams,
|
|
609
|
+
operationID: string
|
|
610
|
+
): Promise<any> {
|
|
611
|
+
return AkaimSdkRn.setGroupMemberInfo(params, operationID);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export function getJoinedGroupList(
|
|
615
|
+
operationID: string
|
|
616
|
+
): Promise<T.GroupItem[]> {
|
|
617
|
+
return AkaimSdkRn.getJoinedGroupList(operationID);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export function getJoinedGroupListPage(
|
|
621
|
+
options: T.OffsetParams,
|
|
622
|
+
operationID: string
|
|
623
|
+
): Promise<T.GroupItem[]> {
|
|
624
|
+
return AkaimSdkRn.getJoinedGroupListPage(options, operationID);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export function getSpecifiedGroupsInfo(
|
|
628
|
+
groupIDList: string[],
|
|
629
|
+
operationID: string
|
|
630
|
+
): Promise<T.GroupItem[]> {
|
|
631
|
+
return AkaimSdkRn.getSpecifiedGroupsInfo(groupIDList, operationID);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export function searchGroups(
|
|
635
|
+
options: T.SearchGroupParams,
|
|
636
|
+
operationID: string
|
|
637
|
+
): Promise<T.GroupItem[]> {
|
|
638
|
+
return AkaimSdkRn.searchGroups(options, operationID);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export function setGroupInfo(
|
|
642
|
+
options: T.SetGroupinfoParams,
|
|
643
|
+
operationID: string
|
|
644
|
+
): Promise<any> {
|
|
645
|
+
return AkaimSdkRn.setGroupInfo(options, operationID);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export function getGroupMemberList(
|
|
649
|
+
options: T.GetGroupMemberParams,
|
|
650
|
+
operationID: string
|
|
651
|
+
): Promise<T.GroupMemberItem[]> {
|
|
652
|
+
return AkaimSdkRn.getGroupMemberList(options, operationID);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export function getGroupMemberOwnerAndAdmin(
|
|
656
|
+
groupID: string,
|
|
657
|
+
operationID: string
|
|
658
|
+
): Promise<T.GroupMemberItem[]> {
|
|
659
|
+
return AkaimSdkRn.getGroupMemberOwnerAndAdmin(groupID, operationID);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export function getGroupMemberListByJoinTimeFilter(
|
|
663
|
+
options: T.GetGroupMemberByTimeParams,
|
|
664
|
+
operationID: string
|
|
665
|
+
): Promise<T.GroupMemberItem[]> {
|
|
666
|
+
return AkaimSdkRn.getGroupMemberListByJoinTimeFilter(options, operationID);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
export function getSpecifiedGroupMembersInfo(
|
|
670
|
+
options: T.GetGroupMembersInfoParams,
|
|
671
|
+
operationID: string
|
|
672
|
+
): Promise<T.GroupMemberItem[]> {
|
|
673
|
+
return AkaimSdkRn.getSpecifiedGroupMembersInfo(options, operationID);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
export function getUsersInGroup(
|
|
677
|
+
options: T.GetGroupMembersInfoParams,
|
|
678
|
+
operationID: string
|
|
679
|
+
): Promise<string[]> {
|
|
680
|
+
return AkaimSdkRn.getUsersInGroup(options, operationID);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export function kickGroupMember(
|
|
684
|
+
options: T.OperateGroupParams,
|
|
685
|
+
operationID: string
|
|
686
|
+
): Promise<any> {
|
|
687
|
+
return AkaimSdkRn.kickGroupMember(options, operationID);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export function transferGroupOwner(
|
|
691
|
+
options: T.TransferGroupParams,
|
|
692
|
+
operationID: string
|
|
693
|
+
): Promise<any> {
|
|
694
|
+
return AkaimSdkRn.transferGroupOwner(options, operationID);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export function inviteUserToGroup(
|
|
698
|
+
options: T.OperateGroupParams,
|
|
699
|
+
operationID: string
|
|
700
|
+
): Promise<any> {
|
|
701
|
+
return AkaimSdkRn.inviteUserToGroup(options, operationID);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export function getGroupApplicationListAsRecipient(
|
|
705
|
+
operationID: string
|
|
706
|
+
): Promise<T.GroupApplicationItem[]> {
|
|
707
|
+
return AkaimSdkRn.getGroupApplicationListAsRecipient(operationID);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export function getGroupApplicationListAsApplicant(
|
|
711
|
+
operationID: string
|
|
712
|
+
): Promise<T.GroupApplicationItem[]> {
|
|
713
|
+
return AkaimSdkRn.getGroupApplicationListAsApplicant(operationID);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export function acceptGroupApplication(
|
|
717
|
+
options: T.AccessGroupParams,
|
|
718
|
+
operationID: string
|
|
719
|
+
): Promise<any> {
|
|
720
|
+
return AkaimSdkRn.acceptGroupApplication(options, operationID);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export function refuseGroupApplication(
|
|
724
|
+
options: T.AccessGroupParams,
|
|
725
|
+
operationID: string
|
|
726
|
+
): Promise<any> {
|
|
727
|
+
return AkaimSdkRn.refuseGroupApplication(options, operationID);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export function searchGroupMembers(
|
|
731
|
+
options: T.SearchGroupMemberParams,
|
|
732
|
+
operationID: string
|
|
733
|
+
): Promise<T.GroupMemberItem[]> {
|
|
734
|
+
return AkaimSdkRn.searchGroupMembers(options, operationID);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
// ==================== Utilities ====================
|
|
738
|
+
export function uploadLogs(
|
|
739
|
+
options: T.UploadLogsParams,
|
|
740
|
+
opid?: string
|
|
741
|
+
): Promise<any> {
|
|
742
|
+
return AkaimSdkRn.uploadLogs(options, opid);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export function logs(options: T.LogsParams, opid?: string): Promise<any> {
|
|
746
|
+
return AkaimSdkRn.logs(options, opid);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export function uploadFile(
|
|
750
|
+
options: T.UploadFileParams,
|
|
751
|
+
operationID: string
|
|
752
|
+
): Promise<{ url: string }> {
|
|
753
|
+
return AkaimSdkRn.uploadFile(options, operationID);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// ==================== Re-exports ====================
|
|
757
|
+
export * from './NativeAkaimSdkRn';
|
|
758
|
+
export type * from './NativeAkaimSdkRn';
|