Skip to content

Commit 26d7bd6

Browse files
Muhamad RidwanMuhamad Ridwan
authored andcommitted
feat: update models
1 parent def5e09 commit 26d7bd6

30 files changed

+1931
-200
lines changed

.DS_Store

6 KB
Binary file not shown.

.openapi-generator/FILES

Lines changed: 18 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ docs/MarkAllMessagesAsReadRequest.md
6262
docs/MarkChannelMessagesAsReadRequest.md
6363
docs/MessageApi.md
6464
docs/MetadataApi.md
65+
docs/MigrateMessagesAdminMessageRequest.md
66+
docs/MigrateMessagesFileMessageRequest.md
67+
docs/MigrateMessagesFileMessageRequestThumbnailsInner.md
68+
docs/MigrateMessagesRequest.md
69+
docs/MigrateMessagesRequestMessagesInner.md
70+
docs/MigrateMessagesTextMessageRequest.md
6571
docs/ModerationApi.md
6672
docs/OpenChannelApi.md
6773
docs/RegisterOperatorsToAGroupChannelRequest.md
@@ -193,6 +199,12 @@ src/model/ListRegistrationOrDeviceTokensResponse.js
193199
src/model/ListUsersResponse.js
194200
src/model/MarkAllMessagesAsReadRequest.js
195201
src/model/MarkChannelMessagesAsReadRequest.js
202+
src/model/MigrateMessagesAdminMessageRequest.js
203+
src/model/MigrateMessagesFileMessageRequest.js
204+
src/model/MigrateMessagesFileMessageRequestThumbnailsInner.js
205+
src/model/MigrateMessagesRequest.js
206+
src/model/MigrateMessagesRequestMessagesInner.js
207+
src/model/MigrateMessagesTextMessageRequest.js
196208
src/model/RegisterOperatorsToAGroupChannelRequest.js
197209
src/model/RemoveARegistrationOrDeviceTokenResponse.js
198210
src/model/RemoveAllRegistrationOrDeviceTokenResponse.js
@@ -251,125 +263,9 @@ src/model/ViewNumberOfMonthlyActiveUsersResponse.js
251263
src/model/ViewNumberOfUnreadMessagesResponse.js
252264
src/model/ViewPushPreferencesForAChannelResponse.js
253265
src/model/ViewPushPreferencesResponse.js
254-
test/api/AnnouncementApi.spec.js
255-
test/api/BotApi.spec.js
256-
test/api/GroupChannelApi.spec.js
257-
test/api/MessageApi.spec.js
258-
test/api/MetadataApi.spec.js
259-
test/api/ModerationApi.spec.js
260-
test/api/OpenChannelApi.spec.js
261-
test/api/StatisticsApi.spec.js
262-
test/api/UserApi.spec.js
263-
test/model/AcceptAnInvitationRequest.spec.js
264-
test/model/AddARegistrationOrDeviceTokenRequest.spec.js
265-
test/model/AddARegistrationOrDeviceTokenResponse.spec.js
266-
test/model/AddExtraDataToAMessageRequest.spec.js
267-
test/model/AddExtraDataToAMessageResponse.spec.js
268-
test/model/BlockAUserRequest.spec.js
269-
test/model/BlockAUserResponse.spec.js
270-
test/model/CheckIfMemberResponse.spec.js
271-
test/model/ChooseAPushNotificationContentTemplateRequest.spec.js
272-
test/model/ChooseAPushNotificationContentTemplateResponse.spec.js
273-
test/model/CreateABotRequest.spec.js
274-
test/model/CreateABotResponse.spec.js
275-
test/model/CreateABotResponseBot.spec.js
276-
test/model/CreateABotResponseBotStyle.spec.js
277-
test/model/CreateAChannelMetadataRequest.spec.js
278-
test/model/CreateAChannelMetadataResponse.spec.js
279-
test/model/CreateAGroupChannelRequest.spec.js
280-
test/model/CreateAUserRequest.spec.js
281-
test/model/CreateAnOpenChannelRequest.spec.js
282-
test/model/CreateUserTokenRequest.spec.js
283-
test/model/CreateUserTokenResponse.spec.js
284-
test/model/FreezeAGroupChannelRequest.spec.js
285-
test/model/FreezeAnOpenChannelRequest.spec.js
286-
test/model/GetAGroupChannelResponse.spec.js
287-
test/model/GetAGroupChannelResponseAllOf.spec.js
288-
test/model/GetChannelInvitationPreferenceResponse.spec.js
289-
test/model/GetTotalNumberOfMessagesInAChannelResponse.spec.js
290-
test/model/GroupChannelListMembersResponse.spec.js
291-
test/model/GroupChatListChannelsResponse.spec.js
292-
test/model/HideAChannelRequest.spec.js
293-
test/model/InviteAsMembersRequest.spec.js
294-
test/model/InviteAsMembersResponse.spec.js
295-
test/model/InviteAsMembersResponseAllOf.spec.js
296-
test/model/JoinAChannelRequest.spec.js
297-
test/model/JoinChannelsRequest.spec.js
298-
test/model/LeaveAChannelRequest.spec.js
299-
test/model/LeaveMyGroupChannelsRequest.spec.js
300-
test/model/ListBlockedUsersResponse.spec.js
301-
test/model/ListBotsResponse.spec.js
302-
test/model/ListBotsResponseBotsInner.spec.js
303-
test/model/ListBotsResponseBotsInnerAi.spec.js
304-
test/model/ListBotsResponseBotsInnerBot.spec.js
305-
test/model/ListBotsResponseBotsInnerBotStyle.spec.js
306-
test/model/ListBotsResponseBotsInnerBotStyleColor.spec.js
307-
test/model/ListBotsResponseBotsInnerFirstMessagesInner.spec.js
308-
test/model/ListBotsResponseBotsInnerFirstMessagesInnerData.spec.js
309-
test/model/ListBotsResponseBotsInnerSafeguard.spec.js
310-
test/model/ListMessagesResponse.spec.js
311-
test/model/ListMyGroupChannelsResponse.spec.js
312-
test/model/ListOpenChannelsResponse.spec.js
313-
test/model/ListOperatorsResponse.spec.js
314-
test/model/ListRegistrationOrDeviceTokensResponse.spec.js
315-
test/model/ListUsersResponse.spec.js
316-
test/model/MarkAllMessagesAsReadRequest.spec.js
317-
test/model/MarkChannelMessagesAsReadRequest.spec.js
318-
test/model/RegisterOperatorsToAGroupChannelRequest.spec.js
319-
test/model/RemoveARegistrationOrDeviceTokenResponse.spec.js
320-
test/model/RemoveAllRegistrationOrDeviceTokenResponse.spec.js
321-
test/model/ResetChatHistoryRequest.spec.js
322-
test/model/ResetChatHistoryResponse.spec.js
323-
test/model/ScheduleAnAnnouncementRequest.spec.js
324-
test/model/ScheduleAnAnnouncementRequestCreateChannelOptions.spec.js
325-
test/model/ScheduleAnAnnouncementRequestMessage.spec.js
326-
test/model/ScheduleAnAnnouncementResponse.spec.js
327-
test/model/ScheduleAnAnnouncementResponseMessage.spec.js
328-
test/model/SendABotMessageRequest.spec.js
329-
test/model/SendAMessageRequest.spec.js
330-
test/model/SendAdminMessageRequestBody.spec.js
331-
test/model/SendFileMessageRequestBody.spec.js
332-
test/model/SendTextMessageRequestBody.spec.js
333-
test/model/SendTextMessageRequestBodyPushMessageTemplate.spec.js
334-
test/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.spec.js
335-
test/model/SendbirdBasicUserInfo.spec.js
336-
test/model/SendbirdDisappearingMessage.spec.js
337-
test/model/SendbirdExtendedMessagePayload.spec.js
338-
test/model/SendbirdFile.spec.js
339-
test/model/SendbirdGroupChannel.spec.js
340-
test/model/SendbirdGroupChannelDetail.spec.js
341-
test/model/SendbirdGroupChannelDetailChannel.spec.js
342-
test/model/SendbirdMember.spec.js
343-
test/model/SendbirdMessageResponse.spec.js
344-
test/model/SendbirdMessageResponseMessageEvents.spec.js
345-
test/model/SendbirdOpenChannel.spec.js
346-
test/model/SendbirdParentMessageInfo.spec.js
347-
test/model/SendbirdPushTriggerOption.spec.js
348-
test/model/SendbirdReaction.spec.js
349-
test/model/SendbirdSmsFallback.spec.js
350-
test/model/SendbirdSortedMetaarrayInner.spec.js
351-
test/model/SendbirdThumbnail.spec.js
352-
test/model/SendbirdUser.spec.js
353-
test/model/StartTypingIndicatorsRequest.spec.js
354-
test/model/UpdateAChannelMetadataRequest.spec.js
355-
test/model/UpdateAGroupChannelRequest.spec.js
356-
test/model/UpdateAMessageRequest.spec.js
357-
test/model/UpdateAUserRequest.spec.js
358-
test/model/UpdateAnOpenChannelRequest.spec.js
359-
test/model/UpdateChannelInvitationPreferenceRequest.spec.js
360-
test/model/UpdateChannelInvitationPreferenceResponse.spec.js
361-
test/model/UpdateCountPreferenceOfAChannelRequest.spec.js
362-
test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js
363-
test/model/UpdateExtraDataInAMessageRequest.spec.js
364-
test/model/UpdateExtraDataInAMessageResponse.spec.js
365-
test/model/UpdatePushPreferencesForAChannelRequest.spec.js
366-
test/model/UpdatePushPreferencesForAChannelResponse.spec.js
367-
test/model/UpdatePushPreferencesRequest.spec.js
368-
test/model/UpdatePushPreferencesResponse.spec.js
369-
test/model/ViewCountPreferenceOfAChannelResponse.spec.js
370-
test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js
371-
test/model/ViewNumberOfDailyActiveUsersResponse.spec.js
372-
test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js
373-
test/model/ViewNumberOfUnreadMessagesResponse.spec.js
374-
test/model/ViewPushPreferencesForAChannelResponse.spec.js
375-
test/model/ViewPushPreferencesResponse.spec.js
266+
test/model/MigrateMessagesAdminMessageRequest.spec.js
267+
test/model/MigrateMessagesFileMessageRequest.spec.js
268+
test/model/MigrateMessagesFileMessageRequestThumbnailsInner.spec.js
269+
test/model/MigrateMessagesRequest.spec.js
270+
test/model/MigrateMessagesRequestMessagesInner.spec.js
271+
test/model/MigrateMessagesTextMessageRequest.spec.js

docs/GroupChannelApi.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,7 @@ let opts = {
583583
'metacounterValueGte': "metacounterValueGte_example", // String | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
584584
'metacounterValueLt': "metacounterValueLt_example", // String | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
585585
'metacounterValueLte': "metacounterValueLte_example", // String | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
586-
'includeSortedMetaarrayInLastMessage': false, // Boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response.
587-
'customType': ANNOUNCEMENT, // String | (Deprecated) Returns channels whose custom_type matches the given value. If this field is not specified, all channels are returned, regardless of their custom type. The string passed here must be urlencoded.
588-
'readReceipt': false, // Boolean | (Deprecated) Superseded by show_read_receipt.
589-
'member': true, // Boolean | (Deprecated) Superseded by show_member.
590-
'isDistinct': true, // Boolean | (Deprecated) Superseded by distinct_mode.
591-
'membersIn': "membersIn_example", // String | (Deprecated) Superseded by members_exactly_in.
592-
'userId': "userId_example" // String | (Deprecated) Restricts the search scope to only retrieve the target user's group channels. It's recommended to use the list group channels by user action instead.
586+
'includeSortedMetaarrayInLastMessage': false // Boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response.
593587
};
594588
apiInstance.listChannels(apiToken, opts).then((data) => {
595589
console.log('API called successfully. Returned data: ' + data);
@@ -641,12 +635,6 @@ Name | Type | Description | Notes
641635
**metacounterValueLt** | **String**| Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | [optional]
642636
**metacounterValueLte** | **String**| Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | [optional]
643637
**includeSortedMetaarrayInLastMessage** | **Boolean**| Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. | [optional]
644-
**customType** | **String**| (Deprecated) Returns channels whose custom_type matches the given value. If this field is not specified, all channels are returned, regardless of their custom type. The string passed here must be urlencoded. | [optional]
645-
**readReceipt** | **Boolean**| (Deprecated) Superseded by show_read_receipt. | [optional]
646-
**member** | **Boolean**| (Deprecated) Superseded by show_member. | [optional]
647-
**isDistinct** | **Boolean**| (Deprecated) Superseded by distinct_mode. | [optional]
648-
**membersIn** | **String**| (Deprecated) Superseded by members_exactly_in. | [optional]
649-
**userId** | **String**| (Deprecated) Restricts the search scope to only retrieve the target user's group channels. It's recommended to use the list group channels by user action instead. | [optional]
650638

651639
### Return type
652640

docs/MessageApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ let apiInstance = new SendbirdPlatformSdk.MessageApi();
393393
let targetChannelUrl = "targetChannelUrl_example"; // String | (Required)
394394
let opts = {
395395
'apiToken': {{API_TOKEN}}, // String |
396-
'body': {key: null} // Object |
396+
'migrateMessagesRequest': new SendbirdPlatformSdk.MigrateMessagesRequest() // MigrateMessagesRequest |
397397
};
398398
apiInstance.migrateMessages(targetChannelUrl, opts).then((data) => {
399399
console.log('API called successfully. Returned data: ' + data);
@@ -410,7 +410,7 @@ Name | Type | Description | Notes
410410
------------- | ------------- | ------------- | -------------
411411
**targetChannelUrl** | **String**| (Required) |
412412
**apiToken** | **String**| | [optional]
413-
**body** | **Object**| | [optional]
413+
**migrateMessagesRequest** | [**MigrateMessagesRequest**](MigrateMessagesRequest.md)| | [optional]
414414

415415
### Return type
416416

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SendbirdPlatformSdk.MigrateMessagesAdminMessageRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**messageType** | **String** | |
8+
**message** | **String** | |
9+
**timestamp** | **Number** | |
10+
**customType** | **String** | | [optional]
11+
**isSilent** | **Boolean** | | [optional]
12+
**mentionedUserIds** | **[String]** | | [optional]
13+
**data** | **String** | | [optional]
14+
**dedupId** | **String** | | [optional]
15+
**sortedMetaarray** | **[Object]** | | [optional]
16+
17+
18+
19+
## Enum: MessageTypeEnum
20+
21+
22+
* `ADMM` (value: `"ADMM"`)
23+
24+
25+
26+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SendbirdPlatformSdk.MigrateMessagesFileMessageRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**userId** | **String** | |
8+
**messageType** | **String** | |
9+
**url** | **String** | |
10+
**timestamp** | **Number** | |
11+
**fileName** | **String** | | [optional]
12+
**fileSize** | **Number** | | [optional]
13+
**fileType** | **String** | | [optional]
14+
**thumbnails** | [**[MigrateMessagesFileMessageRequestThumbnailsInner]**](MigrateMessagesFileMessageRequestThumbnailsInner.md) | | [optional]
15+
**requireAuth** | **Boolean** | | [optional]
16+
**customType** | **String** | | [optional]
17+
**customField** | **String** | | [optional]
18+
**mentionedUserIds** | **[String]** | | [optional]
19+
**dedupId** | **String** | | [optional]
20+
**sortedMetaarray** | **[Object]** | | [optional]
21+
22+
23+
24+
## Enum: MessageTypeEnum
25+
26+
27+
* `FILE` (value: `"FILE"`)
28+
29+
30+
31+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SendbirdPlatformSdk.MigrateMessagesFileMessageRequestThumbnailsInner
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+

docs/MigrateMessagesRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SendbirdPlatformSdk.MigrateMessagesRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**messages** | [**[MigrateMessagesRequestMessagesInner]**](MigrateMessagesRequestMessagesInner.md) | | [optional]
8+
**updateReadTs** | **Boolean** | | [optional]
9+
**rewindReadTs** | **Boolean** | | [optional]
10+
11+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SendbirdPlatformSdk.MigrateMessagesRequestMessagesInner
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**userId** | **String** | |
8+
**messageType** | **String** | |
9+
**message** | **String** | |
10+
**timestamp** | **Number** | |
11+
**customType** | **String** | | [optional]
12+
**mentionedUserIds** | **[String]** | | [optional]
13+
**data** | **String** | | [optional]
14+
**dedupId** | **String** | | [optional]
15+
**sortedMetaarray** | **[Object]** | | [optional]
16+
**url** | **String** | |
17+
**fileName** | **String** | | [optional]
18+
**fileSize** | **Number** | | [optional]
19+
**fileType** | **String** | | [optional]
20+
**thumbnails** | [**[MigrateMessagesFileMessageRequestThumbnailsInner]**](MigrateMessagesFileMessageRequestThumbnailsInner.md) | | [optional]
21+
**requireAuth** | **Boolean** | | [optional]
22+
**customField** | **String** | | [optional]
23+
**isSilent** | **Boolean** | | [optional]
24+
25+
26+
27+
## Enum: MessageTypeEnum
28+
29+
30+
* `ADMM` (value: `"ADMM"`)
31+
32+
33+
34+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SendbirdPlatformSdk.MigrateMessagesTextMessageRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**userId** | **String** | |
8+
**messageType** | **String** | |
9+
**message** | **String** | |
10+
**timestamp** | **Number** | |
11+
**customType** | **String** | | [optional]
12+
**mentionedUserIds** | **[String]** | | [optional]
13+
**data** | **String** | | [optional]
14+
**dedupId** | **String** | | [optional]
15+
**sortedMetaarray** | **[Object]** | | [optional]
16+
17+
18+
19+
## Enum: MessageTypeEnum
20+
21+
22+
* `MESG` (value: `"MESG"`)
23+
24+
25+
26+

0 commit comments

Comments
 (0)